constructor()

in src/alert/alert.ts [15:33]


    constructor(opts: AlertOptions = {}) {
        this.conditions = [];

        this.state = {
            name: 'Panel Title alert',
            for: '15m',
            frequency: '5m',
            conditions: [],
            message: '',
            notifications: [],
            executionErrorState: 'keep_state',
            noDataState: 'keep_state',
            alertRuleTags: {},
            handler: 1,
        };

        this._init(opts);
        this._initConditions(opts);
    }