Sha256: eb7b54feefef8b6e217424feb71ea5f8651fceb4caa3e7af8191e79a6d7f5ae0

Contents?: true

Size: 1.28 KB

Versions: 9

Compression:

Stored size: 1.28 KB

Contents

module Fog
  module Google
    class Monitoring < Fog::Service
      autoload :Mock, File.expand_path("../monitoring/mock", __FILE__)
      autoload :Real, File.expand_path("../monitoring/real", __FILE__)

      requires :google_project
      recognizes :google_client_email, :google_key_location, :google_key_string, :google_client,
                 :app_name, :app_version, :google_json_key_location, :google_json_key_string

      GOOGLE_MONITORING_API_VERSION    = "v2beta2".freeze
      GOOGLE_MONITORING_BASE_URL       = "https://www.googleapis.com/cloudmonitoring/"
      GOOGLE_MONITORING_API_SCOPE_URLS = %w(https://www.googleapis.com/auth/monitoring)

      ##
      # MODELS
      model_path "fog/google/models/monitoring"

      # Timeseries
      model :timeseries
      collection :timeseries_collection

      # TimeseriesDescriptors
      model :timeseries_descriptor
      collection :timeseries_descriptors

      # MetricDescriptors
      model :metric_descriptor
      collection :metric_descriptors

      ##
      # REQUESTS
      request_path "fog/google/requests/monitoring"

      # Timeseries
      request :list_timeseries

      # TimeseriesDescriptors
      request :list_timeseries_descriptors

      # MetricDescriptors
      request :list_metric_descriptors
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fog-google-0.5.2 lib/fog/google/monitoring.rb
fog-google-0.5.1 lib/fog/google/monitoring.rb
fog-google-0.5.0 lib/fog/google/monitoring.rb
fog-google-0.4.2 lib/fog/google/monitoring.rb
fog-google-0.4.1 lib/fog/google/monitoring.rb
fog-google-0.4.0 lib/fog/google/monitoring.rb
fog-google-0.3.2 lib/fog/google/monitoring.rb
fog-google-0.3.1 lib/fog/google/monitoring.rb
fog-google-0.3.0 lib/fog/google/monitoring.rb