use cache for alert queries

This commit is contained in:
Alexander Zobnin
2020-06-01 14:03:57 +03:00
parent ee2cc49ba1
commit 875e611400
2 changed files with 28 additions and 17 deletions

View File

@@ -35,10 +35,12 @@ type ZabbixAPIResourceRequest struct {
}
type ZabbixAPIRequest struct {
Method string `json:"method"`
Params map[string]interface{} `json:"params,omitempty"`
Method string `json:"method"`
Params ZabbixAPIParams `json:"params,omitempty"`
}
type ZabbixAPIParams = map[string]interface{}
type ZabbixAPIResourceResponse struct {
Result interface{} `json:"result,omitempty"`
}
@@ -153,8 +155,6 @@ func (p *zabbixParamOutput) UnmarshalJSON(data []byte) error {
}
type ZabbixAPIParams = map[string]interface{}
type ZabbixAPIParamsLegacy struct {
Output *zabbixParamOutput `json:"output,omitempty"`
SortField string `json:"sortfield,omitempty"`