WriteLogEntriesRequest class final

The parameters to WriteLogEntries.

Inheritance
  • Object
  • ProtoMessage
  • WriteLogEntriesRequest

Constructors

WriteLogEntriesRequest({String logName = '', MonitoredResource? resource, Map<String, String> labels = const {}, required List<LogEntry> entries, bool partialSuccess = false, bool dryRun = false})
WriteLogEntriesRequest.fromJson(Object? j)
factory

Properties

dryRun bool
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.
final
entries List<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 type.
final
hashCode int
The hash code for this object.
no setterinherited
labels Map<String, String>
Optional. Default labels that are added to the labels field of all log entries in entries. If a log entry already has a label with the same key as a label in this parameter, then the log entry's label is not changed. See LogEntry.
final
logName String
Optional. A default log resource name that is assigned to all log entries in entries that do not specify a value for log_name:
final
partialSuccess bool
Optional. Whether a batch's valid entries should be written even if some other entry failed due to a permanent error such as INVALID_ARGUMENT or PERMISSION_DENIED. If any entry failed, then the response status is the response status of one of the failed entries. The response will include error details in WriteLogEntriesPartialErrors.log_entry_errors keyed by the entries' zero-based index in the entries. Failed requests for which no entries are written will not include per-entry errors.
final
qualifiedName String
The fully qualified name of this message, i.e., google.protobuf.Duration or google.rpc.ErrorInfo.
finalinherited
resource → MonitoredResource?
Optional. A default monitored resource object that is assigned to all log entries in entries that do not specify a value for resource. Example:
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Object
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

fullyQualifiedName → const String