Class: Fog::Google::Monitoring::TimeseriesDescriptors

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/google/models/monitoring/timeseries_descriptors.rb

Instance Method Summary collapse

Instance Method Details

#all(metric, youngest, options = {}) ⇒ Array<Fog::Google::Monitoring::TimeseriesDescriptor>

Lists all Timeseries Descriptors.

Parameters:

  • metric (String)

    The name of the metric (Metric names are protocol-free URLs).

  • youngest (String)

    End of the time interval (inclusive), which is expressed as an RFC 3339 timestamp.

  • options (Hash) (defaults to: {})

    Optional query parameters.

Options Hash (options):

  • count (String)

    Maximum number of time series descriptors per page. Used for pagination.

  • labels (String)

    A collection of labels for the matching time series.

  • oldest (String)

    Start of the time interval (exclusive), which is expressed as an RFC 3339 timestamp.

Returns:



24
25
26
27
# File 'lib/fog/google/models/monitoring/timeseries_descriptors.rb', line 24

def all(metric, youngest, options = {})
  data = service.list_timeseries_descriptors(metric, youngest, options).body['timeseries'] || []
  load(data)
end