Fix using value mapping from zabbix, closes #1222

This commit is contained in:
Alexander Zobnin
2021-08-10 13:41:56 +03:00
parent 8efc020f33
commit 00e33fcc49
5 changed files with 72 additions and 6 deletions

View File

@@ -99,3 +99,14 @@ type Application struct {
Name string `json:"name"`
ID string `json:"applicationid"`
}
type ValueMap struct {
ID string `json:"valuemapid"`
Name string `json:"name"`
Mappings []ValueMapping `json:"mappings"`
}
type ValueMapping struct {
Value string `json:"value"`
NewValue string `json:"newvalue"`
}