Flag only when multiple facts match
Flag only when multiple facts match
In this article, you will find the rules document for flagging only when multiple facts match.
Before you begin
To learn how to access the rules page, refer to this
article
.
Flag only when multiple facts match
Note:
This is a complete rules document. In the rules page, copy this JSON into the editor.
[
{
"name": "json1",
"operator": "any",
"rules": [
{
"conditions": {
"all": [
{
"fact": "labelCount",
"operator": "greaterThan",
"value": 0
},
{
"fact": "duration",
"operator": "lessThan",
"value": 5
}
]
},
"event": {
"type": "flagged",
"params": {
"reason": "Labeled event is very short (under 5 seconds)"
}
}
}
]
}
]