Class: Fog::Google::Monitoring::TimeseriesCollection

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

Instance Method Summary collapse

Instance Method Details

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

Lists all Timeseries.

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_collection.rb', line 24

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