vitrage-tempest-plugin/vitrage_tempest_plugin/tests/resources/templates/api/v3_with_default_params.yaml

31 lines
640 B
YAML

metadata:
version: 3
type: standard
name: get_param(template_name)
description: template with parameters that have default values
parameters:
template_name:
description: the name of the template
default: template_with_default_params
alarm_type:
description: the type of the alarm
default: zabbix
alarm_name:
default: Alarm1
new_state:
default: ERROR
entities:
alarm:
category: ALARM
type: get_param(alarm_type)
name: get_param(alarm_name)
host:
category: RESOURCE
type: nova.host
scenarios:
- condition: alarm [on] host
actions:
- set_state:
state: get_param(new_state)
target: host