ex_victor_ops v0.4.1 ExVictorOps.Config
Stores configuration variables used to communicate with VictorOps’ API.
Summary
Functions
Returns the domain fo the VictorOps API. Defaults api.victorops.com”, but can be overridden
in config/config.exs
Returns the API ID for your account. Set it in config/config.exs
Returns the API Key for your account. Set it in config/config.exs
Returns the version of the API that ExVictorOps is going to talk to. Defaults to “v1”, but
can be overriden in config/config.exs
Returns the combines base URL for the VictorOps API, using the configuration settings given
Functions
Returns the domain fo the VictorOps API. Defaults api.victorops.com”, but can be overridden
in config/config.exs
config :ex_victor_ops, api_domain: "other.victorops.com"
Examples
iex> ExVictorOps.Config.api_domain
"api.victorops.com"
Returns the API ID for your account. Set it in config/config.exs
:
config :ex_victor_ops, api_id: "YOUR_API_ID"
Examples
iex> ExVictorOps.Config.api_id
"foobar"
Returns the API Key for your account. Set it in config/config.exs
:
config :ex_victor_ops, api_key: "YOUR_API_KEY"
Examples
iex> ExVictorOps.Config.api_key
"helloworld"