Interface DBMetricsReporter

    • Method Detail

      • reportQueryExecutionTime

        void reportQueryExecutionTime​(long milliseconds,
                                      java.lang.String queryTpe,
                                      java.lang.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
      • isQueryMetricsEnabled

        boolean isQueryMetricsEnabled()
      • isQueryStatementsMetricsEnabled

        boolean isQueryStatementsMetricsEnabled()