Viewing File: /usr/local/cpanel/base/frontend/jupiter/site-monitor/models/uptime-window.enum.js
/*
* site-monitor/models/uptime-window.enum.js Copyright 2021 cPanel, L.L.C.
* All rights reserved.
* copyright@cpanel.net http://cpanel.net
* This code is subject to the cPanel license. Unauthorized copying is prohibited
*/
/* global define, PAGE */
/** @namespace cpanel.siteMoniter.models.enums.UptimeWindow */
define([
'app/models/enum-helper'
],
function(EnumHelper) {
"use strict";
/**
* @typedef {string} UptimeWindowType
*/
/**
* @name UptimeWindow
* @enum {UptimeWindowType}
*/
var UptimeWindow = {
Last24Hours: 'last 24 hours',
Last7Days: 'last 7 days',
Last30Days: 'last 30 days',
SinceStart: 'since start',
};
/**
* Return the key from the value if it exists in the enum.
*
* @param {string} value
* @returns string
*/
UptimeWindow.fromString = function(value) {
return EnumHelper.fromString(UptimeWindow, value);
}
return UptimeWindow;
}
);
Back to Directory
File Manager