onQuery()

in src/alert/condition.ts [79:90]


    onQuery(query: string, duration?: string, from?: string) {
        if (typeof query !== 'string') {
            throw Error(
                'Query identifier must be a string. eg. "A" or "B", etc...'
            );
        }
        this._query.params[0] = query;
        this._query.params[1] = duration;
        this._query.params[2] = from;

        return this;
    }