mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
* Add and configure eslint-plugin-import * Fix the lint:ts npm command * Autofix + prettier all the files * Manually fix remaining files * Move jquery code in jest-setup to external file to safely reorder imports * Resolve issue caused by circular dependencies within Prometheus * Update .betterer.results * Fix missing // @ts-ignore * ignore iconBundle.ts * Fix missing // @ts-ignore
26 lines
626 B
TypeScript
26 lines
626 B
TypeScript
import { IntervalVariableModel, VariableRefresh } from 'app/features/variables/types';
|
|
|
|
import { OptionsVariableBuilder } from './optionsVariableBuilder';
|
|
|
|
export class IntervalVariableBuilder extends OptionsVariableBuilder<IntervalVariableModel> {
|
|
withRefresh(refresh: VariableRefresh) {
|
|
this.variable.refresh = refresh;
|
|
return this;
|
|
}
|
|
|
|
withAuto(auto: boolean) {
|
|
this.variable.auto = auto;
|
|
return this;
|
|
}
|
|
|
|
withAutoCount(autoCount: number) {
|
|
this.variable.auto_count = autoCount;
|
|
return this;
|
|
}
|
|
|
|
withAutoMin(autoMin: string) {
|
|
this.variable.auto_min = autoMin;
|
|
return this;
|
|
}
|
|
}
|