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

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

@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

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

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

list(client \\ %Client{}, opts \\ [])

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

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

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

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

@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