Class ExternalMetrics


  • public class ExternalMetrics
    extends java.lang.Object
    Utility class for sending External metrics.
    • Constructor Summary

      Constructors 
      Constructor Description
      ExternalMetrics()  
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.lang.String getURI​(java.lang.String scheme, java.lang.String host, int port, java.lang.String path)
      Deprecated.
      static java.lang.String getURI​(java.net.URI url)
      Deprecated.
      static java.lang.String getURI​(java.net.URL url)
      Deprecated.
      static void makeExternalComponentMetric​(TracedMethod method, java.lang.String host, java.lang.String library, boolean includeOperationInMetric, java.lang.String uri, java.lang.String... operations)
      Sets metric name for external metrics (no rollup).
      static void makeExternalComponentTrace​(boolean isWebTransaction, TracedMethod method, java.lang.String host, java.lang.String library, boolean includeOperationInMetric, java.lang.String uri, java.lang.String... operations)
      Sets metric name and rollup names for external metrics.
      static void makeExternalComponentTrace​(Transaction transaction, TracedMethod method, java.lang.String host, java.lang.String library, boolean includeOperationInMetric, java.lang.String uri, java.lang.String... operations)
      Sets metric name and rollup names for external metrics.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExternalMetrics

        public ExternalMetrics()
    • Method Detail

      • makeExternalComponentMetric

        public static void makeExternalComponentMetric​(TracedMethod method,
                                                       java.lang.String host,
                                                       java.lang.String library,
                                                       boolean includeOperationInMetric,
                                                       java.lang.String uri,
                                                       java.lang.String... operations)
        Sets metric name for external metrics (no rollup). Note that the URI may need to be stripped of sensitive data prior to this method being called.
      • makeExternalComponentTrace

        public static void makeExternalComponentTrace​(Transaction transaction,
                                                      TracedMethod method,
                                                      java.lang.String host,
                                                      java.lang.String library,
                                                      boolean includeOperationInMetric,
                                                      java.lang.String uri,
                                                      java.lang.String... operations)
        Sets metric name and rollup names for external metrics. Note that the URI may need to be stripped of sensitive data prior to this method being called.
      • makeExternalComponentTrace

        public static void makeExternalComponentTrace​(boolean isWebTransaction,
                                                      TracedMethod method,
                                                      java.lang.String host,
                                                      java.lang.String library,
                                                      boolean includeOperationInMetric,
                                                      java.lang.String uri,
                                                      java.lang.String... operations)
        Sets metric name and rollup names for external metrics. Note that the URI may need to be stripped of sensitive data prior to this method being called.
      • getURI

        @Deprecated
        public static java.lang.String getURI​(java.net.URI url)
        Deprecated.
        DEPRECATED - Call URISupport method directly
      • getURI

        @Deprecated
        public static java.lang.String getURI​(java.net.URL url)
        Deprecated.
        DEPRECATED - Call URISupport method directly
      • getURI

        @Deprecated
        public static java.lang.String getURI​(java.lang.String scheme,
                                              java.lang.String host,
                                              int port,
                                              java.lang.String path)
        Deprecated.
        DEPRECATED - Call URISupport method directly