Class ExternalMetrics
- java.lang.Object
-
- com.newrelic.agent.bridge.external.ExternalMetrics
-
public class ExternalMetrics extends java.lang.ObjectUtility class for sending External metrics.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringALLstatic java.lang.StringALL_HOSTstatic java.lang.StringALL_OTHERstatic java.lang.StringALL_WEBstatic java.lang.StringMETRIC_NAMEstatic java.lang.StringMETRIC_NAMESPACEstatic java.lang.StringTRANSACTION_SEGMENT_NAMEstatic java.lang.StringUNKNOWN_HOST
-
Constructor Summary
Constructors Constructor Description ExternalMetrics()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.StringgetURI(java.lang.String scheme, java.lang.String host, int port, java.lang.String path)Deprecated.static java.lang.StringgetURI(java.net.URI url)Deprecated.static java.lang.StringgetURI(java.net.URL url)Deprecated.static voidmakeExternalComponentMetric(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 voidmakeExternalComponentTrace(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 voidmakeExternalComponentTrace(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.
-
-
-
Field Detail
-
METRIC_NAMESPACE
public static final java.lang.String METRIC_NAMESPACE
- See Also:
- Constant Field Values
-
METRIC_NAME
public static final java.lang.String METRIC_NAME
- See Also:
- Constant Field Values
-
TRANSACTION_SEGMENT_NAME
public static final java.lang.String TRANSACTION_SEGMENT_NAME
- See Also:
- Constant Field Values
-
ALL
public static final java.lang.String ALL
- See Also:
- Constant Field Values
-
ALL_WEB
public static final java.lang.String ALL_WEB
- See Also:
- Constant Field Values
-
ALL_OTHER
public static final java.lang.String ALL_OTHER
- See Also:
- Constant Field Values
-
ALL_HOST
public static final java.lang.String ALL_HOST
- See Also:
- Constant Field Values
-
UNKNOWN_HOST
public static final java.lang.String UNKNOWN_HOST
- See Also:
- Constant Field Values
-
-
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
-
-