mirror of
https://github.com/mentos1386/zdravko.git
synced 2024-11-28 10:11:17 +00:00
28 lines
512 B
Go
28 lines
512 B
Go
|
package models
|
||
|
|
||
|
type CheckState string
|
||
|
|
||
|
const (
|
||
|
CheckStateActive CheckState = "ACTIVE"
|
||
|
CheckStatePaused CheckState = "PAUSED"
|
||
|
CheckStateUnknown CheckState = "UNKNOWN"
|
||
|
)
|
||
|
|
||
|
type Check struct {
|
||
|
CreatedAt *Time `db:"created_at"`
|
||
|
UpdatedAt *Time `db:"updated_at"`
|
||
|
|
||
|
Id string `db:"id"`
|
||
|
Name string `db:"name"`
|
||
|
|
||
|
Schedule string `db:"schedule"`
|
||
|
Script string `db:"script"`
|
||
|
Filter string `db:"filter"`
|
||
|
}
|
||
|
|
||
|
type CheckWithWorkerGroups struct {
|
||
|
Check
|
||
|
// List of worker group names
|
||
|
WorkerGroups []string
|
||
|
}
|