View Source IncidentIo.IncidentStatusesV1 (IncidentIo v0.1.0)
Manage incident statuses.
Each incident has a status, picked from one of the statuses configured in your organisation's settings.
Statuses help communicate where an incident is in its lifecycle. You can use statuses when filtering incidents in the dashboard, and in workflows and announcement rules.
Summary
Functions
Create a new incident status.
Removes an existing incident status.
List all incident statuses for an organisation.
Get a single incident status.
Update an existing incident status.
Functions
@spec create(IncidentIo.Client.t(), create_request_body()) :: IncidentIo.response()
Create a new incident status.
incident status body example:
%{
category: "live",
description: "Impact has been **fully mitigated**, and we're ready to learn from this incident.",
name: "Closed"
}
Example
IncidentIo.IncidentStatusesV1.create(client, body)
More information at: https://api-docs.incident.io/tag/Incident-Statuses-V1#operation/Incident-Statuses%20V1_Create
@spec destroy(IncidentIo.Client.t(), binary()) :: IncidentIo.response()
Removes an existing incident status.
Example
IncidentIo.IncidentStatusesV1.destroy(client, "some-incident-status-id")
More information at: https://api-docs.incident.io/tag/Incident-Statuses-V1#operation/Incident-Statuses%20V1_Delete
@spec list(IncidentIo.Client.t()) :: IncidentIo.response()
List all incident statuses for an organisation.
Example
IncidentIo.IncidentStatusesV1.list(client)
More information at: https://api-docs.incident.io/tag/Incident-Statuses-V1#operation/Incident-Statuses%20V1_List
@spec show(IncidentIo.Client.t(), binary()) :: IncidentIo.response()
Get a single incident status.
Example
IncidentIo.IncidentStatusesV1.show(client, "some-incident-status-id")
More information at: https://api-docs.incident.io/tag/Incident-Statuses-V1#operation/Incident-Statuses%20V1_Show
@spec update(IncidentIo.Client.t(), binary(), update_request_body()) :: IncidentIo.response()
Update an existing incident status.
incident status body example:
%{
description: "Impact has been **fully mitigated**, and we're ready to learn from this incident.",
name: "Closed"
}
Example
IncidentIo.IncidentStatusesV1.update(client, "some-incident-status-id", body)
More information at: https://api-docs.incident.io/tag/Incident-Statuses-V1#operation/Incident-Statuses%20V1_Update