Class: Google::Apis::CloudmonitoringV2beta2::ListTimeseriesResponse

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.timeseries.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) ⇒ ListTimeseriesResponse

Returns a new instance of ListTimeseriesResponse.



218
219
220
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 218

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


193
194
195
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 193

def kind
  @kind
end

#next_page_tokenString

Pagination token. If present, indicates that additional results are available for retrieval. To access the results past the pagination limit, set the pageToken query parameter to this value. All of the points of a time series will be returned before returning any point of the subsequent time series. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


201
202
203
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 201

def next_page_token
  @next_page_token
end

#oldestDateTime

The oldest timestamp of the interval of this query as an RFC 3339 string. Corresponds to the JSON property oldest

Returns:

  • (DateTime)


206
207
208
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 206

def oldest
  @oldest
end

#timeseriesArray<Google::Apis::CloudmonitoringV2beta2::Timeseries>

The returned time series. Corresponds to the JSON property timeseries



211
212
213
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 211

def timeseries
  @timeseries
end

#youngestDateTime

The youngest timestamp of the interval of this query as an RFC 3339 string. Corresponds to the JSON property youngest

Returns:

  • (DateTime)


216
217
218
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 216

def youngest
  @youngest
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



223
224
225
226
227
228
229
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 223

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