public interface ServerMetricsAsJson
Collect the metrics in raw JSON form.
-
Method Summary
Modifier and TypeMethodDescriptionjson()
Return the metrics in raw JSON.withExtraAttributes
(boolean withLocation) Set to false in order to exclude profile location and sql.withHash
(boolean withHash) Set to false in order to exclude SQL hash.withHeader
(boolean withHeader) Set to include a heading of the database name.withNewLine
(boolean withNewLine) Set the new line character to use.withSort
(Comparator<MetaTimedMetric> sortBy) Set the sort property - see SortMetricvoid
write
(Appendable buffer) Collect and write metrics as JSON to the given buffer.
-
Method Details
-
withExtraAttributes
Set to false in order to exclude profile location and sql. -
withHash
Set to false in order to exclude SQL hash. -
withSort
Set the sort property - see SortMetric- See Also:
-
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
String json()Return the metrics in raw JSON.
-