IncidentIo. IncidentTypesV1
(IncidentIo v0.3.1)
View Source
Manage incident types.
With incident types enabled, you can tailor your process to the situation you're responding to with different custom fields and roles for each incident type.
Summary
Functions
Create a new incident type.
Archives a single incident type.
List all incident types for an organisation.
Get a single incident type.
Update an existing incident type.
Functions
@spec create(IncidentIo.Client.t(), map()) :: IncidentIo.response()
Create a new incident type.
Example
IncidentIo.IncidentTypesV1.create(client, %{
description: "Customer facing production outages",
name: "Production Outage"
})More information at: https://api-docs.incident.io/tag/Incident-Types-V1#operation/Incident%20Types%20V1_Create
@spec destroy(IncidentIo.Client.t(), binary()) :: IncidentIo.response()
Archives a single incident type.
Example
IncidentIo.IncidentTypesV1.destroy(client, "some-incident-type-id")More information at: https://api-docs.incident.io/tag/Incident-Types-V1#operation/Incident%20Types%20V1_Delete
@spec list(IncidentIo.Client.t()) :: IncidentIo.response()
List all incident types for an organisation.
Example
IncidentIo.IncidentTypesV1.list(client)More information at: https://api-docs.incident.io/tag/Incident-Types-V1#operation/Incident%20Types%20V1_List
@spec show(IncidentIo.Client.t(), binary()) :: IncidentIo.response()
Get a single incident type.
Example
IncidentIo.IncidentTypesV1.show(client, "some-incident-type-id")More information at: https://api-docs.incident.io/tag/Incident-Types-V1#operation/Incident%20Types%20V1_Show
@spec update(IncidentIo.Client.t(), binary(), map()) :: IncidentIo.response()
Update an existing incident type.
Example
IncidentIo.IncidentTypesV1.update(client, "some-incident-type-id", %{
name: "Updated Production Outage"
})More information at: https://api-docs.incident.io/tag/Incident-Types-V1#operation/Incident%20Types%20V1_Update