From c0126dc374592d196545f3a5b6985f36c0db3323 Mon Sep 17 00:00:00 2001 From: Brooks Cunningham Date: Wed, 31 Jul 2024 11:17:58 -0500 Subject: [PATCH] Updating CustomAlertBody Adding fields Operator and FieldName to support agent alerts. --- api.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api.go b/api.go index e4a2e2f..2827fb6 100644 --- a/api.go +++ b/api.go @@ -584,6 +584,8 @@ type CustomAlertBody struct { Action string `json:"action"` SkipNotifications bool `json:"skipNotifications"` BlockDurationSeconds int `json:"blockDurationSeconds,omitempty"` + Operator string `json:"operator,omitempty"` + FieldName string `json:"fieldName,omitempty"` } // CreateCustomAlert creates a custom alert.