Package io.ebean.meta
Interface ServerMetricsAsJson
-
public interface ServerMetricsAsJson
Collect the metrics in raw JSON form.
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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 Detail
-
withExtraAttributes
ServerMetricsAsJson withExtraAttributes(boolean withLocation)
Set to false to exclude profile location and sql.
-
withHash
ServerMetricsAsJson withHash(boolean withHash)
Set to false to exclude SQL hash.
-
withSort
ServerMetricsAsJson withSort(Comparator<MetaTimedMetric> sortBy)
Set the sort property - see SortMetric- See Also:
SortMetric
-
withNewLine
ServerMetricsAsJson withNewLine(boolean withNewLine)
Set the new line character to use.
-
withHeader
ServerMetricsAsJson withHeader(boolean 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
void write(Appendable buffer)
Collect and write metrics as JSON to the given buffer.
-
-