Flag events within a specific time window

Flag events within a specific time window

In this article, you will find the rules document for flagging events within a specific time window.

Before you begin

To learn how to access the rules page, refer to this article.

Flag events within a specific time window

Notes
Note: This is a complete rules document. In the rules page, copy this JSON into the editor.

Info
[
  {
    "name": "json1",
    "operator": "any",
    "rules": [
      {
        "conditions": {
          "all": [
            {
              "fact": "startTime",
              "operator": "greaterThanInclusive",
              "value": 120
            },
            {
              "fact": "endTime",
              "operator": "lessThanInclusive",
              "value": 300
            }
          ]
        },
        "event": {
          "type": "flagged",
          "params": {
            "reason": "Event falls within the 2:00 – 5:00 window"
          }
        }
      }
    ]
  }
]