class Sensu::Push::Event

Attributes

check[R]
entity[R]

Public Class Methods

new(entity, check) click to toggle source
# File lib/sensu/push/event.rb, line 6
def initialize(entity, check)
  @entity = entity
  @check = check
end

Public Instance Methods

to_hash() click to toggle source
# File lib/sensu/push/event.rb, line 11
def to_hash
  {
    :entity => @entity.to_hash,
    :check => @check.to_hash
  }
end