Module: InstStatsd::Event
- Included in:
- Statsd
- Defined in:
- lib/inst_statsd/event.rb
Overview
Mix-in methods for supporting DataDog events See docs.datadoghq.com/service_management/events/
Constant Summary collapse
- DEPLOY_EVENT =
"deploy"
- FEATURE_EVENT =
"feature"
- PROVISION_EVENT =
"provision"
- REFRESH_EVENT =
"refresh"
- SUPPORTED_TYPES =
[ DEPLOY_EVENT, FEATURE_EVENT, PROVISION_EVENT, REFRESH_EVENT ].freeze
Instance Method Summary collapse
- #data_dog? ⇒ Boolean
- #dog_tags ⇒ Object
-
#event(title, description, type: nil, tags: {}, alert_type: nil, priority: nil, date_happened: nil) ⇒ Object
This end point allows you to post events to the DataDog event stream.
- #instance ⇒ Object
Instance Method Details
#data_dog? ⇒ Boolean
20 |
# File 'lib/inst_statsd/event.rb', line 20 def data_dog?; end |
#dog_tags ⇒ Object
21 |
# File 'lib/inst_statsd/event.rb', line 21 def ; end |
#event(title, description, type: nil, tags: {}, alert_type: nil, priority: nil, date_happened: nil) ⇒ Object
This end point allows you to post events to the DataDog event stream.
72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/inst_statsd/event.rb', line 72 def event(title, description, type: nil, tags: {}, alert_type: nil, priority: nil, date_happened: nil) return unless instance && data_dog? instance.event( title, description, **{ alert_type: alert_type, priority: priority, date_happened: date_happened, tags: (, type, ) }.compact ) end |
#instance ⇒ Object
19 |
# File 'lib/inst_statsd/event.rb', line 19 def instance; end |