Feature request - remove line breaks in HTML output

Matt Cohen January 3, 2023

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
Dave Parrish _Atlassian_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 3, 2023

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.

Matt Cohen January 3, 2023

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

Like • Dave Parrish _Atlassian_ likes this
0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 3, 2023

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.

Matt Cohen January 3, 2023

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
AUG Leaders

Atlassian Community Events