public static final class Sink.Builder extends SinkInfo.Builder
Sink objects.| Modifier and Type | Method and Description |
|---|---|
Sink |
build()
Creates a
SinkInfo object for this builder. |
Sink.Builder |
destination(SinkInfo.Destination destination)
Sets the export destination.
|
Sink.Builder |
filter(String filter)
Sets an advanced logs filter.
|
Sink.Builder |
name(String name)
Sets the name of the sink.
|
Sink.Builder |
versionFormat(SinkInfo.VersionFormat versionFormat)
Sets the log entry version to use for this sink's exported log entries.
|
public Sink.Builder name(String name)
SinkInfo.Buildermy-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 _-..name in class SinkInfo.Builderpublic Sink.Builder destination(SinkInfo.Destination destination)
SinkInfo.BuilderSinkInfo.Destination.BucketDestination object to create a
sink that exports logs to a Google Cloud Storage bucket. Use a
SinkInfo.Destination.DatasetDestination object to create a sink that exports logs to a Google
Cloud BigQuery dataset. Use a SinkInfo.Destination.TopicDestination object to create a sink
that exports logs to a Google Cloud Pub/Sub topic.destination in class SinkInfo.Builderpublic Sink.Builder filter(String filter)
SinkInfo.Builder#versionFormat(VersionFormat), regardless of the format of the log entry that was
originally written to Stackdriver Logging. Example (V2 format):
logName=projects/my-projectid/logs/syslog AND severity>=ERROR.filter in class SinkInfo.Builderpublic Sink.Builder versionFormat(SinkInfo.VersionFormat versionFormat)
SinkInfo.BuilderversionFormat in class SinkInfo.Builderpublic Sink build()
SinkInfo.BuilderSinkInfo object for this builder.build in class SinkInfo.BuilderCopyright © 2016 Google. All rights reserved.