Alert constructor
Alert({
- required String $id,
- required String $createdAt,
- required String $updatedAt,
- required String monitorId,
- required String projectId,
- required String name,
- required AlertStatus status,
- String? resolvedAt,
- String? acknowledgedAt,
- required String acknowledgedBy,
- required String acknowledgedByName,
- required String escalationId,
- required int escalationStep,
- required int escalationRound,
- String? escalatesAt,
- required List<
String> rules, - required MonitorSeverity severity,
- AlertMetric? metric,
- AlertComparator? comparator,
- required double threshold,
- required double value,
- required double peak,
- required MonitorType type,
- required MonitorResourceType resourceType,
- required String resourceId,
- required int notifications,
- int? latency,
- MonitorResult? result,
Implementation
Alert({
required this.$id,
required this.$createdAt,
required this.$updatedAt,
required this.monitorId,
required this.projectId,
required this.name,
required this.status,
this.resolvedAt,
this.acknowledgedAt,
required this.acknowledgedBy,
required this.acknowledgedByName,
required this.escalationId,
required this.escalationStep,
required this.escalationRound,
this.escalatesAt,
required this.rules,
required this.severity,
this.metric,
this.comparator,
required this.threshold,
required this.value,
required this.peak,
required this.type,
required this.resourceType,
required this.resourceId,
required this.notifications,
this.latency,
this.result,
});