Skip to main content

Detection Condition

A rule that determines when a detection should be treated as a match or alert.

Example

{
"type": "line_cross",
"line_name": "entry-line",
"alert_direction": "positive",
"objects": []
}

Fields

FieldTypeDescription
typestringCondition type. Supported values in the SDK are count_equals, count_greater_than, count_less_than, and line_cross.
countnumberObject count used by count-based conditions.
line_namestringLine name used by line_cross.
alert_directionstringLine-cross direction such as positive or negative.
objectsDetection Object[]Objects that satisfied the condition in the response payload.