Threshold Configurator
Advanced AI
Visual rule builder for configuring exception detection thresholds. Define metrics, conditions, time windows, severity levels, and notification channels with real-time testing.
Interactive Preview
Build and test threshold rules with instant feedback
Threshold Configuration
Define rules for exception detection
Rule Preview
Alert when [metric] is greater than [value] for 15m
Features
- Visual rule builder: Form-based interface for configuring complex threshold rules
- Multiple operators: Greater than, less than, equal to, and range-based conditions
- Time windows: Configure evaluation periods from 5 minutes to 1 week
- Severity levels: Critical, warning, attention, and info priorities
- Multi-channel notifications: Email, Slack, SMS, and push notifications
- Real-time preview: See how your rule translates to plain English
- Test functionality: Test rules against current metrics before saving
Installation
Import the ThresholdConfigurator component and provide available metrics for configuration.
// Example usage
import { ThresholdConfigurator } from '@/components/ai/threshold-configurator'
const metrics = [
{ id: 'response-time', name: 'Response Time', currentValue: 245 },
{ id: 'memory', name: 'Memory Usage', currentValue: 72 },
{ id: 'cpu', name: 'CPU Usage', currentValue: 45 }
]
<ThresholdConfigurator
metrics={metrics}
onSave={(config) => saveThreshold(config)}
onTest={(result) => handleTestResult(result)}
initialValues={{
metric: 'response-time',
operator: '>',
threshold: 500,
timeWindow: '15m',
severity: 'warning',
channels: ['email', 'slack']
}}
/>