<div dir="ltr">Hi, Elisha<div><br></div><div>There is no `name` in the template [1], and type is not one of 'nagios', 'aodh' and 'vitrage' in the examples [2].</div><div><br></div><div><table class="inbox-inbox-highlight inbox-inbox-tab-size inbox-inbox-js-file-line-container" style="border-collapse:collapse;color:rgb(51,51,51);font-family:-apple-system,blinkmacsystemfont,"segoe ui",roboto,helvetica,arial,sans-serif,"apple color emoji","segoe ui emoji","segoe ui symbol";font-size:14px;line-height:21px"><tbody style="box-sizing:border-box"><tr style="box-sizing:border-box"><td id="inbox-inbox-LC6" class="inbox-inbox-blob-code inbox-inbox-blob-code-inner inbox-inbox-js-file-line" style="padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">        <span class="inbox-inbox-pl-s" style="color:rgb(24,54,145)">- <span class="inbox-inbox-pl-ent" style="color:rgb(99,163,92)">entity:</span></span></td></tr><tr style="box-sizing:border-box"><td id="inbox-inbox-L7" class="inbox-inbox-blob-num inbox-inbox-js-line-number" style="padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="inbox-inbox-LC7" class="inbox-inbox-blob-code inbox-inbox-blob-code-inner inbox-inbox-js-file-line" style="padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">            <span class="inbox-inbox-pl-s" style="color:rgb(24,54,145)"><span class="inbox-inbox-pl-ent" style="color:rgb(99,163,92)">category:</span> <span class="inbox-inbox-pl-s" style="box-sizing:border-box">ALARM</span></span></td></tr><tr style="box-sizing:border-box"><td id="inbox-inbox-L8" class="inbox-inbox-blob-num inbox-inbox-js-line-number" style="padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="inbox-inbox-LC8" class="inbox-inbox-blob-code inbox-inbox-blob-code-inner inbox-inbox-js-file-line" style="padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre;background-color:rgb(248,238,199)">            <span class="inbox-inbox-pl-s" style="color:rgb(24,54,145)"><span class="inbox-inbox-pl-ent" style="color:rgb(99,163,92)">type:</span> <span class="inbox-inbox-pl-s" style="box-sizing:border-box">Free disk space is less than 20% on volume /</span></span></td></tr><tr style="box-sizing:border-box"><td id="inbox-inbox-L9" class="inbox-inbox-blob-num inbox-inbox-js-line-number" style="padding:0px 10px;width:50px;min-width:50px;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;line-height:20px;color:rgba(0,0,0,0.298039);text-align:right;white-space:nowrap;vertical-align:top;border-style:solid;border-color:rgb(238,238,238);border-width:0px 1px 0px 0px"></td><td id="inbox-inbox-LC9" class="inbox-inbox-blob-code inbox-inbox-blob-code-inner inbox-inbox-js-file-line" style="padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;word-wrap:normal;white-space:pre">            <span class="inbox-inbox-pl-s" style="color:rgb(24,54,145)"><span class="inbox-inbox-pl-ent" style="color:rgb(99,163,92)">template_id:</span> <span class="inbox-inbox-pl-s" style="box-sizing:border-box">host_alarm</span></span></td></tr></tbody></table></div><div><br></div><div><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif">[1] </span><a href="https://github.com/openstack/vitrage/blob/master/etc/vitrage/templates.sample/deduced_host_disk_space_to_instance_at_risk.yaml#L8" target="_blank" style="font-family:"helvetica neue",helvetica,arial,sans-serif">https://github.com/openstack/vitrage/blob/master/etc/vitrage/templates.sample/deduced_host_disk_space_to_instance_at_risk.yaml#L8</a><br></div><div>[2] <a href="https://github.com/openstack/vitrage/blob/master/doc/source/vitrage-template-format.rst#examples">https://github.com/openstack/vitrage/blob/master/doc/source/vitrage-template-format.rst#examples</a></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Aug 16, 2016 at 2:21 AM Rosensweig, Elisha (Nokia - IL) <<a href="mailto:elisha.rosensweig@nokia.com">elisha.rosensweig@nokia.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12.0pt;color:#1f497d">
<div>Hi,</div>
<div><br>
</div>
<div>The "type" means where it was generated - aodh, vitrage, nagios...</div>
<div><br>
</div>
<div>I think you are looking for"name", a field that describes the actual problem. We should add that to our documentation to clarify.</div>
<div><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12.0pt;color:#1f497d">
Sent from <a href="http://www.9folders.com/" style="text-decoration:none;color:#009bdf" target="_blank">
Nine</a></div>
</div>
<div style="clear:both">
<hr style="border:none;min-height:1px;color:#e1e1e1;background-color:#e1e1e1">
<div style="border:none;padding:3.0pt 0cm 0cm 0cm"><span style="font-size:11.0pt;font-family:'Calibri','sans-serif'"><b>From:</b> Yujun Zhang <<a href="mailto:zhangyujun%2Bzte@gmail.com" target="_blank">zhangyujun+zte@gmail.com</a>><br>
<b>Sent:</b> Aug 15, 2016 16:10<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br>
<b>Subject:</b> [openstack-dev] [vitrage] reference a type of alarm in template<br>
</span></div>
</div></div><div>
<br type="attribution">
<div>
<div dir="ltr">I have a question on how to reference a type of alarm in template so that we can build scenarios.
<div><br>
</div>
<div>In the template sample [1], an alarm entity has three keys: `category`, `type` and `template_id`. It seems `type` is the only information to distinguish different alarms. However, when an alarm is raised by aodh, it seems all alarms are assigned entity
 type `aodh` [2], so are they shown in dashboard.</div>
<div><br>
</div>
<div>Suppose we have two different types of alarms from `aodh`, e.g. `volume.corrupt` and `volume.deleted`. How should I reference them separately in a template?</div>
<div><br>
</div>
<div>
<div style="display:block">
×</div>
</div>
<div><img src="cid:1568e3c164287d0de1d3" alt="Screen Shot 2016-08-15 at 8.44.56 PM.png" style="max-width:100%">
<div style="display:block">
<a>×</a><button type="button">
<i></i></button><button type="button" style="display:inline-block">
<i></i></button> </div>
<br>
</div>
<div>
<div style="display:block">
<a>×</a><button type="button">
<i></i></button><button type="button" style="display:inline-block">
<i></i></button> </div>
<br>
</div>
<div>[1] <a href="https://github.com/openstack/vitrage/blob/master/etc/vitrage/templates.sample/deduced_host_disk_space_to_instance_at_risk.yaml#L8" target="_blank">https://github.com/openstack/vitrage/blob/master/etc/vitrage/templates.sample/deduced_host_disk_space_to_instance_at_risk.yaml#L8</a></div>
<div>[2] <a href="https://github.com/openstack/vitrage/blob/master/vitrage/datasources/aodh/transformer.py#L75" target="_blank">https://github.com/openstack/vitrage/blob/master/vitrage/datasources/aodh/transformer.py#L75</a></div>
<div><br>
</div>
</div>
</div>
</div><div></div>

__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div>