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

A chart measure. Measures represent a measured property in your chart data such as rainfall in inches, number of units sold, revenue gained, etc.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Measure

Returns a new instance of Measure.



1132
1133
1134
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1132

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



1125
1126
1127
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1125

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)


1130
1131
1132
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1130

def column
  @column
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1137
1138
1139
1140
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1137

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