metadata:
 name: basic_causal_links
definitions:
 entities:
  - entity:
     category: ALARM
     type: nagios
     template_id: nagios_alarm
  - entity:
     category: ALARM
     type: vitrage
     name: deduced_alarm
     template_id: deduced_alarm
  - entity:
     category: RESOURCE
     type: nova.host
     template_id: host
 relationships:
  - relationship:
     source: nagios_alarm
     relationship_type: on
     target: host
     template_id : nagios_alarm_on_host
  - relationship:
     source: deduced_alarm
     relationship_type: on
     target: host
     template_id : deduced_alarm_on_host
scenarios:
 - scenario:
    condition: nagios_alarm_on_host and deduced_alarm_on_host
    actions:
     - action:
        action_type: add_causal_relationship
        action_target:
         source: nagios_alarm
         target: deduced_alarm
