The parameters to WriteLogEntries.
Optional. A default monitored resource object that is assigned
to all log entries in entries
that do not specify a value
for resource
. Example: :: { "type": "gce_instance",
"labels": { "zone": "us-central1-a", "instance_id":
"00000000000000000000" }} See
LogEntry][google.logging.v2.LogEntry]
.
Required. The log entries to send to Logging. The order of log
entries in this list does not matter. Values supplied in this
method's log_name
, resource
, and labels
fields are
copied into those log entries in this list that do not include
values for their corresponding fields. For more information,
see the LogEntry][google.logging.v2.LogEntry]
type. If the
timestamp
or insert_id
fields are missing in log
entries, then this method supplies the current time or a
unique identifier, respectively. The supplied values are
chosen so that, among the log entries that did not supply
their own values, the entries earlier in the list will sort
before the entries later in the list. See the entries.list
method. Log entries with timestamps that are more than the
logs retention period </logging/quota-policy>
in the past
or more than 24 hours in the future will not be available when
calling entries.list
. However, those log entries can still
be exported with LogSinks </logging/docs/api/tasks/exporting-
logs>
. To improve throughput and to avoid exceeding the
quota limit </logging/quota-policy>
__ for calls to
entries.write
, you should try to include several log
entries in this list, rather than calling this method for each
individual log entry.
Optional. If true, the request should expect normal response, but the entries won't be persisted nor exported. Useful for checking whether the logging API endpoints are working properly before sending valuable data.
Classes
LabelsEntry
API documentation for logging_v2.types.WriteLogEntriesRequest.LabelsEntry
class.