public abstract class MetricEventPublisher extends MetricPublisher<MetricEvent>
MetricPublisher
with MetricEvent
.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_GROUP |
config
Constructor and Description |
---|
MetricEventPublisher(BulletConfig config)
Constructor taking a
BulletConfig . |
Modifier and Type | Method and Description |
---|---|
MetricEvent |
convert(Map<String,String> dimensions,
Map<String,Number> metrics)
Convert the given dimensions and metrics into the concrete type of this class.
|
String |
getGroup()
Get the group to use for the
MetricEvent . |
fire, fire, fire, from, getDimensions, publish, publish, publish, publish
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public static String DEFAULT_GROUP
public MetricEventPublisher(BulletConfig config)
BulletConfig
.config
- The config to use containing the necessary information.public String getGroup()
MetricEvent
. By default, uses DEFAULT_GROUP
.MetricEvent
.public MetricEvent convert(Map<String,String> dimensions, Map<String,Number> metrics)
MetricPublisher
convert
in class MetricPublisher<MetricEvent>
dimensions
- The non-null Map
of dimensions to convert.metrics
- The Map
of metrics to convert.Copyright © 2021. All rights reserved.