Class: Google::Apis::MonitoringV1::OpsAnalyticsQuery

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

Overview

Preview: A query that produces an aggregated response and supporting data. This is a preview feature and may be subject to change before final release.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OpsAnalyticsQuery

Returns a new instance of OpsAnalyticsQuery.



1387
1388
1389
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1387

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

Instance Attribute Details

#sqlString

A SQL query to fetch time series, category series, or numeric series data. Corresponds to the JSON property sql

Returns:

  • (String)


1385
1386
1387
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1385

def sql
  @sql
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1392
1393
1394
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1392

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