26 lines
824 B
Go
26 lines
824 B
Go
package main
|
|
|
|
import "time"
|
|
|
|
// Tag : holds information about a specific Tag
|
|
type Tag struct {
|
|
ID int `json:"id"`
|
|
Name string `json:"name"`
|
|
TagClass TagClass `json:"tagClass"`
|
|
Tag string `json:"tag"`
|
|
Device Device `json:"device"`
|
|
Description string `json:"description"`
|
|
DataType DataType `json:"dataType"`
|
|
ChangeThreshold float32 `json:"changeThreshold"`
|
|
GuaranteeSec int `json:"guaranteeSec"`
|
|
MapFunction string `json:"mapFunction"`
|
|
Units string `json:"units"`
|
|
MinExpected float32 `json:"minExpected"`
|
|
MaxExpected float32 `json:"maxExpected"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
}
|
|
|
|
// Tags : a list of Tag items
|
|
type Tags []Tag
|