Package com.azure.cosmos
Class CosmosDiagnosticsRequestEvent
java.lang.Object
com.azure.cosmos.CosmosDiagnosticsRequestEvent
This class represents diagnostic information for different steps in the request pipeline when
processing a data plane request (for example to issue a point operation against a certain replica). This information
can be useful to identify where in the request pipeline an error happened or latency was spent - for example whether
high latency was due to the fact that a new channel (TCP connection with SSL handshake) needed to be created
or because the transport took a long time due to network issues etc.
-
Method Summary
Modifier and TypeMethodDescriptionGets the duration for the request pipeline event - or null when the pipeline event hasn't finished (yet).Gets the name of the request pipeline event.Gets the start time of the request pipeline event
-
Method Details
-
getStartTime
Gets the start time of the request pipeline event- Returns:
- the start time of the request pipeline event
-
getDuration
Gets the duration for the request pipeline event - or null when the pipeline event hasn't finished (yet).- Returns:
- the duration for the request pipeline event or null when the pipeline event hasn't finished (yet).
-
getEventName
Gets the name of the request pipeline event.- Returns:
- the name of the request pipeline event.
-