github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/aagent/machine/testdata/machine.yaml (about)

     1  name: TestMachine
     2  version: 0.0.1
     3  initial_state: unknown
     4  splay_start: 10
     5  
     6  transitions:
     7    - name: fire_1
     8      from: [unknown]
     9      destination: one
    10  
    11    - name: fire_2
    12      from: [one]
    13      destination: two
    14  
    15  watchers:
    16    - name: true_1
    17      type: exec
    18      state_match: [unknown]
    19      fail_transition: fire_1
    20      success_transition: fire_1
    21      properties:
    22        command: /usr/bin/true
    23  
    24    - name: true_2
    25      type: exec
    26      state_match: [one, two]
    27      fail_transition: fire_1
    28      success_transition: fire_2
    29      interval: "1m"
    30      properties:
    31        command: /usr/bin/true
    32  #