Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/epsanchezma/pagexduty
Elixir client for PagerDuty
https://github.com/epsanchezma/pagexduty
Last synced: about 1 month ago
JSON representation
Elixir client for PagerDuty
- Host: GitHub
- URL: https://github.com/epsanchezma/pagexduty
- Owner: epsanchezma
- License: mit
- Created: 2015-05-22T21:13:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-01T18:07:19.000Z (over 9 years ago)
- Last Synced: 2024-04-14T04:10:22.590Z (8 months ago)
- Language: Elixir
- Size: 128 KB
- Stars: 7
- Watchers: 13
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - A Pagerduty client for Elixir. (Third Party APIs)
README
Pagexduty
=========PagerDuty client for Elixir.
## Installing
Add pagexduty as a dependency to your project:
```elixir
defp deps do
[{:pagexduty, "~> 0.1.0"}]
end
```And add pagexduty to applications list:
```elixir
def application do
[applications: [:pagexduty]]
end
```Finally fetch and compile dependency:
```
mix deps.get
mix deps.compile
```## Examples
```elixir
# Create an incident only with a description
Pagexduty.Server.trigger("Something is not right")
# Create an incident with a description and details
Pagexduty.Server.trigger("You know nothing, Server Snow", %{"detail" => "something"})
# Create an incident with a description and incident_key
Pagexduty.Server.trigger("An error occurred", "srv01/HTTP")
# Create a incident with a description, incident_key and details
Pagexduty.Server.trigger("An error occurred", "srv01/HTTP", %{"detail" => "something"})
```
## License
pagexduty is copyright (c) 2015 Ride Group Inc and contributors.
The source code is released under the MIT License.
Check [LICENSE](LICENSE) for more information.