mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 20:58:14 -05:00
fix service tags (#8)
This commit is contained in:
parent
288e1b75e9
commit
8eec79d54f
@ -46,14 +46,14 @@ const (
|
|||||||
|
|
||||||
type Service struct {
|
type Service struct {
|
||||||
Common
|
Common
|
||||||
Name string `json:"name,omitempty"`
|
Name string `json:"name"`
|
||||||
Type uint8 `json:"type,omitempty"`
|
Type uint8 `json:"type"`
|
||||||
Target string `json:"target,omitempty"`
|
Target string `json:"target"`
|
||||||
SkipServersRaw string `json:"-"`
|
SkipServersRaw string `json:"-"`
|
||||||
Duration uint64 `json:"duration,omitempty"`
|
Duration uint64 `json:"duration"`
|
||||||
Notify bool `json:"notify,omitempty"`
|
Notify bool `json:"notify,omitempty"`
|
||||||
NotificationGroupID uint64 `json:"notification_group_id,omitempty"` // 当前服务监控所属的通知组 ID
|
NotificationGroupID uint64 `json:"notification_group_id"` // 当前服务监控所属的通知组 ID
|
||||||
Cover uint8 `json:"cover,omitempty"`
|
Cover uint8 `json:"cover"`
|
||||||
|
|
||||||
EnableTriggerTask bool `gorm:"default: false" json:"enable_trigger_task,omitempty"`
|
EnableTriggerTask bool `gorm:"default: false" json:"enable_trigger_task,omitempty"`
|
||||||
EnableShowInService bool `gorm:"default: false" json:"enable_show_in_service,omitempty"`
|
EnableShowInService bool `gorm:"default: false" json:"enable_show_in_service,omitempty"`
|
||||||
|
Loading…
Reference in New Issue
Block a user