Flag events with no labels

Flag events with no labels

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

Before you begin

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

Flag events with no 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": "equal",
              "value": 0
            }
          ]
        },
        "event": {
          "type": "flagged",
          "params": {
            "reason": "Event has no labels"
          }
        }
      }
    ]
  }
]