Files
Lumberjack-Go-Backend/model_tag.go
Patrick McDonagh 62ed942495 Initial Commit
2017-09-27 11:18:17 -05:00

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