Class: Google::Apis::MonitoringV1::Breakdown

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 breakdown is an aggregation applied to the measures over a specified column. A breakdown can result in multiple series across a category for the provided measure. 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) ⇒ Breakdown

Returns a new instance of Breakdown.



230
231
232
# File 'lib/google/apis/monitoring_v1/classes.rb', line 230

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



210
211
212
# File 'lib/google/apis/monitoring_v1/classes.rb', line 210

def aggregation_function
  @aggregation_function
end

#columnString

Required. The name of the column in the dataset containing the breakdown values. Corresponds to the JSON property column

Returns:

  • (String)


216
217
218
# File 'lib/google/apis/monitoring_v1/classes.rb', line 216

def column
  @column
end

#limitFixnum

Required. A limit to the number of breakdowns. If set to zero then all possible breakdowns are applied. The list of breakdowns is dependent on the value of the sort_order field. Corresponds to the JSON property limit

Returns:

  • (Fixnum)


223
224
225
# File 'lib/google/apis/monitoring_v1/classes.rb', line 223

def limit
  @limit
end

#sort_orderString

Required. The sort order is applied to the values of the breakdown column. Corresponds to the JSON property sortOrder

Returns:

  • (String)


228
229
230
# File 'lib/google/apis/monitoring_v1/classes.rb', line 228

def sort_order
  @sort_order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



235
236
237
238
239
240
# File 'lib/google/apis/monitoring_v1/classes.rb', line 235

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