public static interface LoggingServiceV2Grpc.AsyncService
Service for ingesting and querying logs.
Modifier and Type | Method and Description |
---|---|
default void |
deleteLog(DeleteLogRequest request,
StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes all the log entries in a log for the _Default Log Bucket.
|
default void |
listLogEntries(ListLogEntriesRequest request,
StreamObserver<ListLogEntriesResponse> responseObserver)
Lists log entries.
|
default void |
listLogs(ListLogsRequest request,
StreamObserver<ListLogsResponse> responseObserver)
Lists the logs in projects, organizations, folders, or billing accounts.
|
default void |
listMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request,
StreamObserver<ListMonitoredResourceDescriptorsResponse> responseObserver)
Lists the descriptors for monitored resource types used by Logging.
|
default StreamObserver<TailLogEntriesRequest> |
tailLogEntries(StreamObserver<TailLogEntriesResponse> responseObserver)
Streaming read of log entries as they are ingested.
|
default void |
writeLogEntries(WriteLogEntriesRequest request,
StreamObserver<WriteLogEntriesResponse> responseObserver)
Writes log entries to Logging.
|
default void deleteLog(DeleteLogRequest request, StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted. Entries received after the delete operation with a timestamp before the operation will be deleted.
default void writeLogEntries(WriteLogEntriesRequest request, StreamObserver<WriteLogEntriesResponse> responseObserver)
Writes log entries to Logging. This API method is the only way to send log entries to Logging. This method is used, directly or indirectly, by the Logging agent (fluentd) and all logging libraries configured to use Logging. A single request may contain log entries for a maximum of 1000 different resources (projects, organizations, billing accounts or folders)
default void listLogEntries(ListLogEntriesRequest request, StreamObserver<ListLogEntriesResponse> responseObserver)
Lists log entries. Use this method to retrieve log entries that originated from a project/folder/organization/billing account. For ways to export log entries, see [Exporting Logs](https://cloud.google.com/logging/docs/export).
default void listMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest request, StreamObserver<ListMonitoredResourceDescriptorsResponse> responseObserver)
Lists the descriptors for monitored resource types used by Logging.
default void listLogs(ListLogsRequest request, StreamObserver<ListLogsResponse> responseObserver)
Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
default StreamObserver<TailLogEntriesRequest> tailLogEntries(StreamObserver<TailLogEntriesResponse> responseObserver)
Streaming read of log entries as they are ingested. Until the stream is terminated, it will continue reading logs.
Copyright © 2023 Google LLC. All rights reserved.