Class LoggingServiceV2Connection (2.19.0)

This interface defines virtual methods for each of the user-facing overload sets in LoggingServiceV2Client. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type LoggingServiceV2Client.

To create a concrete instance, see MakeLoggingServiceV2Connection().

For mocking, see logging_v2_mocks::MockLoggingServiceV2Connection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual DeleteLog(google::logging::v2::DeleteLogRequest const &)

Parameter
NameDescription
request google::logging::v2::DeleteLogRequest const &
Returns
TypeDescription
Status

virtual WriteLogEntries(google::logging::v2::WriteLogEntriesRequest const &)

Parameter
NameDescription
request google::logging::v2::WriteLogEntriesRequest const &
Returns
TypeDescription
StatusOr< google::logging::v2::WriteLogEntriesResponse >

virtual ListLogEntries(google::logging::v2::ListLogEntriesRequest)

Parameter
NameDescription
request google::logging::v2::ListLogEntriesRequest
Returns
TypeDescription
StreamRange< google::logging::v2::LogEntry >

virtual ListMonitoredResourceDescriptors(google::logging::v2::ListMonitoredResourceDescriptorsRequest)

Parameter
NameDescription
request google::logging::v2::ListMonitoredResourceDescriptorsRequest
Returns
TypeDescription
StreamRange< google::api::MonitoredResourceDescriptor >

virtual ListLogs(google::logging::v2::ListLogsRequest)

Parameter
NameDescription
request google::logging::v2::ListLogsRequest
Returns
TypeDescription
StreamRange< std::string >

virtual AsyncTailLogEntries()

Returns
TypeDescription
std::unique_ptr<::google::cloud::AsyncStreamingReadWriteRpc< google::logging::v2::TailLogEntriesRequest, google::logging::v2::TailLogEntriesResponse > >

virtual AsyncWriteLogEntries(google::logging::v2::WriteLogEntriesRequest const &)

Parameter
NameDescription
request google::logging::v2::WriteLogEntriesRequest const &
Returns
TypeDescription
future< StatusOr< google::logging::v2::WriteLogEntriesResponse > >