IncidentIo. EscalationPathsV2
(IncidentIo v0.3.1)
View Source
Manage escalation paths for your organisation.
Escalation paths define how alerts and incidents are escalated through your team, specifying who gets notified and when if an incident goes unacknowledged.
Summary
Functions
Create a new escalation path.
Delete an escalation path.
List all escalation paths for an organisation.
Get a single escalation path.
Update an existing escalation path.
Functions
@spec create(IncidentIo.Client.t(), map()) :: IncidentIo.response()
Create a new escalation path.
Example
IncidentIo.EscalationPathsV2.create(client, %{name: "Default Escalation Path"})More information at: https://api-docs.incident.io/tag/Escalation-Paths-V2#operation/Escalation%20Paths%20V2_Create
@spec destroy(IncidentIo.Client.t(), binary()) :: IncidentIo.response()
Delete an escalation path.
Example
IncidentIo.EscalationPathsV2.destroy(client, "some-escalation-path-id")More information at: https://api-docs.incident.io/tag/Escalation-Paths-V2#operation/Escalation%20Paths%20V2_Delete
@spec list( IncidentIo.Client.t(), keyword() ) :: IncidentIo.response()
List all escalation paths for an organisation.
Accepts optional pagination parameters:
:after- Cursor for pagination:page_size- Number of items per page (default: 25, max: 250)
Example
IncidentIo.EscalationPathsV2.list(client)
IncidentIo.EscalationPathsV2.list(client, page_size: 50)More information at: https://api-docs.incident.io/tag/Escalation-Paths-V2#operation/Escalation%20Paths%20V2_List
@spec show(IncidentIo.Client.t(), binary()) :: IncidentIo.response()
Get a single escalation path.
Example
IncidentIo.EscalationPathsV2.show(client, "some-escalation-path-id")More information at: https://api-docs.incident.io/tag/Escalation-Paths-V2#operation/Escalation%20Paths%20V2_Show
@spec update(IncidentIo.Client.t(), binary(), map()) :: IncidentIo.response()
Update an existing escalation path.
Example
IncidentIo.EscalationPathsV2.update(client, "some-escalation-path-id", %{
name: "Updated Escalation Path"
})More information at: https://api-docs.incident.io/tag/Escalation-Paths-V2#operation/Escalation%20Paths%20V2_Update