Support item tags, fixes #1258
This commit is contained in:
@@ -51,6 +51,7 @@ type Item struct {
|
||||
Delay string `json:"delay,omitempty"`
|
||||
Units string `json:"units,omitempty"`
|
||||
ValueMapID string `json:"valuemapid,omitempty"`
|
||||
Tags []ItemTag `json:"tags,omitempty"`
|
||||
}
|
||||
|
||||
type ItemHost struct {
|
||||
@@ -58,6 +59,11 @@ type ItemHost struct {
|
||||
Name string `json:"name,omitempty"`
|
||||
}
|
||||
|
||||
type ItemTag struct {
|
||||
Tag string `json:"tag,omitempty"`
|
||||
Value string `json:"value,omitempty"`
|
||||
}
|
||||
|
||||
type Trend []TrendPoint
|
||||
|
||||
type TrendPoint struct {
|
||||
|
||||
Reference in New Issue
Block a user