Generate Alert Test Data
This skill generates randomized alert events that match the project's AlarmEvent / Alert data model.
When to use this skill
Use this skill when you need to:
- Generate sample alert data for testing
- Populate the system with realistic mock events
- Create edge-case alerts for specific testing scenarios
Alert Schema
Each generated alert must include:
id: Unique identifier (UUID or incrementing number)name: Descriptive alert name (e.g., "Motion detected in warehouse")description: Detailed description of the eventtime/createdDate: ISO 8601 timestamp in UTCseverity: One ofInfo,Warning,Error,Criticalstatus: One ofActive,Acknowledged,Resolvedlocation: Human-readable location namelatitude/longitude: Valid coordinatessource: Device type (Camera, Microphone, Sensor, MotionDetector, SmartPhone, Tablet)
Generation Rules
- Realistic distribution: ~40% Info, ~30% Warning, ~20% Error, ~10% Critical
- Time spread: Generate alerts across the last 30 days with realistic clustering
- Location variety: Use at least 5 different locations
- Source diversity: Distribute across all device types
- Status mix: ~50% Active, ~30% Acknowledged, ~20% Resolved
- Descriptions: Use realistic security/safety scenarios (not generic placeholder text)
Output Format
Generate data matching the track's language:
- TypeScript: Array of
AlarmEventobjects matchingmodels.ts - C#: List of
Alertobjects matchingAlert.cs - C++: Vector of
Alertstructs matchingAlert.h
Example Usage
/generate-alerts 20
/generate-alerts 5 Critical
/generate-alerts 50 for load testing
Source: microsoft/GHCP-Lab — distributed by TomeVault.