Skip to content
Ona Docs

Usage

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

ListEnvironmentUsageRecords
usage.list_environment_runtime_records(UsageListEnvironmentRuntimeRecordsParams**kwargs) -> SyncRecordsPage[EnvironmentUsageRecord]
POST/gitpod.v1.UsageService/ListEnvironmentUsageRecords
ModelsExpand Collapse
class EnvironmentUsageRecord:

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

id: Optional[str]

Environment usage record ID.

created_at: Optional[datetime]

Time when the environment was created.

formatdate-time
environment_class_id: Optional[str]

Environment class ID associated with the record.

environment_id: Optional[str]

Environment ID associated with the record.

project_id: Optional[str]

Project ID associated with the environment (if available).

runner_id: Optional[str]

Runner ID associated with the environment.

stopped_at: Optional[datetime]

Time when the environment was stopped.

formatdate-time
user_id: Optional[str]

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