All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebean.meta.ServerMetrics Maven / Gradle / Ivy

There is a newer version: 15.8.0
Show newest version
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