Sha256: 3a35fb0c08269e2257175e8a645dbea39bc0f5ddd729eb444f3b43088d5d520d

Contents?: true

Size: 355 Bytes

Versions: 4

Compression:

Stored size: 355 Bytes

Contents

require 'observed/http'

observe 'google.health', via: 'http', with: {
    method: 'get',
    url: 'http://www.google.co.jp/'
}

report /google.health/, via: 'stdout', with: {
    format: -> tag, time, data {
      case data[:status]
      when :success
        'Google is healthy! (^o^)'
      else
        'Google is unhealthy! (;_;)'
      end
    }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
observed-0.2.0 examples/00readme/observed.rb
observed-0.2.0.rc2 examples/00readme/observed.rb
observed-0.2.0.rc1 examples/00readme/observed.rb
observed-0.1.1 examples/00readme/observed.rb