Monitored Objects(s) {%- if payload.monitored_objects is defined and payload.monitored_objects|length > 0 -%}{%- for monitored_object in payload.monitored_objects -%}{{" • "}}{{- monitored_object -}}{{- "
if not loop.last -}}{%- endfor -%}{%- else -%}{{" • "}}{{- payload.monitored_object -}}{%- endif -%}
Monitored Objects(s) {%- set stewards = {} -%} {%- for item in payload.monitored_objects -%} {%- if item.steward not in stewards -%} {%- set stewards = stewards | merge({ item.steward: [] }) -%} {%- endif -%} {%- set stewards = stewards | merge({ item.steward: stewards[item.steward] | append(item.object) }) -%} {%- endfor -%} {%- for steward, objects in stewards.items() -%} {{ steward }}
{%- for object in objects -%} {{ " • " }}{{ object }}{% if not loop.last %}
{% endif %} {%- endfor -%}
{%- endfor -%}