ex_victor_ops v0.1.0 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

api_domain()

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”

api_id()

Returns the API ID for your account. Set it in config/config.exs:

config :ex_victor_ops, api_id: “YOUR_API_ID”

api_key()

Returns the API Key for your account. Set it in config/config.exs:

config :ex_victor_ops, api_key: “YOUR_API_KEY”

api_version()

Returns the version of the API that ExVictorOps is going to talk to. Defaults to “v1”, but can be overriden in config/config.exs

config :ex_victor_ops, api_version: “vX”

base_url()

Returns the combines base URL for the VictorOps API, using the configuration settings given.