metadata:
 name: one_edge
definitions:
 entities:
  - entity:
     category: ALARM
     type: nagios
     name: alarm1
     severity: WARNING
     template_id: alarm1
  - entity:
     category: RESOURCE
     type: nova.instance
     template_id: instance
 relationships:
  - relationship:
     source: alarm1
     relationship_type: on
     target: instance
     template_id : alarm1_on_instance
scenarios:
 - scenario:
    condition: alarm1_on_instance
    actions:
     - action:
        action_type: raise_alarm
        properties:
         alarm_name: alarm_x
         severity: WARNING
        action_target:
         target: instance
     - action:
        action_type: execute_mistral
        properties:
         workflow: wf_instance
