metadata:
 name: basic_regex_for_fail
 description: a basic template with a regex for failing tests
definitions:
 entities:
  - entity:
     category: ALARM
     type: zabbix
     rawtext.regex: TEST TEXT fail
     template_id: zabbix_alarm
  - entity:
     category: RESOURCE
     type: nova.host
     name: host-$1
     template_id: host
 relationships:
  - relationship:
     source: zabbix_alarm
     relationship_type: on
     target: host
     template_id : nic_fail_on_host
scenarios:
 - scenario:
    condition: nic_fail_on_host
    actions:
     - action:
        action_type: raise_alarm
        action_target:
         target: host
        properties:
         alarm_name: nic problem
         severity: critical
