Flag events with too many labels

Flag events with too many labels

In this article, you will find the rules document for flagging events with too many labels.

Before you begin

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

Flag events with too many labels

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": "labelCount",
              "operator": "greaterThan",
              "value": 5
            }
          ]
        },
        "event": {
          "type": "flagged",
          "params": {
            "reason": "Event has more than 5 labels"
          }
        }
      }
    ]
  }
]