Skip to content
GitmoapAPIBeta
Schema

DeploymentDriftResponse

How far each of a service's current deployments is behind its repository's default branch.

Shape

  • rowsarray of DeploymentDriftRow
    • The DeploymentDriftRow schema
    • default_branchstring
    • deployed_shastring
    • environmentEnvironmentSummary
      • The EnvironmentSummary schema
      • archivedboolean
      • environment_idEnvironmentId (string · uuid)
      • slugEnvironmentSlug (string)
      • tierEnvironmentTierdevelopmenttestingstagingproductionWhat kind of environment this is, whatever it is called: development, testing, staging or production. A production environment is protected by default.
      • display_namestring or nulloptional
      • urlstring or nulloptional
    • repository_idRepositoryId (string · uuid)
    • repository_pathstring
    • commitsarray of DriftCommitoptionalThe commits the deployment is missing, at most 100. When there are more, truncated is true and commits_behind still gives the full count.
    • commits_behindinteger · int32 or nulloptional0–∞How many commits the default branch has that the deployed commit does not. Absent when the deployed commit can no longer be read, for example after a force-push.
    • truncatedbooleanoptional
  • service_idServiceId (string · uuid)

Example

Synthesized example
{
"rows": [
{
"default_branch": "main",
"deployed_sha": "9b5205165d494a0ea9f41b25dbc082e3f68e832a",
"environment": {
"archived": false,
"environment_id": "3d7865e0-cfd0-479e-bc02-46a1f848a6f5",
"scope": {
"group": "4c1d8e2f-6a3b-4f90-b7c5-1e2d3c4b5a69"
},
"slug": "slug-5a29",
"tier": "development"
},
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70",
"repository_path": "repository-path-8556"
}
],
"service_id": "1e0da8b4-e4fe-40da-865f-15b777d81bb9"
}

Graph

Used inside

No schema contains this one.

Used by

Sent by 0 operations

No operation takes it as a request body.