Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1CanaryEvaluationMetricLabels

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

Labels that can be used to filter Apigee metrics.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1CanaryEvaluationMetricLabels

Returns a new instance of GoogleCloudApigeeV1CanaryEvaluationMetricLabels.



1475
1476
1477
# File 'lib/google/apis/apigee_v1/classes.rb', line 1475

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

Instance Attribute Details

#envString

The environment ID associated with the metrics. Corresponds to the JSON property env

Returns:

  • (String)


1462
1463
1464
# File 'lib/google/apis/apigee_v1/classes.rb', line 1462

def env
  @env
end

#instance_idString

Required. The instance ID associated with the metrics. In Apigee Hybrid, the value is configured during installation. Corresponds to the JSON property instance_id

Returns:

  • (String)


1468
1469
1470
# File 'lib/google/apis/apigee_v1/classes.rb', line 1468

def instance_id
  @instance_id
end

#locationString

Required. The location associated with the metrics. Corresponds to the JSON property location

Returns:

  • (String)


1473
1474
1475
# File 'lib/google/apis/apigee_v1/classes.rb', line 1473

def location
  @location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1480
1481
1482
1483
1484
# File 'lib/google/apis/apigee_v1/classes.rb', line 1480

def update!(**args)
  @env = args[:env] if args.key?(:env)
  @instance_id = args[:instance_id] if args.key?(:instance_id)
  @location = args[:location] if args.key?(:location)
end