REST Resource: projects.locations.insightsConfigs.deploymentEvents

Resource: DeploymentEvent

The DeploymentEvent resource represents the deployment of the artifact within the InsightsConfig resource.

JSON representation
{
  "name": string,
  "createTime": string,
  "updateTime": string,
  "runtimeConfig": {
    object (RuntimeConfig)
  },
  "runtimeDeploymentUri": string,
  "state": enum (State),
  "artifactDeployments": [
    {
      object (ArtifactDeployment)
    }
  ],
  "deployTime": string,
  "undeployTime": string
}
Fields
name

string

Identifier. The name of the DeploymentEvent. This name is provided by Developer Connect insights. Format: projects/{project}/locations/{location}/insightsConfigs/{insightsConfig}/deploymentEvents/{uuid}

createTime

string (Timestamp format)

Output only. The create time of the DeploymentEvent.

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: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

updateTime

string (Timestamp format)

Output only. The update time of the DeploymentEvent.

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: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

runtimeConfig

object (RuntimeConfig)

Output only. The runtime configurations where the DeploymentEvent happened.

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

enum (State)

Output only. The state of the DeploymentEvent.

artifactDeployments[]

object (ArtifactDeployment)

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.

deployTime

string (Timestamp format)

Output only. The time at which the DeploymentEvent was deployed. This would be the min of all ArtifactDeployment deploy_times.

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: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

undeployTime

string (Timestamp format)

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 undeployTime), this field will be empty.

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: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

State

The state of the DeploymentEvent.

Enums
STATE_UNSPECIFIED No state specified.
STATE_ACTIVE The deployment is active in the runtime.
STATE_INACTIVE The deployment is not in the runtime.

ArtifactDeployment

The ArtifactDeployment resource represents the deployment of the artifact within the InsightsConfig resource.

JSON representation
{
  "id": string,
  "artifactReference": string,
  "artifactAlias": string,
  "sourceCommitUris": [
    string
  ],
  "deployTime": string,
  "undeployTime": string,
  "containerStatusSummary": string
}
Fields
id

string

Output only. Unique identifier of ArtifactDeployment.

artifactReference

string

Output only. The artifact that is deployed.

artifactAlias

string

Output only. The artifact alias in the deployment spec, with Tag/SHA. e.g. us-docker.pkg.dev/my-project/my-repo/image:1.0.0

sourceCommitUris[]

string

Output only. The source commits at which this artifact was built. Extracted from provenance.

deployTime

string (Timestamp format)

Output only. The time at which the deployment was deployed.

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: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

undeployTime

string (Timestamp format)

Output only. The time at which the deployment was undeployed, all artifacts are considered undeployed once this time is set.

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: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

containerStatusSummary

string

Output only. The summary of container status of the artifact deployment. Format as ContainerStatusState-Reason : restartCount e.g. "Waiting-ImagePullBackOff : 3"

Methods

get

Gets a single Deployment Event.

list

Lists Deployment Events in a given insights config.