logging.v2 library Null safety

Cloud Logging API - v2

Writes log entries and manages your Cloud Logging configuration. The table entries below are presented in alphabetical order, not in order of common use. For explanations of the concepts found in the table entries, read the documentation at https://cloud.google.com/logging/docs.

For more information, see cloud.google.com/logging/docs/

Create an instance of LoggingApi to access these resources:

Classes

BigQueryOptions
Options that change functionality of a sink exporting data to BigQuery.
BillingAccountsBucketsResource
BillingAccountsBucketsViewsResource
BillingAccountsExclusionsResource
BillingAccountsLocationsBucketsResource
BillingAccountsLocationsBucketsViewsResource
BillingAccountsLocationsOperationsResource
BillingAccountsLocationsResource
BillingAccountsLogsResource
BillingAccountsOperationsResource
BillingAccountsResource
BillingAccountsSinksResource
BucketOptions
BucketOptions describes the bucket boundaries used to create a histogram for the distribution. [...]
CmekSettings
Describes the customer-managed encryption key (CMEK) settings associated with a project, folder, organization, billing account, or flexible resource.Note: CMEK for the Logs Router can currently only be configured for Google Cloud organizations. [...]
CopyLogEntriesRequest
The parameters to CopyLogEntries.
EntriesResource
ExclusionsResource
FoldersExclusionsResource
FoldersLocationsBucketsResource
FoldersLocationsBucketsViewsResource
FoldersLocationsOperationsResource
FoldersLocationsResource
FoldersLogsResource
FoldersResource
FoldersSinksResource
HttpRequest
A common proto for logging HTTP requests. [...]
ListBucketsResponse
The response from ListBuckets.
ListExclusionsResponse
Result returned from ListExclusions.
ListLocationsResponse
The response message for Locations.ListLocations.
ListLogEntriesRequest
The parameters to ListLogEntries.
ListLogEntriesResponse
Result returned from ListLogEntries.
ListLogMetricsResponse
Result returned from ListLogMetrics.
ListLogsResponse
Result returned from ListLogs.
ListMonitoredResourceDescriptorsResponse
Result returned from ListMonitoredResourceDescriptors.
ListOperationsResponse
The response message for Operations.ListOperations.
ListSinksResponse
Result returned from ListSinks.
ListViewsResponse
The response from ListViews.
LocationsBucketsResource
LocationsBucketsViewsResource
LocationsOperationsResource
LocationsResource
LogBucket
Describes a repository in which log entries are stored.
LogEntry
An individual entry in a log.
LogEntryOperation
Additional information about a potentially long-running operation with which a log entry is associated.
LogEntrySourceLocation
Additional information about the source code location that produced the log entry.
LogExclusion
Specifies a set of log entries that are filtered out by a sink. [...]
LoggingApi
Writes log entries and manages your Cloud Logging configuration. [...]
LogMetric
Describes a logs-based metric. [...]
LogSink
Describes a sink used to export log entries to one of the following destinations in any project: a Cloud Storage bucket, a BigQuery dataset, a Pub/Sub topic or a Cloud Logging log bucket. [...]
LogsResource
LogView
Describes a view over log entries in a bucket.
MetricDescriptor
Defines a metric type and its schema. [...]
MonitoredResource
An object representing a resource that can be used for monitoring, logging, billing, or other purposes. [...]
MonitoredResourceDescriptor
An object that describes the schema of a MonitoredResource object using a type name and a set of labels. [...]
MonitoredResourceDescriptorsResource
Operation
This resource represents a long-running operation that is the result of a network API call.
OrganizationsExclusionsResource
OrganizationsLocationsBucketsResource
OrganizationsLocationsBucketsViewsResource
OrganizationsLocationsOperationsResource
OrganizationsLocationsResource
OrganizationsLogsResource
OrganizationsResource
OrganizationsSinksResource
ProjectsExclusionsResource
ProjectsLocationsBucketsResource
ProjectsLocationsBucketsViewsResource
ProjectsLocationsOperationsResource
ProjectsLocationsResource
ProjectsLogsResource
ProjectsMetricsResource
ProjectsResource
ProjectsSinksResource
SinksResource
SuppressionInfo
Information about entries that were omitted from the session.
TailLogEntriesRequest
The parameters to TailLogEntries.
TailLogEntriesResponse
Result returned from TailLogEntries.
V2Resource
WriteLogEntriesRequest
The parameters to WriteLogEntries.

Typedefs

CancelOperationRequest = $Empty
The request message for Operations.CancelOperation.
Empty = $Empty
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. [...]
Explicit = $Explicit
Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (= N) buckets. [...]
Exponential = $Exponential
Specifies an exponential sequence of buckets that have a width that is proportional to the value of the lower bound. [...]
LabelDescriptor = $LabelDescriptor
A description of a label.
Linear = $Linear
Specifies a linear sequence of buckets that all have the same width (except overflow and underflow). [...]
Location = $Location01
A resource that represents Google Cloud Platform location.
MetricDescriptorMetadata = $MetricDescriptorMetadata01
Additional annotations that can be used to guide the usage of a metric.
MonitoredResourceMetadata = $MonitoredResourceMetadata
Auxiliary metadata for a MonitoredResource object. [...]
Status = $Status
The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. [...]
UndeleteBucketRequest = $Empty
The parameters to UndeleteBucket.
WriteLogEntriesResponse = $Empty
Result returned from WriteLogEntries.

Exceptions / Errors

ApiRequestError
Represents a general error reported by the API endpoint.
DetailedApiRequestError
Represents a specific error reported by the API endpoint.