Class: Google::Apis::MonitoringV1::Measure

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 chart measure for an SQL query. This is applied over the y-axis. 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) ⇒ Measure

Returns a new instance of Measure.



975
976
977
# File 'lib/google/apis/monitoring_v1/classes.rb', line 975

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

Instance Attribute Details

#aggregation_functionGoogle::Apis::MonitoringV1::AggregationFunction

Preview: An identifier for an aggregation function. Aggregation functions are SQL functions that group or transform data from multiple points to a single point. This is a preview feature and may be subject to change before final release. Corresponds to the JSON property aggregationFunction



968
969
970
# File 'lib/google/apis/monitoring_v1/classes.rb', line 968

def aggregation_function
  @aggregation_function
end

#columnString

Required. The column name within in the dataset used for the measure. Corresponds to the JSON property column

Returns:

  • (String)


973
974
975
# File 'lib/google/apis/monitoring_v1/classes.rb', line 973

def column
  @column
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



980
981
982
983
# File 'lib/google/apis/monitoring_v1/classes.rb', line 980

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