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 String
json()
Return the metrics in raw JSON.ServerMetricsAsJson
withExtraAttributes(boolean withLocation)
Set to false to exclude profile location and sql.ServerMetricsAsJson
withHash(boolean withHash)
Set to false to exclude SQL hash.ServerMetricsAsJson
withHeader(boolean withHeader)
Set to include a heading of the database name.ServerMetricsAsJson
withNewLine(boolean withNewLine)
Set the new line character to use.ServerMetricsAsJson
withSort(Comparator<MetaTimedMetric> sortBy)
Set the sort property - see SortMetricvoid
write(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.
-
-