LoggingServiceV2 class final
Service for ingesting and querying logs.
Constructors
- LoggingServiceV2({required Client client})
-
Creates a
LoggingServiceV2usingclientfor transport. - LoggingServiceV2.fromApiKey([String? apiKey])
-
Creates a
LoggingServiceV2that does authentication through an API key.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancelOperation(
CancelOperationRequest request) → Future< void> -
Provides the
Operationsservice functionality in this service. -
close(
) → void - Closes the client and cleans up any resources associated with it.
-
deleteLog(
DeleteLogRequest request) → Future< void> - 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.
-
getOperation<
T extends ProtoMessage, S extends ProtoMessage> (Operation< T, S> request) → Future<Operation< T, S> > -
Provides the
Operationsservice functionality in this service. -
listLogEntries(
ListLogEntriesRequest request) → Future< ListLogEntriesResponse> - 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.
-
listLogs(
ListLogsRequest request) → Future< ListLogsResponse> - Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.
-
listMonitoredResourceDescriptors(
ListMonitoredResourceDescriptorsRequest request) → Future< ListMonitoredResourceDescriptorsResponse> - Lists the descriptors for monitored resource types used by Logging.
-
listOperations(
ListOperationsRequest request) → Future< ListOperationsResponse> -
Provides the
Operationsservice functionality in this service. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
writeLogEntries(
WriteLogEntriesRequest request) → Future< WriteLogEntriesResponse> - 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)
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited