Open einarf opened 5 years ago
Scheduled tasks are returned by the incidents
endpoint:
{
'id': 91,
'component_id': 0,
'name': 'Maintenance Tomorrow',
'status': 0,
'visible': 1,
'message': 'Shit might happen',
'scheduled_at': '2019-09-25 17:53:00',
'created_at': '2019-09-24 17:53:34',
'updated_at': '2019-09-24 17:53:34',
'deleted_at': None,
'human_status': 'Scheduled'
}
They are easy to separate by checking the status
field value of INCIDENT_SCHEDULED = 0
.
https://github.com/ZettaIO/cachet-client/blob/eb5d1a05ef72e493e4eb6bd6c1c98a18e84fba85/cachetclient/v1/enums.py#L34
We have added schedules for cachet 2.4. We still might want to document this difference?
Leaving this hanging for a bit more in case someone finds it useful.
Test using a real cachet service. Document it!