public class ParserMetrics extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
METRIC_EVENT_TOO_OLD
Custom metric name for event too old errors
|
static String |
METRIC_PARSER_UNHANDLED_EXCEPTION |
static String |
METRIC_UNKNOWN_PAYLOAD_TYPE |
static String |
NAMESPACE_PREFIX
Prefix for metrics namespace component
|
Constructor and Description |
---|
ParserMetrics(String namespacePostfix)
Create new ParserMetrics
|
Modifier and Type | Method and Description |
---|---|
void |
eventOfPayload(Payload.PayloadType type)
Event of a PayloadType was parsed
|
void |
eventTooOld()
Event was too old
|
void |
eventUnhandledException()
Event was caused an unhandled exception in parser
|
public static final String NAMESPACE_PREFIX
public static final String METRIC_EVENT_TOO_OLD
public static final String METRIC_UNKNOWN_PAYLOAD_TYPE
public static final String METRIC_PARSER_UNHANDLED_EXCEPTION
public ParserMetrics(String namespacePostfix)
namespacePostfix
- String to be appended to NAMESPACE_PREFIX for namespace, null for
defaultpublic void eventTooOld()
public void eventUnhandledException()
public void eventOfPayload(Payload.PayloadType type)
type
- Payload.PayloadType
Copyright © 2022. All rights reserved.