@Stability(value=Experimental) public static final class FluentdLogDriver.Builder extends Object implements software.amazon.jsii.Builder<FluentdLogDriver>
FluentdLogDriver.| Modifier and Type | Method and Description |
|---|---|
FluentdLogDriver.Builder |
address(String address)
(experimental) By default, the logging driver connects to localhost:24224.
|
FluentdLogDriver.Builder |
asyncConnect(Boolean asyncConnect)
(experimental) Docker connects to Fluentd in the background.
|
FluentdLogDriver.Builder |
bufferLimit(Number bufferLimit)
(experimental) The amount of data to buffer before flushing to disk.
|
FluentdLogDriver |
build() |
static FluentdLogDriver.Builder |
create() |
FluentdLogDriver.Builder |
env(List<String> env)
(experimental) The env option takes an array of keys.
|
FluentdLogDriver.Builder |
envRegex(String envRegex)
(experimental) The env-regex option is similar to and compatible with env.
|
FluentdLogDriver.Builder |
labels(List<String> labels)
(experimental) The labels option takes an array of keys.
|
FluentdLogDriver.Builder |
maxRetries(Number maxRetries)
(experimental) The maximum number of retries.
|
FluentdLogDriver.Builder |
retryWait(Duration retryWait)
(experimental) How long to wait between retries.
|
FluentdLogDriver.Builder |
subSecondPrecision(Boolean subSecondPrecision)
(experimental) Generates event logs in nanosecond resolution.
|
FluentdLogDriver.Builder |
tag(String tag)
(experimental) By default, Docker uses the first 12 characters of the container ID to tag log messages.
|
@Stability(value=Experimental) public static FluentdLogDriver.Builder create()
FluentdLogDriver.Builder.@Stability(value=Experimental) public FluentdLogDriver.Builder env(List<String> env)
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.
Default: - No env
env - The env option takes an array of keys. This parameter is required.this@Stability(value=Experimental) public FluentdLogDriver.Builder envRegex(String envRegex)
Its value is a regular expression to match logging-related environment variables. It is used for advanced log tag options.
Default: - No envRegex
envRegex - The env-regex option is similar to and compatible with env. This parameter is required.this@Stability(value=Experimental) public FluentdLogDriver.Builder labels(List<String> labels)
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.
Default: - No labels
labels - The labels option takes an array of keys. This parameter is required.this@Stability(value=Experimental) public FluentdLogDriver.Builder tag(String tag)
Refer to the log tag option documentation for customizing the log tag format.
Default: - The first 12 characters of the container ID
tag - By default, Docker uses the first 12 characters of the container ID to tag log messages. This parameter is required.this@Stability(value=Experimental) public FluentdLogDriver.Builder address(String address)
Supply the address option to connect to a different address. tcp(default) and unix sockets are supported.
Default: - address not set.
address - By default, the logging driver connects to localhost:24224. This parameter is required.this@Stability(value=Experimental) public FluentdLogDriver.Builder asyncConnect(Boolean asyncConnect)
Messages are buffered until the connection is established.
Default: - false
asyncConnect - Docker connects to Fluentd in the background. This parameter is required.this@Stability(value=Experimental) public FluentdLogDriver.Builder bufferLimit(Number bufferLimit)
Default: - The amount of RAM available to the container.
bufferLimit - The amount of data to buffer before flushing to disk. This parameter is required.this@Stability(value=Experimental) public FluentdLogDriver.Builder maxRetries(Number maxRetries)
Default: - 4294967295 (2**32 - 1).
maxRetries - The maximum number of retries. This parameter is required.this@Stability(value=Experimental) public FluentdLogDriver.Builder retryWait(Duration retryWait)
Default: - 1 second
retryWait - How long to wait between retries. This parameter is required.this@Stability(value=Experimental) public FluentdLogDriver.Builder subSecondPrecision(Boolean subSecondPrecision)
Default: - false
subSecondPrecision - Generates event logs in nanosecond resolution. This parameter is required.this@Stability(value=Experimental) public FluentdLogDriver build()
build in interface software.amazon.jsii.Builder<FluentdLogDriver>Copyright © 2021. All rights reserved.