Usage

usage

Methods

List Environment Usage Records -> RecordsPage<>
post/gitpod.v1.UsageService/ListEnvironmentUsageRecords

Lists completed environment runtime records within a specified date range.

Returns a list of environment runtime records that were completed within the specified date range. Records of currently running environments are not included.

Use this method to:

  • View environment runtime records
  • Filter by project
  • Create custom usage reports

Example

filter:
  projectId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
  dateRange:
    startTime: "2024-01-01T00:00:00Z"
    endTime: "2024-01-02T00:00:00Z"
pagination:
  pageSize: 100
query Parameters
token: string
Optional
pageSize: number
Optional
(maximum: 100, minimum: 0, default: 25)
Response fields
pagination: { nextToken }
Optional

Pagination response.

records: Array<>
Optional

List of environment runtime records.

Request example
200Example

Domain types

EnvironmentUsageRecord = { id, createdAt, environmentClassId, 5 more... }

EnvironmentUsageRecord represents a record of an environment from start to stop.