mirror of
https://github.com/Icinga/icingadb.git
synced 2026-02-18 18:18:00 -05:00
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:
parent
0cd4978419
commit
c6368b1f82
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue