Combine a string match with a numeric check

Combine a string match with a numeric check

In this article, you will find the rules document for combining a string match with a numeric check.

Before you begin

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

Combine a string match with a numeric check

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": "primaryCategory",
              "operator": "equal",
              "value": "Interview"
            },
            {
              "fact": "duration",
              "operator": "greaterThan",
              "value": 300
            }
          ]
        },
        "event": {
          "type": "flagged",
          "params": {
            "reason": "Interview event exceeds 5 minutes"
          }
        }
      }
    ]
  }
]