Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.apigee/v1.CanaryEvaluation
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new canary evaluation for an organization. Auto-naming is currently not supported for this resource. Note - this resource’s API doesn’t support deletion. When deleted, the resource will persist on Google Cloud even though it will be deleted from Pulumi state.
Create CanaryEvaluation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CanaryEvaluation(name: string, args: CanaryEvaluationArgs, opts?: CustomResourceOptions);
@overload
def CanaryEvaluation(resource_name: str,
args: CanaryEvaluationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CanaryEvaluation(resource_name: str,
opts: Optional[ResourceOptions] = None,
control: Optional[str] = None,
end_time: Optional[str] = None,
instance_id: Optional[str] = None,
metric_labels: Optional[GoogleCloudApigeeV1CanaryEvaluationMetricLabelsArgs] = None,
organization_id: Optional[str] = None,
start_time: Optional[str] = None,
treatment: Optional[str] = None)
func NewCanaryEvaluation(ctx *Context, name string, args CanaryEvaluationArgs, opts ...ResourceOption) (*CanaryEvaluation, error)
public CanaryEvaluation(string name, CanaryEvaluationArgs args, CustomResourceOptions? opts = null)
public CanaryEvaluation(String name, CanaryEvaluationArgs args)
public CanaryEvaluation(String name, CanaryEvaluationArgs args, CustomResourceOptions options)
type: google-native:apigee/v1:CanaryEvaluation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CanaryEvaluationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CanaryEvaluationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CanaryEvaluationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CanaryEvaluationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CanaryEvaluationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var canaryEvaluationResource = new GoogleNative.Apigee.V1.CanaryEvaluation("canaryEvaluationResource", new()
{
Control = "string",
EndTime = "string",
InstanceId = "string",
MetricLabels = new GoogleNative.Apigee.V1.Inputs.GoogleCloudApigeeV1CanaryEvaluationMetricLabelsArgs
{
InstanceId = "string",
Location = "string",
Env = "string",
},
OrganizationId = "string",
StartTime = "string",
Treatment = "string",
});
example, err := apigee.NewCanaryEvaluation(ctx, "canaryEvaluationResource", &apigee.CanaryEvaluationArgs{
Control: pulumi.String("string"),
EndTime: pulumi.String("string"),
InstanceId: pulumi.String("string"),
MetricLabels: &apigee.GoogleCloudApigeeV1CanaryEvaluationMetricLabelsArgs{
InstanceId: pulumi.String("string"),
Location: pulumi.String("string"),
Env: pulumi.String("string"),
},
OrganizationId: pulumi.String("string"),
StartTime: pulumi.String("string"),
Treatment: pulumi.String("string"),
})
var canaryEvaluationResource = new CanaryEvaluation("canaryEvaluationResource", CanaryEvaluationArgs.builder()
.control("string")
.endTime("string")
.instanceId("string")
.metricLabels(GoogleCloudApigeeV1CanaryEvaluationMetricLabelsArgs.builder()
.instanceId("string")
.location("string")
.env("string")
.build())
.organizationId("string")
.startTime("string")
.treatment("string")
.build());
canary_evaluation_resource = google_native.apigee.v1.CanaryEvaluation("canaryEvaluationResource",
control="string",
end_time="string",
instance_id="string",
metric_labels={
"instance_id": "string",
"location": "string",
"env": "string",
},
organization_id="string",
start_time="string",
treatment="string")
const canaryEvaluationResource = new google_native.apigee.v1.CanaryEvaluation("canaryEvaluationResource", {
control: "string",
endTime: "string",
instanceId: "string",
metricLabels: {
instanceId: "string",
location: "string",
env: "string",
},
organizationId: "string",
startTime: "string",
treatment: "string",
});
type: google-native:apigee/v1:CanaryEvaluation
properties:
control: string
endTime: string
instanceId: string
metricLabels:
env: string
instanceId: string
location: string
organizationId: string
startTime: string
treatment: string
CanaryEvaluation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CanaryEvaluation resource accepts the following input properties:
- Control string
- The stable version that is serving requests.
- End
Time string - End time for the evaluation's analysis.
- Instance
Id string - Metric
Labels Pulumi.Google Native. Apigee. V1. Inputs. Google Cloud Apigee V1Canary Evaluation Metric Labels - Labels used to filter the metrics used for a canary evaluation.
- Organization
Id string - Start
Time string - Start time for the canary evaluation's analysis.
- Treatment string
- The newer version that is serving requests.
- Control string
- The stable version that is serving requests.
- End
Time string - End time for the evaluation's analysis.
- Instance
Id string - Metric
Labels GoogleCloud Apigee V1Canary Evaluation Metric Labels Args - Labels used to filter the metrics used for a canary evaluation.
- Organization
Id string - Start
Time string - Start time for the canary evaluation's analysis.
- Treatment string
- The newer version that is serving requests.
- control String
- The stable version that is serving requests.
- end
Time String - End time for the evaluation's analysis.
- instance
Id String - metric
Labels GoogleCloud Apigee V1Canary Evaluation Metric Labels - Labels used to filter the metrics used for a canary evaluation.
- organization
Id String - start
Time String - Start time for the canary evaluation's analysis.
- treatment String
- The newer version that is serving requests.
- control string
- The stable version that is serving requests.
- end
Time string - End time for the evaluation's analysis.
- instance
Id string - metric
Labels GoogleCloud Apigee V1Canary Evaluation Metric Labels - Labels used to filter the metrics used for a canary evaluation.
- organization
Id string - start
Time string - Start time for the canary evaluation's analysis.
- treatment string
- The newer version that is serving requests.
- control str
- The stable version that is serving requests.
- end_
time str - End time for the evaluation's analysis.
- instance_
id str - metric_
labels GoogleCloud Apigee V1Canary Evaluation Metric Labels Args - Labels used to filter the metrics used for a canary evaluation.
- organization_
id str - start_
time str - Start time for the canary evaluation's analysis.
- treatment str
- The newer version that is serving requests.
- control String
- The stable version that is serving requests.
- end
Time String - End time for the evaluation's analysis.
- instance
Id String - metric
Labels Property Map - Labels used to filter the metrics used for a canary evaluation.
- organization
Id String - start
Time String - Start time for the canary evaluation's analysis.
- treatment String
- The newer version that is serving requests.
Outputs
All input properties are implicitly available as output properties. Additionally, the CanaryEvaluation resource produces the following output properties:
- Create
Time string - Create time of the canary evaluation.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the canary evalution.
- State string
- The current state of the canary evaluation.
- Verdict string
- The resulting verdict of the canary evaluations: NONE, PASS, or FAIL.
- Create
Time string - Create time of the canary evaluation.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the canary evalution.
- State string
- The current state of the canary evaluation.
- Verdict string
- The resulting verdict of the canary evaluations: NONE, PASS, or FAIL.
- create
Time String - Create time of the canary evaluation.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the canary evalution.
- state String
- The current state of the canary evaluation.
- verdict String
- The resulting verdict of the canary evaluations: NONE, PASS, or FAIL.
- create
Time string - Create time of the canary evaluation.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the canary evalution.
- state string
- The current state of the canary evaluation.
- verdict string
- The resulting verdict of the canary evaluations: NONE, PASS, or FAIL.
- create_
time str - Create time of the canary evaluation.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the canary evalution.
- state str
- The current state of the canary evaluation.
- verdict str
- The resulting verdict of the canary evaluations: NONE, PASS, or FAIL.
- create
Time String - Create time of the canary evaluation.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the canary evalution.
- state String
- The current state of the canary evaluation.
- verdict String
- The resulting verdict of the canary evaluations: NONE, PASS, or FAIL.
Supporting Types
GoogleCloudApigeeV1CanaryEvaluationMetricLabels, GoogleCloudApigeeV1CanaryEvaluationMetricLabelsArgs
- Instance
Id string - The instance ID associated with the metrics. In Apigee Hybrid, the value is configured during installation.
- Location string
- The location associated with the metrics.
- Env string
- The environment ID associated with the metrics.
- Instance
Id string - The instance ID associated with the metrics. In Apigee Hybrid, the value is configured during installation.
- Location string
- The location associated with the metrics.
- Env string
- The environment ID associated with the metrics.
- instance
Id String - The instance ID associated with the metrics. In Apigee Hybrid, the value is configured during installation.
- location String
- The location associated with the metrics.
- env String
- The environment ID associated with the metrics.
- instance
Id string - The instance ID associated with the metrics. In Apigee Hybrid, the value is configured during installation.
- location string
- The location associated with the metrics.
- env string
- The environment ID associated with the metrics.
- instance_
id str - The instance ID associated with the metrics. In Apigee Hybrid, the value is configured during installation.
- location str
- The location associated with the metrics.
- env str
- The environment ID associated with the metrics.
- instance
Id String - The instance ID associated with the metrics. In Apigee Hybrid, the value is configured during installation.
- location String
- The location associated with the metrics.
- env String
- The environment ID associated with the metrics.
GoogleCloudApigeeV1CanaryEvaluationMetricLabelsResponse, GoogleCloudApigeeV1CanaryEvaluationMetricLabelsResponseArgs
- Env string
- The environment ID associated with the metrics.
- Instance
Id string - The instance ID associated with the metrics. In Apigee Hybrid, the value is configured during installation.
- Location string
- The location associated with the metrics.
- Env string
- The environment ID associated with the metrics.
- Instance
Id string - The instance ID associated with the metrics. In Apigee Hybrid, the value is configured during installation.
- Location string
- The location associated with the metrics.
- env String
- The environment ID associated with the metrics.
- instance
Id String - The instance ID associated with the metrics. In Apigee Hybrid, the value is configured during installation.
- location String
- The location associated with the metrics.
- env string
- The environment ID associated with the metrics.
- instance
Id string - The instance ID associated with the metrics. In Apigee Hybrid, the value is configured during installation.
- location string
- The location associated with the metrics.
- env str
- The environment ID associated with the metrics.
- instance_
id str - The instance ID associated with the metrics. In Apigee Hybrid, the value is configured during installation.
- location str
- The location associated with the metrics.
- env String
- The environment ID associated with the metrics.
- instance
Id String - The instance ID associated with the metrics. In Apigee Hybrid, the value is configured during installation.
- location String
- The location associated with the metrics.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.