public static class WavefrontSdkMetricsRegistry.Builder extends Object
| Constructor and Description |
|---|
Builder(WavefrontMetricSender wavefrontMetricSender)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
WavefrontSdkMetricsRegistry |
build()
Builds a registry.
|
WavefrontSdkMetricsRegistry.Builder |
prefix(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 |
source(String source)
Sets the source (or host) that is sending the metrics.
|
WavefrontSdkMetricsRegistry.Builder |
tag(String key,
String value)
Adds a point tag associated with the registry's metrics.
|
WavefrontSdkMetricsRegistry.Builder |
tags(Map<String,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(String source)
source - The source (or host) that is sending the metrics.thispublic WavefrontSdkMetricsRegistry.Builder tags(Map<String,String> tags)
tags - The point tags associated with the registry's metrics.thispublic WavefrontSdkMetricsRegistry.Builder tag(String key, String value)
key - The tag key.value - The tag value.thispublic WavefrontSdkMetricsRegistry.Builder prefix(String prefix)
prefix - The name prefix for the registry's metrics.thispublic WavefrontSdkMetricsRegistry build()
Copyright © 2019. All rights reserved.