-
public final class OpenObserveExporterConfiguration.BuilderA Builder class for a OpenObserveExporterConfiguration.
-
-
Constructor Summary
Constructors Constructor Description OpenObserveExporterConfiguration.Builder(String apiKey)
-
Method Summary
Modifier and Type Method Description final OpenObserveExporterConfiguration.BuildersetServiceName(String serviceName)Sets the service name for the metric. final OpenObserveExporterConfiguration.BuildersetResource(String resource)Sets the resource name for the metric. final OpenObserveExporterConfiguration.BuildersetApplicationName(String applicationName)Sets the host application name for the metric. final OpenObserveExporterConfiguration.BuildersetIntervalInSeconds(Long intervalInSeconds)Sets the interval of meter sampling and upload. final OpenObserveExporterConfiguration.BuildersetApplicationId(String applicationId)Sets the host application id, default value is 10 seconds. final OpenObserveExporterConfiguration.BuildersetApplicationVersion(String applicationVersion)Sets the host application version name. final OpenObserveExporterConfiguration.BuildersetRun(String run)Sets the run environment description. final OpenObserveExporterConfiguration.BuildersetScenario(String scenario)Sets the benchmark scenario. final OpenObserveExporterConfiguration.BuildersetEndpoint(EndPoint endPoint)Sets the end point which the metric should be uploaded to. final OpenObserveExporterConfigurationbuild()Builds the instance of OpenObserveExporterConfiguration. -
-
Constructor Detail
-
OpenObserveExporterConfiguration.Builder
OpenObserveExporterConfiguration.Builder(String apiKey)
- Parameters:
apiKey- api key to submit metrics to the OpenObserve endpoint
-
-
Method Detail
-
setServiceName
final OpenObserveExporterConfiguration.Builder setServiceName(String serviceName)
Sets the service name for the metric.
- Parameters:
serviceName- service name used as resource service name in metric data
-
setResource
final OpenObserveExporterConfiguration.Builder setResource(String resource)
Sets the resource name for the metric.
- Parameters:
resource- resource name
-
setApplicationName
final OpenObserveExporterConfiguration.Builder setApplicationName(String applicationName)
Sets the host application name for the metric.
- Parameters:
applicationName- application name
-
setIntervalInSeconds
final OpenObserveExporterConfiguration.Builder setIntervalInSeconds(Long intervalInSeconds)
Sets the interval of meter sampling and upload.
- Parameters:
intervalInSeconds- interval in seconds
-
setApplicationId
final OpenObserveExporterConfiguration.Builder setApplicationId(String applicationId)
Sets the host application id, default value is 10 seconds.
- Parameters:
applicationId- host application id
-
setApplicationVersion
final OpenObserveExporterConfiguration.Builder setApplicationVersion(String applicationVersion)
Sets the host application version name.
- Parameters:
applicationVersion- application version name
-
setRun
final OpenObserveExporterConfiguration.Builder setRun(String run)
Sets the run environment description.
- Parameters:
run- run environment description
-
setScenario
final OpenObserveExporterConfiguration.Builder setScenario(String scenario)
Sets the benchmark scenario.
- Parameters:
scenario- benchmark scenario.
-
setEndpoint
final OpenObserveExporterConfiguration.Builder setEndpoint(EndPoint endPoint)
Sets the end point which the metric should be uploaded to.
- Parameters:
endPoint- endpoint of the metric upload.
-
build
final OpenObserveExporterConfiguration build()
Builds the instance of OpenObserveExporterConfiguration.
-
-
-
-