class Dogapi::Event

Overview

Metadata class for storing the details of an event

Defined in:

dogapi/v1/event.cr

Constructors

Instance Method Summary

Constructor Detail

def self.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


[View source]

Instance Method Detail

def aggregation_key : Array(String) | Int64 | String | Nil #

[View source]
def aggregation_key=(aggregation_key : Array(String) | Int64 | String | Nil) #

[View source]
def date_happened : Array(String) | Int64 | String | Nil #

[View source]
def date_happened=(date_happened : Array(String) | Int64 | String | Nil) #

[View source]
def msg_text : String #

[View source]
def msg_text=(msg_text : String) #

[View source]
def msg_title : Array(String) | Int64 | String | Nil #

[View source]
def msg_title=(msg_title : Array(String) | Int64 | String | Nil) #

[View source]
def parent : Array(String) | Int64 | String | Nil #

[View source]
def parent=(parent : Array(String) | Int64 | String | Nil) #

[View source]
def priority : Array(String) | Int64 | String | Nil #

[View source]
def priority=(priority : Array(String) | Int64 | String | Nil) #

[View source]
def tags : Array(String) | Int64 | String | Nil #

[View source]
def tags=(tags : Array(String) | Int64 | String | Nil) #

[View source]
def to_hash : Hash(Symbol, Array(String) | Int64 | String | Nil) #

[View source]