Get desktop application:
View/edit binary Protocol Buffers messages
Lists sinks.
The parameters to `ListSinks`.
Required. The resource name of the project containing the sinks. Example: `"projects/my-logging-project"`, `"projects/01234567890"`.
Optional. If the `pageToken` request parameter is supplied, then the next page of results in the set are retrieved. The `pageToken` parameter must be set with the value of the `nextPageToken` result parameter from the previous request. The value of `projectName` must be the same as in the previous request.
Optional. The maximum number of results to return from this request. Fewer results might be returned. You must check for the `nextPageToken` result to determine if additional results are available, which you can retrieve by passing the `nextPageToken` value in the `pageToken` parameter to the next request.
Result returned from `ListSinks`.
A list of sinks.
If there are more results than were returned, then `nextPageToken` is given a value in the response. To get the next batch of results, call this method again using the value of `nextPageToken` as `pageToken`.
Gets a sink.
The parameters to `GetSink`.
The resource name of the sink to return. Example: `"projects/my-project-id/sinks/my-sink-id"`.
Creates a sink.
The parameters to `CreateSink`.
The resource name of the project in which to create the sink. Example: `"projects/my-project-id"`. The new sink must be provided in the request.
The new sink, which must not have an identifier that already exists.
Creates or updates a sink.
The parameters to `UpdateSink`.
The resource name of the sink to update. Example: `"projects/my-project-id/sinks/my-sink-id"`. The updated sink must be provided in the request and have the same name that is specified in `sinkName`. If the sink does not exist, it is created.
The updated sink, whose name must be the same as the sink identifier in `sinkName`. If `sinkName` does not exist, then this method creates a new sink.
Deletes a sink.
The parameters to `DeleteSink`.
The resource name of the sink to delete. Example: `"projects/my-project-id/sinks/my-sink-id"`.
Service for ingesting and querying logs.
Deletes a log and all its log entries. The log will reappear if it receives new entries.
The parameters to DeleteLog.
Required. The resource name of the log to delete. Example: `"projects/my-project/logs/syslog"`.
Writes log entries to Cloud Logging. All log entries in Cloud Logging are written by this method.
The parameters to WriteLogEntries.
Optional. A default log resource name for those log entries in `entries` that do not specify their own `logName`. Example: `"projects/my-project/logs/syslog"`. See [LogEntry][google.logging.v2.LogEntry].
Optional. A default monitored resource for those log entries in `entries` that do not specify their own `resource`.
Optional. User-defined `key:value` items that are added to the `labels` field of each log entry in `entries`, except when a log entry specifies its own `key:value` item with the same key. Example: `{ "size": "large", "color":"red" }`
Required. The log entries to write. The log entries must have values for all required fields.
Result returned from WriteLogEntries.
(message has no fields)
Lists log entries. Use this method to retrieve log entries from Cloud Logging. For ways to export log entries, see [Exporting Logs](/logging/docs/export).
The parameters to `ListLogEntries`.
Required. One or more project IDs or project numbers from which to retrieve log entries. Examples of a project ID: `"my-project-1A"`, `"1234567890"`.
Optional. An [advanced logs filter](/logging/docs/view/advanced_filters). The filter is compared against all log entries in the projects specified by `projectIds`. Only entries that match the filter are retrieved. An empty filter matches all log entries.
Optional. How the results should be sorted. Presently, the only permitted values are `"timestamp"` (default) and `"timestamp desc"`. The first option returns entries in order of increasing values of `LogEntry.timestamp` (oldest first), and the second option returns entries in order of decreasing timestamps (newest first). Entries with equal timestamps are returned in order of `LogEntry.insertId`.
Optional. The maximum number of results to return from this request. Fewer results might be returned. You must check for the `nextPageToken` result to determine if additional results are available, which you can retrieve by passing the `nextPageToken` value in the `pageToken` parameter to the next request.
Optional. If the `pageToken` request parameter is supplied, then the next page of results in the set are retrieved. The `pageToken` parameter must be set with the value of the `nextPageToken` result parameter from the previous request. The values of `projectIds`, `filter`, and `orderBy` must be the same as in the previous request.
Result returned from `ListLogEntries`.
A list of log entries.
If there are more results than were returned, then `nextPageToken` is given a value in the response. To get the next batch of results, call this method again using the value of `nextPageToken` as `pageToken`.
Lists monitored resource descriptors that are used by Cloud Logging.
The parameters to ListMonitoredResourceDescriptors
Optional. The maximum number of results to return from this request. Fewer results might be returned. You must check for the `nextPageToken` result to determine if additional results are available, which you can retrieve by passing the `nextPageToken` value in the `pageToken` parameter to the next request.
Optional. If the `pageToken` request parameter is supplied, then the next page of results in the set are retrieved. The `pageToken` parameter must be set with the value of the `nextPageToken` result parameter from the previous request.
Result returned from ListMonitoredResourceDescriptors.
A list of resource descriptors.
If there are more results than were returned, then `nextPageToken` is returned in the response. To get the next batch of results, call this method again using the value of `nextPageToken` as `pageToken`.
Lists logs-based metrics.
The parameters to ListLogMetrics.
Required. The resource name of the project containing the metrics. Example: `"projects/my-project-id"`.
Optional. If the `pageToken` request parameter is supplied, then the next page of results in the set are retrieved. The `pageToken` parameter must be set with the value of the `nextPageToken` result parameter from the previous request. The value of `projectName` must be the same as in the previous request.
Optional. The maximum number of results to return from this request. Fewer results might be returned. You must check for the `nextPageToken` result to determine if additional results are available, which you can retrieve by passing the `nextPageToken` value in the `pageToken` parameter to the next request.
Result returned from ListLogMetrics.
A list of logs-based metrics.
If there are more results than were returned, then `nextPageToken` is given a value in the response. To get the next batch of results, call this method again using the value of `nextPageToken` as `pageToken`.
Gets a logs-based metric.
The parameters to GetLogMetric.
The resource name of the desired metric. Example: `"projects/my-project-id/metrics/my-metric-id"`.
Creates a logs-based metric.
The parameters to CreateLogMetric.
The resource name of the project in which to create the metric. Example: `"projects/my-project-id"`. The new metric must be provided in the request.
The new logs-based metric, which must not have an identifier that already exists.
Creates or updates a logs-based metric.
The parameters to UpdateLogMetric.
The resource name of the metric to update. Example: `"projects/my-project-id/metrics/my-metric-id"`. The updated metric must be provided in the request and have the same identifier that is specified in `metricName`. If the metric does not exist, it is created.
The updated metric, whose name must be the same as the metric identifier in `metricName`. If `metricName` does not exist, then a new metric is created.
Deletes a logs-based metric.
The parameters to DeleteLogMetric.
The resource name of the metric to delete. Example: `"projects/my-project-id/metrics/my-metric-id"`.
An individual entry in a log.
Used in:
,Required. The resource name of the log to which this log entry belongs. The format of the name is `projects/<project-id>/logs/<log-id%gt;`. Examples: `"projects/my-projectid/logs/syslog"`, `"projects/1234567890/logs/library.googleapis.com%2Fbook_log"`. The log ID part of resource name must be less than 512 characters long and can only include the following characters: upper and lower case alphanumeric characters: [A-Za-z0-9]; and punctuation characters: forward-slash, underscore, hyphen, and period. Forward-slash (`/`) characters in the log ID must be URL-encoded.
Required. The monitored resource associated with this log entry. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error.
Required. The log entry payload, which can be one of multiple types.
The log entry payload, represented as a protocol buffer. You can only use `protoPayload` values that belong to a set of approved types.
The log entry payload, represented as a Unicode string (UTF-8).
The log entry payload, represented as a structure that is expressed as a JSON object.
Optional. The time the event described by the log entry occurred. If omitted, Cloud Logging will use the time the log entry is written.
Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
Optional. A unique ID for the log entry. If you provide this field, the logging service considers other log entries in the same log with the same ID as duplicates which can be removed. If omitted, Cloud Logging will generate a unique ID for this log entry.
Optional. Information about the HTTP request associated with this log entry, if applicable.
Optional. A set of user-defined (key, value) data that provides additional information about the log entry.
Optional. Information about an operation associated with the log entry, if applicable.
Additional information about a potentially long-running operation with which a log entry is associated.
Used in:
Required. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operation.
Required. An arbitrary producer identifier. The combination of `id` and `producer` must be globally unique. Examples for `producer`: `"MyDivision.MyBigCompany.com"`, "github.com/MyProject/MyApplication"`.
Optional. Set this to True if this is the first log entry in the operation.
Optional. Set this to True if this is the last log entry in the operation.
Describes a logs-based metric. The value of the metric is the number of log entries that match a logs filter.
Used as response type in: MetricsServiceV2.CreateLogMetric, MetricsServiceV2.GetLogMetric, MetricsServiceV2.UpdateLogMetric
Used as field type in:
, ,Required. The client-assigned metric identifier. Example: `"severe_errors"`. Metric identifiers are limited to 1000 characters and can include only the following characters: `A-Z`, `a-z`, `0-9`, and the special characters `_-.,+!*',()%/\`. The forward-slash character (`/`) denotes a hierarchy of name pieces, and it cannot be the first character of the name.
A description of this metric, which is used in documentation.
An [advanced logs filter](/logging/docs/view/advanced_filters). Example: `"logName:syslog AND severity>=ERROR"`.
Describes a sink used to export log entries outside Cloud Logging.
Used as response type in: ConfigServiceV2.CreateSink, ConfigServiceV2.GetSink, ConfigServiceV2.UpdateSink
Used as field type in:
, ,Required. The client-assigned sink identifier. Example: `"my-severe-errors-to-pubsub"`. Sink identifiers are limited to 1000 characters and can include only the following characters: `A-Z`, `a-z`, `0-9`, and the special characters `_-.`.
The export destination. See [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs). Examples: `"storage.googleapis.com/a-bucket"`, `"bigquery.googleapis.com/projects/a-project-id/datasets/a-dataset"`.
An [advanced logs filter](/logging/docs/view/advanced_filters) that defines the log entries to be exported. The filter must be consistent with the log entry format designed by the `outputVersionFormat` parameter, regardless of the format of the log entry that was originally written to Cloud Logging. Example: `"logName:syslog AND severity>=ERROR"`.
The log entry version used when exporting log entries from this sink. This version does not have to correspond to the version of the log entry when it was written to Cloud Logging.
Available log entry formats. Log entries can be written to Cloud Logging in either format and can be exported in either format. Version 2 is the preferred format.
Used in:
An unspecified version format will default to V2.
`LogEntry` version 2 format.
`LogEntry` version 1 format.