public abstract static class SplunkIO.Write extends PTransform<PCollection<SplunkEvent>,PCollection<SplunkWriteError>>
SplunkIO.Write
provides a PTransform
that allows writing SplunkEvent
records into a Splunk HTTP Event Collector end-point using HTTP POST requests.
In the event of an error, a PCollection<SplunkWriteError>
is
returned for further processing or storing into a dead-letter sink.
annotations, displayData, name, resourceHints
Constructor and Description |
---|
Write() |
Modifier and Type | Method and Description |
---|---|
PCollection<SplunkWriteError> |
expand(PCollection<SplunkEvent> input)
Override this method to specify how this
PTransform should be expanded on the given
InputT . |
SplunkIO.Write |
withBatchCount(java.lang.Integer batchCount)
Sets batchCount for sending multiple events in a single request to the HEC.
|
SplunkIO.Write |
withBatchCount(ValueProvider<java.lang.Integer> batchCount)
Same as
withBatchCount(Integer) but with ValueProvider . |
SplunkIO.Write |
withDisableCertificateValidation(java.lang.Boolean disableCertificateValidation)
Disables ssl certificate validation.
|
SplunkIO.Write |
withDisableCertificateValidation(ValueProvider<java.lang.Boolean> disableCertificateValidation)
Same as
withDisableCertificateValidation(Boolean) but with ValueProvider . |
SplunkIO.Write |
withEnableBatchLogs(java.lang.Boolean enableBatchLogs)
Method to enable batch logs.
|
SplunkIO.Write |
withEnableBatchLogs(ValueProvider<java.lang.Boolean> enableBatchLogs)
Same as
Builder#withEnableBatchLogs(ValueProvider) but without a ValueProvider . |
SplunkIO.Write |
withEnableGzipHttpCompression(java.lang.Boolean enableGzipHttpCompression)
Method to specify if HTTP requests sent to Splunk should be GZIP encoded.
|
SplunkIO.Write |
withEnableGzipHttpCompression(ValueProvider<java.lang.Boolean> enableGzipHttpCompression)
Same as
Builder#withEnableGzipHttpCompression(ValueProvider) but without a ValueProvider . |
SplunkIO.Write |
withParallelism(java.lang.Integer parallelism)
Sets the number of parallel http client connections to the HEC.
|
SplunkIO.Write |
withParallelism(ValueProvider<java.lang.Integer> parallelism)
Same as
withBatchCount(Integer) but with ValueProvider . |
SplunkIO.Write |
withRootCaCertificatePath(java.lang.String rootCaCertificatePath)
Method to set the root CA certificate.
|
SplunkIO.Write |
withRootCaCertificatePath(ValueProvider<java.lang.String> rootCaCertificatePath)
Same as
Builder#withRootCaCertificatePath(ValueProvider) but without a ValueProvider . |
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setDisplayData, setResourceHints, toString, validate, validate
public PCollection<SplunkWriteError> expand(PCollection<SplunkEvent> input)
PTransform
PTransform
should be expanded on the given
InputT
.
NOTE: This method should not be called directly. Instead apply the PTransform
should
be applied to the InputT
using the apply
method.
Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
expand
in class PTransform<PCollection<SplunkEvent>,PCollection<SplunkWriteError>>
public SplunkIO.Write withBatchCount(ValueProvider<java.lang.Integer> batchCount)
withBatchCount(Integer)
but with ValueProvider
.batchCount
- for batching requestspublic SplunkIO.Write withBatchCount(java.lang.Integer batchCount)
batchCount
- for batching requestspublic SplunkIO.Write withParallelism(ValueProvider<java.lang.Integer> parallelism)
withBatchCount(Integer)
but with ValueProvider
.parallelism
- for controlling the number of concurrent http client connectionspublic SplunkIO.Write withParallelism(java.lang.Integer parallelism)
parallelism
- controlling the number of http client connectionsBuilder
public SplunkIO.Write withDisableCertificateValidation(ValueProvider<java.lang.Boolean> disableCertificateValidation)
withDisableCertificateValidation(Boolean)
but with ValueProvider
.disableCertificateValidation
- for disabling certificate validationBuilder
public SplunkIO.Write withDisableCertificateValidation(java.lang.Boolean disableCertificateValidation)
disableCertificateValidation
- for disabling certificate validationpublic SplunkIO.Write withRootCaCertificatePath(ValueProvider<java.lang.String> rootCaCertificatePath)
Builder#withRootCaCertificatePath(ValueProvider)
but without a ValueProvider
.rootCaCertificatePath
- Path to root CA certificateBuilder
public SplunkIO.Write withRootCaCertificatePath(java.lang.String rootCaCertificatePath)
rootCaCertificatePath
- Path to root CA certificateBuilder
public SplunkIO.Write withEnableBatchLogs(ValueProvider<java.lang.Boolean> enableBatchLogs)
Builder#withEnableBatchLogs(ValueProvider)
but without a ValueProvider
.enableBatchLogs
- whether to enable Gzip encoding.Builder
public SplunkIO.Write withEnableBatchLogs(java.lang.Boolean enableBatchLogs)
enableBatchLogs
- whether to enable Gzip encoding.Builder
public SplunkIO.Write withEnableGzipHttpCompression(ValueProvider<java.lang.Boolean> enableGzipHttpCompression)
Builder#withEnableGzipHttpCompression(ValueProvider)
but without a ValueProvider
.enableGzipHttpCompression
- whether to enable Gzip encoding.Builder
public SplunkIO.Write withEnableGzipHttpCompression(java.lang.Boolean enableGzipHttpCompression)
enableGzipHttpCompression
- whether to enable Gzip encoding.Builder