metadata:
 name: complex1
definitions:
 entities:
  - entity:
     category: ALARM
     type: zabbix
     name: alarm4
     severity: WARNING
     template_id: alarm4
  - entity:
     category: ALARM
     type: zabbix
     name: alarm5
     severity: WARNING
     template_id: alarm5
  - entity:
     category: ALARM
     type: zabbix
     name: alarm6
     severity: WARNING
     template_id: alarm6
  - entity:
     category: RESOURCE
     type: nova.instance
     template_id: instance
 relationships:
  - relationship:
     source: alarm4
     relationship_type: on
     target: instance
     template_id : alarm4_on_instance
  - relationship:
     source: alarm5
     relationship_type: on
     target: instance
     template_id : alarm5_on_instance
  - relationship:
     source: alarm6
     relationship_type: on
     target: instance
     template_id : alarm6_on_instance
scenarios:
 - scenario:
    condition: alarm4_on_instance or (alarm5_on_instance and alarm6_on_instance)
    actions:
     - action:
        action_type: raise_alarm
        properties:
         alarm_name: alarmx
         severity: WARNING
        action_target:
         target: instance
     - action:
        action_type: execute_mistral
        properties:
         workflow: wf_3
