Function: calculateMaxCheckDurationSeconds()
function calculateMaxCheckDurationSeconds(args: {
retryAttempts: number;
timeoutSeconds: number;
}): {
backoffSeconds: number;
totalAttempts: number;
totalSeconds: number;
};
Defined in: src/components/SiteDetails/tabs/SettingsTab.utils.ts:27
Calculate the maximum potential duration of a monitor check including retries and exponential backoff.
Parametersโ
argsโ
retryAttemptsโ
number
timeoutSecondsโ
number
Returnsโ
{
backoffSeconds: number;
totalAttempts: number;
totalSeconds: number;
}
backoffSecondsโ
readonly backoffSeconds: number;
totalAttemptsโ
readonly totalAttempts: number;
totalSecondsโ
readonly totalSeconds: number;