Resource: Experiment
Represents a single fault injection experiment where faults are deliberately introduced to your cloud resources to see how your application responds.
| JSON representation |
|---|
{ "name": string, "displayName": string, "description": string, "experimentTemplate": string, "templateDisplayName": string, "templateDescription": string, "templateDuration": string, "effectiveAction": { object ( |
| Fields | |
|---|---|
name |
Identifier. Unique identifier for the experiment. Format: |
displayName |
Optional. A human-readable name of the experiment. |
description |
Optional. Notes or details to describe the purpose or context of the experiment. Minimum length is 0, maximum length is 2000. |
experimentTemplate |
Required. The unique identifier of the reusable experiment template used to configure the experiment. This field determines the type of fault, target, and duration. Format: |
templateDisplayName |
Output only. The human-readable name of the experiment template used for the experiment. Minimum length is 0, maximum length is 1000. |
templateDescription |
Output only. The description from the experiment template used for the experiment. Minimum length is 0, maximum length is 2000. |
templateDuration |
Output only. The planned duration of the experiment, as defined in the experiment template. Minimum duration is 1 minute, maximum is 10 days. A duration in seconds with up to nine fractional digits, ending with ' |
effectiveAction |
Output only. The specific fault that was introduced during the experiment. Examples: Triggering a database failover, adding delays to web requests. This field comes from the experiment template. |
state |
Output only. The current state of the experiment. Example: |
endReason |
Output only. Why the experiment stopped. Example: It finished normally, or was cancelled by a user. |
endNotes |
Output only. Optional user-added notes explaining why the experiment was stopped, particularly if it was manually cancelled. |
createTime |
Output only. The date and time when the experiment record was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
startTime |
Output only. The date and time when the fault injection actually began. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
stateUpdateTime |
Output only. The date and time when the experiment's state was last updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
stopTime |
Output only. The date and time when the experiment finished and the faults were removed. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
EndReason
The reason why an experiment concluded. String values are used in JSON.
| Enums | |
|---|---|
END_REASON_UNSPECIFIED |
The reason for stopping is not specified. |
CANCELLED |
A user manually stopped the experiment. |
COMPLETED |
The experiment finished normally after its duration. |
Methods |
|
|---|---|
|
Creates an Experiment and prepares it to run by identifying all cloud resources that will be affected. |
|
Deletes an Experiment record. |
|
Returns a single Experiment resource, including its current state and configuration. |
|
Lists all experiments in a specified project and location. |
|
Starts an existing Experiment. |
|
Stops a running Experiment. |
|
Stops all running experiments in a given location for a given project. |