Class: Fog::Google::Monitoring::MetricDescriptors

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

Instance Method Summary collapse

Instance Method Details

#all(options = {}) ⇒ Array<Fog::Google::Monitoring::MetricDescriptor>

Lists all Metric Descriptors.

Parameters:

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

    Optional query parameters.

Options Hash (options):

  • count (String)

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

  • page_token (String)

    The pagination token, which is used to page through large result sets.

  • query (String)

    The query used to search against existing metrics. Separate keywords with a space; the service joins all keywords with AND, meaning that all keywords must match for a metric to be returned. If this field is omitted, all metrics are returned. If an empty string is passed with this field, no metrics are returned.

Returns:



21
22
23
24
# File 'lib/fog/google/models/monitoring/metric_descriptors.rb', line 21

def all(options = {})
  data = service.list_metric_descriptors(options).body['metrics'] || []
  load(data)
end