commons-go/model/sensor/Sensor.go

20 lines
717 B
Go
Raw Normal View History

2018-04-26 07:37:59 +00:00
package sensor
2018-04-12 09:38:04 +00:00
import (
"encoding/json"
"git.loafle.net/overflow/commons-go/core/util"
2018-04-26 07:37:59 +00:00
"git.loafle.net/overflow/commons-go/model/meta"
"git.loafle.net/overflow/commons-go/model/target"
2018-04-12 09:38:04 +00:00
)
type Sensor struct {
ID json.Number `json:"id,Number,omitempty"`
CreateDate util.Timestamp `json:"createDate,omitempty"`
Description string `json:"description,omitempty"`
MetaSensorStatus *meta.MetaSensorStatus `json:"status,omitempty"`
Target *target.Target `json:"target,omitempty"`
Crawler *meta.MetaCrawler `json:"crawler,omitempty"`
CrawlerInputItems string `json:"crawlerInputItems,omitempty"`
}