Package org.apache.beam.sdk.io.datadog
Class DatadogIO.Write.Builder
java.lang.Object
org.apache.beam.sdk.io.datadog.DatadogIO.Write.Builder
- Enclosing class:
DatadogIO.Write
A builder for creating
DatadogIO.Write objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withApiKey(String apiKey) Method to set the API key for Logs API.withBatchCount(Integer batchCount) Method to set the Batch Count.withMaxBufferSize(Long maxBufferSize) Method to set the Max Buffer Size.withParallelism(Integer parallelism) Method to set the parallelism.Method to set the url for Logs API.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withUrl
Method to set the url for Logs API.- Parameters:
url- for Logs API- Returns:
DatadogIO.Write.Builder
-
withApiKey
Method to set the API key for Logs API.- Parameters:
apiKey- API key for Logs API- Returns:
DatadogIO.Write.Builder
-
withBatchCount
Method to set the Batch Count.- Parameters:
batchCount- for batching post requests.- Returns:
DatadogIO.Write.Builder
-
withMaxBufferSize
Method to set the Max Buffer Size.- Parameters:
maxBufferSize- for batching post requests.- Returns:
DatadogIO.Write.Builder
-
withParallelism
Method to set the parallelism.- Parameters:
parallelism- for controlling the number of http client connections.- Returns:
DatadogIO.Write.Builder
-
build
-