metadata:
 version: 2
 name: v2_with_func
 description: template with a function
 type: standard
definitions:
 entities:
  - entity:
     category: ALARM
     name: notifiers.mistral.trigger.alarm.for.function
     template_id: alarm
  - entity:
     category: RESOURCE
     type: nova.host
     template_id: host
 relationships:
  - relationship:
     source: alarm
     relationship_type: on
     target: host
     template_id : alarm_on_host
scenarios:
 - scenario:
    condition: alarm_on_host
    actions:
     - action:
        action_type: execute_mistral
        properties:
         workflow: wf_for_tempest_test_1234
         input:
          farewell: get_attr(alarm,name)
