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.
This commit is contained in:
Alvar Penning 2025-11-06 17:44:03 +01:00
parent 0cd4978419
commit c6368b1f82
No known key found for this signature in database

View file

@ -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 {