deployment_events
Creates, updates, deletes, gets or lists a deployment_events resource.
Overview
| Name | deployment_events |
| Type | Resource |
| Id | google.developerconnect.deployment_events |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. The name of the DeploymentEvent. This name is provided by Developer Connect insights. Format: projects/{project}/locations/{location}/insightsConfigs/{insights_config}/deploymentEvents/{uuid} |
artifactDeployments | array | Output only. The artifact deployments of the DeploymentEvent. Each artifact deployment contains the artifact uri and the runtime configuration uri. For GKE, this would be all the containers images that are deployed in the pod. |
createTime | string (google-datetime) | Output only. The create time of the DeploymentEvent. |
deployTime | string (google-datetime) | Output only. The time at which the DeploymentEvent was deployed. This would be the min of all ArtifactDeployment deploy_times. |
runtimeConfig | object | RuntimeConfig represents the runtimes where the application is deployed. (id: RuntimeConfig) |
runtimeDeploymentUri | string | Output only. The runtime assigned URI of the DeploymentEvent. For GKE, this is the fully qualified replica set uri. e.g. container.googleapis.com/projects/{project}/locations/{location}/clusters/{cluster}/k8s/namespaces/{namespace}/apps/replicasets/{replica-set-id} For Cloud Run, this is the revision name. |
state | string | Output only. The state of the DeploymentEvent. (STATE_UNSPECIFIED, STATE_ACTIVE, STATE_INACTIVE) |
undeployTime | string (google-datetime) | Output only. The time at which the DeploymentEvent was undeployed, all artifacts are considered undeployed once this time is set. This would be the max of all ArtifactDeployment undeploy_times. If any ArtifactDeployment is still active (i.e. does not have an undeploy_time), this field will be empty. |
updateTime | string (google-datetime) | Output only. The update time of the DeploymentEvent. |
| Name | Datatype | Description |
|---|---|---|
name | string | Identifier. The name of the DeploymentEvent. This name is provided by Developer Connect insights. Format: projects/{project}/locations/{location}/insightsConfigs/{insights_config}/deploymentEvents/{uuid} |
artifactDeployments | array | Output only. The artifact deployments of the DeploymentEvent. Each artifact deployment contains the artifact uri and the runtime configuration uri. For GKE, this would be all the containers images that are deployed in the pod. |
createTime | string (google-datetime) | Output only. The create time of the DeploymentEvent. |
deployTime | string (google-datetime) | Output only. The time at which the DeploymentEvent was deployed. This would be the min of all ArtifactDeployment deploy_times. |
runtimeConfig | object | RuntimeConfig represents the runtimes where the application is deployed. (id: RuntimeConfig) |
runtimeDeploymentUri | string | Output only. The runtime assigned URI of the DeploymentEvent. For GKE, this is the fully qualified replica set uri. e.g. container.googleapis.com/projects/{project}/locations/{location}/clusters/{cluster}/k8s/namespaces/{namespace}/apps/replicasets/{replica-set-id} For Cloud Run, this is the revision name. |
state | string | Output only. The state of the DeploymentEvent. (STATE_UNSPECIFIED, STATE_ACTIVE, STATE_INACTIVE) |
undeployTime | string (google-datetime) | Output only. The time at which the DeploymentEvent was undeployed, all artifacts are considered undeployed once this time is set. This would be the max of all ArtifactDeployment undeploy_times. If any ArtifactDeployment is still active (i.e. does not have an undeploy_time), this field will be empty. |
updateTime | string (google-datetime) | Output only. The update time of the DeploymentEvent. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | projectsId, locationsId, insightsConfigsId, deploymentEventsId | Gets a single Deployment Event. | |
list | select | projectsId, locationsId, insightsConfigsId | pageToken, filter, orderBy, pageSize | Lists Deployment Events in a given insights config. |
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 |
|---|---|---|
deploymentEventsId | string | |
insightsConfigsId | string | |
locationsId | string | |
projectsId | string | |
filter | string | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string |
SELECT examples
- get
- list
Gets a single Deployment Event.
SELECT
name,
artifactDeployments,
createTime,
deployTime,
runtimeConfig,
runtimeDeploymentUri,
state,
undeployTime,
updateTime
FROM google.developerconnect.deployment_events
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND insightsConfigsId = '{{ insightsConfigsId }}' -- required
AND deploymentEventsId = '{{ deploymentEventsId }}' -- required
;
Lists Deployment Events in a given insights config.
SELECT
name,
artifactDeployments,
createTime,
deployTime,
runtimeConfig,
runtimeDeploymentUri,
state,
undeployTime,
updateTime
FROM google.developerconnect.deployment_events
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND insightsConfigsId = '{{ insightsConfigsId }}' -- required
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}'
AND pageSize = '{{ pageSize }}'
;