Class: Wavefront::Alerting
- Inherits:
-
Object
- Object
- Wavefront::Alerting
show all
- Includes:
- Constants
- Defined in:
- lib/wavefront/alerting.rb
Constant Summary
collapse
- DEFAULT_PATH =
'/api/alert/'
Constants included
from Constants
Constants::ALERT_FORMATS, Constants::DEFAULT_ALERT_FORMAT, Constants::DEFAULT_FORMAT, Constants::DEFAULT_HOST, Constants::DEFAULT_INFILE_FORMAT, Constants::DEFAULT_OBSOLETE_METRICS, Constants::DEFAULT_PERIOD_SECONDS, Constants::DEFAULT_PREFIX_LENGTH, Constants::DEFAULT_PROXY, Constants::DEFAULT_PROXY_PORT, Constants::DEFAULT_STRICT, Constants::EVENT_LEVELS, Constants::EVENT_STATE_DIR, Constants::FORMATS, Constants::GRANULARITIES
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(token, debug = false) ⇒ Alerting
31
32
33
34
|
# File 'lib/wavefront/alerting.rb', line 31
def initialize(token, debug=false)
@token = token
debug(debug)
end
|
Instance Attribute Details
#token ⇒ Object
Returns the value of attribute token.
29
30
31
|
# File 'lib/wavefront/alerting.rb', line 29
def token
@token
end
|
Instance Method Details
#active(options = {}) ⇒ Object
36
37
38
|
# File 'lib/wavefront/alerting.rb', line 36
def active(options={})
get_alerts('active', options)
end
|
#affected_by_maintenance(options = {}) ⇒ Object
52
53
54
|
# File 'lib/wavefront/alerting.rb', line 52
def affected_by_maintenance(options={})
get_alerts('affected_by_maintenance', options)
end
|
#all(options = {}) ⇒ Object
40
41
42
|
# File 'lib/wavefront/alerting.rb', line 40
def all(options={})
get_alerts('all', options)
end
|
#invalid(options = {}) ⇒ Object
44
45
46
|
# File 'lib/wavefront/alerting.rb', line 44
def invalid(options={})
get_alerts('invalid', options)
end
|
#snoozed(options = {}) ⇒ Object
48
49
50
|
# File 'lib/wavefront/alerting.rb', line 48
def snoozed(options={})
get_alerts('snoozed', options)
end
|