Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-3437

allow filtering triggers for "have fired until..."

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.2.0
    • API (A)

      the desire is to obtain IDs of triggers that have fired in a given timeframe.

      trigger.get method has two parameters to limit by the time when triggers have fired :

      • lastChangeSince
      • lastChangeTill

      unfortunately, the lastChangeTill does exactly what the name implies - limits triggers to ones that had their last change until the specified time.

      let's say it's 2016-09-14 now, and we would like to get all triggers that fired in february this year.
      we can set lastChangeSince to 00:00:00 feb 1st.
      unfortunately, setting lastChangeTill to 00:00:00 mar 1st will exclude all triggers that fired in march and later.

      it might be useful to have a parameter like hasChangeTill, that would return "anything that fired until that time, no matter whether it fired afterwards or not".

      if there is a way to get such data, sorry for missing that in the manual and i'd appreciate any pointers

            Unassigned Unassigned
            richlv richlv
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: