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

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

Calls DeleteLog.

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

DeleteLogRequest message or plain object

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

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

Calls ListLogEntries.

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

ListLogEntriesRequest message or plain object

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

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

Calls ListLogs.

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

ListLogsRequest message or plain object

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

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

Calls ListMonitoredResourceDescriptors.

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

ListMonitoredResourceDescriptorsRequest message or plain object

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

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

Calls WriteLogEntries.

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

WriteLogEntriesRequest message or plain object

(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

Type Definitions

DeleteLogCallback(error, responseopt)

Callback as used by google.logging.v2.LoggingServiceV2#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 google.logging.v2.LoggingServiceV2#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 google.logging.v2.LoggingServiceV2#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 google.logging.v2.LoggingServiceV2#listMonitoredResourceDescriptors.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.logging.v2.ListMonitoredResourceDescriptorsResponse <optional>

ListMonitoredResourceDescriptorsResponse

WriteLogEntriesCallback(error, responseopt)

Callback as used by google.logging.v2.LoggingServiceV2#writeLogEntries.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.logging.v2.WriteLogEntriesResponse <optional>

WriteLogEntriesResponse