Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1DimensionMetric
- Inherits:
-
Object
- Object
- Google::Apis::ApigeeV1::GoogleCloudApigeeV1DimensionMetric
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apigee_v1/classes.rb,
lib/google/apis/apigee_v1/representations.rb,
lib/google/apis/apigee_v1/representations.rb
Overview
Encapsulates a metric grouped by dimension.
Instance Attribute Summary collapse
-
#individual_names ⇒ Array<String>
Individual dimension names.
-
#metrics ⇒ Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Metric>
List of metrics.
-
#name ⇒ String
Comma joined dimension names.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudApigeeV1DimensionMetric
constructor
A new instance of GoogleCloudApigeeV1DimensionMetric.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudApigeeV1DimensionMetric
Returns a new instance of GoogleCloudApigeeV1DimensionMetric.
4034 4035 4036 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 4034 def initialize(**args) update!(**args) end |
Instance Attribute Details
#individual_names ⇒ Array<String>
Individual dimension names. E.g. ["dim1_name", "dim2_name"].
Corresponds to the JSON property individualNames
4020 4021 4022 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 4020 def individual_names @individual_names end |
#metrics ⇒ Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Metric>
List of metrics.
Corresponds to the JSON property metrics
4025 4026 4027 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 4025 def metrics @metrics end |
#name ⇒ String
Comma joined dimension names. E.g. "dim1_name,dim2_name". Deprecated. If name
already has comma before join, we may get wrong splits. Please use
individual_names.
Corresponds to the JSON property name
4032 4033 4034 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 4032 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4039 4040 4041 4042 4043 |
# File 'lib/google/apis/apigee_v1/classes.rb', line 4039 def update!(**args) @individual_names = args[:individual_names] if args.key?(:individual_names) @metrics = args[:metrics] if args.key?(:metrics) @name = args[:name] if args.key?(:name) end |