@Stability(value=Experimental) @Internal public static final class JsonFileLogDriverProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements JsonFileLogDriverProps
JsonFileLogDriverPropssoftware.amazon.jsii.JsiiObject.InitializationModeJsonFileLogDriverProps.Builder, JsonFileLogDriverProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(Boolean compress,
Number maxFile,
String maxSize,
List<String> env,
String envRegex,
List<String> labels,
String tag)
Constructor that initializes the object based on literal property values passed by the
JsonFileLogDriverProps.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Boolean |
getCompress()
(experimental) Toggles compression for rotated logs.
|
List<String> |
getEnv()
(experimental) The env option takes an array of keys.
|
String |
getEnvRegex()
(experimental) The env-regex option is similar to and compatible with env.
|
List<String> |
getLabels()
(experimental) The labels option takes an array of keys.
|
Number |
getMaxFile()
(experimental) The maximum number of log files that can be present.
|
String |
getMaxSize()
(experimental) The maximum size of the log before it is rolled.
|
String |
getTag()
(experimental) By default, Docker uses the first 12 characters of the container ID to tag log messages.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.public final Boolean getCompress()
JsonFileLogDriverPropsDefault: - false
getCompress in interface JsonFileLogDriverPropspublic final Number getMaxFile()
JsonFileLogDriverPropsIf rolling the logs creates excess files, the oldest file is removed. Only effective when max-size is also set. A positive integer.
Default: - 1
getMaxFile in interface JsonFileLogDriverPropspublic final String getMaxSize()
JsonFileLogDriverPropsA positive integer plus a modifier representing the unit of measure (k, m, or g).
Default: - -1 (unlimited)
getMaxSize in interface JsonFileLogDriverPropspublic final List<String> getEnv()
BaseLogDriverPropsIf 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
getEnv in interface BaseLogDriverPropspublic final String getEnvRegex()
BaseLogDriverPropsIts value is a regular expression to match logging-related environment variables. It is used for advanced log tag options.
Default: - No envRegex
getEnvRegex in interface BaseLogDriverPropspublic final List<String> getLabels()
BaseLogDriverPropsIf 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
getLabels in interface BaseLogDriverPropspublic final String getTag()
BaseLogDriverPropsRefer to the log tag option documentation for customizing the log tag format.
Default: - The first 12 characters of the container ID
getTag in interface BaseLogDriverProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.