The body of a THRESHOLD rule: which objects it judges, which related objects it counts for each, and the bounds that count must stay within.
Each time the rule runs, every object the rule applies to whose count is below minCount or above maxCount gets a finding, and every other one is cleared. An object with nothing to count counts zero.
Fields
| Field Name | Description |
|---|---|
query - GraphSearchQueryInputPayload!
|
The objects the rule judges, rooted at the object type the rule applies to. Its relationships only filter those objects. |
count - [GraphRelationshipSearchInputPayload!]!
|
The hops from each judged object to the objects counted, each walked from the object the previous hop reached; the objects the last hop reaches are counted, each once. A hop's own relationships only filter the object it reaches. |
minCount - Int
|
The fewest objects allowed. An object counting fewer fails. Null when there's no minimum. |
maxCount - Int
|
The most objects allowed. An object counting more fails. Null when there's no maximum. |
Used by
Example
Example
{
"query": GraphSearchQueryInputPayload,
"count": [GraphRelationshipSearchInputPayload],
"minCount": 123,
"maxCount": 987
}