Sha256: 403bf141e45813bc78d1c5cc35ed0b464200279fc745648d5ce7a06cbcf3d8c0

Contents?: true

Size: 640 Bytes

Versions: 10

Compression:

Stored size: 640 Bytes

Contents

require 'rest-client'
require_relative './credentials'

module DashingContrib
  module Pingdom
    class Client
      # Initialize Pingdom client
      attr_accessor :credentials

      def initialize(options)
        @credentials = ::DashingContrib::Pingdom::Credentials.new(options)
      end

      def checks(id)
        ::DashingContrib::Pingdom::Checks.fetch(credentials, id)
      end

      def uptime(id, from_time, to_time)
        ::DashingContrib::Pingdom::Uptime.calc(credentials, id, from_time, to_time)
      end

      def summary()
        ::DashingContrib::Pingdom::Checks.summary(credentials)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dashing-contrib-0.2.9 lib/dashing-contrib/bottles/pingdom/client.rb
dashing-contrib-0.2.8 lib/dashing-contrib/bottles/pingdom/client.rb
dashing-contrib-0.2.7 lib/dashing-contrib/bottles/pingdom/client.rb
dashing-contrib-0.2.6 lib/dashing-contrib/bottles/pingdom/client.rb
dashing-contrib-0.2.5 lib/dashing-contrib/bottles/pingdom/client.rb
dashing-contrib-0.2.4 lib/dashing-contrib/bottles/pingdom/client.rb
dashing-contrib-0.2.3 lib/dashing-contrib/bottles/pingdom/client.rb
dashing-contrib-0.2.2 lib/dashing-contrib/bottles/pingdom/client.rb
dashing-contrib-0.2.1 lib/dashing-contrib/bottles/pingdom/client.rb
dashing-contrib-0.2.0 lib/dashing-contrib/bottles/pingdom/client.rb