LogSink class final

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. A logs filter controls which log entries are exported. The sink must be created within a project, organization, billing account, or folder.

Inheritance

Constructors

LogSink({required String name, required String destination, String filter = '', String description = '', bool disabled = false, List<LogExclusion> exclusions = const [], LogSink_VersionFormat outputVersionFormat = LogSink_VersionFormat.$default, String writerIdentity = '', bool includeChildren = false, BigQueryOptions? bigqueryOptions, Timestamp? createTime, Timestamp? updateTime})
LogSink.fromJson(Object? j)
factory

Properties

bigqueryOptions BigQueryOptions?
Optional. Options that affect sinks exporting data to BigQuery.
final
createTime → Timestamp?
Output only. The creation timestamp of the sink.
final
description String
Optional. A description of this sink.
final
destination String
Required. The export destination:
final
disabled bool
Optional. If set to true, then this sink is disabled and it does not export any log entries.
final
exclusions List<LogExclusion>
Optional. Log entries that match any of these exclusion filters will not be exported.
final
filter String
Optional. An advanced logs filter. The only exported log entries are those that are in the resource owning the sink and that match the filter.
final
hashCode int
The hash code for this object.
no setterinherited
includeChildren bool
Optional. This field applies only to sinks owned by organizations and folders. If the field is false, the default, only the logs owned by the sink's parent resource are available for export. If the field is true, then log entries from all the projects, folders, and billing accounts contained in the sink's parent resource are also available for export. Whether a particular log entry from the children is exported depends on the sink's filter expression.
final
name String
Required. The client-assigned sink identifier, unique within the project.
final
outputVersionFormat LogSink_VersionFormat
Deprecated. This field is unused.
final
qualifiedName String
The fully qualified name of this message, i.e., google.protobuf.Duration or google.rpc.ErrorInfo.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updateTime → Timestamp?
Output only. The last update timestamp of the sink.
final
writerIdentity String
Output only. An IAM identity—a service account or group—under which Cloud Logging writes the exported log entries to the sink's destination. This field is either set by specifying custom_writer_identity or set automatically by sinks.create and sinks.update based on the value of unique_writer_identity in those methods.
final

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