IncidentIo. AlertRoutesV2
(IncidentIo v0.3.1)
View Source
Manage alert routes within incident.io.
Alert routes determine how incoming alerts are routed to create or update incidents based on conditions and configuration.
Summary
Functions
Create a new alert route.
Delete an alert route.
List all alert routes for an organisation.
Get a single alert route.
Update an existing alert route.
Functions
@spec create(IncidentIo.Client.t(), map()) :: IncidentIo.response()
Create a new alert route.
Example
IncidentIo.AlertRoutesV2.create(client, %{name: "Production alerts"})More information at: https://api-docs.incident.io/tag/Alert-Routes-V2#operation/Alert%20Routes%20V2_Create
@spec destroy(IncidentIo.Client.t(), binary()) :: IncidentIo.response()
Delete an alert route.
Example
IncidentIo.AlertRoutesV2.destroy(client, "some-alert-route-id")More information at: https://api-docs.incident.io/tag/Alert-Routes-V2#operation/Alert%20Routes%20V2_Delete
@spec list( IncidentIo.Client.t(), keyword() ) :: IncidentIo.response()
List all alert routes for an organisation.
Example
IncidentIo.AlertRoutesV2.list(client)More information at: https://api-docs.incident.io/tag/Alert-Routes-V2#operation/Alert%20Routes%20V2_List
@spec show(IncidentIo.Client.t(), binary()) :: IncidentIo.response()
Get a single alert route.
Example
IncidentIo.AlertRoutesV2.show(client, "some-alert-route-id")More information at: https://api-docs.incident.io/tag/Alert-Routes-V2#operation/Alert%20Routes%20V2_Show
@spec update(IncidentIo.Client.t(), binary(), map()) :: IncidentIo.response()
Update an existing alert route.
Example
IncidentIo.AlertRoutesV2.update(client, "some-alert-route-id", %{name: "Updated route"})More information at: https://api-docs.incident.io/tag/Alert-Routes-V2#operation/Alert%20Routes%20V2_Update