View Source IncidentIo.SeveritiesV1 (IncidentIo v0.1.0)
Manage severities.
Each incident has a severity, picked from one of the severities configured in your organisation's settings.
Severities help categorise incidents, and communicate urgency/impact. You can use severities when filtering incidents in the dashboard, and in workflows and announcement rules.
Summary
Functions
Create a new severity.
Delete an existing severity.
List all severities for an organisation.
Get a single severity.
Update an existing severity.
Functions
@spec create(IncidentIo.Client.t(), request_body()) :: IncidentIo.response()
Create a new severity.
Severity body example:
%{
description: "Issues with **low impact**.",
name: "Minor",
rank: 1
}
Example
IncidentIo.SeveritiesV1.create(client, body)
More information at: https://api-docs.incident.io/tag/Severities-V1#operation/Severities%20V1_Create
@spec destroy(IncidentIo.Client.t(), binary()) :: IncidentIo.response()
Delete an existing severity.
Example
IncidentIo.SeveritiesV1.destroy(client, "some-severity-id")
More information at: https://api-docs.incident.io/tag/Severities-V1#operation/Severities%20V1_Delete
@spec list(IncidentIo.Client.t()) :: IncidentIo.response()
List all severities for an organisation.
Example
IncidentIo.SeveritiesV1.list(client)
More information at: https://api-docs.incident.io/tag/Severities-V1#operation/Severities%20V1_List
@spec show(IncidentIo.Client.t(), binary()) :: IncidentIo.response()
Get a single severity.
Example
IncidentIo.SeveritiesV1.show(client, "some-severity-id")
More information at: https://api-docs.incident.io/tag/Severities-V1#operation/Severities%20V1_Show
@spec update(IncidentIo.Client.t(), binary(), request_body()) :: IncidentIo.response()
Update an existing severity.
Schedule body example:
%{
description: "Issues with **low impact**.",
name: "Morris Minor",
rank: 2
}
Example
IncidentIo.SeveritiesV1.update(client, body)
More information at: https://api-docs.incident.io/tag/Severities-V1#operation/Severities%20V1_Update