variable SMART_RULE_TYPES

The smart rule types by path segment, each mapped to the <eventType> its alerts carry on the event stream.

FieldDetection and LineDetection post all-lowercase event types; the rest keep their camel case. Every type but LineDetection is a region rule that smartRules reads.

Examples

Match an alert to its rule type

import { assertEquals } from "@std/assert";
import { SMART_RULE_TYPES } from "./smart-rule-types.ts";

assertEquals(SMART_RULE_TYPES.FieldDetection, "fielddetection");
assertEquals(SMART_RULE_TYPES.regionEntrance, "regionEntrance");

Properties