Resource: Rollout
A rollout resource that defines how service configuration versions are pushed to control plane systems. Typically, you create a new version of the service config, and then create a Rollout to push the service config.
JSON representation |
---|
{ "rolloutId": string, "createTime": string, "createdBy": string, "status": enum ( |
Fields | |
---|---|
rolloutId |
Optional. Unique identifier of this Rollout. Must be no longer than 63 characters and only lower case letters, digits, '.', '_' and '-' are allowed. If not specified by client, the server will generate one. The generated id will have the form of |
createTime |
Creation time of the rollout. Readonly. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
createdBy |
The user who created the Rollout. Readonly. |
status |
The status of this rollout. Readonly. In case of a failed rollout, the system will automatically rollback to the current Rollout version. Readonly. |
serviceName |
The name of the service associated with this Rollout. |
Union field strategy . Strategy that defines which versions of service configurations should be pushed and how they should be used at runtime. strategy can be only one of the following: |
|
trafficPercentStrategy |
Google Service Control selects service configurations based on traffic percentage. |
deleteServiceStrategy |
The strategy associated with a rollout to delete a |
RolloutStatus
Status of a Rollout.
Enums | |
---|---|
ROLLOUT_STATUS_UNSPECIFIED |
No status specified. |
IN_PROGRESS |
The Rollout is in progress. |
SUCCESS |
The Rollout has completed successfully. |
CANCELLED |
The Rollout has been cancelled. This can happen if you have overlapping Rollout pushes, and the previous ones will be cancelled. |
FAILED |
The Rollout has failed and the rollback attempt has failed too. |
PENDING |
The Rollout has not started yet and is pending for execution. |
FAILED_ROLLED_BACK |
The Rollout has failed and rolled back to the previous successful Rollout. |
TrafficPercentStrategy
Strategy that specifies how clients of Google Service Controller want to send traffic to use different config versions. This is generally used by API proxy to split traffic based on your configured percentage for each config version.
One example of how to gradually rollout a new service configuration using this strategy: Day 1
Rollout {
id: "example.googleapis.com/rollout_20160206"
trafficPercentStrategy {
percentages: {
"example.googleapis.com/20160201": 70.00
"example.googleapis.com/20160206": 30.00
}
}
}
Day 2
Rollout {
id: "example.googleapis.com/rollout_20160207"
trafficPercentStrategy: {
percentages: {
"example.googleapis.com/20160206": 100.00
}
}
}
JSON representation |
---|
{ "percentages": { string: number, ... } } |
Fields | |
---|---|
percentages |
Maps service configuration IDs to their corresponding traffic percentage. key is the service configuration ID, Value is the traffic percentage which must be greater than 0.0 and the sum must equal to 100.0. An object containing a list of |
DeleteServiceStrategy
Strategy used to delete a service. This strategy is a placeholder only used by the system generated rollout to delete a service.
Methods |
|
---|---|
|
Creates a new service configuration rollout. |
|
Gets a service configuration rollout . |
|
Lists the history of the service configuration rollouts for a managed service, from the newest to the oldest. |