Matching alert

This commit is contained in:
2024-08-15 15:57:58 +08:00
parent 22f3027d6f
commit 09e904f52f
7 changed files with 230 additions and 11 deletions

View File

@@ -22,3 +22,23 @@ class AlertConfiguration {
maxValue: json['max_value'],
);
}
class AlertDetectResult {
AlertConfiguration config;
String name;
String? unitName;
double? current;
double? difference;
bool isOutOfRange;
bool isUndetected;
AlertDetectResult({
required this.config,
required this.name,
required this.unitName,
required this.current,
required this.difference,
required this.isOutOfRange,
required this.isUndetected,
});
}