Stampede.Reporter (stampede v0.2.0)

Copy Markdown View Source

Formats a Stampede.Result for the terminal, or as JSON.

Summary

Functions

Returns a summary of result, with a line per metric followed by the checks, the thresholds and the most frequent errors, if there are any.

Returns result as JSON, with every metric, the timeline, the thresholds and the errors.

Functions

format(result)

@spec format(Stampede.Result.t()) :: String.t()

Returns a summary of result, with a line per metric followed by the checks, the thresholds and the most frequent errors, if there are any.

to_json(result)

@spec to_json(Stampede.Result.t()) :: String.t()

Returns result as JSON, with every metric, the timeline, the thresholds and the errors.

Timings are in milliseconds and rates per second, as in Stampede.Result.