2018-04-26 16:37:59 +09:00
|
|
|
package sensor
|
2018-04-12 18:38:04 +09:00
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
|
|
|
|
|
|
|
"git.loafle.net/overflow/commons-go/core/util"
|
2018-04-26 16:37:59 +09:00
|
|
|
"git.loafle.net/overflow/commons-go/model/meta"
|
|
|
|
"git.loafle.net/overflow/commons-go/model/target"
|
2018-04-12 18:38:04 +09:00
|
|
|
)
|
|
|
|
|
|
|
|
type Sensor struct {
|
|
|
|
ID json.Number `json:"id,Number,omitempty"`
|
2018-06-12 22:13:22 +09:00
|
|
|
Target *target.Target `json:"target,omitempty"`
|
|
|
|
Name string `json:"name,omitempty"`
|
2018-04-12 18:38:04 +09:00
|
|
|
Description string `json:"description,omitempty"`
|
2018-06-05 18:08:52 +09:00
|
|
|
MetaSensorStatus *meta.MetaSensorStatus `json:"metaSensorStatus,omitempty"`
|
|
|
|
MetaCrawler *meta.MetaCrawler `json:"metaCrawler,omitempty"`
|
2018-04-12 18:38:04 +09:00
|
|
|
CrawlerInputItems string `json:"crawlerInputItems,omitempty"`
|
2018-06-12 22:13:22 +09:00
|
|
|
ItemCount json.Number `json:"itemCount,omitempty"`
|
2018-06-12 18:18:11 +09:00
|
|
|
CreateDate *util.Timestamp `json:"createDate,omitempty"`
|
2018-04-12 18:38:04 +09:00
|
|
|
}
|