LogEntry

google.logging.v2. LogEntry

Represents a LogEntry.

Constructor

new LogEntry(propertiesopt)

Constructs a new LogEntry.

Parameters:
Name Type Attributes Description
properties google.logging.v2.ILogEntry <optional>

Properties to set

Implements:
  • ILogEntry

Members

httpRequest :google.logging.type.IHttpRequest|null|undefined

LogEntry httpRequest.

insertId :string

LogEntry insertId.

jsonPayload :google.protobuf.IStruct|null|undefined

LogEntry jsonPayload.

labels :Object.<string, string>

LogEntry labels.

logName :string

LogEntry logName.

operation :google.logging.v2.ILogEntryOperation|null|undefined

LogEntry operation.

payload :"protoPayload"|"textPayload"|"jsonPayload"|undefined

LogEntry payload.

protoPayload :google.protobuf.IAny|null|undefined

LogEntry protoPayload.

receiveTimestamp :google.protobuf.ITimestamp|null|undefined

LogEntry receiveTimestamp.

resource :google.api.IMonitoredResource|null|undefined

LogEntry resource.

severity :google.logging.type.LogSeverity

LogEntry severity.

sourceLocation :google.logging.v2.ILogEntrySourceLocation|null|undefined

LogEntry sourceLocation.

spanId :string

LogEntry spanId.

textPayload :string

LogEntry textPayload.

timestamp :google.protobuf.ITimestamp|null|undefined

LogEntry timestamp.

trace :string

LogEntry trace.

traceSampled :boolean

LogEntry traceSampled.

Methods

(static) create(propertiesopt) → {google.logging.v2.LogEntry}

Creates a new LogEntry instance using the specified properties.

Parameters:
Name Type Attributes Description
properties google.logging.v2.ILogEntry <optional>

Properties to set

(static) decode(reader, lengthopt) → {google.logging.v2.LogEntry}

Decodes a LogEntry message from the specified reader or buffer.

Parameters:
Name Type Attributes Description
reader $protobuf.Reader | Uint8Array

Reader or buffer to decode from

length number <optional>

Message length if known beforehand

Throws:
  • If the payload is not a reader or valid buffer

    Type
    Error
  • If required fields are missing

    Type
    $protobuf.util.ProtocolError

(static) decodeDelimited(reader) → {google.logging.v2.LogEntry}

Decodes a LogEntry message from the specified reader or buffer, length delimited.

Parameters:
Name Type Description
reader $protobuf.Reader | Uint8Array

Reader or buffer to decode from

Throws:
  • If the payload is not a reader or valid buffer

    Type
    Error
  • If required fields are missing

    Type
    $protobuf.util.ProtocolError

(static) encode(message, writeropt) → {$protobuf.Writer}

Encodes the specified LogEntry message. Does not implicitly verify messages.

Parameters:
Name Type Attributes Description
message google.logging.v2.ILogEntry

LogEntry message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

(static) encodeDelimited(message, writeropt) → {$protobuf.Writer}

Encodes the specified LogEntry message, length delimited. Does not implicitly verify messages.

Parameters:
Name Type Attributes Description
message google.logging.v2.ILogEntry

LogEntry message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

(static) fromObject(object) → {google.logging.v2.LogEntry}

Creates a LogEntry message from a plain object. Also converts values to their respective internal types.

Parameters:
Name Type Description
object Object.<string, *>

Plain object

(static) toObject(message, optionsopt) → {Object.<string, *>}

Creates a plain object from a LogEntry message. Also converts values to other types if specified.

Parameters:
Name Type Attributes Description
message google.logging.v2.LogEntry

LogEntry

options $protobuf.IConversionOptions <optional>

Conversion options

(static) verify(message) → {string|null}

Verifies a LogEntry message.

Parameters:
Name Type Description
message Object.<string, *>

Plain object to verify

toJSON() → {Object.<string, *>}

Converts this LogEntry to JSON.