public static class WavefrontSdkMetricsRegistry.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder(WavefrontMetricSender wavefrontMetricSender)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
WavefrontSdkMetricsRegistry |
build()
Builds a registry.
|
WavefrontSdkMetricsRegistry.Builder |
prefix(java.lang.String prefix)
Sets the name prefix for the registry's metrics.
|
WavefrontSdkMetricsRegistry.Builder |
reportingIntervalSeconds(int reportingIntervalSeconds)
Sets the interval in seconds at which to report metrics to Wavefront.
|
WavefrontSdkMetricsRegistry.Builder |
sendSdkMetrics(boolean sendSdkMetrics)
If this is set to false the sender will never actually send metrics and will simply flush metrics
|
WavefrontSdkMetricsRegistry.Builder |
source(java.lang.String source)
Sets the source (or host) that is sending the metrics.
|
WavefrontSdkMetricsRegistry.Builder |
tag(java.lang.String key,
java.lang.String value)
Adds a point tag associated with the registry's metrics.
|
WavefrontSdkMetricsRegistry.Builder |
tags(java.util.Map<java.lang.String,java.lang.String> tags)
Adds point tags associated with the registry's metrics.
|
public Builder(WavefrontMetricSender wavefrontMetricSender)
wavefrontMetricSender - The sender instance used to send metrics to Wavefront.public WavefrontSdkMetricsRegistry.Builder reportingIntervalSeconds(int reportingIntervalSeconds)
reportingIntervalSeconds - Interval at which to report metrics to Wavefront.thispublic WavefrontSdkMetricsRegistry.Builder source(java.lang.String source)
source - The source (or host) that is sending the metrics.thispublic WavefrontSdkMetricsRegistry.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
tags - The point tags associated with the registry's metrics.thispublic WavefrontSdkMetricsRegistry.Builder tag(java.lang.String key, java.lang.String value)
key - The tag key.value - The tag value.thispublic WavefrontSdkMetricsRegistry.Builder prefix(java.lang.String prefix)
prefix - The name prefix for the registry's metrics.thispublic WavefrontSdkMetricsRegistry.Builder sendSdkMetrics(boolean sendSdkMetrics)
sendSdkMetrics - booleanthispublic WavefrontSdkMetricsRegistry build()
Copyright © 2023. All rights reserved.