public interface WavefrontMetricSender
| Modifier and Type | Method and Description |
|---|---|
default void |
sendDeltaCounter(String name,
double value,
String source,
Map<String,String> tags)
Sends the given delta counter to Wavefront.
|
void |
sendFormattedMetric(String point)
Similar to
sendMetric(String, double, Long, String, Map), only the point
argument is expected to already be in Wavefront Data Format |
void |
sendMetric(String name,
double value,
Long timestamp,
String source,
Map<String,String> tags)
Sends the given metric to Wavefront
|
void sendMetric(String name, double value, @Nullable Long timestamp, @Nullable String source, @Nullable Map<String,String> tags) throws IOException
name - The name of the metric. Spaces are replaced with '-' (dashes) and quotes will
be automatically escaped.value - The value to be sent.timestamp - The timestamp in milliseconds since the epoch to be sent. If null then the
timestamp is assigned by Wavefront when data is received.source - The source (or host) that's sending the metric. If null then assigned by
Wavefront.tags - The tags associated with this metric.IOException - if there was an error sending the metric.void sendFormattedMetric(String point) throws IOException
sendMetric(String, double, Long, String, Map), only the point
argument is expected to already be in Wavefront Data Formatpoint - a single metric, encoded in Wavefront Data FormatIOException - if there was an error sending the metric.default void sendDeltaCounter(String name, double value, @Nullable String source, @Nullable Map<String,String> tags) throws IOException
name - The name of the delta counter. Name will be prefixed by ∆ if it does
not start with that symbol already. Also, spaces are replaced with '-'
(dashes) and quotes will be automatically escaped.value - The delta value to be sent. This will be aggregated on the Wavefront server
side.source - The source (or host) that's sending the metric. If null then assigned by
Wavefront.tags - The tags associated with this metric.IOException - if there was an error sending the metric.Copyright © 2020. All rights reserved.