Package ch.tocco.nice2.metrics.impl
Interface MetricsData
- All Superinterfaces:
AutoCloseable
,Closeable
-
Field Summary
Modifier and TypeFieldDescriptionIf this mode is passed to theCommandService
, no metrics will be persisted for that task. -
Method Summary
-
Field Details
-
NO_METRICS
If this mode is passed to theCommandService
, no metrics will be persisted for that task.
-
-
Method Details
-
queryCount
int queryCount()- Returns:
- the number of database queries executed during this action
-
totalQueryTime
long totalQueryTime()- Returns:
- the total time used executing queries using this action in milliseconds
-
totalTime
long totalTime()- Returns:
- the total time used to execute this action
-
close
void close()Stop collecting metrics and persist the result (if it passes the thresholds)- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
getActivityType
ActivityType getActivityType() -
getActivityName
String getActivityName() -
getActivityDetails
String getActivityDetails() -
getCategoryData
CategoryData getCategoryData() -
getRequestId
-
getRequestOrigin
-
setException
-
getException
-