Class: Google::Apis::MonitoringV1::AggregationFunction
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::AggregationFunction
- 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: 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.
Instance Attribute Summary collapse
-
#parameters ⇒ Array<Google::Apis::MonitoringV1::Parameter>
Optional.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AggregationFunction
constructor
A new instance of AggregationFunction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AggregationFunction
Returns a new instance of AggregationFunction.
141 142 143 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 141 def initialize(**args) update!(**args) end |
Instance Attribute Details
#parameters ⇒ Array<Google::Apis::MonitoringV1::Parameter>
Optional. Parameters applied to the aggregation function. Only used for
functions that require them.
Corresponds to the JSON property parameters
130 131 132 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 130 def parameters @parameters end |
#type ⇒ String
Required. The type of aggregation function, must be one of the following: "
none" - no function. "percentile" - APPROX_QUANTILES() - 1 parameter numeric
value "average" - AVG() "count" - COUNT() "count-distinct" - COUNT(DISTINCT) "
count-distinct-approx" - APPROX_COUNT_DISTINCT() "max" - MAX() "min" - MIN() "
sum" - SUM()
Corresponds to the JSON property type
139 140 141 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 139 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
146 147 148 149 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 146 def update!(**args) @parameters = args[:parameters] if args.key?(:parameters) @type = args[:type] if args.key?(:type) end |