Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 1 | namespace aos.common.actions; |
| 2 | |
| 3 | table 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 | |
| 13 | table DoubleParam { |
| 14 | val:double; |
| 15 | } |
| 16 | |
| 17 | table 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 | } |