From c6368b1f82e1b0535540ae56eb2b3a70d840b0a5 Mon Sep 17 00:00:00 2001 From: Alvar Penning Date: Thu, 6 Nov 2025 17:44:03 +0100 Subject: [PATCH] notifications.Client: Allow Parameters of any Type The parameters can not only be strings, but anything to PHP's liking. In one example, an integer was observed. Since Parameters is converted to an []any later anyways, this is no real change in behavior. --- pkg/notifications/notifications.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/notifications/notifications.go b/pkg/notifications/notifications.go index 2d19bbb0..983eabc8 100644 --- a/pkg/notifications/notifications.go +++ b/pkg/notifications/notifications.go @@ -83,8 +83,8 @@ func (client *Client) evaluateRulesForObject(ctx context.Context, hostId, servic const icingaDbWebRuleVersion = 1 type IcingaDbWebQuery struct { - Query string `json:"query"` - Parameters []string `json:"parameters"` + Query string `json:"query"` + Parameters []any `json:"parameters"` } type IcingaDbWebRule struct {