metadata:
 name: v1_template
 description: v1 template
definitions:
 entities:
  - entity:
     category: ALARM
     type: doctor
     name: High cpu load
     template_id: alarm
  - entity:
     category: RESOURCE
     type: nova.host
     template_id: host
 relationships:
  - relationship:
     source: alarm
     relationship_type: on
     target: host
     template_id : alarm_on_host
scenarios:
 - scenario:
    condition: alarm_on_host
    actions:
     - action:
        action_type: set_state
        action_target:
         target: host
        properties:
         state: SUBOPTIMAL
