Skip to content

Commit

Permalink
add netenv to alarm description
Browse files Browse the repository at this point in the history
  • Loading branch information
kteague committed Jul 27, 2019
1 parent 8c4b5bb commit 7f26309
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/aim/cftemplates/cw_alarms.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,15 @@ def __init__(
for alarm_set_id in alarm_sets.keys():
alarm_set = alarm_sets[alarm_set_id]
for alarm_id in alarm_set.keys():
netenv = get_parent_by_interface(resource, schemas.INetworkEnvironment)
env = get_parent_by_interface(resource, schemas.IEnvironment)
envreg = get_parent_by_interface(resource, schemas.IEnvironmentRegion)
app = get_parent_by_interface(resource, schemas.IApplication)
group = get_parent_by_interface(resource, schemas.IResourceGroup)
alarm = alarm_set[alarm_id]
description = {
"netenv_name": netenv.name,
"netenv_title": netenv.title,
"env_name": env.name,
"env_title": env.title,
"envreg_name": envreg.name,
Expand Down

0 comments on commit 7f26309

Please sign in to comment.