pagex v0.1.0 Pagex.Incidents View Source
Client for the Incidents API v2 from Pagerduty.
Link to this section Summary
Functions
Create a new Incident
Link to this section Types
Link to this type
response() View Source
Link to this section Functions
Link to this function
create(title, service, from, opts \\ []) View Source
Create a new Incident.
title- A succinct description of the nature, symptoms, cause or effect of the incident.service- The incident will be created on this service.from- The email address from the Pagerduty user to be associated with the triggering of the request.
Options
urgency- The urgency of the incident. Can be:highor:low.incident_key- A string which identifies the incident. Sending subsequent requests referencing the same service and with the sameincident_keywill result in those requests being rejected if an open incident matches thatincident_key.
Examples
iex> Pagex.Incidents.create("Test", "MyServiceID", "user@example.com")