Package com.tailf.notif
Class ProgressNotification
Object
com.tailf.notif.Notification
com.tailf.notif.ProgressNotification
- Direct Known Subclasses:
CommitProgressNotification
Data structure for progress notifications.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Progress event type. -
Constructor Summary
ConstructorsConstructorDescriptionProgressNotification
(NotificationType type, ProgressNotification.ProgressEventType progressEventType, Long timestamp, Long duration, String traceId, String spanId, String parentSpanId, int usid, int tid, int datastore, String context, String subsystem, String message, String annotation, Map<String, ProgressAttributeValue> attributes, List<ProgressLink> links) -
Method Summary
Modifier and TypeMethodDescriptionMetadata about the event, indicating error, explains latency or show result etc.Attributes of the event.getAttributeValue
(String name) Get a specific attribute of the event.The context is either one of netconf, cli, webui, snmp, rest, system or it can be any other context string defined through the use of MAAPI.int
Name of the datastore for which the transaction is started:Conf.DB_NONE
Conf.DB_CANDIDATE
Conf.DB_RUNNING
Conf.DB_STARTUP
Conf.DB_OPERATIONAL
Conf.DB_PRE_COMMIT_RUNNING
Conf.DB_INTENDED
Name, as string, of the datastore for which the transaction is started.Duration of the event in microseconds.getLinks()
Links to other events.Progress event messeage.This indicates the id of the parent span.Progress event type.int
User session id.Indicates the id of the span.Subsystem name.Timestamp in microseconds since Epoch.Per request unique trace id, included in headers and entries for relevant logs.int
Transaction id.toString()
Methods inherited from class com.tailf.notif.Notification
getNotificationType
-
Constructor Details
-
ProgressNotification
public ProgressNotification(NotificationType type, ProgressNotification.ProgressEventType progressEventType, Long timestamp, Long duration, String traceId, String spanId, String parentSpanId, int usid, int tid, int datastore, String context, String subsystem, String message, String annotation, Map<String, ProgressAttributeValue> attributes, List<ProgressLink> links)
-
-
Method Details
-
toString
- Overrides:
toString
in classNotification
-
getProgressEventType
Progress event type. -
getTimestamp
Timestamp in microseconds since Epoch. Depending on the progress event type, this timestamp indicates the start of the event, the end of the event, or just when the event occured. -
getDuration
Duration of the event in microseconds. Generated at the end of an event. The timestamp subtracted with the duration equals the start of the event. -
getTraceId
Per request unique trace id, included in headers and entries for relevant logs. -
getSpanId
Indicates the id of the span. -
getParentSpanId
This indicates the id of the parent span. -
getSessionId
public int getSessionId()User session id. -
getTransactionId
public int getTransactionId()Transaction id. -
getDatastore
public int getDatastore()Name of the datastore for which the transaction is started: -
getDatastoreStr
Name, as string, of the datastore for which the transaction is started. -
getContext
The context is either one of netconf, cli, webui, snmp, rest, system or it can be any other context string defined through the use of MAAPI. -
getSubsystem
Subsystem name. -
getMessage
Progress event messeage. -
getAnnotation
Metadata about the event, indicating error, explains latency or show result etc. -
getAttributes
Attributes of the event. The values can be of typeProgressAttributeLiteral
orProgressAttributeNumber
. -
getAttributeValue
Get a specific attribute of the event. The value can be of typeProgressAttributeLiteral
orProgressAttributeNumber
. -
getLinks
Links to other events.
-