public abstract static class SinkInfo.Builder extends Object
SinkInfo objects.| Constructor and Description |
|---|
SinkInfo.Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract SinkInfo |
build()
Creates a
SinkInfo object for this builder. |
abstract SinkInfo.Builder |
destination(SinkInfo.Destination destination)
Sets the export destination.
|
abstract SinkInfo.Builder |
filter(String filter)
Sets an advanced logs filter.
|
abstract SinkInfo.Builder |
name(String name)
Sets the name of the sink.
|
abstract SinkInfo.Builder |
versionFormat(SinkInfo.VersionFormat versionFormat)
Sets the log entry version to use for this sink's exported log entries.
|
public abstract SinkInfo.Builder name(String name)
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 _-..public abstract SinkInfo.Builder destination(SinkInfo.Destination destination)
SinkInfo.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.public abstract SinkInfo.Builder filter(String filter)
#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.public abstract SinkInfo.Builder versionFormat(SinkInfo.VersionFormat versionFormat)
public abstract SinkInfo build()
SinkInfo object for this builder.Copyright © 2016 Google. All rights reserved.