Pagex
Elixir client for V2 of the Pagerduty REST API.
Installation
If available in Hex, the package can be installed
by adding pagex to your list of dependencies in mix.exs:
def deps do
[
{:pagex, "~> 0.1.0"}
]
endUsage
Configure pagex for your application. By using the {:system, "ENV_VAR_NAME"} pattern, pagex will lookup the key at run time.
config :pagex,
api_key: {:system, "PAGERDUTY_API_KEY"},
uri: {:system, "PAGERDUTY_URI"}Creating an incident is simple:
iex> Pagex.Incidents.create("Test Incident!", "MyServiceID", "me@example.org)