ThresholdCustomAlertRule type

A custom alert rule that checks if a value (depends on the custom alert type) is within the given range.

type ThresholdCustomAlertRule = CustomAlertRule & {
  maxThreshold: number
  minThreshold: number
  ruleType:
    | "ThresholdCustomAlertRule"
    | "TimeWindowCustomAlertRule"
    | "ActiveConnectionsNotInAllowedRange"
    | "AmqpC2DMessagesNotInAllowedRange"
    | "MqttC2DMessagesNotInAllowedRange"
    | "HttpC2DMessagesNotInAllowedRange"
    | "AmqpC2DRejectedMessagesNotInAllowedRange"
    | "MqttC2DRejectedMessagesNotInAllowedRange"
    | "HttpC2DRejectedMessagesNotInAllowedRange"
    | "AmqpD2CMessagesNotInAllowedRange"
    | "MqttD2CMessagesNotInAllowedRange"
    | "HttpD2CMessagesNotInAllowedRange"
    | "DirectMethodInvokesNotInAllowedRange"
    | "FailedLocalLoginsNotInAllowedRange"
    | "FileUploadsNotInAllowedRange"
    | "QueuePurgesNotInAllowedRange"
    | "TwinUpdatesNotInAllowedRange"
    | "UnauthorizedOperationsNotInAllowedRange"
}