Threshold(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Defines a threshold for categorizing time series values.
Attributes |
|
---|---|
Name | Description |
label |
str
A label for the threshold. |
value |
float
The value of the threshold. The value should be defined in the native scale of the metric. |
color |
The state color for this threshold. Color is not allowed in a XyChart. |
direction |
The direction for the current threshold. Direction is not allowed in a XyChart. |
Classes
Color
Color(value)
The color suggests an interpretation to the viewer when actual values cross the threshold. Comments on each color provide UX guidance on how users can be expected to interpret a given state color.
Direction
Direction(value)
Whether the threshold is considered crossed by an actual value above or below its threshold value.