metrics.plugins.json
-
metrics.plugins.json.export()¶ Export metrics in the JSON format.
Return: a string containing metrics in the JSON format Rtype: string Важно
The values can also be
+-math.hugeandmath.huge * 0. In such case:math.hugeis serialized to"inf"-math.hugeis serialized to"-inf"math.huge * 0is serialized to"nan".
Example
local json_plugin = require('metrics.plugins.json')
local json_metrics = json_plugin.export()
Example on GitHub: metrics_plugins