enums

Constants / enums for various resources in cachet like component and incident status value.

Component Status

cachetclient.v1.enums.COMPONENT_STATUS_OPERATIONAL

[1] Operational. The component is working.

cachetclient.v1.enums.COMPONENT_STATUS_PERFORMANCE_ISSUES

[2] Performance Issues. The component is experiencing some slowness.

cachetclient.v1.enums.COMPONENT_STATUS_PARTIAL_OUTAGE

[3] Partial Outage. The component may not be working for everybody. This could be a geographical issue for example.

cachetclient.v1.enums.COMPONENT_STATUS_MAJOR_OUTAGE

[4] Major Outage. The component is not working for anybody.

cachetclient.v1.enums.COMPONENT_STATUS_LIST

List of all component statuses

Can be used for:

>> status in enums.COMPONENT_STATUS_LIST
True

Component Group Collapsed

cachetclient.v1.enums.COMPONENT_GROUP_COLLAPSED_FALSE

[0] No

cachetclient.v1.enums.COMPONENT_GROUP_COLLAPSED_TRUE

[1] Yes

cachetclient.v1.enums.COMPONENT_GROUP_COLLAPSED_NOT_OPERATIONAL

[2] Component is not Operational

Incident Status

cachetclient.v1.enums.INCIDENT_SCHEDULED

[0] Scheduled. This status is reserved for a scheduled status.

cachetclient.v1.enums.INCIDENT_INVESTIGATING

[1] Investigating. You have reports of a problem and you’re currently looking into them.

cachetclient.v1.enums.INCIDENT_IDENTIFIED

[2] Identified. You’ve found the issue and you’re working on a fix.

cachetclient.v1.enums.INCIDENT_WATCHING

[3] Watching. You’ve since deployed a fix and you’re currently watching the situation.

cachetclient.v1.enums.INCIDENT_FIXED

[4] Fixed. The fix has worked, you’re happy to close the incident.

cachetclient.v1.enums.incident_status_human(status: int)

Get human status from incident status id

Example:

>> incident_status_human(enums.INCIDENT_FIXED)
Fixed
Parameters

status (int) – Incident status id

Returns

Human status

Return type

str

Schedule Status

cachetclient.v1.enums.SCHEDULE_STATUS_UPCOMING

[0] Upcoming

cachetclient.v1.enums.SCHEDULE_STATUS_IN_PROGRESS

[1] In progress

cachetclient.v1.enums.SCHEDULE_STATUS_COMPLETE

[2] Completed