Class FluentdConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.tracers.fluentd.v3.FluentdConfig
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,FluentdConfigOrBuilder,Serializable
public final class FluentdConfig
extends com.google.protobuf.GeneratedMessageV3
implements FluentdConfigOrBuilder
Configuration for the Fluentd tracer. This tracer extension will send the emitted traces over a TCP connection to an upstream that is accepting the Fluentd Forward Protocol as described in: `Fluentd Forward Protocol Specification <https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1>`_. [#extension: envoy.tracers.fluentd] [#next-free-field: 7]Protobuf type
envoy.extensions.tracers.fluentd.v3.FluentdConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfiguration for the Fluentd tracer.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.protobuf.DurationInterval for flushing traces to the TCP stream.com.google.protobuf.DurationOrBuilderInterval for flushing traces to the TCP stream.com.google.protobuf.UInt32ValueSoft size limit in bytes for access log entries buffer.com.google.protobuf.UInt32ValueOrBuilderSoft size limit in bytes for access log entries buffer.The upstream cluster to connect to for streaming the Fluentd messages.com.google.protobuf.ByteStringThe upstream cluster to connect to for streaming the Fluentd messages.static FluentdConfigstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<FluentdConfig>Optional retry, in case upstream connection has failed.Optional retry, in case upstream connection has failed.intThe prefix to use when emitting tracer stats.com.google.protobuf.ByteStringThe prefix to use when emitting tracer stats.getTag()A tag is a string separated with ``.`` (e.g.com.google.protobuf.ByteStringA tag is a string separated with ``.`` (e.g.booleanInterval for flushing traces to the TCP stream.booleanSoft size limit in bytes for access log entries buffer.inthashCode()booleanOptional retry, in case upstream connection has failed.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic FluentdConfig.Builderstatic FluentdConfig.BuildernewBuilder(FluentdConfig prototype) protected FluentdConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static FluentdConfigparseDelimitedFrom(InputStream input) static FluentdConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FluentdConfigparseFrom(byte[] data) static FluentdConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FluentdConfigparseFrom(com.google.protobuf.ByteString data) static FluentdConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FluentdConfigparseFrom(com.google.protobuf.CodedInputStream input) static FluentdConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FluentdConfigparseFrom(InputStream input) static FluentdConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FluentdConfigparseFrom(ByteBuffer data) static FluentdConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<FluentdConfig>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
CLUSTER_FIELD_NUMBER
public static final int CLUSTER_FIELD_NUMBER- See Also:
-
TAG_FIELD_NUMBER
public static final int TAG_FIELD_NUMBER- See Also:
-
STAT_PREFIX_FIELD_NUMBER
public static final int STAT_PREFIX_FIELD_NUMBER- See Also:
-
BUFFER_FLUSH_INTERVAL_FIELD_NUMBER
public static final int BUFFER_FLUSH_INTERVAL_FIELD_NUMBER- See Also:
-
BUFFER_SIZE_BYTES_FIELD_NUMBER
public static final int BUFFER_SIZE_BYTES_FIELD_NUMBER- See Also:
-
RETRY_POLICY_FIELD_NUMBER
public static final int RETRY_POLICY_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getCluster
The upstream cluster to connect to for streaming the Fluentd messages.
string cluster = 1 [(.validate.rules) = { ... }- Specified by:
getClusterin interfaceFluentdConfigOrBuilder- Returns:
- The cluster.
-
getClusterBytes
public com.google.protobuf.ByteString getClusterBytes()The upstream cluster to connect to for streaming the Fluentd messages.
string cluster = 1 [(.validate.rules) = { ... }- Specified by:
getClusterBytesin interfaceFluentdConfigOrBuilder- Returns:
- The bytes for cluster.
-
getTag
A tag is a string separated with ``.`` (e.g. ``log.type``) to categorize events. See: https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#message-modes
string tag = 2 [(.validate.rules) = { ... }- Specified by:
getTagin interfaceFluentdConfigOrBuilder- Returns:
- The tag.
-
getTagBytes
public com.google.protobuf.ByteString getTagBytes()A tag is a string separated with ``.`` (e.g. ``log.type``) to categorize events. See: https://github.com/fluent/fluentd/wiki/Forward-Protocol-Specification-v1#message-modes
string tag = 2 [(.validate.rules) = { ... }- Specified by:
getTagBytesin interfaceFluentdConfigOrBuilder- Returns:
- The bytes for tag.
-
getStatPrefix
The prefix to use when emitting tracer stats.
string stat_prefix = 3 [(.validate.rules) = { ... }- Specified by:
getStatPrefixin interfaceFluentdConfigOrBuilder- Returns:
- The statPrefix.
-
getStatPrefixBytes
public com.google.protobuf.ByteString getStatPrefixBytes()The prefix to use when emitting tracer stats.
string stat_prefix = 3 [(.validate.rules) = { ... }- Specified by:
getStatPrefixBytesin interfaceFluentdConfigOrBuilder- Returns:
- The bytes for statPrefix.
-
hasBufferFlushInterval
public boolean hasBufferFlushInterval()Interval for flushing traces to the TCP stream. Tracer will flush requests every time this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to 1 second.
.google.protobuf.Duration buffer_flush_interval = 4 [(.validate.rules) = { ... }- Specified by:
hasBufferFlushIntervalin interfaceFluentdConfigOrBuilder- Returns:
- Whether the bufferFlushInterval field is set.
-
getBufferFlushInterval
public com.google.protobuf.Duration getBufferFlushInterval()Interval for flushing traces to the TCP stream. Tracer will flush requests every time this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to 1 second.
.google.protobuf.Duration buffer_flush_interval = 4 [(.validate.rules) = { ... }- Specified by:
getBufferFlushIntervalin interfaceFluentdConfigOrBuilder- Returns:
- The bufferFlushInterval.
-
getBufferFlushIntervalOrBuilder
public com.google.protobuf.DurationOrBuilder getBufferFlushIntervalOrBuilder()Interval for flushing traces to the TCP stream. Tracer will flush requests every time this interval is elapsed, or when batch size limit is hit, whichever comes first. Defaults to 1 second.
.google.protobuf.Duration buffer_flush_interval = 4 [(.validate.rules) = { ... }- Specified by:
getBufferFlushIntervalOrBuilderin interfaceFluentdConfigOrBuilder
-
hasBufferSizeBytes
public boolean hasBufferSizeBytes()Soft size limit in bytes for access log entries buffer. The logger will buffer requests until this limit it hit, or every time flush interval is elapsed, whichever comes first. When the buffer limit is hit, the logger will immediately flush the buffer contents. Setting it to zero effectively disables the batching. Defaults to 16384.
.google.protobuf.UInt32Value buffer_size_bytes = 5;- Specified by:
hasBufferSizeBytesin interfaceFluentdConfigOrBuilder- Returns:
- Whether the bufferSizeBytes field is set.
-
getBufferSizeBytes
public com.google.protobuf.UInt32Value getBufferSizeBytes()Soft size limit in bytes for access log entries buffer. The logger will buffer requests until this limit it hit, or every time flush interval is elapsed, whichever comes first. When the buffer limit is hit, the logger will immediately flush the buffer contents. Setting it to zero effectively disables the batching. Defaults to 16384.
.google.protobuf.UInt32Value buffer_size_bytes = 5;- Specified by:
getBufferSizeBytesin interfaceFluentdConfigOrBuilder- Returns:
- The bufferSizeBytes.
-
getBufferSizeBytesOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getBufferSizeBytesOrBuilder()Soft size limit in bytes for access log entries buffer. The logger will buffer requests until this limit it hit, or every time flush interval is elapsed, whichever comes first. When the buffer limit is hit, the logger will immediately flush the buffer contents. Setting it to zero effectively disables the batching. Defaults to 16384.
.google.protobuf.UInt32Value buffer_size_bytes = 5;- Specified by:
getBufferSizeBytesOrBuilderin interfaceFluentdConfigOrBuilder
-
hasRetryPolicy
public boolean hasRetryPolicy()Optional retry, in case upstream connection has failed. If this field is not set, the default values will be applied.
.envoy.config.core.v3.RetryPolicy retry_policy = 6;- Specified by:
hasRetryPolicyin interfaceFluentdConfigOrBuilder- Returns:
- Whether the retryPolicy field is set.
-
getRetryPolicy
Optional retry, in case upstream connection has failed. If this field is not set, the default values will be applied.
.envoy.config.core.v3.RetryPolicy retry_policy = 6;- Specified by:
getRetryPolicyin interfaceFluentdConfigOrBuilder- Returns:
- The retryPolicy.
-
getRetryPolicyOrBuilder
Optional retry, in case upstream connection has failed. If this field is not set, the default values will be applied.
.envoy.config.core.v3.RetryPolicy retry_policy = 6;- Specified by:
getRetryPolicyOrBuilderin interfaceFluentdConfigOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static FluentdConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FluentdConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FluentdConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FluentdConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FluentdConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FluentdConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static FluentdConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static FluentdConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static FluentdConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static FluentdConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected FluentdConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-