metadata:
 name: simple_or_operator_deduced_alarm
definitions:
 entities:
  - entity:
     category: ALARM
     type: nagios
     name: alarm1
     severity: WARNING
     template_id: alarm1
  - entity:
     category: ALARM
     type: nagios
     name: alarm2
     severity: WARNING
     template_id: alarm2
  - entity:
     category: RESOURCE
     type: nova.host
     template_id: host
 relationships:
  - relationship:
     source: alarm1
     relationship_type: on
     target: host
     template_id : alarm1_on_host
  - relationship:
     source: alarm2
     relationship_type: on
     target: host
     template_id : alarm2_on_host
scenarios:
 - scenario:
    condition: alarm1_on_host or alarm2_on_host
    actions:
     - action:
        action_type: raise_alarm
        properties:
         alarm_name: alarm3
         severity: CRITICAL
        action_target:
         target: host
