class Dogapi::Event
- Dogapi::Event
- Reference
- Object
Overview
Metadata class for storing the details of an event
Defined in:
dogapi/v1/event.crConstructors
-
.new(msg_text : String, options = {} of String => String)
Optional arguments: :date_happened => time in seconds since the epoch (defaults to now) :msg_title => String :priority => String :parent => event ID (integer) :tags => array of Strings :event_object => String :alert_type => 'success', 'error' :event_type => String :source_type_name => String :aggregation_key => String
Instance Method Summary
- #aggregation_key : Array(String) | Int64 | String | Nil
- #aggregation_key=(aggregation_key : Array(String) | Int64 | String | Nil)
- #date_happened : Array(String) | Int64 | String | Nil
- #date_happened=(date_happened : Array(String) | Int64 | String | Nil)
- #msg_text : String
- #msg_text=(msg_text : String)
- #msg_title : Array(String) | Int64 | String | Nil
- #msg_title=(msg_title : Array(String) | Int64 | String | Nil)
- #parent : Array(String) | Int64 | String | Nil
- #parent=(parent : Array(String) | Int64 | String | Nil)
- #priority : Array(String) | Int64 | String | Nil
- #priority=(priority : Array(String) | Int64 | String | Nil)
- #tags : Array(String) | Int64 | String | Nil
- #tags=(tags : Array(String) | Int64 | String | Nil)
- #to_hash : Hash(Symbol, Array(String) | Int64 | String | Nil)
Constructor Detail
Optional arguments: :date_happened => time in seconds since the epoch (defaults to now) :msg_title => String :priority => String :parent => event ID (integer) :tags => array of Strings :event_object => String :alert_type => 'success', 'error' :event_type => String :source_type_name => String :aggregation_key => String