Filter placeholder

The placeholder on the filter can be used to define dynamic value for the current filter. They are replace during the request process.

This is available for the Alarms and Collections.

Warning

The placeholder must start with ${{, end with }} and be surrounded by ' or ".

Some placeholder allow to have a modifier. The modifier is surrounded by [ and ].

Available placeholder

Note

If you need a different placeholder, contact us to see if it can be included in the next release.

  • NOW: will be replace with the current time (in nanoseconds).

    It can be modified to shift the time generated forward or backward. The modifier is composed of :

    • Sign : + or -. (No sign is interpreted as +)

    • Value : The amount to shift.

    • Unit : The quantity.

    The following units are available:

    • s : second

    • m : minute

    • h : hour

    • d : day

    • w : week

    • M : month

    • Y : year

    Example of valid usage with the generated timestamp in nanoseconds and the corresponding date:

    • "${{NOW}}" : 1732877296137774627 (2024-11-29 10:48:16)

    • '${{NOW[1w]}}' : 1733482096137774627 (2024-12-06 10:48:16)

    • '${{NOW[-1d]}}' : 1732790896137774627 (2024-11-28 10:48:16)

    • '${{NOW[+1m]}}' : 1732877356137774627 (2024-10-29 10:49:16)

    • "${{NOW[+1M]}}" : 1735465696137774627 (2024-12-29 10:48:16)

    It can be used to show the currently hidden alarms because the hideUntil is in the future. Be careful, to set ignoreHideUntil to true.

    {
      "$and": [
        {
          "hideUntil": {
            "$exists" : true
          }
        },
        {
          "hideUntil": {
            "$gte" : "${{NOW}}"
          }
        }
      ]
    }