tacker/tacker/tests/unit/vnfm/infra_drivers/openstack/data/hot_tosca_alarm_metadata.yaml

47 lines
1.3 KiB
YAML

heat_template_version: 2013-05-23
description: 'An exception will be raised when having the mismatched metadata
(metadata is described in monitoring policy but unavailable in VDU properties).
'
outputs:
mgmt_ip-VDU1:
value:
get_attr: [CP1, fixed_ips, 0, ip_address]
parameters: {}
resources:
VDU1:
properties:
availability_zone: nova
config_drive: false
flavor: {get_resource: VDU1_flavor}
image: cirros-0.4.0-x86_64-disk
networks:
- port: {get_resource: CP1}
user_data_format: SOFTWARE_CONFIG
type: OS::Nova::Server
CP1:
properties: {network: net_mgmt, port_security_enabled: false}
type: OS::Neutron::Port
VDU1_flavor:
type: OS::Nova::Flavor
properties:
disk: 1
ram: 512
vcpus: 2
vdu_hcpu_usage_respawning:
type: OS::Aodh::GnocchiAggregationByResourcesAlarm
properties:
description: utilization greater_than 50%
metric: cpu_util
threshold: 50
granularity: 60
aggregation_method: mean
resource_type: instance
evaluation_periods: 1
comparison_operator: gt
query:
str_replace:
template: '{"=": {"server_group": "scaling_group_id"}}'
params:
scaling_group_id: VDU1-2e3261d9-1