in src/alert/condition.ts [14:38]
constructor(opts: Partial<GrafanaCondition> = {}) {
this.state = {};
this._evaluator = {
params: [],
type: 'gt',
};
this._operator = {
type: 'and',
};
this._query = {
params: ['A', '5m', 'now'],
};
this._reducer = {
params: [],
type: 'avg',
};
Object.keys(opts).forEach((opt) => {
this.state[opt] = opts[opt];
});
}