in grafana/alert/condition.js [47:56]
function withOperator(operator) {
const types = ['and', 'or'];
if (!types.includes(operator)) {
throw Error(`Operator must be one of [${types.toString}]`);
}
that._operator.type = operator;
return this;
}