LineCrossingRuleModel
Fields
Section titled “Fields”| Field | Type | Required | Description and constraints |
|---|---|---|---|
id |
string | Yes | minimum length 1. maximum length 128. pattern ^[A-Za-z0-9][A-Za-z0-9._:-]*$ |
label |
string | Yes | minimum length 1. maximum length 256 |
severity |
RuleSeverity | No | default "warning" |
enabled |
boolean | No | default true |
actions |
array of WebhookActionModel or GenetecActionModel or NotificationProfileActionModel or RecordClipActionModel | No | maximum items 16. default [] |
schedule |
RuleScheduleModel or null | No | |
type |
"lineCross" |
Yes | |
configurationId |
string | Yes | minimum length 1. maximum length 128. pattern ^[A-Za-z0-9][A-Za-z0-9._:-]*$ |
direction |
LineDirection | No | default "either" |
cooldownSeconds |
number | No | minimum 0.0. maximum 3600.0. default 2 |
Additional properties are rejected by this schema.
JSON schema
Section titled “JSON schema”{ "properties": { "id": { "type": "string", "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$", "title": "Id" }, "label": { "type": "string", "maxLength": 256, "minLength": 1, "title": "Label" }, "severity": { "$ref": "#/components/schemas/RuleSeverity", "default": "warning" }, "enabled": { "type": "boolean", "title": "Enabled", "default": true }, "actions": { "items": { "oneOf": [ { "$ref": "#/components/schemas/WebhookActionModel" }, { "$ref": "#/components/schemas/GenetecActionModel" }, { "$ref": "#/components/schemas/NotificationProfileActionModel" }, { "$ref": "#/components/schemas/RecordClipActionModel" } ], "discriminator": { "propertyName": "type", "mapping": { "genetec": "#/components/schemas/GenetecActionModel", "notificationProfile": "#/components/schemas/NotificationProfileActionModel", "recordClip": "#/components/schemas/RecordClipActionModel", "webhook": "#/components/schemas/WebhookActionModel" } } }, "type": "array", "maxItems": 16, "title": "Actions", "default": [] }, "schedule": { "anyOf": [ { "$ref": "#/components/schemas/RuleScheduleModel" }, { "type": "null" } ] }, "type": { "type": "string", "const": "lineCross", "title": "Type" }, "configurationId": { "type": "string", "maxLength": 128, "minLength": 1, "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$", "title": "Configurationid" }, "direction": { "$ref": "#/components/schemas/LineDirection", "default": "either" }, "cooldownSeconds": { "type": "number", "maximum": 3600.0, "minimum": 0.0, "title": "Cooldownseconds", "default": 2 } }, "additionalProperties": false, "type": "object", "required": [ "id", "label", "type", "configurationId" ], "title": "LineCrossingRuleModel"}