canaryevaluations
Creates, updates, deletes, gets or lists a canaryevaluations
resource.
Overview
Name | canaryevaluations |
Type | Resource |
Id | google.apigee.canaryevaluations |
Fields
The following fields are returned by SELECT
queries:
- organizations_instances_canaryevaluations_get
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Output only. Name of the canary evalution. |
control | string | Required. The stable version that is serving requests. |
createTime | string (google-datetime) | Output only. Create time of the canary evaluation. |
endTime | string (google-datetime) | Required. End time for the evaluation's analysis. |
metricLabels | object | Required. Labels used to filter the metrics used for a canary evaluation. (id: GoogleCloudApigeeV1CanaryEvaluationMetricLabels) |
startTime | string (google-datetime) | Required. Start time for the canary evaluation's analysis. |
state | string | Output only. The current state of the canary evaluation. |
treatment | string | Required. The newer version that is serving requests. |
verdict | string | Output only. The resulting verdict of the canary evaluations: NONE, PASS, or FAIL. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
organizations_instances_canaryevaluations_get | select | organizationsId , instancesId , canaryevaluationsId | Gets a CanaryEvaluation for an organization. | |
organizations_instances_canaryevaluations_create | insert | organizationsId , instancesId | Creates 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.
Name | Datatype | Description |
---|---|---|
canaryevaluationsId | string | |
instancesId | string | |
organizationsId | string |
SELECT
examples
- organizations_instances_canaryevaluations_get
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
- organizations_instances_canaryevaluations_create
- Manifest
Creates a new canary evaluation for an organization.
INSERT INTO google.apigee.canaryevaluations (
data__startTime,
data__endTime,
data__metricLabels,
data__control,
data__treatment,
organizationsId,
instancesId
)
SELECT
'{{ startTime }}',
'{{ endTime }}',
'{{ metricLabels }}',
'{{ control }}',
'{{ treatment }}',
'{{ organizationsId }}',
'{{ instancesId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: canaryevaluations
props:
- name: organizationsId
value: string
description: Required parameter for the canaryevaluations resource.
- name: instancesId
value: string
description: Required parameter for the canaryevaluations resource.
- name: startTime
value: string
description: >
Required. Start time for the canary evaluation's analysis.
- name: endTime
value: string
description: >
Required. End time for the evaluation's analysis.
- name: metricLabels
value: object
description: >
Required. Labels used to filter the metrics used for a canary evaluation.
- name: control
value: string
description: >
Required. The stable version that is serving requests.
- name: treatment
value: string
description: >
Required. The newer version that is serving requests.