@Stability(value=Experimental) public static final class GelfLogDriverProps.Builder extends Object implements software.amazon.jsii.Builder<GelfLogDriverProps>
GelfLogDriverProps
Constructor and Description |
---|
Builder() |
@Stability(value=Experimental) public GelfLogDriverProps.Builder address(String address)
GelfLogDriverProps.getAddress()
address
- The address of the GELF server. This parameter is required.
tcp and udp are the only supported URI
specifier and you must specify the port.this
@Stability(value=Experimental) public GelfLogDriverProps.Builder compressionLevel(Number compressionLevel)
GelfLogDriverProps.getCompressionLevel()
compressionLevel
- UDP Only The level of compression when gzip or zlib is the gelf-compression-type.
An integer in the range of -1 to 9 (BestCompression). Higher levels provide more
compression at lower speed. Either -1 or 0 disables compression.this
@Stability(value=Experimental) public GelfLogDriverProps.Builder compressionType(GelfCompressionType compressionType)
GelfLogDriverProps.getCompressionType()
compressionType
- UDP Only The type of compression the GELF driver uses to compress each log message.
Allowed values are gzip, zlib and none.this
@Stability(value=Experimental) public GelfLogDriverProps.Builder tcpMaxReconnect(Number tcpMaxReconnect)
GelfLogDriverProps.getTcpMaxReconnect()
tcpMaxReconnect
- TCP Only The maximum number of reconnection attempts when the connection drop.
A positive integer.this
@Stability(value=Experimental) public GelfLogDriverProps.Builder tcpReconnectDelay(Duration tcpReconnectDelay)
GelfLogDriverProps.getTcpReconnectDelay()
tcpReconnectDelay
- TCP Only The number of seconds to wait between reconnection attempts.
A positive integer.this
@Stability(value=Experimental) public GelfLogDriverProps.Builder env(List<String> env)
BaseLogDriverProps.getEnv()
env
- The env option takes an array of keys.
If there is collision between
label and env keys, the value of the env takes precedence. Adds additional fields
to the extra attributes of a logging message.this
@Stability(value=Experimental) public GelfLogDriverProps.Builder envRegex(String envRegex)
BaseLogDriverProps.getEnvRegex()
envRegex
- The env-regex option is similar to and compatible with env.
Its value is a regular
expression to match logging-related environment variables. It is used for advanced
log tag options.this
@Stability(value=Experimental) public GelfLogDriverProps.Builder labels(List<String> labels)
BaseLogDriverProps.getLabels()
labels
- The labels option takes an array of keys.
If there is collision
between label and env keys, the value of the env takes precedence. Adds additional
fields to the extra attributes of a logging message.this
@Stability(value=Experimental) public GelfLogDriverProps.Builder tag(String tag)
BaseLogDriverProps.getTag()
tag
- By default, Docker uses the first 12 characters of the container ID to tag log messages.
Refer to the log tag option documentation for customizing the
log tag format.this
@Stability(value=Experimental) public GelfLogDriverProps build()
build
in interface software.amazon.jsii.Builder<GelfLogDriverProps>
GelfLogDriverProps
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.