Method: legacySdk.legacyAddAgentLogs

Full name: projects.locations.instances.legacySdk.legacyAddAgentLogs

Legacy RPC for add agent logs.

HTTP request


Path parameters

Parameters
instance

string

Required. The AddAgentLogs request. Format: projects/{project}/locations/{location}/instances/{instance}/legacySdk:addAgentLogs

Request body

The request body contains data with the following structure:

JSON representation
{
  "legacyPayload": [
    {
      object (SdkLogEvent)
    }
  ]
}
Fields
legacyPayload[]

object (SdkLogEvent)

Required. The log events.

Response body

If successful, the response body is an empty JSON object.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

SdkLogEvent

The LogEvent message.

JSON representation
{
  "module": string,
  "eventId": integer,
  "message": string,
  "actorIdentifier": string,
  "agentComponentType": string,
  "agentComponentName": string,
  "taskId": string,
  "creationTimeUnixGmt": number,
  "taskType": string,
  "actor": string,
  "level": enum (LogLevel)
}
Fields
module

string

Optional. The module.

eventId

integer

Optional. The event id.

message

string

Optional. The message.

actorIdentifier

string

Required. The actor identifier.

agentComponentType

string

Optional. The agent component type.

agentComponentName

string

Optional. The agent component name.

taskId

string

Optional. The task id.

creationTimeUnixGmt

number

Output only. The creation time in unix gmt.

taskType

string

Optional. The task type.

actor

string

Optional. The actor.

level

enum (LogLevel)

Required. The log level.

LogLevel

LogLevel enum.

Enums
DEBUG Debug.
INFO Info.
WARN Warn.
ERROR Error.
ALERT Alert.
VERBOSE Verbose.