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

Link to this function

create(client \\ %Client{}, body)

View Source
@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

Link to this function

destroy(client \\ %Client{}, id)

View Source

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

Link to this function

list(client \\ %Client{})

View Source

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

Link to this function

show(client \\ %Client{}, id)

View Source

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

Link to this function

update(client \\ %Client{}, id, body)

View Source
@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