@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.724Z") @Stability(value=Stable) public interface GelfLogDriverProps extends software.amazon.jsii.JsiiSerializable, BaseLogDriverProps
Example:
// Create a Task Definition for the container to start
Ec2TaskDefinition taskDefinition = new Ec2TaskDefinition(this, "TaskDef");
taskDefinition.addContainer("TheContainer", ContainerDefinitionOptions.builder()
.image(ContainerImage.fromRegistry("example-image"))
.memoryLimitMiB(256)
.logging(LogDrivers.gelf(GelfLogDriverProps.builder().address("my-gelf-address").build()))
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
GelfLogDriverProps.Builder
A builder for
GelfLogDriverProps |
static class |
GelfLogDriverProps.Jsii$Proxy
An implementation for
GelfLogDriverProps |
| Modifier and Type | Method and Description |
|---|---|
static GelfLogDriverProps.Builder |
builder() |
String |
getAddress()
The address of the GELF server.
|
default Number |
getCompressionLevel()
UDP Only The level of compression when gzip or zlib is the gelf-compression-type.
|
default GelfCompressionType |
getCompressionType()
UDP Only The type of compression the GELF driver uses to compress each log message.
|
default Number |
getTcpMaxReconnect()
TCP Only The maximum number of reconnection attempts when the connection drop.
|
default Duration |
getTcpReconnectDelay()
TCP Only The number of seconds to wait between reconnection attempts.
|
getEnv, getEnvRegex, getLabels, getTag@Stability(value=Stable) @NotNull String getAddress()
tcp and udp are the only supported URI specifier and you must specify the port.
@Stability(value=Stable) @Nullable default Number getCompressionLevel()
An integer in the range of -1 to 9 (BestCompression). Higher levels provide more compression at lower speed. Either -1 or 0 disables compression.
Default: - 1
@Stability(value=Stable) @Nullable default GelfCompressionType getCompressionType()
Allowed values are gzip, zlib and none.
Default: - gzip
@Stability(value=Stable) @Nullable default Number getTcpMaxReconnect()
A positive integer.
Default: - 3
@Stability(value=Stable) @Nullable default Duration getTcpReconnectDelay()
A positive integer.
Default: - 1
@Stability(value=Stable) static GelfLogDriverProps.Builder builder()
builder in interface BaseLogDriverPropsGelfLogDriverProps.Builder of GelfLogDriverPropsCopyright © 2022. All rights reserved.