blob: 0ce41fc57f078adff0603e1e9c9e21e79a91dd05 [file] [log] [blame]
Alex Perrycb7da4b2019-08-28 19:35:56 -07001namespace aos.common.actions;
2
3table Status {
4 // The run value of the instance we're currently running or 0.
5 running:uint;
6 // A run value we were previously running or 0.
7 last_running:uint;
8 // If false the action failed to complete and may be in a bad state,
9 // this is a critical problem not a cancellation.
10 success:bool;
11}
12
13table DoubleParam {
14 val:double;
15}
16
17table Goal {
18 // The unique value to put into status.running while running this instance or
19 // 0 to cancel.
20 run:uint;
21 // Default parameter. The more useful thing to do would be to define your own
22 // goal type to change param to a useful structure.
23 params:DoubleParam;
24}