Class: Hawkular::Prometheus::Alerter

Inherits:
BaseClient show all
Defined in:
lib/hawkular/prometheus/prometheus_api.rb

Constant Summary

Constants inherited from BaseClient

BaseClient::HawkularConnectionException, BaseClient::HawkularException

Instance Attribute Summary

Attributes inherited from BaseClient

#tenants

Instance Method Summary collapse

Methods inherited from BaseClient

#admin_header, #base_64_credentials, #generate_query_params, #http_delete, #http_get, #http_post, #http_put, #normalize_entrypoint_url, #now, #url, #url_with_websocket_scheme

Methods included from ClientUtils

#hawk_escape, #hawk_escape_id

Constructor Details

#initialize(entrypoint, credentials = {}, options = {}) ⇒ Alerter

Returns a new instance of Alerter.



7
8
9
10
# File 'lib/hawkular/prometheus/prometheus_api.rb', line 7

def initialize(entrypoint, credentials = {}, options = {})
  @entrypoint = normalize_entrypoint_url entrypoint, 'hawkular/alerter'
  super(@entrypoint, credentials, options)
end

Instance Method Details

#prometheus_entrypointObject



12
13
14
# File 'lib/hawkular/prometheus/prometheus_api.rb', line 12

def prometheus_entrypoint
  rest_client('/prometheus/endpoint').get
end