ThresholdsConfig🔗
Thresholds configuration for the panel
Definition🔗
class ThresholdsConfig:
"""
Thresholds configuration for the panel
"""
# Thresholds mode.
mode: dashboard.ThresholdsMode
# Must be sorted by 'value', first value is always -Infinity
steps: list[dashboard.Threshold]
Methods🔗
to_json🔗
Converts this object into a representation that can easily be encoded to JSON.
from_json🔗
Builds this object from a JSON-decoded dict.