commons-go/model/sensor/Sensor.go

20 lines
731 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"`
2018-05-11 02:24:21 +00:00
CreateDate *util.Timestamp `json:"createDate,omitempty"`
2018-04-12 09:38:04 +00:00
Description string `json:"description,omitempty"`
2018-06-05 09:08:52 +00:00
MetaSensorStatus *meta.MetaSensorStatus `json:"metaSensorStatus,omitempty"`
2018-04-12 09:38:04 +00:00
Target *target.Target `json:"target,omitempty"`
2018-06-05 09:08:52 +00:00
MetaCrawler *meta.MetaCrawler `json:"metaCrawler,omitempty"`
2018-04-12 09:38:04 +00:00
CrawlerInputItems string `json:"crawlerInputItems,omitempty"`
}