public static class WavefrontDirectIngestionClient.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder(java.lang.String server,
java.lang.String token)
Create a new WavefrontDirectIngestionClient.Builder
|
| Modifier and Type | Method and Description |
|---|---|
WavefrontDirectIngestionClient.Builder |
batchSize(int batchSize)
Set batch size to be reported during every flush.
|
WavefrontDirectIngestionClient |
build()
Creates a new client that connects directly to a given Wavefront service.
|
WavefrontDirectIngestionClient.Builder |
flushIntervalSeconds(int flushIntervalSeconds)
Set interval at which you want to flush points to Wavefront cluster.
|
WavefrontDirectIngestionClient.Builder |
maxQueueSize(int maxQueueSize)
Set max queue size of in-memory buffer.
|
WavefrontDirectIngestionClient.Builder |
messageSizeBytes(int bytes)
Set max message size, such that each batch is reported as one or more messages where no
message exceeds the specified size in bytes.
|
public Builder(java.lang.String server,
java.lang.String token)
server - A Wavefront server URL of the form "https://clusterName.wavefront.com"token - A valid API token with direct ingestion permissionspublic WavefrontDirectIngestionClient.Builder maxQueueSize(int maxQueueSize)
maxQueueSize - Max queue size of in-memory bufferthispublic WavefrontDirectIngestionClient.Builder batchSize(int batchSize)
batchSize - Batch size to be reported during every flush.thispublic WavefrontDirectIngestionClient.Builder flushIntervalSeconds(int flushIntervalSeconds)
flushIntervalSeconds - Interval at which you want to flush points to Wavefront clusterthispublic WavefrontDirectIngestionClient.Builder messageSizeBytes(int bytes)
Integer.MAX_VALUE.bytes - Maximum number of bytes of data that each reported message contains.thispublic WavefrontDirectIngestionClient build()
WavefrontDirectIngestionClientCopyright © 2023. All rights reserved.