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.
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 |
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 . |
compose, compose, getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, 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 validation