Show only Diagnostic alarms on Alarm Status Table

I would like to separate my alarms by having one page show the alarms and another show just the diagnostic messages. How would I limit the second page to show only the Diagnostic Messages.

You can use the filterAlarm extension function on the alarm status table to show only alarms that are ‘Diagnostic’ priority.

almPriority = alarmEvent.get('priority')
if str(almPriority) == 'Diagnostic':
	return True
return False

For reference:
https://docs.inductiveautomation.com/pages/viewpage.action?pageId=72418681#VisionAlarmStatusTable-filterAlarm

Probably should specify Vision or Perspective

Vision