metadata:
 name: complex_and_or_operator_deduced_alarm
definitions:
 entities:
  - entity:
     category: ALARM
     type: nagios
     name: alarm_a
     severity: WARNING
     template_id: alarm_a
  - entity:
     category: ALARM
     type: nagios
     name: alarm_b
     severity: WARNING
     template_id: alarm_b
  - entity:
     category: ALARM
     type: nagios
     name: alarm_c
     severity: WARNING
     template_id: alarm_c
  - entity:
     category: RESOURCE
     type: nova.host
     template_id: host
 relationships:
  - relationship:
     source: alarm_a
     relationship_type: on
     target: host
     template_id : alarm_a_on_host
  - relationship:
     source: alarm_b
     relationship_type: on
     target: host
     template_id : alarm_b_on_host
  - relationship:
     source: alarm_c
     relationship_type: on
     target: host
     template_id : alarm_c_on_host
scenarios:
 - scenario:
    condition: (alarm_a_on_host or alarm_b_on_host) and alarm_c_on_host
    actions:
     - action:
        action_type: raise_alarm
        properties:
         alarm_name: alarm_d
         severity: WARNING
        action_target:
         target: host
