types

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alarm

type Alarm struct {
	Id       int64      `json:"id"`
	Device   string     `json:"device" xorm:"-"`
	DeviceId string     `json:"device_id" xorm:"index"`
	Type     string     `json:"type"`
	Title    string     `json:"title"`
	Message  string     `json:"message,omitempty"`
	Level    uint       `json:"level"`
	Read     bool       `json:"read,omitempty"`
	Created  model.Time `json:"created,omitempty" xorm:"created"`
}

type Validator

type Validator struct {
	Id         string     `json:"id" xorm:"pk"`
	ProductId  string     `json:"product_id" xorm:"index"`
	Expression string     `json:"expression"`
	Type       string     `json:"type"`
	Title      string     `json:"title"`
	Template   string     `json:"template"`
	Level      uint       `json:"level"`
	Delay      uint       `json:"delay,omitempty"` //延迟时间s
	Again      uint       `json:"again,omitempty"` //再次提醒间隔s
	Total      uint       `json:"total,omitempty"` //总提醒次数
	Disabled   bool       `json:"disabled"`
	Created    model.Time `json:"created" xorm:"created"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL