Sha256: 3feecde14041360cb5eff94d6400d97f8d18f3bcb556080cd625c60282ab265a

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

#!/usr/bin/env ruby

unless $:.include?(File.dirname(__FILE__) + "/../lib/")
  $: << File.dirname(__FILE__) + "/../lib"
end

require "sensu/push"

options = Sensu::Push.read_cli_opts

entity = Sensu::Push::Entity.new(options)
check = Sensu::Push::Check.new(options)
check.exec!
event = Sensu::Push::Event.new(entity, check)

api = Sensu::Push::APIClient.new(options)
api.create_entity_if_missing(entity)
api.create_event(event)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sensu-push-0.3.0 exe/sensu-push