overflow_commons_go/modules/probe/model/Probe.go

26 lines
1.1 KiB
Go
Raw Permalink Normal View History

2017-11-08 09:50:44 +00:00
package model
import (
2017-12-01 06:04:31 +00:00
"encoding/json"
2017-11-08 09:50:44 +00:00
domain "git.loafle.net/overflow/overflow_commons_go/modules/domain/model"
member "git.loafle.net/overflow/overflow_commons_go/modules/member/model"
2017-12-01 06:04:31 +00:00
meta "git.loafle.net/overflow/overflow_commons_go/modules/meta/model"
util "git.loafle.net/overflow/overflow_commons_go/util"
2017-11-08 09:50:44 +00:00
)
type Probe struct {
2017-12-01 06:04:31 +00:00
ID json.Number `json:"id,Number,omitempty"`
Status *meta.MetaProbeStatus `json:"status,omitempty"`
CreateDate util.Timestamp `json:"createDate,omitempty"`
Domain *domain.Domain `json:"domain,omitempty"`
ProbeKey string `json:"probeKey,omitempty"`
EncryptionKey string `json:"encryptionKey,omitempty"`
TargetCount int `json:"targetCount,omitempty"`
SensorCount int `json:"sensorCount,omitempty"`
DisplayName string `json:"displayName,omitempty"`
Cidr string `json:"cidr,omitempty"`
AuthorizeDate util.Timestamp `json:"authorizeDate,omitempty"`
AuthorizeMember *member.Member `json:"authorizeMember,omitempty"`
}