metadata:
 name: simple_or3
definitions:
 entities:
  - entity:
     category: ALARM
     type: zabbix
     name: alarm7
     severity: WARNING
     template_id: alarm7
  - entity:
     category: ALARM
     type: zabbix
     name: alarm8
     severity: WARNING
     template_id: alarm8
  - entity:
     category: RESOURCE
     type: nova.instance
     template_id: instance4
 relationships:
  - relationship:
     source: alarm7
     relationship_type: on
     target: instance4
     template_id : alarm7_on_instance4
  - relationship:
     source: alarm8
     relationship_type: on
     target: instance4
     template_id : alarm8_on_instance4
scenarios:
 - scenario:
    condition: instance4 or alarm7_on_instance4 or alarm8_on_instance4
    actions:
     - action:
        action_type: raise_alarm
        properties:
         alarm_name: alarmx
         severity: WARNING
        action_target:
         target: instance4
     - action:
        action_type: execute_mistral
        properties:
         workflow: wf_3
