D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
share
/
grafana
/
public
/
app
/
features
/
variables
/
shared
/
testing
/
Filename :
intervalVariableBuilder.ts
back
Copy
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; } }