Interface DBMetricsReporter

All Superinterfaces:
MetricsReporter
All Known Implementing Classes:
DBMetricsReporterProxy

public interface DBMetricsReporter extends MetricsReporter
  • Method Details

    • reportQueryExecutionTime

      void reportQueryExecutionTime(long milliseconds, String queryTpe, String statementID)
      Report the time it took to execute a query. queryType and statementID will be used as tags for the recorded metric
      Parameters:
      milliseconds - the delta time to record in milliseconds - must be positive
      queryTpe - mandatory, the type of query that we report for: e.g: "select", "insert", "update", "delete"
      statementID - optional. if this parameter is not provided, a metric without it will be recorded; this parameter is used only if "isQueryStatementsMetricsEnabled()" is true
    • isEnabled

      boolean isEnabled()
      Specified by:
      isEnabled in interface MetricsReporter
    • isQueryMetricsEnabled

      boolean isQueryMetricsEnabled()
    • isQueryStatementsMetricsEnabled

      boolean isQueryStatementsMetricsEnabled()