# Getting quality of tag from alarm event

**URL:** <https://forum.inductiveautomation.com/t/getting-quality-of-tag-from-alarm-event/103229>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [March 4, 2025, 6:33pm UTC](https://forum.inductiveautomation.com/t/getting-quality-of-tag-from-alarm-event/103229 "2025-03-04T18:33:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![justin.brzozoski](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justin.brzozoski/32/13452_2.png) [@justin.brzozoski](https://forum.inductiveautomation.com/u/justin.brzozoski)\
**Post date:** [March 4, 2025, 6:33pm UTC](https://forum.inductiveautomation.com/t/getting-quality-of-tag-from-alarm-event/103229/1 "2025-03-04T18:33:22Z")

</div>

I've got a script block in an alarm event pipeline, and I'm trying to figure out what the quality of the tag was when the alarm went off. First up, I get that this probably only applies to quality alarms. Most other alarm types don't seem to receive events for any tag changes with a non-good quality. (Which makes sense...)

But ... shouldn't I be able to see the quality _somewhere_ in the event properties of a quality alarm?

The `event['eventValue']` is returning just the basic tag value. I'm not seeing any other properties with "qual" or "qv" in the names.

How can I know what the quality was that triggered the alarm?

---

<div class="post-metadata">

**Author:** ![kvane](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kvane/32/22228_2.png) [@kvane](https://forum.inductiveautomation.com/u/kvane)\
**Post date:** [March 4, 2025, 9:30pm UTC](https://forum.inductiveautomation.com/t/getting-quality-of-tag-from-alarm-event/103229/2 "2025-03-04T21:30:47Z")

</div>

After looking at the list of Tag Alarm Properties linked in the description of the alarm event scripting object:

> **[Scripting Object Reference | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/appendix/reference-pages/scripting-object-reference#pyalarmevent)**
>
> This page describes several common scripting objects

I don't think tag quality is included in the default properties, so you can add the Quality of the tag at the execution of the alarm via [Alarm Associated Data](https://www.docs.inductiveautomation.com/docs/8.1/platform/alarming/configuring-alarms/alarm-associated-data).

The Alarm Properties when creating an Expression Binding on an Alarm prop include the "Evaluation Properties" such as the Quality. So I would name my new associated data "Quality" and bind it to {Quality}. Then I can use it in the pipeline.

If someone knows of any even more built-in way let me know.
