<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<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 id="signature-x" 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">
Nine</a></div>
</div>
<div id="quoted_header" style="clear:both">
<hr style="border:none; 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 <zhangyujun+zte@gmail.com><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>
<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 id="eFrame-648f7e30ec1cb6bf8d5b9cc3" class="m-encrypt-frame" style="display:block">
×</div>
</div>
<div><img src="cid:1568e3c164287d0de1d3" alt="Screen Shot 2016-08-15 at 8.44.56 PM.png" class="" style="max-width:100%">
<div id="eFrame-3a28704d49111676819ecf4" class="m-encrypt-frame" style="display:block">
<a class="m-frame-close">×</a><button id="undoBtn" class="m-btn m-encrypt-button" type="button" style="">
<i class="m-icon m-icon-undo"></i></button><button id="editorBtn" class="m-btn m-encrypt-button" type="button" style="display:inline-block">
<i class="m-icon m-icon-editor"></i></button> </div>
<br>
</div>
<div>
<div id="eFrame-288f4ae218f01440ca5fa2c6" class="m-encrypt-frame" style="display:block">
<a class="m-frame-close">×</a><button id="undoBtn" class="m-btn m-encrypt-button" type="button" style="">
<i class="m-icon m-icon-undo"></i></button><button id="editorBtn" class="m-btn m-encrypt-button" type="button" style="display:inline-block">
<i class="m-icon m-icon-editor"></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">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">https://github.com/openstack/vitrage/blob/master/vitrage/datasources/aodh/transformer.py#L75</a></div>
<div><br>
</div>
</div>
</div>
</body>
</html>