export var AutoRefreshInterval;
(function (AutoRefreshInterval) {
    AutoRefreshInterval["OFF"] = "off";
    AutoRefreshInterval["FIVE_SECONDS"] = "5s";
    AutoRefreshInterval["TEN_SECONDS"] = "10s";
    AutoRefreshInterval["THIRTY_SECONDS"] = "30s";
    AutoRefreshInterval["ONE_MINUTE"] = "1m";
    AutoRefreshInterval["FIVE_MINUTES"] = "5m";
    AutoRefreshInterval["FIFTEEN_MINUTES"] = "15m";
})(AutoRefreshInterval || (AutoRefreshInterval = {}));
export function getAutoRefreshIntervalInMs(interval) {
    switch (interval) {
        case AutoRefreshInterval.OFF:
            return null;
        case AutoRefreshInterval.FIVE_SECONDS:
            return 5000;
        case AutoRefreshInterval.TEN_SECONDS:
            return 10000;
        case AutoRefreshInterval.THIRTY_SECONDS:
            return 30000;
        case AutoRefreshInterval.ONE_MINUTE:
            return 60000;
        case AutoRefreshInterval.FIVE_MINUTES:
            return 300000;
        case AutoRefreshInterval.FIFTEEN_MINUTES:
            return 900000;
        default:
            return null;
    }
}
export function getAutoRefreshIntervalLabel(interval) {
    switch (interval) {
        case AutoRefreshInterval.OFF:
            return "Off";
        case AutoRefreshInterval.FIVE_SECONDS:
            return "5s";
        case AutoRefreshInterval.TEN_SECONDS:
            return "10s";
        case AutoRefreshInterval.THIRTY_SECONDS:
            return "30s";
        case AutoRefreshInterval.ONE_MINUTE:
            return "1m";
        case AutoRefreshInterval.FIVE_MINUTES:
            return "5m";
        case AutoRefreshInterval.FIFTEEN_MINUTES:
            return "15m";
        default:
            return "Off";
    }
}
//# sourceMappingURL=DashboardViewConfig.js.map