You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
What I think, I should make changes in the config.yml file -> api_url section, but that's giving me an error:
Config_File:
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
The text was updated successfully, but these errors were encountered:
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:
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
The text was updated successfully, but these errors were encountered: