-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.go
22 lines (19 loc) · 855 Bytes
/
action.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package kizcool
// ExecID is the id of an execution (job)
type ExecID string
// ActionGroup is a list of Actions in sequence, with metadata. Think "scenario".
type ActionGroup struct {
CreationTime int `json:"creationTime,omitempty"`
LastUpdateTime int `json:"lastUpdateTime,omitempty"`
Label string `json:"label,omitempty"`
Shortcut bool `json:"shortcut,omitempty"`
NotificationTypeMask int `json:"notificationTypeMask,omitempty"`
NotificationCondition string `json:"notificationCondition,omitempty"`
Actions []Action `json:"actions,omitempty"`
OID string `json:"oid,omitempty"`
}
// Action defines a list of commands
type Action struct {
DeviceURL DeviceURL `json:"deviceURL,omitempty"`
Commands []Command `json:"commands,omitempty"`
}