meeg_utils.qc.Finding#

class meeg_utils.qc.Finding(check, metric, value, level, message)[source]#

One evaluated quality criterion.

Parameters:
  • check (str) – Name of the check that produced it.

  • metric (str) – The metric that was evaluated.

  • value (Any) – Its value.

  • level ({"info", "ok", "warn", "fail"}) – Verdict; "info" when the value was measured but not judged.

  • message (str) – Human-readable explanation, including the threshold that applied.

__init__(check, metric, value, level, message)#

Methods

__init__(check, metric, value, level, message)

to_dict()

Return the finding as a plain dict.

Attributes

check: str#
metric: str#
value: Any#
level: str#
message: str#
to_dict()[source]#

Return the finding as a plain dict.