Skip to main content

canaryevaluations

Creates, updates, deletes, gets or lists a canaryevaluations resource.

Overview

Namecanaryevaluations
TypeResource
Idgoogle.apigee.canaryevaluations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringOutput only. Name of the canary evalution.
controlstringRequired. The stable version that is serving requests.
createTimestring (google-datetime)Output only. Create time of the canary evaluation.
endTimestring (google-datetime)Required. End time for the evaluation's analysis.
metricLabelsobjectRequired. Labels used to filter the metrics used for a canary evaluation. (id: GoogleCloudApigeeV1CanaryEvaluationMetricLabels)
startTimestring (google-datetime)Required. Start time for the canary evaluation's analysis.
statestringOutput only. The current state of the canary evaluation. (STATE_UNSPECIFIED, RUNNING, SUCCEEDED)
treatmentstringRequired. The newer version that is serving requests.
verdictstringOutput only. The resulting verdict of the canary evaluations: NONE, PASS, or FAIL. (VERDICT_UNSPECIFIED, NONE, FAIL, PASS)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_instances_canaryevaluations_getselectorganizationsId, instancesId, canaryevaluationsIdGets a CanaryEvaluation for an organization.
organizations_instances_canaryevaluations_createinsertorganizationsId, instancesIdCreates a new canary evaluation for an organization.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
canaryevaluationsIdstring
instancesIdstring
organizationsIdstring

SELECT examples

Gets a CanaryEvaluation for an organization.

SELECT
name,
control,
createTime,
endTime,
metricLabels,
startTime,
state,
treatment,
verdict
FROM google.apigee.canaryevaluations
WHERE organizationsId = '{{ organizationsId }}' -- required
AND instancesId = '{{ instancesId }}' -- required
AND canaryevaluationsId = '{{ canaryevaluationsId }}' -- required
;

INSERT examples

Creates a new canary evaluation for an organization.

INSERT INTO google.apigee.canaryevaluations (
data__control,
data__metricLabels,
data__endTime,
data__treatment,
data__startTime,
organizationsId,
instancesId
)
SELECT
'{{ control }}',
'{{ metricLabels }}',
'{{ endTime }}',
'{{ treatment }}',
'{{ startTime }}',
'{{ organizationsId }}',
'{{ instancesId }}'
RETURNING
name,
done,
error,
metadata,
response
;