Class: Hawkular::Prometheus::Alerter
- Inherits:
-
BaseClient
- Object
- BaseClient
- Hawkular::Prometheus::Alerter
- 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
Instance Method Summary collapse
-
#initialize(entrypoint, credentials = {}, options = {}) ⇒ Alerter
constructor
A new instance of Alerter.
- #prometheus_entrypoint ⇒ Object
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
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 = {}, = {}) @entrypoint = normalize_entrypoint_url entrypoint, 'hawkular/alerter' super(@entrypoint, credentials, ) end |
Instance Method Details
#prometheus_entrypoint ⇒ Object
12 13 14 |
# File 'lib/hawkular/prometheus/prometheus_api.rb', line 12 def prometheus_entrypoint rest_client('/prometheus/endpoint').get end |