io.ebean.meta.ServerMetrics Maven / Gradle / Ivy
package io.ebean.meta;
import java.util.List;
/**
* Metrics of the Database instance.
*/
public interface ServerMetrics {
/**
* Return the name of the database these metrics were obtained for.
*/
String name();
/**
* Return ServerMetricsAsJson to build the metrics as JSON content.
*/
ServerMetricsAsJson asJson();
/**
* Return the metrics as a list of MetricData.
*/
List asData();
/**
* Return timed metrics for Transactions, labelled SqlQuery, labelled SqlUpdate.
*/
List timedMetrics();
/**
* Return the query metrics.
*/
List queryMetrics();
/**
* Return the Counter metrics.
*/
List countMetrics();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy