public class DefaultAppMonitoringMetricsService extends Object implements AppMonitoringMetricsService, InitializingComponent
Modifier and Type | Field and Description |
---|---|
static List<String> |
APP_MONITORING_METRIC_NAMES
All metrics which are added to this array will be able to be filtered via the Monitoring UI.
|
static String |
ITA_DENY_DARK_FEATURE |
Constructor and Description |
---|
DefaultAppMonitoringMetricsService(com.atlassian.event.api.EventPublisher eventPublisher,
FeatureManager featureManager,
JmxMetricsExposer jmxMetricsExposer) |
Modifier and Type | Method and Description |
---|---|
void |
afterInstantiation() |
boolean |
isAppMonitoringEnabled() |
void |
onAnalyticsPluginReadyEvent(com.atlassian.analytics.api.events.AnalyticsPluginReadyEvent event) |
void |
onFeatureEvent(FeatureEvent featureEvent) |
void |
onJmxConfigurationChangedEvent(JmxConfigurationChangedEvent jmxConfigurationChangedEvent) |
void |
setAppMonitoringEnabled(boolean isEnabled)
Set App monitoring should be enabled.
|
public static final List<String> APP_MONITORING_METRIC_NAMES
public static final String ITA_DENY_DARK_FEATURE
public DefaultAppMonitoringMetricsService(@Nonnull com.atlassian.event.api.EventPublisher eventPublisher, @Nonnull FeatureManager featureManager, @Nonnull JmxMetricsExposer jmxMetricsExposer)
public void afterInstantiation() throws Exception
afterInstantiation
in interface InitializingComponent
Exception
public void setAppMonitoringEnabled(boolean isEnabled)
AppMonitoringMetricsService
setAppMonitoringEnabled
in interface AppMonitoringMetricsService
isEnabled
- the desired application monitoring statepublic boolean isAppMonitoringEnabled()
isAppMonitoringEnabled
in interface AppMonitoringMetricsService
@EventListener public void onFeatureEvent(FeatureEvent featureEvent)
@EventListener public void onAnalyticsPluginReadyEvent(com.atlassian.analytics.api.events.AnalyticsPluginReadyEvent event)
@EventListener public void onJmxConfigurationChangedEvent(JmxConfigurationChangedEvent jmxConfigurationChangedEvent)
Copyright © 2002-2023 Atlassian. All Rights Reserved.