29 lines
683 B
TypeScript
29 lines
683 B
TypeScript
|
|
import * as plugins from '../plugins.js';
|
||
|
|
|
||
|
|
import type { AlertManager } from './classes.alertmanager.js';
|
||
|
|
|
||
|
|
@plugins.smartdata.Manager()
|
||
|
|
export class AlertRule extends plugins.smartdata.SmartDataDbDoc<
|
||
|
|
AlertRule,
|
||
|
|
plugins.idpInterfaces.data.IAlertRule,
|
||
|
|
AlertManager
|
||
|
|
> {
|
||
|
|
@plugins.smartdata.unI()
|
||
|
|
public id: string;
|
||
|
|
|
||
|
|
@plugins.smartdata.svDb()
|
||
|
|
public data: plugins.idpInterfaces.data.IAlertRule['data'] = {
|
||
|
|
scope: 'global',
|
||
|
|
organizationId: undefined,
|
||
|
|
eventType: '',
|
||
|
|
minimumSeverity: 'medium',
|
||
|
|
recipientMode: 'global_admins',
|
||
|
|
recipientUserIds: [],
|
||
|
|
push: true,
|
||
|
|
enabled: true,
|
||
|
|
createdByUserId: '',
|
||
|
|
createdAt: 0,
|
||
|
|
updatedAt: 0,
|
||
|
|
};
|
||
|
|
}
|