Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1CanaryEvaluation

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

CanaryEvaluation represents the canary analysis between two versions of the runtime that is serving requests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1CanaryEvaluation

Returns a new instance of GoogleCloudApigeeV1CanaryEvaluation.



1390
1391
1392
# File 'lib/google/apis/apigee_v1/classes.rb', line 1390

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

Instance Attribute Details

#controlString

Required. The stable version that is serving requests. Corresponds to the JSON property control

Returns:

  • (String)


1347
1348
1349
# File 'lib/google/apis/apigee_v1/classes.rb', line 1347

def control
  @control
end

#create_timeString

Output only. Create time of the canary evaluation. Corresponds to the JSON property createTime

Returns:

  • (String)


1352
1353
1354
# File 'lib/google/apis/apigee_v1/classes.rb', line 1352

def create_time
  @create_time
end

#end_timeString

Required. End time for the evaluation's analysis. Corresponds to the JSON property endTime

Returns:

  • (String)


1357
1358
1359
# File 'lib/google/apis/apigee_v1/classes.rb', line 1357

def end_time
  @end_time
end

#metric_labelsGoogle::Apis::ApigeeV1::GoogleCloudApigeeV1CanaryEvaluationMetricLabels

Labels that can be used to filter Apigee metrics. Corresponds to the JSON property metricLabels



1362
1363
1364
# File 'lib/google/apis/apigee_v1/classes.rb', line 1362

def metric_labels
  @metric_labels
end

#nameString

Output only. Name of the canary evalution. Corresponds to the JSON property name

Returns:

  • (String)


1367
1368
1369
# File 'lib/google/apis/apigee_v1/classes.rb', line 1367

def name
  @name
end

#start_timeString

Required. Start time for the canary evaluation's analysis. Corresponds to the JSON property startTime

Returns:

  • (String)


1372
1373
1374
# File 'lib/google/apis/apigee_v1/classes.rb', line 1372

def start_time
  @start_time
end

#stateString

Output only. The current state of the canary evaluation. Corresponds to the JSON property state

Returns:

  • (String)


1377
1378
1379
# File 'lib/google/apis/apigee_v1/classes.rb', line 1377

def state
  @state
end

#treatmentString

Required. The newer version that is serving requests. Corresponds to the JSON property treatment

Returns:

  • (String)


1382
1383
1384
# File 'lib/google/apis/apigee_v1/classes.rb', line 1382

def treatment
  @treatment
end

#verdictString

Output only. The resulting verdict of the canary evaluations: NONE, PASS, or FAIL. Corresponds to the JSON property verdict

Returns:

  • (String)


1388
1389
1390
# File 'lib/google/apis/apigee_v1/classes.rb', line 1388

def verdict
  @verdict
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
# File 'lib/google/apis/apigee_v1/classes.rb', line 1395

def update!(**args)
  @control = args[:control] if args.key?(:control)
  @create_time = args[:create_time] if args.key?(:create_time)
  @end_time = args[:end_time] if args.key?(:end_time)
  @metric_labels = args[:metric_labels] if args.key?(:metric_labels)
  @name = args[:name] if args.key?(:name)
  @start_time = args[:start_time] if args.key?(:start_time)
  @state = args[:state] if args.key?(:state)
  @treatment = args[:treatment] if args.key?(:treatment)
  @verdict = args[:verdict] if args.key?(:verdict)
end