Get number of incidents in last 24 hours and show the number in status page

Imthiyaz Ahamed
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 4, 2023

Hi,

I am working on customizing stauspage with HTML, CSS, and JS. I would like to show the number of incidents that occurred in the past 24 hours on my main page. Is there any way we can get the count of the number of incidents that happened in the last 24 hours and show that on the main page?

 

Thanks & Regards,

Imthiyaz Ahamed

1 answer

0 votes
Abraham Musalem
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 5, 2023

Hi @Imthiyaz Ahamed ,

Thanks for reaching out to community about this. You could try using the API to get the number of incidents within a certain date and then sending that value to your page. That will be the more challenging part. The API endpoint for that would be https://developer.statuspage.io/#operation/getPagesPageIdIncidents

Best,
Abraham, Statuspage Support 

Imthiyaz Ahamed
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 6, 2023

Hi Abraham,

 

I am aware about the APIs of statuspage. Do you have any sample code for this?

Abraham Musalem
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 6, 2023

Hey @Imthiyaz Ahamed ,

Unfortunately not as we don't really have the bandwidth to help come up with custom code. If you see an existing page that is doing the same, you could inspect the page via chrome admin tools and extract some of the HTML/CSS they are using. 

Regards,
Abraham 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events