Method: webhooks.getLogs

Full name: projects.locations.instances.webhooks.getLogs

Get a log for a given webhook.

HTTP request


Path parameters

Parameters
name

string

Required. The resource name of the Webhook to get logs for. Format: projects/{project}/locations/{location}/instances/{instance}/webhooks/{webhook}:getLogs

Query parameters

Parameters
minimumLogLevel

enum (LogLevel)

Optional. Optional filter to only return logs with this minimum severity level.

Request body

The request body must be empty.

Response body

Response message for webhooks.getLogs.

If successful, the response body contains data with the following structure:

JSON representation
{
  "logs": [
    {
      object (WebhookLog)
    }
  ],
  "nextPageToken": string
}
Fields
logs[]

object (WebhookLog)

Optional. The list of logs for the webhook that matched the requested filter.

nextPageToken

string

Optional. A token to retrieve the next page of results. If this field is omitted, there are no subsequent pages.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.

LogLevel

Log level.

Enums
LOG_LEVEL_UNSPECIFIED Unspecified log level.
VERBOSE Verbose log level.
DEBUG Debug log level.
INFO Info log level.
WARN Warn log level.
ERROR Error log level.

WebhookLog

Response message for WebhookLog.

JSON representation
{
  "rawJson": string,
  "createTime": string,
  "message": string,
  "level": enum (LogLevel)
}
Fields
rawJson

string

Required. The log full json.

createTime

string (Timestamp format)

Required. The log creation time.

Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

message

string

Required. The log message.

level

enum (LogLevel)

Required. The log level.