commons-go/model/sensor/Sensor.go
crusader ab936be303 ing
2018-06-12 22:13:22 +09:00

22 lines
868 B
Go

package sensor
import (
"encoding/json"
"git.loafle.net/overflow/commons-go/core/util"
"git.loafle.net/overflow/commons-go/model/meta"
"git.loafle.net/overflow/commons-go/model/target"
)
type Sensor struct {
ID json.Number `json:"id,Number,omitempty"`
Target *target.Target `json:"target,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
MetaSensorStatus *meta.MetaSensorStatus `json:"metaSensorStatus,omitempty"`
MetaCrawler *meta.MetaCrawler `json:"metaCrawler,omitempty"`
CrawlerInputItems string `json:"crawlerInputItems,omitempty"`
ItemCount json.Number `json:"itemCount,omitempty"`
CreateDate *util.Timestamp `json:"createDate,omitempty"`
}