Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

V2LogEntry

import type { V2LogEntry } from "https://googleapis.deno.dev/v1/servicecontrol:v2.ts";

An individual log entry.

interface V2LogEntry {
httpRequest?: V2HttpRequest;
insertId?: string;
labels?: {
[key: string]: string;
}
;
monitoredResourceLabels?: {
[key: string]: string;
}
;
name?: string;
operation?: V2LogEntryOperation;
protoPayload?: {
[key: string]: any;
}
;
severity?:
| "DEFAULT"
| "DEBUG"
| "INFO"
| "NOTICE"
| "WARNING"
| "ERROR"
| "CRITICAL"
| "ALERT"
| "EMERGENCY";
sourceLocation?: V2LogEntrySourceLocation;
structPayload?: {
[key: string]: any;
}
;
textPayload?: string;
timestamp?: Date;
trace?: string;
}

§Properties

§
httpRequest?: V2HttpRequest
[src]

Optional. Information about the HTTP request associated with this log entry, if applicable.

§
insertId?: string
[src]

A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.

§
labels?: {
[key: string]: string;
}
[src]

A set of user-defined (key, value) data that provides additional information about the log entry.

§
monitoredResourceLabels?: {
[key: string]: string;
}
[src]

A set of user-defined (key, value) data that provides additional information about the moniotored resource that the log entry belongs to.

§
name?: string
[src]

Required. The log to which this log entry belongs. Examples: "syslog", "book_log".

§

Optional. Information about an operation associated with the log entry, if applicable.

§
protoPayload?: {
[key: string]: any;
}
[src]

The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.

§
severity?: "DEFAULT" | "DEBUG" | "INFO" | "NOTICE" | "WARNING" | "ERROR" | "CRITICAL" | "ALERT" | "EMERGENCY"
[src]

The severity of the log entry. The default value is LogSeverity.DEFAULT.

§

Optional. Source code location information associated with the log entry, if any.

§
structPayload?: {
[key: string]: any;
}
[src]

The log entry payload, represented as a structure that is expressed as a JSON object.

§
textPayload?: string
[src]

The log entry payload, represented as a Unicode string (UTF-8).

§
timestamp?: Date
[src]

The time the event described by the log entry occurred. If omitted, defaults to operation start time.

§
trace?: string
[src]

Optional. Resource name of the trace associated with the log entry, if any. If this field contains a relative resource name, you can assume the name is relative to //tracing.googleapis.com. Example: projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824