Variable: MONITOR_ERRORS
const MONITOR_ERRORS: {
CANNOT_REMOVE_LAST: "Cannot remove the last monitor from a site. Use site removal instead.";
CONFIGURATION_INVALID: "Monitor configuration is invalid";
FAILED_TO_ADD: "Failed to add monitor";
FAILED_TO_REMOVE: "Failed to remove monitor";
FAILED_TO_UPDATE: "Failed to update monitor";
FAILED_TO_UPDATE_INTERVAL: "Failed to update check interval";
INVALID_ID: "Monitor ID is invalid or missing";
INVALID_INTERVAL: "Check interval must be a positive number";
INVALID_RETRY_ATTEMPTS: "Retry attempts must be a non-negative number";
INVALID_TIMEOUT: "Timeout must be a positive number";
NOT_FOUND: "Monitor not found";
TYPE_NOT_SUPPORTED: "Monitor type is not supported";
};
Defined in: shared/utils/errorCatalog.ts:82
Monitor-related error messages.
Type Declarationโ
CANNOT_REMOVE_LASTโ
readonly CANNOT_REMOVE_LAST: "Cannot remove the last monitor from a site. Use site removal instead." = "Cannot remove the last monitor from a site. Use site removal instead.";
Error when trying to remove the last monitor from a site
CONFIGURATION_INVALIDโ
readonly CONFIGURATION_INVALID: "Monitor configuration is invalid" = "Monitor configuration is invalid";
Error when monitor configuration is invalid
FAILED_TO_ADDโ
readonly FAILED_TO_ADD: "Failed to add monitor" = "Failed to add monitor";
Error when attempting to add a monitor fails
FAILED_TO_REMOVEโ
readonly FAILED_TO_REMOVE: "Failed to remove monitor" = "Failed to remove monitor";
Error when attempting to remove a monitor fails
FAILED_TO_UPDATEโ
readonly FAILED_TO_UPDATE: "Failed to update monitor" = "Failed to update monitor";
Error when attempting to update a monitor fails
FAILED_TO_UPDATE_INTERVALโ
readonly FAILED_TO_UPDATE_INTERVAL: "Failed to update check interval" = "Failed to update check interval";
Error when attempting to update check interval fails
INVALID_IDโ
readonly INVALID_ID: "Monitor ID is invalid or missing" = "Monitor ID is invalid or missing";
Error when monitor ID is invalid or missing
INVALID_INTERVALโ
readonly INVALID_INTERVAL: "Check interval must be a positive number" = "Check interval must be a positive number";
Error when check interval is invalid
INVALID_RETRY_ATTEMPTSโ
readonly INVALID_RETRY_ATTEMPTS: "Retry attempts must be a non-negative number" = "Retry attempts must be a non-negative number";
Error when retry attempts value is invalid
INVALID_TIMEOUTโ
readonly INVALID_TIMEOUT: "Timeout must be a positive number" = "Timeout must be a positive number";
Error when timeout value is invalid
NOT_FOUNDโ
readonly NOT_FOUND: "Monitor not found" = "Monitor not found";
Error when a requested monitor cannot be found
TYPE_NOT_SUPPORTEDโ
readonly TYPE_NOT_SUPPORTED: "Monitor type is not supported" = "Monitor type is not supported";
Error when monitor type is not supported
Remarksโ
Error messages for monitor operations, configuration validation, and monitor lifecycle management.