Skip to main content

canaryevaluations

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

Overview

Namecanaryevaluations
TypeResource
Idgoogle.apigee.canaryevaluations

Fields

NameDatatypeDescription
namestringOutput only. Name of the canary evalution.
controlstringRequired. The stable version that is serving requests.
createTimestringOutput only. Create time of the canary evaluation.
endTimestringRequired. End time for the evaluation's analysis.
metricLabelsobjectLabels that can be used to filter Apigee metrics.
startTimestringRequired. Start time for the canary evaluation's analysis.
statestringOutput only. The current state of the canary evaluation.
treatmentstringRequired. The newer version that is serving requests.
verdictstringOutput only. The resulting verdict of the canary evaluations: NONE, PASS, or FAIL.

Methods

NameAccessible byRequired ParamsDescription
organizations_instances_canaryevaluations_getSELECTcanaryevaluationsId, instancesId, organizationsIdGets a CanaryEvaluation for an organization.
organizations_instances_canaryevaluations_createINSERTinstancesId, organizationsIdCreates a new canary evaluation for an organization.

SELECT examples

Gets a CanaryEvaluation for an organization.

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

INSERT example

Use the following StackQL query and manifest file to create a new canaryevaluations resource.

/*+ create */
INSERT INTO google.apigee.canaryevaluations (
instancesId,
organizationsId,
control,
endTime,
metricLabels,
startTime,
treatment
)
SELECT
'{{ instancesId }}',
'{{ organizationsId }}',
'{{ control }}',
'{{ endTime }}',
'{{ metricLabels }}',
'{{ startTime }}',
'{{ treatment }}'
;