Skip to content

Commit

Permalink
✨ feat(models): add HasMetricTarget and LastingSeconds fields to Noti…
Browse files Browse the repository at this point in the history
…ficationAlertV2
  • Loading branch information
tikazyq committed Jul 30, 2024
1 parent 779d831 commit 5b67717
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/models/models/v2/notification_alert_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ type NotificationAlertV2 struct {
Name string `json:"name" bson:"name"`
Description string `json:"description" bson:"description"`
Enabled bool `json:"enabled" bson:"enabled"`
HasMetricTarget bool `json:"has_metric_target" bson:"has_metric_target"`
MetricTargetId primitive.ObjectID `json:"metric_target_id,omitempty" bson:"metric_target_id,omitempty"`
MetricName string `json:"metric_name" bson:"metric_name"`
Operator string `json:"operator" bson:"operator"`
LastingSeconds int `json:"lasting_seconds" bson:"lasting_seconds"`
TargetValue float32 `json:"target_value" bson:"target_value"`
Level string `json:"level" bson:"level"`
}

0 comments on commit 5b67717

Please sign in to comment.