Skip to content
Ona Docs

Usage

UsageService provides usage information about environments, users, and projects.

ListEnvironmentUsageRecords
client.Usage.ListEnvironmentRuntimeRecords(ctx, params) (*RecordsPage[EnvironmentUsageRecord], error)
POST/gitpod.v1.UsageService/ListEnvironmentUsageRecords
ModelsExpand Collapse
type EnvironmentUsageRecord struct{…}

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

ID stringOptional

Environment usage record ID.

CreatedAt TimeOptional

Time when the environment was created.

formatdate-time
EnvironmentClassID stringOptional

Environment class ID associated with the record.

EnvironmentID stringOptional

Environment ID associated with the record.

ProjectID stringOptional

Project ID associated with the environment (if available).

RunnerID stringOptional

Runner ID associated with the environment.

StoppedAt TimeOptional

Time when the environment was stopped.

formatdate-time
UserID stringOptional

User ID is the ID of the user who created the environment associated with the record.