Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting the endpoints based on status #135

Open
monu56 opened this issue Mar 21, 2022 · 0 comments
Open

Sorting the endpoints based on status #135

monu56 opened this issue Mar 21, 2022 · 0 comments

Comments

@monu56
Copy link

monu56 commented Mar 21, 2022

Hi,
I am looking out for a solution where our Cachet Status Page can sort the components based on the status (For ex: Outage URL should be listed first in the status page UI). I followed the documentation, but not clear where exactly to make changes. Can anyone help please.

Ref: https://docs.cachethq.io/docs/advanced-api-usage

What I think, I should make changes in the config.yml file -> api_url section, but that's giving me an error:

Config_File:
capture

Error:
Traceback (most recent call last):
File "cachet_url_monitor/scheduler.py", line 160, in
configuration = Configuration(config_data, endpoint_index, client, webhooks)
File "/home/cachet/py3/lib64/python3.7/site-packages/cachet_url_monitor-0.6.11-py3.7.egg/cachet_url_monitor/configuration.py", line 105, in init
self.status = self.client.get_component_status(self.component_id)
File "/home/cachet/py3/lib64/python3.7/site-packages/cachet_url_monitor-0.6.11-py3.7.egg/cachet_url_monitor/client.py", line 82, in get_component_status
return status.ComponentStatus(int(get_status_request.json()["data"]["status"]))
TypeError: list indices must be integers or slices, not str

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant