Method: projects.locations.runtimes.reportEvent

Reports and processes a runtime event.

HTTP request

POST https://notebooks.googleapis.com/v1/{name}:reportEvent

Path parameters

Parameters
name

string

Required. Format: projects/{projectId}/locations/{location}/runtimes/{runtimeId}

Authorization requires the following IAM permission on the specified resource name:

  • iam.permissions.none

Request body

The request body contains data with the following structure:

JSON representation
{
  "vmId": string,
  "event": {
    object (Event)
  }
}
Fields
vmId

string

Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity

event

object (Event)

Required. The Event to be reported.

Response body

If successful, the response body contains an instance of Operation.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

Event

The definition of an Event for a managed / semi-managed notebook instance.

JSON representation
{
  "reportTime": string,
  "type": enum (EventType),
  "details": {
    string: string,
    ...
  }
}
Fields
reportTime

string (Timestamp format)

Event report time.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

type

enum (EventType)

Event type.

details

map (key: string, value: string)

Optional. Event details. This field is used to pass event information.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

EventType

The definition of the event types.

Enums
EVENT_TYPE_UNSPECIFIED Event is not specified.
IDLE The instance / runtime is idle
HEARTBEAT The instance / runtime is available. This event indicates that instance / runtime underlying compute is operational.
HEALTH The instance / runtime health is available. This event indicates that instance / runtime health information.
MAINTENANCE The instance / runtime is available. This event allows instance / runtime to send Host maintenance information to Control Plane. https://cloud.google.com/compute/docs/gpus/gpu-host-maintenance