Spaces:
Sleeping
Sleeping
| import { IsNotEmpty, IsString, IsNumber, IsOptional } from 'class-validator'; | |
| import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; | |
| export class CreateAlertDto { | |
| ({ description: 'Name of the alert rule', example: 'High CPU Alert' }) | |
| () | |
| () | |
| name: string; | |
| ({ description: 'Description of the alert rule', example: 'Triggers when CPU usage exceeds threshold' }) | |
| () | |
| () | |
| description?: string; | |
| ({ description: 'Condition type (e.g. cpu_usage, memory_usage, disk_usage)', example: 'cpu_usage' }) | |
| () | |
| () | |
| conditionType: string; | |
| ({ description: 'Threshold value', example: 90 }) | |
| () | |
| () | |
| threshold: number; | |
| } | |