Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,508
Community Members
 
Community Events
176
Community Groups

Feature request - remove line breaks in HTML output

We are trying to use a monitoring solution to notify us of changes to our vendors' status pages, run by Statuspage.  

We can monitor for the text 'All systems operational" but we'd like more fine-grained notification.  Unfortunately our keyword monitoring system can't handle the line breaks that are in the HTMl code.  

For example, here is the output code from one such page:

Unknown.png

But our monitor can only look for: 

---

data-component-id="8h9sn12x310t" class="component-inner-container status-orange "

---

Where the actual HTML is 

---

data-component-id="8h9sn12x310t"

class="component-inner-container status-orange "

---

(i.e. with a line break).

 

Is it possible to adjust your code output so that the data-component-id and class for the DIV tag is all one one line?  That will allow us and others to monitor individual sections of a status page and not the entire vendor as a whole.

2 answers

1 accepted

1 vote
Answer accepted

Hey @Matt Cohen 👋 Also note that public status pages have a REST API you can access by appending `/api` to the status page URL. For example:

https://confluence.status.atlassian.com/api

In your case, you'd probably want the `/summary` endpoint:

https://confluence.status.atlassian.com/api/v2/summary.json

Which returns output like this:

{
"page": {
"id": "4g2my7tbhjsq",
"name": "Confluence",
"url": "https://confluence.status.atlassian.com",
"time_zone": "Etc/UTC",
"updated_at": "2022-12-19T08:00:39.734Z"
},

...

"status": {
"indicator": "none",
"description": "All Systems Operational"
}
}

  Of course, this may or may not work with the monitoring system you're already using.

Thank you !  This is very helpful and I appreciate you helping me out with the info!

0 votes

Welcome to the Atlassian Community!

Atlassian don't take feature requests from the Community (often), you should raise this in their issue tracker over at jira.atlassian.com 

I doubt they'll do this though, as the HTML is well-formed and readable.

Thanks - I actually tried to use jira but there wasn't a category for Statuspage

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events