logging/v2 library

Cloud Logging API - v2

Writes log entries and manages your Cloud Logging configuration.

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

Create an instance of LoggingApi to access these resources:

Classes

BigQueryDataset
Describes a BigQuery dataset that was created by a link.
BigQueryOptions
Options that change functionality of a sink exporting data to BigQuery.
BillingAccountsExclusionsResource
BillingAccountsLocationsBucketsLinksResource
BillingAccountsLocationsBucketsResource
BillingAccountsLocationsBucketsViewsLogsResource
BillingAccountsLocationsBucketsViewsResource
BillingAccountsLocationsOperationsResource
BillingAccountsLocationsResource
BillingAccountsLogsResource
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 Log Router can currently only be configured for Google Cloud organizations.
CopyLogEntriesRequest
The parameters to CopyLogEntries.
EntriesResource
ExclusionsResource
FoldersExclusionsResource
FoldersLocationsBucketsLinksResource
FoldersLocationsBucketsResource
FoldersLocationsBucketsViewsLogsResource
FoldersLocationsBucketsViewsResource
FoldersLocationsOperationsResource
FoldersLocationsResource
FoldersLogsResource
FoldersResource
FoldersSinksResource
HttpRequest
A common proto for logging HTTP requests.
IndexConfig
Configuration for an indexed field.
Describes a link connected to an analytics enabled bucket.
ListBucketsResponse
The response from ListBuckets.
ListExclusionsResponse
Result returned from ListExclusions.
ListLinksResponse
The response from ListLinks.
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.
LocationsBucketsLinksResource
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.
LogSplit
Additional information used to correlate multiple log entries.
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
OrganizationsLocationsBucketsLinksResource
OrganizationsLocationsBucketsResource
OrganizationsLocationsBucketsViewsLogsResource
OrganizationsLocationsBucketsViewsResource
OrganizationsLocationsOperationsResource
OrganizationsLocationsResource
OrganizationsLogsResource
OrganizationsResource
OrganizationsSinksResource
ProjectsExclusionsResource
ProjectsLocationsBucketsLinksResource
ProjectsLocationsBucketsResource
ProjectsLocationsBucketsViewsLogsResource
ProjectsLocationsBucketsViewsResource
ProjectsLocationsOperationsResource
ProjectsLocationsResource
ProjectsLogsResource
ProjectsMetricsResource
ProjectsResource
ProjectsSinksResource
Settings
Describes the settings associated with a project, folder, organization, billing account, or flexible resource.
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 a Google Cloud location.
MetricDescriptorMetadata = $MetricDescriptorMetadata
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.