Class: Google::Apis::CloudmonitoringV2beta2::ListMetricDescriptorsResponse

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudmonitoring_v2beta2/classes.rb,
generated/google/apis/cloudmonitoring_v2beta2/representations.rb,
generated/google/apis/cloudmonitoring_v2beta2/representations.rb

Overview

The response of cloudmonitoring.metricDescriptors.list.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ListMetricDescriptorsResponse

Returns a new instance of ListMetricDescriptorsResponse.


87
88
89
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 87

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#kindString

Identifies what kind of resource this is. Value: the fixed string " cloudmonitoring#listMetricDescriptorsResponse". Corresponds to the JSON property kind

Returns:

  • (String)

73
74
75
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 73

def kind
  @kind
end

#metricsArray<Google::Apis::CloudmonitoringV2beta2::MetricDescriptor>

The returned metric descriptors. Corresponds to the JSON property metrics


78
79
80
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 78

def metrics
  @metrics
end

#next_page_tokenString

Pagination token. If present, indicates that additional results are available for retrieval. To access the results past the pagination limit, pass this value to the pageToken query parameter. Corresponds to the JSON property nextPageToken

Returns:

  • (String)

85
86
87
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 85

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


92
93
94
95
96
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 92

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @metrics = args[:metrics] if args.key?(:metrics)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end