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:
- BillingAccountsResource
- EntriesResource
- ExclusionsResource
- FoldersResource
- LocationsResource
- LogsResource
- MonitoredResourceDescriptorsResource
- OrganizationsResource
- ProjectsResource
- SinksResource
- V2Resource
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
- BillingAccountsLocationsRecentQueriesResource
- BillingAccountsLocationsResource
- BillingAccountsLocationsSavedQueriesResource
- 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.
- DefaultSinkConfig
- Describes the custom _Default sink configuration that is used to override the built-in _Default sink configuration in newly created resource containers, such as projects or folders.
- EntriesResource
- ExclusionsResource
- FoldersExclusionsResource
- FoldersLocationsBucketsLinksResource
- FoldersLocationsBucketsResource
- FoldersLocationsBucketsViewsLogsResource
- FoldersLocationsBucketsViewsResource
- FoldersLocationsOperationsResource
- FoldersLocationsRecentQueriesResource
- FoldersLocationsResource
- FoldersLocationsSavedQueriesResource
- FoldersLogsResource
- FoldersResource
- FoldersSinksResource
- HttpRequest
- A common proto for logging HTTP requests.
- IndexConfig
- Configuration for an indexed field.
- Link
- 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.
- ListRecentQueriesResponse
- The response from ListRecentQueries.
- ListSavedQueriesResponse
- The response from ListSavedQueries.
- 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.
- LogErrorGroup
- Contains metadata that associates the LogEntry to Error Reporting error groups.
- LogExclusion
- Specifies a set of log entries that are filtered out by a sink.
- LoggingApi
- Writes log entries and manages your Cloud Logging configuration.
- LoggingQuery
- Describes a Cloud Logging query that can be run in Logs Explorer UI or via the logging API.In addition to the query itself, additional information may be stored to capture the display configuration and other UI state used in association with analysis of query results.
- LogMetric
- Describes a logs-based metric.
- LogSink
- Describes a sink used to export log entries to one of the following destinations: a Cloud Logging log bucket, a Cloud Storage bucket, a BigQuery dataset, a Pub/Sub topic, a Cloud project.A logs filter controls which log entries are exported.
- 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.
- OpsAnalyticsQuery
- Describes an analytics query that can be run in the Log Analytics page of Google Cloud console.Preview: This is a preview feature and may be subject to change before final release.
- OrganizationsExclusionsResource
- OrganizationsLocationsBucketsLinksResource
- OrganizationsLocationsBucketsResource
- OrganizationsLocationsBucketsViewsLogsResource
- OrganizationsLocationsBucketsViewsResource
- OrganizationsLocationsOperationsResource
- OrganizationsLocationsRecentQueriesResource
- OrganizationsLocationsResource
- OrganizationsLocationsSavedQueriesResource
- OrganizationsLogsResource
- OrganizationsResource
- OrganizationsSinksResource
- ProjectsExclusionsResource
- ProjectsLocationsBucketsLinksResource
- ProjectsLocationsBucketsResource
- ProjectsLocationsBucketsViewsLogsResource
- ProjectsLocationsBucketsViewsResource
- ProjectsLocationsOperationsResource
- ProjectsLocationsRecentQueriesResource
- ProjectsLocationsResource
- ProjectsLocationsSavedQueriesResource
- ProjectsLogsResource
- ProjectsMetricsResource
- ProjectsResource
- ProjectsSinksResource
- RecentQuery
- Describes a recent query executed on the Logs Explorer or Log Analytics page within the last ~ 30 days.
- SavedQuery
- Describes a query that has been saved by a user.
- Settings
- Describes the settings associated with a project, folder, organization, or billing account.
- SinksResource
- SummaryField
- A field from the LogEntry that is added to the summary line (https://cloud.google.com/logging/docs/view/logs-explorer-interface#add-summary-fields) for a query in the Logs Explorer.
- 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.