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
- SUPPORTED_TYPES =
%i[ deploy feature_disabled feature_enabled provision refresh ].freeze
Instance Method Summary collapse
- #data_dog? ⇒ Boolean
- #dog_tags ⇒ Object
-
#event(title, text, type: nil, tags: {}, alert_type: nil, priority: nil, date_happened: nil) ⇒ Object
This end point allows you to post events to the DatDog event stream.
- #instance ⇒ Object
Instance Method Details
#data_dog? ⇒ Boolean
16 |
# File 'lib/inst_statsd/event.rb', line 16 def data_dog?; end |
#dog_tags ⇒ Object
17 |
# File 'lib/inst_statsd/event.rb', line 17 def ; end |
#event(title, text, type: nil, tags: {}, alert_type: nil, priority: nil, date_happened: nil) ⇒ Object
This end point allows you to post events to the DatDog event stream.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/inst_statsd/event.rb', line 41 def event(title, text, type: nil, tags: {}, alert_type: nil, priority: nil, date_happened: nil) return unless instance && data_dog? instance.event( title, text, **{ alert_type: alert_type, priority: priority, date_happened: date_happened, tags: (, type, ) }.compact ) end |
#instance ⇒ Object
15 |
# File 'lib/inst_statsd/event.rb', line 15 def instance; end |