class Hawkular::Prometheus::Alerter

Public Class Methods

new(entrypoint, credentials = {}, options = {}) click to toggle source
Calls superclass method Hawkular::BaseClient::new
   # File lib/hawkular/prometheus/prometheus_api.rb
 7 def initialize(entrypoint, credentials = {}, options = {})
 8   @entrypoint = normalize_entrypoint_url entrypoint, 'hawkular/alerter'
 9   super(@entrypoint, credentials, options)
10 end

Public Instance Methods

prometheus_entrypoint() click to toggle source
   # File lib/hawkular/prometheus/prometheus_api.rb
12 def prometheus_entrypoint
13   rest_client('/prometheus/endpoint').get
14 end