Class: Google::Apis::MonitoringV3::QueryTimeSeriesRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/monitoring_v3/classes.rb,
lib/google/apis/monitoring_v3/representations.rb,
lib/google/apis/monitoring_v3/representations.rb

Overview

The QueryTimeSeries request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueryTimeSeriesRequest

Returns a new instance of QueryTimeSeriesRequest.



3262
3263
3264
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3262

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

Instance Attribute Details

#page_sizeFixnum

A positive number that is the maximum number of time_series_data to return. Corresponds to the JSON property pageSize

Returns:

  • (Fixnum)


3247
3248
3249
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3247

def page_size
  @page_size
end

#page_tokenString

If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call. Corresponds to the JSON property pageToken

Returns:

  • (String)


3254
3255
3256
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3254

def page_token
  @page_token
end

#queryString

Required. The query in the Monitoring Query Language (https://cloud.google.com/ monitoring/mql/reference) format. The default time zone is in UTC. Corresponds to the JSON property query

Returns:

  • (String)


3260
3261
3262
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3260

def query
  @query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3267
3268
3269
3270
3271
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3267

def update!(**args)
  @page_size = args[:page_size] if args.key?(:page_size)
  @page_token = args[:page_token] if args.key?(:page_token)
  @query = args[:query] if args.key?(:query)
end