JSON output for SimpleTimer
is always in seconds; it should be expressed in whatever units are set in the metadata
#4240
Labels
Projects
Milestone
Environment Details
Problem Description
JSON format output should express data values in the units defined in the metadata for the metric. For
SimpleTimer
s the JSON-formattedelapsedTime
is always expressed in seconds, regardless of the units specified in theSimpleTimer
's metadata.Steps to reproduce
Create a
HelidonSimpleTimer
(our implementation ofSimpleTimer
) specifying something other than seconds as the units in the metadata. Update the simple timer with some value. Invoke theHelidonSimpleTimer#jsonData
method. TheelapsedTime
key in the resultingJsonObject
will be incorrectly expressed in seconds.The text was updated successfully, but these errors were encountered: