You can use the alarms() function to gather alarms based on a dateRange.

  • readAll(equip or point).alarms(today) ---> Returns all of the alarms generated by programs running on equipment.
    If you want to return the number or count alarms, you can apphend .size().
  • readAll(equip or point).alarms(today).size() ---> Returns a number.
    If you want to change the alarms based on equipment types, change the filter from equip to equip and chillerPlant or the appropriate filter for the equipment.