metadata:
 version: 2
 type: standard
 name: v2_low_swap_space
 description: low swap space
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
        properties:
         state: SUBOPTIMAL
