Interface MetricsData

All Superinterfaces:
AutoCloseable, Closeable

public interface MetricsData extends Closeable
  • Field Details Link icon

    • NO_METRICS Link icon

      static final Mode.Key<Boolean> NO_METRICS
      If this mode is passed to the CommandService, no metrics will be persisted for that task.
  • Method Details Link icon

    • queryCount Link icon

      int queryCount()
      Returns:
      the number of database queries executed during this action
    • totalQueryTime Link icon

      long totalQueryTime()
      Returns:
      the total time used executing queries using this action in milliseconds
    • totalTime Link icon

      long totalTime()
      Returns:
      the total time used to execute this action
    • close Link icon

      void close()
      Stop collecting metrics and persist the result (if it passes the thresholds)
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
    • getActivityType Link icon

      ActivityType getActivityType()
    • getActivityName Link icon

      String getActivityName()
    • getActivityDetails Link icon

      String getActivityDetails()
    • getCategoryData Link icon

      CategoryData getCategoryData()
    • getRequestId Link icon

      @Nullable @Nullable String getRequestId()
    • getRequestOrigin Link icon

      @Nullable @Nullable String getRequestOrigin()
    • setException Link icon

      void setException(Exception exception)
    • getException Link icon

      @Nullable @Nullable Exception getException()