Package io.ebean.meta
Interface ServerMetricsAsJson
public interface ServerMetricsAsJson
Collect the metrics in raw JSON form.
-
Method Summary
Modifier and Type Method Description Stringjson()Return the metrics in raw JSON.ServerMetricsAsJsonwithExtraAttributes(boolean withLocation)Set to false to exclude profile location and sql.ServerMetricsAsJsonwithHash(boolean withHash)Set to false to exclude SQL hash.ServerMetricsAsJsonwithHeader(boolean withHeader)Set to include a heading of the database name.ServerMetricsAsJsonwithNewLine(boolean withNewLine)Set the new line character to use.ServerMetricsAsJsonwithSort(Comparator<MetaTimedMetric> sortBy)Set the sort property - see SortMetricvoidwrite(Appendable buffer)Collect and write metrics as JSON to the given buffer.
-
Method Details
-
withExtraAttributes
Set to false to exclude profile location and sql. -
withHash
Set to false to exclude SQL hash. -
withSort
Set the sort property - see SortMetric- See Also:
SortMetric
-
withNewLine
Set the new line character to use. -
withHeader
Set to include a heading of the database name.When this is false the metrics are written without json array start or array end.
-
write
Collect and write metrics as JSON to the given buffer. -
json
Return the metrics in raw JSON.
-