Skip to main content

deployment_events

Creates, updates, deletes, gets or lists a deployment_events resource.

Overview

Namedeployment_events
TypeResource
Idgoogle.developerconnect.deployment_events

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. The name of the DeploymentEvent. This name is provided by Developer Connect insights. Format: projects/{project}/locations/{location}/insightsConfigs/{insights_config}/deploymentEvents/{uuid}
artifactDeploymentsarrayOutput 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.
createTimestring (google-datetime)Output only. The create time of the DeploymentEvent.
deployTimestring (google-datetime)Output only. The time at which the DeploymentEvent was deployed. This would be the min of all ArtifactDeployment deploy_times.
runtimeConfigobjectRuntimeConfig represents the runtimes where the application is deployed. (id: RuntimeConfig)
runtimeDeploymentUristringOutput 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.
statestringOutput only. The state of the DeploymentEvent. (STATE_UNSPECIFIED, STATE_ACTIVE, STATE_INACTIVE)
undeployTimestring (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.
updateTimestring (google-datetime)Output only. The update time of the DeploymentEvent.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, insightsConfigsId, deploymentEventsIdGets a single Deployment Event.
listselectprojectsId, locationsId, insightsConfigsIdpageToken, filter, orderBy, pageSizeLists 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.

NameDatatypeDescription
deploymentEventsIdstring
insightsConfigsIdstring
locationsIdstring
projectsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

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
;