Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

Get a lease event

Gets one lease event.

Gets one lease event.

  • Path GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/leases/lease/lease_events/lease-event
  • Scope sandboxes:read
  • Effect read — nothing is written.
  • Collection lease_events

#Request

FieldTypeWhat it is
namestringThe name of the event to get. Required.

#Response

FieldTypeWhat it is
namestringorgs/{org}/projects/{project}/envs/{env}/leases/{lease}/lease_events/{lease_event}.
uidstringlev_<cell><ulid>; never reused. Output only.
metaResourceMetaResource metadata.
kindLeaseEventKindWhat happened. Output only. One of granted, ready, refused, ended, renewed, network_changed, control_acquired, control_released, control_expired, budget_warning, paused, resumed.
sequenceint64The position in the lease's event sequence, from 1. Output only.
occur_timetimestampWhen it happened. Output only.
lease_generationint64The lease generation after the event. Output only.
stateLeaseStateThe lease state after the event. Output only. One of requested, granted, ready, paused, ending, ended, refused.
end_reasonEndReasonFor LEASE_ENDED. Output only. One of released, expired, idle, cpu_budget, cost_budget, abuse, quota, org_deleted, machine_lost, boot_failed.
usageLeaseUsageFor LEASE_ENDED: final usage. Output only.
controlControlStateFor CONTROL_* events: the control after the event. Output only.
control_durationdurationFor CONTROL_RELEASED and CONTROL_EXPIRED: how long control was held. Output only.
principalstringThe principal that caused it, when a caller did. Output only.

#ResourceMeta

FieldTypeWhat it is
generationint64Increases by one on every change to spec. Output only.
etagstringStrong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as If-Match or etag to make Update and Delete conditional; a mismatch fails with ABORTED / 409 ETAG_MISMATCH. Output only.
create_timetimestampWhen the Resource was created. Output only.
update_timetimestampWhen the Resource last changed. Output only.
delete_timetimestampSet while the Resource is being deleted. Output only.
labelsmap<string, string>Caller-writable, indexed labels (AIP-122 label rules).
annotationsmap<string, string>Caller-writable, unindexed annotations.
display_namestringCaller-writable human-readable name.
creatorstringThe principal that created the Resource. Output only.

#LeaseUsage

FieldTypeWhat it is
wall_secondsint64Wall seconds from grant. Output only.
cpu_secondsint64Guest vCPU-seconds. Output only.
cost_microsint64List-price cost so far, in millionths of a US dollar; 0 on classes that are not priced. Output only.
measure_timetimestampWhen this usage was measured. Output only.
memory_gib_secondsint64Memory GiB-seconds (shape memory times wall seconds). Output only.
egress_bytesint64Bytes sent to the internet. Output only.
stream_secondsint64Seconds of live stream viewing, summed over viewers. Output only.

#ControlState

FieldTypeWhat it is
holderControlHolderWho holds control; UNSPECIFIED when nobody does (agent actions allowed). Output only. One of agent, human.
epochint64Increases on every acquire; release names it. Output only.
principalstringThe Access principal that acquired control. Output only.
holder_labelstringThe caller's label for the person or agent, for example a user id. Output only.
acquire_timetimestampWhen control was acquired. Output only.
expire_timetimestampWhen control lapses unless re-acquired. Output only.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/leases/lease/lease_events/lease-event" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"