@Component public class MetricsCacheUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
metrics_cache |
| Constructor and Description |
|---|
MetricsCacheUtils() |
| Modifier and Type | Method and Description |
|---|---|
double |
countAlertNotifications() |
double |
countDatasourcesWithEvents() |
double |
countDatasourcesWithSubscriptions() |
double |
countNotifications() |
double |
countSubscribers() |
double |
countSubscriptions() |
double |
countSuggestionNotifications() |
double |
lastUpdateInSeconds() |
void |
reportCacheEvict() |
double |
totalEvents() |
public static final String metrics_cache
@Scheduled(fixedDelay=43200000L,
initialDelay=500L)
@CacheEvict(allEntries=true,
value="broker_metrics_cache")
public void reportCacheEvict()
@Cacheable(value="broker_metrics_cache",
key="#root.methodName")
public double totalEvents()
@Cacheable(value="broker_metrics_cache",
key="#root.methodName")
public double countDatasourcesWithEvents()
@Cacheable(value="broker_metrics_cache",
key="#root.methodName")
public double countNotifications()
@Cacheable(value="broker_metrics_cache",
key="#root.methodName")
public double countSuggestionNotifications()
@Cacheable(value="broker_metrics_cache",
key="#root.methodName")
public double countAlertNotifications()
@Cacheable(value="broker_metrics_cache",
key="#root.methodName")
public double countSubscriptions()
@Cacheable(value="broker_metrics_cache",
key="#root.methodName")
public double countSubscribers()
@Cacheable(value="broker_metrics_cache",
key="#root.methodName")
public double lastUpdateInSeconds()
@Cacheable(value="broker_metrics_cache",
key="#root.methodName")
public double countDatasourcesWithSubscriptions()
Copyright © 2025. All rights reserved.