Package co.elastic.apm.agent.report
Class ReporterConfiguration
- java.lang.Object
-
- org.stagemonitor.configuration.ConfigurationOptionProvider
-
- co.elastic.apm.agent.report.ReporterConfiguration
-
public class ReporterConfiguration extends org.stagemonitor.configuration.ConfigurationOptionProvider
-
-
Field Summary
Fields Modifier and Type Field Description static java.net.URLLOCAL_APM_SERVER_URLstatic java.lang.StringREPORTER_CATEGORY
-
Constructor Summary
Constructors Constructor Description ReporterConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetApiKey()longgetApiRequestSize()TimeDurationgetApiRequestTime()java.util.List<WildcardMatcher>getDisableMetrics()intgetMaxQueueSize()longgetMetricsIntervalMs()java.lang.StringgetSecretToken()TimeDurationgetServerTimeout()org.stagemonitor.configuration.ConfigurationOption<java.net.URL>getServerUrlOption()java.util.List<java.net.URL>getServerUrls()Provides the combined output of two config options -server_urlandserver_urls, with precedence for the singular form.org.stagemonitor.configuration.ConfigurationOption<java.util.List<java.net.URL>>getServerUrlsOption()booleanisIncludeProcessArguments()booleanisReportSynchronously()booleanisVerifyServerCert()
-
-
-
Field Detail
-
REPORTER_CATEGORY
public static final java.lang.String REPORTER_CATEGORY
- See Also:
- Constant Field Values
-
LOCAL_APM_SERVER_URL
public static final java.net.URL LOCAL_APM_SERVER_URL
-
-
Method Detail
-
getSecretToken
@Nullable public java.lang.String getSecretToken()
-
getApiKey
@Nullable public java.lang.String getApiKey()
-
getServerUrls
public java.util.List<java.net.URL> getServerUrls()
Provides the combined output of two config options -server_urlandserver_urls, with precedence for the singular form. IfserverUrlis set with an empty string andserverUrlsis not set, this method is expected to provide an empty list. Algorithm: 1. if the server_url value is set, then: a. if it is set with the default value (i.e == LOCAL_APM_SERVER_URL) - look for server_urls i. if server_urls is not empty - use it ii. otherwise - use the default b. otherwise use it and if server_urls is not empty - log a warning 2. otherwise use the value from server_urls- Returns:
- a list of APM Server URLs resulting from the combination of
server_urlandserver_urls
-
getServerTimeout
public TimeDuration getServerTimeout()
-
isVerifyServerCert
public boolean isVerifyServerCert()
-
getMaxQueueSize
public int getMaxQueueSize()
-
isReportSynchronously
public boolean isReportSynchronously()
-
isIncludeProcessArguments
public boolean isIncludeProcessArguments()
-
getApiRequestTime
public TimeDuration getApiRequestTime()
-
getApiRequestSize
public long getApiRequestSize()
-
getMetricsIntervalMs
public long getMetricsIntervalMs()
-
getDisableMetrics
public java.util.List<WildcardMatcher> getDisableMetrics()
-
getServerUrlOption
public org.stagemonitor.configuration.ConfigurationOption<java.net.URL> getServerUrlOption()
-
getServerUrlsOption
public org.stagemonitor.configuration.ConfigurationOption<java.util.List<java.net.URL>> getServerUrlsOption()
-
-