Method: Wavefront::Alerting#initialize
- Defined in:
- lib/wavefront/alerting.rb
#initialize(token, host = DEFAULT_HOST, debug = false, options = {}) ⇒ Alerting
Returns a new instance of Alerting.
34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/wavefront/alerting.rb', line 34 def initialize(token, host = DEFAULT_HOST, debug=false, = {}) # # Following existing convention, 'host' is the Wavefront API endpoint. # @headers = { :'X-AUTH-TOKEN' => token } @endpoint = host @token = token debug(debug) @noop = [:noop] @verbose = [:verbose] = end |