Class ReporterConfiguration


  • public class ReporterConfiguration
    extends org.stagemonitor.configuration.ConfigurationOptionProvider
    • 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
    • Constructor Detail

      • ReporterConfiguration

        public ReporterConfiguration()
    • 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_url and server_urls, with precedence for the singular form. If serverUrl is set with an empty string and serverUrls is 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_url and server_urls
      • 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()