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

Link to this function

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

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

Link to this function

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

View Source

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

Link to this function

list(client \\ %Client{})

View Source

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

Link to this function

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

View Source

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

Link to this function

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

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