latestOpenAPI 3.0.12026-08-10234260964.0 KB

6cc88fde6435

Environment Activity

Get environment activity log

Retrieve an environment's activity log. This returns a list of object with records of actions such as:

  • Commits being pushed to the repository
  • A new environment being branched out from the specified environment
  • A snapshot being created of the specified environment

The object includes a timestamp of when the action occurred (created_at), when the action concluded (updated_at), the current state of the action, the action's completion percentage (completion_percent), and other related information in the payload.

The contents of the payload varies based on the type of the activity. For example:

  • An environment.branch action's payload can contain objects representing the parent environment and the branching action's outcome.

  • An environment.push action's payload can contain objects representing the environment, the specific commits included in the push, and the user who pushed.

get/projects/{projectId}/environments/{environmentId}/activities

Path parameters

projectIdstring required
environmentIdstring required

Response

idstring required

The identifier of Activity

created_atstring date-time nullable required

The creation date

updated_atstring date-time nullable required

The update date

typestring required

The type of the activity

parametersobject required

The parameters of the activity

projectstring required

The project the activity belongs to

integrationstring

The integration the activity belongs to

environmentsstring[]

The environments related to the activity

state'cancelled' | 'complete' | 'in_progress' | 'pending' | 'scheduled' | 'staged' required

The state of the activity

result'failure' | 'success' nullable required

The result of the activity

started_atstring date-time nullable required

The start date of the activity

completed_atstring date-time nullable required

The completion date of the activity

completion_percentinteger required

The completion percentage of the activity

cancelled_atstring date-time nullable required

The Cancellation date of the activity

timingsobject required

Timings related to different phases of the activity

logstring required

The log of the activity

payloadobject required

The payload of the activity

descriptionstring nullable required

The description of the activity, formatted with HTML

textstring nullable required

The description of the activity, formatted as plain text

expires_atstring date-time nullable required

The date at which the activity will expire