Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1DimensionMetric

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1DimensionMetric

Returns a new instance of GoogleCloudApigeeV1DimensionMetric.



4571
4572
4573
# File 'lib/google/apis/apigee_v1/classes.rb', line 4571

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

Instance Attribute Details

#individual_namesArray<String>

Individual dimension names. E.g. ["dim1_name", "dim2_name"]. Corresponds to the JSON property individualNames

Returns:

  • (Array<String>)


4557
4558
4559
# File 'lib/google/apis/apigee_v1/classes.rb', line 4557

def individual_names
  @individual_names
end

#metricsArray<Google::Apis::ApigeeV1::GoogleCloudApigeeV1Metric>

List of metrics. Corresponds to the JSON property metrics



4562
4563
4564
# File 'lib/google/apis/apigee_v1/classes.rb', line 4562

def metrics
  @metrics
end

#nameString

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

Returns:

  • (String)


4569
4570
4571
# File 'lib/google/apis/apigee_v1/classes.rb', line 4569

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4576
4577
4578
4579
4580
# File 'lib/google/apis/apigee_v1/classes.rb', line 4576

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