public abstract class AbstractApolloClientMonitorEventListener extends Object implements ApolloClientMonitorEventListener
| Constructor and Description |
|---|
AbstractApolloClientMonitorEventListener(String tag) |
| Modifier and Type | Method and Description |
|---|---|
void |
collect(ApolloClientMonitorEvent event)
collect metrics from event
|
void |
createOrUpdateCounterSample(String metricsName,
double increaseValue) |
void |
createOrUpdateCounterSample(String metricsName,
String[] tagKeys,
String[] tagValues,
double increaseValue) |
void |
createOrUpdateGaugeSample(String metricsName,
double value) |
void |
createOrUpdateGaugeSample(String metricsName,
String[] tagKeys,
String[] tagValues,
double value)
tool method for updating indicator model
|
List<SampleModel> |
export()
export to a format recognized by the monitoring system
|
String |
getName()
mbean name
|
boolean |
isMetricsSampleUpdated()
is samples updated
|
boolean |
isSupported(ApolloClientMonitorEvent event)
is support the event
|
public AbstractApolloClientMonitorEventListener(String tag)
public String getName()
ApolloClientMonitorEventListenergetName in interface ApolloClientMonitorEventListenerpublic boolean isSupported(ApolloClientMonitorEvent event)
ApolloClientMonitorEventListenerisSupported in interface ApolloClientMonitorEventListenerpublic void collect(ApolloClientMonitorEvent event)
ApolloClientMonitorEventListenercollect in interface ApolloClientMonitorEventListenerpublic boolean isMetricsSampleUpdated()
ApolloClientMonitorEventListenerisMetricsSampleUpdated in interface ApolloClientMonitorEventListenerpublic List<SampleModel> export()
ApolloClientMonitorEventListenerexport in interface ApolloClientMonitorEventListenerpublic void createOrUpdateGaugeSample(String metricsName, String[] tagKeys, String[] tagValues, double value)
public void createOrUpdateGaugeSample(String metricsName, double value)
public void createOrUpdateCounterSample(String metricsName, String[] tagKeys, String[] tagValues, double increaseValue)
public void createOrUpdateCounterSample(String metricsName, double increaseValue)
Copyright © 2025. All rights reserved.