LoggingServiceV2

google.logging.v2. LoggingServiceV2

Represents a LoggingServiceV2

Constructor

new LoggingServiceV2(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new LoggingServiceV2 service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

deleteLog(request, callback) → {undefined}

Calls DeleteLog.

Parameters:
Name Type Description
request google.logging.v2.IDeleteLogRequest

DeleteLogRequest message or plain object

callback google.logging.v2.LoggingServiceV2.DeleteLogCallback

Node-style callback called with the error, if any, and Empty

Returns:
Type Description
undefined

deleteLog(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteLog.

Parameters:
Name Type Description
request google.logging.v2.IDeleteLogRequest

DeleteLogRequest message or plain object

Returns:
Type Description
Promise.<google.protobuf.Empty>

Promise

listLogEntries(request, callback) → {undefined}

Calls ListLogEntries.

Parameters:
Name Type Description
request google.logging.v2.IListLogEntriesRequest

ListLogEntriesRequest message or plain object

callback google.logging.v2.LoggingServiceV2.ListLogEntriesCallback

Node-style callback called with the error, if any, and ListLogEntriesResponse

Returns:
Type Description
undefined

listLogEntries(request) → {Promise.<google.logging.v2.ListLogEntriesResponse>}

Calls ListLogEntries.

Parameters:
Name Type Description
request google.logging.v2.IListLogEntriesRequest

ListLogEntriesRequest message or plain object

Returns:
Type Description
Promise.<google.logging.v2.ListLogEntriesResponse>

Promise

listLogs(request, callback) → {undefined}

Calls ListLogs.

Parameters:
Name Type Description
request google.logging.v2.IListLogsRequest

ListLogsRequest message or plain object

callback google.logging.v2.LoggingServiceV2.ListLogsCallback

Node-style callback called with the error, if any, and ListLogsResponse

Returns:
Type Description
undefined

listLogs(request) → {Promise.<google.logging.v2.ListLogsResponse>}

Calls ListLogs.

Parameters:
Name Type Description
request google.logging.v2.IListLogsRequest

ListLogsRequest message or plain object

Returns:
Type Description
Promise.<google.logging.v2.ListLogsResponse>

Promise

listMonitoredResourceDescriptors(request, callback) → {undefined}

Calls ListMonitoredResourceDescriptors.

Parameters:
Name Type Description
request google.logging.v2.IListMonitoredResourceDescriptorsRequest

ListMonitoredResourceDescriptorsRequest message or plain object

callback google.logging.v2.LoggingServiceV2.ListMonitoredResourceDescriptorsCallback

Node-style callback called with the error, if any, and ListMonitoredResourceDescriptorsResponse

Returns:
Type Description
undefined

listMonitoredResourceDescriptors(request) → {Promise.<google.logging.v2.ListMonitoredResourceDescriptorsResponse>}

Calls ListMonitoredResourceDescriptors.

Parameters:
Name Type Description
request google.logging.v2.IListMonitoredResourceDescriptorsRequest

ListMonitoredResourceDescriptorsRequest message or plain object

Returns:
Type Description
Promise.<google.logging.v2.ListMonitoredResourceDescriptorsResponse>

Promise

tailLogEntries(request, callback) → {undefined}

Calls TailLogEntries.

Parameters:
Name Type Description
request google.logging.v2.ITailLogEntriesRequest

TailLogEntriesRequest message or plain object

callback google.logging.v2.LoggingServiceV2.TailLogEntriesCallback

Node-style callback called with the error, if any, and TailLogEntriesResponse

Returns:
Type Description
undefined

tailLogEntries(request) → {Promise.<google.logging.v2.TailLogEntriesResponse>}

Calls TailLogEntries.

Parameters:
Name Type Description
request google.logging.v2.ITailLogEntriesRequest

TailLogEntriesRequest message or plain object

Returns:
Type Description
Promise.<google.logging.v2.TailLogEntriesResponse>

Promise

writeLogEntries(request, callback) → {undefined}

Calls WriteLogEntries.

Parameters:
Name Type Description
request google.logging.v2.IWriteLogEntriesRequest

WriteLogEntriesRequest message or plain object

callback google.logging.v2.LoggingServiceV2.WriteLogEntriesCallback

Node-style callback called with the error, if any, and WriteLogEntriesResponse

Returns:
Type Description
undefined

writeLogEntries(request) → {Promise.<google.logging.v2.WriteLogEntriesResponse>}

Calls WriteLogEntries.

Parameters:
Name Type Description
request google.logging.v2.IWriteLogEntriesRequest

WriteLogEntriesRequest message or plain object

Returns:
Type Description
Promise.<google.logging.v2.WriteLogEntriesResponse>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {LoggingServiceV2}

Creates new LoggingServiceV2 service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
LoggingServiceV2

RPC service. Useful where requests and/or responses are streamed.

Type Definitions

DeleteLogCallback(error, responseopt)

Callback as used by deleteLog.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

ListLogEntriesCallback(error, responseopt)

Callback as used by listLogEntries.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.logging.v2.ListLogEntriesResponse <optional>

ListLogEntriesResponse

ListLogsCallback(error, responseopt)

Callback as used by listLogs.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.logging.v2.ListLogsResponse <optional>

ListLogsResponse

ListMonitoredResourceDescriptorsCallback(error, responseopt)

Callback as used by listMonitoredResourceDescriptors.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.logging.v2.ListMonitoredResourceDescriptorsResponse <optional>

ListMonitoredResourceDescriptorsResponse

TailLogEntriesCallback(error, responseopt)

Callback as used by tailLogEntries.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.logging.v2.TailLogEntriesResponse <optional>

TailLogEntriesResponse

WriteLogEntriesCallback(error, responseopt)

Callback as used by writeLogEntries.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.logging.v2.WriteLogEntriesResponse <optional>

WriteLogEntriesResponse