共用方式為


AllowlistCustomAlertRule type

自定義警示規則,會檢查是否允許值 (取決於自定義警示類型)。

type AllowlistCustomAlertRule = ListCustomAlertRule & {
  allowlistValues: string[]
  ruleType:
    | "AllowlistCustomAlertRule"
    | "ConnectionToIpNotAllowed"
    | "ConnectionFromIpNotAllowed"
    | "LocalUserNotAllowed"
    | "ProcessNotAllowed"
}