@oneuptime/common 14.3.0 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/DatabaseModels/AIAgent.js +5 -1
- package/Models/DatabaseModels/AcmeCertificate.js +14 -0
- package/Models/DatabaseModels/Alert.js +6 -8
- package/Models/DatabaseModels/AlertEpisodeStateTimeline.js +3 -2
- package/Models/DatabaseModels/AlertSeverity.js +3 -12
- package/Models/DatabaseModels/ApiKey.d.mts +3 -1
- package/Models/DatabaseModels/ApiKey.d.ts +3 -1
- package/Models/DatabaseModels/ApiKey.js +67 -14
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.mts +1 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.ts +1 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.js +37 -4
- package/Models/DatabaseModels/CallLog.js +15 -3
- package/Models/DatabaseModels/CodeRepository.d.mts +1 -0
- package/Models/DatabaseModels/CodeRepository.d.ts +1 -0
- package/Models/DatabaseModels/CodeRepository.js +45 -2
- package/Models/DatabaseModels/CodeRepositoryMintedToken.d.mts +25 -0
- package/Models/DatabaseModels/CodeRepositoryMintedToken.d.ts +25 -0
- package/Models/DatabaseModels/CodeRepositoryMintedToken.js +436 -0
- package/Models/DatabaseModels/CodeRepositoryMintedToken.mjs +2 -0
- package/Models/DatabaseModels/Dashboard.js +10 -2
- package/Models/DatabaseModels/DashboardDomain.js +22 -27
- package/Models/DatabaseModels/DatabaseBaseModel/RuleBaseModel.d.mts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/RuleBaseModel.d.ts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/RuleBaseModel.js +30 -0
- package/Models/DatabaseModels/EmailLog.js +15 -3
- package/Models/DatabaseModels/File.js +4 -2
- package/Models/DatabaseModels/FormDomain.js +10 -2
- package/Models/DatabaseModels/GlobalConfig.d.mts +9 -1
- package/Models/DatabaseModels/GlobalConfig.d.ts +9 -1
- package/Models/DatabaseModels/GlobalConfig.js +186 -10
- package/Models/DatabaseModels/Incident.js +38 -44
- package/Models/DatabaseModels/IncidentEpisodePublicNote.js +11 -16
- package/Models/DatabaseModels/IncidentEpisodeStateTimeline.js +3 -2
- package/Models/DatabaseModels/IncidentPublicNote.js +11 -16
- package/Models/DatabaseModels/IncidentSeverity.js +3 -12
- package/Models/DatabaseModels/IncidentStateTimeline.js +12 -16
- package/Models/DatabaseModels/IncidentTemplate.js +6 -11
- package/Models/DatabaseModels/IncomingRequestSecret.d.mts +6 -0
- package/Models/DatabaseModels/IncomingRequestSecret.d.ts +6 -0
- package/Models/DatabaseModels/IncomingRequestSecret.js +156 -29
- package/Models/DatabaseModels/Index.js +2 -5
- package/Models/DatabaseModels/Monitor.d.mts +1 -0
- package/Models/DatabaseModels/Monitor.d.ts +1 -0
- package/Models/DatabaseModels/Monitor.js +97 -22
- package/Models/DatabaseModels/MonitorNetworkDevice.js +4 -1
- package/Models/DatabaseModels/MonitorTemplate.js +3 -1
- package/Models/DatabaseModels/MonitorTest.js +3 -1
- package/Models/DatabaseModels/NetworkDevice.js +16 -3
- package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.js +39 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +45 -12
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.d.mts +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.d.ts +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +93 -5
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.d.mts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.d.ts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.js +43 -0
- package/Models/DatabaseModels/Probe.js +5 -1
- package/Models/DatabaseModels/Project.d.mts +1 -1
- package/Models/DatabaseModels/Project.d.ts +1 -1
- package/Models/DatabaseModels/Project.js +59 -64
- package/Models/DatabaseModels/ProjectSmtpConfig.js +44 -49
- package/Models/DatabaseModels/PushNotificationLog.js +15 -3
- package/Models/DatabaseModels/Reseller.js +2 -8
- package/Models/DatabaseModels/ResellerPlan.js +2 -8
- package/Models/DatabaseModels/RunbookExecution.js +4 -4
- package/Models/DatabaseModels/Runner.d.mts +1 -0
- package/Models/DatabaseModels/Runner.d.ts +1 -0
- package/Models/DatabaseModels/Runner.js +50 -0
- package/Models/DatabaseModels/ScheduledMaintenance.js +32 -24
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +11 -16
- package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +12 -16
- package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +9 -8
- package/Models/DatabaseModels/ServiceLevelObjective.js +7 -0
- package/Models/DatabaseModels/SmsLog.js +15 -3
- package/Models/DatabaseModels/StatusPage.js +30 -11
- package/Models/DatabaseModels/StatusPageAnnouncement.js +19 -24
- package/Models/DatabaseModels/StatusPageDomain.js +24 -27
- package/Models/DatabaseModels/StatusPageSubscriber.js +5 -4
- package/Models/DatabaseModels/TelegramLog.js +15 -3
- package/Models/DatabaseModels/User.d.mts +0 -3
- package/Models/DatabaseModels/User.d.ts +0 -3
- package/Models/DatabaseModels/User.js +5 -73
- package/Models/DatabaseModels/UserOnCallLog.d.mts +1 -0
- package/Models/DatabaseModels/UserOnCallLog.d.ts +1 -0
- package/Models/DatabaseModels/UserOnCallLog.js +52 -5
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +10 -2
- package/Models/DatabaseModels/UserWebhook.js +14 -5
- package/Models/DatabaseModels/WebhookLog.js +15 -3
- package/Models/DatabaseModels/WhatsAppLog.js +15 -3
- package/Models/DatabaseModels/WorkspaceNotificationLog.js +15 -3
- package/Models/DatabaseModels/WorkspaceNotificationRule.js +10 -7
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.js +16 -2
- package/Models/DatabaseModels/WorkspaceUserAuthToken.js +13 -2
- package/Server/Services/DatabaseService.d.mts +57 -38
- package/Server/Services/DatabaseService.d.ts +57 -38
- package/Server/Types/Database/Permissions/PrivateRecordPermission.d.mts +123 -0
- package/Server/Types/Database/Permissions/PrivateRecordPermission.d.ts +123 -0
- package/Types/AI/AIActionWords.d.mts +14 -1
- package/Types/AI/AIActionWords.d.ts +14 -1
- package/Types/AI/AIActionWords.js +85 -1
- package/Types/AI/AIActionWords.mjs +4 -0
- package/Types/AI/AIAgentRunLimits.js +5 -4
- package/Types/AI/AIChatTypes.js +8 -3
- package/Types/AI/AIReadTableWords.js +7 -2
- package/Types/AI/AiActivityInsights.d.mts +1 -0
- package/Types/AI/AiActivityInsights.d.ts +1 -0
- package/Types/AI/CodeTask.d.mts +1 -0
- package/Types/AI/CodeTask.d.ts +1 -0
- package/Types/AI/CodeTask.js +7 -0
- package/Types/AI/ResourceAiAccessApi.d.mts +4 -0
- package/Types/AI/ResourceAiAccessApi.d.ts +4 -0
- package/Types/Accounts/MoreWaysToSignIn.d.mts +1 -0
- package/Types/Accounts/MoreWaysToSignIn.d.ts +1 -0
- package/Types/Accounts/MoreWaysToSignIn.js +11 -0
- package/Types/Accounts/MoreWaysToSignIn.mjs +2 -0
- package/Types/Accounts/SignInMessages.d.mts +5 -0
- package/Types/Accounts/SignInMessages.d.ts +5 -0
- package/Types/Accounts/SignInMessages.js +19 -1
- package/Types/Accounts/SignInMessages.mjs +2 -0
- package/Types/Analytics/ProductEvent.d.mts +7 -2
- package/Types/Analytics/ProductEvent.d.ts +7 -2
- package/Types/Analytics/ProductEvent.js +62 -12
- package/Types/ApiKey/ApiKeyShownOnce.d.mts +11 -0
- package/Types/ApiKey/ApiKeyShownOnce.d.ts +11 -0
- package/Types/ApiKey/ApiKeyShownOnce.js +78 -0
- package/Types/ApiKey/ApiKeyShownOnce.mjs +6 -0
- package/Types/AuditLog/AuditLogAction.d.mts +1 -0
- package/Types/AuditLog/AuditLogAction.d.ts +1 -0
- package/Types/AuditLog/AuditLogAction.js +11 -1
- package/Types/AuditLog/AuditLogActionLabel.js +1 -0
- package/Types/AuditLog/AuditLogCoverage.js +1 -0
- package/Types/AuditLog/AuditLogSessionEvent.d.mts +15 -3
- package/Types/AuditLog/AuditLogSessionEvent.d.ts +15 -3
- package/Types/AuditLog/AuditLogSessionEvent.js +107 -12
- package/Types/AuditLog/AuditLogSessionEvent.mjs +6 -0
- package/Types/AuditLog/AuditLogSignInFailure.d.mts +30 -0
- package/Types/AuditLog/AuditLogSignInFailure.d.ts +30 -0
- package/Types/AuditLog/AuditLogSignInFailure.js +109 -0
- package/Types/AuditLog/AuditLogSignInFailure.mjs +8 -0
- package/Types/AuditLog/AuditLogStatusPageSession.d.mts +29 -0
- package/Types/AuditLog/AuditLogStatusPageSession.d.ts +29 -0
- package/Types/AuditLog/AuditLogStatusPageSession.js +106 -0
- package/Types/AuditLog/AuditLogStatusPageSession.mjs +9 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.d.mts +11 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.d.ts +11 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.js +57 -0
- package/Types/AuditLog/Export/AuditLogExportEntriesLost.mjs +5 -0
- package/Types/AutoRemediation/RemediationApprovals.d.mts +39 -0
- package/Types/AutoRemediation/RemediationApprovals.d.ts +39 -0
- package/Types/AutoRemediation/RemediationApprovals.js +174 -8
- package/Types/AutoRemediation/RemediationApprovals.mjs +9 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.d.mts +15 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.d.ts +15 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.js +131 -0
- package/Types/AutoRemediation/RemediationPlanFingerprint.mjs +6 -0
- package/Types/BaseDatabase/SortNulls.d.mts +5 -0
- package/Types/BaseDatabase/SortNulls.d.ts +5 -0
- package/Types/BaseDatabase/SortNulls.js +14 -0
- package/Types/BaseDatabase/SortNulls.mjs +2 -0
- package/Types/Billing/AdminProjectInvoice.d.mts +20 -0
- package/Types/Billing/AdminProjectInvoice.d.ts +20 -0
- package/Types/Billing/AdminProjectInvoice.js +85 -0
- package/Types/Billing/AdminProjectInvoice.mjs +6 -0
- package/Types/CloudConnection/CloudAiAgentCost.d.mts +6 -2
- package/Types/CloudConnection/CloudAiAgentCost.d.ts +6 -2
- package/Types/CloudConnection/CloudAiAgentCost.js +28 -2
- package/Types/CloudConnection/CloudAiAgentCost.mjs +4 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.mts +19 -1
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.ts +19 -1
- package/Types/CloudConnection/CloudAiAgentSetupCommands.js +354 -16
- package/Types/CloudConnection/CloudAiAgentSetupCommands.mjs +17 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.d.mts +10 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.d.ts +10 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.js +69 -0
- package/Types/CustomDomain/UploadedCertificateRefusals.mjs +11 -0
- package/Types/DataObservability/DataLineageMap.d.mts +147 -0
- package/Types/DataObservability/DataLineageMap.d.ts +147 -0
- package/Types/DataObservability/DataLineageMap.js +503 -0
- package/Types/DataObservability/DataLineageMap.mjs +20 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.mts +1 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.ts +1 -0
- package/Types/DataObservability/DataObservabilityApiTypes.js +2 -0
- package/Types/Database/TableColumn.d.mts +1 -0
- package/Types/Database/TableColumn.d.ts +1 -0
- package/Types/Database/UserAttribution.js +7 -3
- package/Types/Date.d.mts +0 -2
- package/Types/Date.d.ts +0 -2
- package/Types/Date.js +12 -19
- package/Types/Email/EmailMessage.d.mts +2 -0
- package/Types/Email/EmailMessage.d.ts +2 -0
- package/Types/Email/EmailRecipients.d.mts +11 -0
- package/Types/Email/EmailRecipients.d.ts +11 -0
- package/Types/Email/EmailRecipients.js +84 -0
- package/Types/Email/EmailRecipients.mjs +6 -0
- package/Types/Email/EmailTemplateType.d.mts +2 -1
- package/Types/Email/EmailTemplateType.d.ts +2 -1
- package/Types/Email/EmailTemplateType.js +5 -0
- package/Types/IP/IP.js +27 -1
- package/Types/JoinedSerializableObjects.d.mts +6 -0
- package/Types/JoinedSerializableObjects.d.ts +6 -0
- package/Types/JoinedSerializableObjects.js +14 -0
- package/Types/JoinedSerializableObjects.mjs +3 -0
- package/Types/Kubernetes/KubernetesClusterAiLogs.d.mts +2 -0
- package/Types/Kubernetes/KubernetesClusterAiLogs.d.ts +2 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.d.mts +15 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.d.ts +15 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.js +81 -0
- package/Types/MasterApiKey/MasterApiKeyAnswer.mjs +5 -0
- package/Types/MeaningKeys.js +19 -0
- package/Types/Monitor/IncomingMonitor/IncomingMonitorRequest.d.mts +2 -0
- package/Types/Monitor/IncomingMonitor/IncomingMonitorRequest.d.ts +2 -0
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.d.mts +23 -1
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.d.ts +23 -1
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.js +105 -4
- package/Types/Monitor/IncomingMonitor/IncomingRequestSecret.mjs +7 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.d.mts +11 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.d.ts +11 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.js +28 -0
- package/Types/Monitor/IncomingMonitor/WebhookVerificationProvider.mjs +3 -0
- package/Types/Monitor/MonitorCriteria.js +8 -0
- package/Types/Monitor/MonitorCriteriaInstance.js +8 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.d.mts +12 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.d.ts +12 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.js +2 -0
- package/Types/Monitor/MonitorGroupUptimeSummary.mjs +1 -0
- package/Types/Monitor/MonitorJsonTypes.d.mts +4 -0
- package/Types/Monitor/MonitorJsonTypes.d.ts +4 -0
- package/Types/Monitor/MonitorJsonTypes.js +31 -0
- package/Types/Monitor/MonitorJsonTypes.mjs +2 -0
- package/Types/Monitor/MonitorStep.js +8 -0
- package/Types/Monitor/MonitorSteps.js +8 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.d.mts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.d.ts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.js +21 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.browser.mjs +2 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.d.mts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.d.ts +3 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.js +24 -0
- package/Types/Monitor/MonitorStepsColumnTransformer.mjs +2 -0
- package/Types/Monitor/UptimeHistoryLabels.d.mts +4 -0
- package/Types/Monitor/UptimeHistoryLabels.d.ts +4 -0
- package/Types/Monitor/UptimeHistoryLabels.js +4 -0
- package/Types/Monitor/WhoIsTold.d.mts +25 -0
- package/Types/Monitor/WhoIsTold.d.ts +25 -0
- package/Types/Monitor/WhoIsTold.js +171 -19
- package/Types/Monitor/WhoIsTold.mjs +3 -0
- package/Types/NoBreakSpaces.d.mts +5 -1
- package/Types/NoBreakSpaces.d.ts +5 -1
- package/Types/NoBreakSpaces.js +107 -52
- package/Types/NoBreakSpaces.mjs +1 -0
- package/Types/NotificationRule/PagingLadder.d.mts +2 -0
- package/Types/NotificationRule/PagingLadder.d.ts +2 -0
- package/Types/NotificationRule/PagingLadder.js +47 -1
- package/Types/NotificationRule/PagingLadder.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCalDutyExecutionLogTimelineStatus.d.mts +2 -1
- package/Types/OnCallDutyPolicy/OnCalDutyExecutionLogTimelineStatus.d.ts +2 -1
- package/Types/OnCallDutyPolicy/OnCalDutyExecutionLogTimelineStatus.js +6 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.d.mts +5 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.d.ts +5 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.js +41 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallLogLine.d.mts +6 -1
- package/Types/OnCallDutyPolicy/OnCallLogLine.d.ts +6 -1
- package/Types/OnCallDutyPolicy/OnCallLogLine.js +60 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.d.mts +32 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.d.ts +32 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.js +192 -0
- package/Types/OnCallDutyPolicy/OnCallPageMerge.mjs +14 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.d.mts +40 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.d.ts +40 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.js +142 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.mjs +13 -0
- package/Types/Password.d.mts +18 -12
- package/Types/Password.d.ts +18 -12
- package/Types/Password.js +63 -58
- package/Types/Password.mjs +3 -3
- package/Types/Permission.d.mts +4 -0
- package/Types/Permission.d.ts +4 -0
- package/Types/Permission.js +48 -0
- package/Types/PrivateRecord/PrivateRecordParts.js +50 -0
- package/Types/Probe/ProbeCapability.d.mts +2 -1
- package/Types/Probe/ProbeCapability.d.ts +2 -1
- package/Types/Probe/ProbeCapability.js +11 -0
- package/Types/Product/ProjectProducts.d.mts +1 -15
- package/Types/Product/ProjectProducts.d.ts +1 -15
- package/Types/Product/ProjectProducts.js +38 -129
- package/Types/Product/ProjectProducts.mjs +1 -5
- package/Types/Product/ProjectProductsAnswer.js +5 -6
- package/Types/ProductFeedback/ProductFeedback.d.mts +29 -4
- package/Types/ProductFeedback/ProductFeedback.d.ts +29 -4
- package/Types/ProductFeedback/ProductFeedback.js +176 -28
- package/Types/ProductFeedback/ProductFeedback.mjs +11 -1
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.mts +6 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.ts +6 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.js +20 -1
- package/Types/ResourceAiAgent/CloudAiAgentNames.mjs +5 -0
- package/Types/ResourceAiAgent/ResourceAiAccess.d.mts +3 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.d.ts +3 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.js +18 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.mjs +2 -0
- package/Types/Retention/ResolvedRecordRetention.d.mts +33 -0
- package/Types/Retention/ResolvedRecordRetention.d.ts +33 -0
- package/Types/Retention/ResolvedRecordRetention.js +211 -1
- package/Types/Retention/ResolvedRecordRetention.mjs +13 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.d.mts +28 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.d.ts +28 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.js +134 -0
- package/Types/Retention/ResolvedRecordRetentionAnswers.mjs +5 -0
- package/Types/Rules/RuleEmptiedLimit.d.mts +20 -0
- package/Types/Rules/RuleEmptiedLimit.d.ts +20 -0
- package/Types/Rules/RuleEmptiedLimit.js +131 -0
- package/Types/Rules/RuleEmptiedLimit.mjs +9 -0
- package/Types/Runbook/RunbookStepTimeout.js +11 -10
- package/Types/Runner/GlobalRunnerRepositoryTokens.d.mts +18 -0
- package/Types/Runner/GlobalRunnerRepositoryTokens.d.ts +18 -0
- package/Types/Runner/GlobalRunnerRepositoryTokens.js +97 -0
- package/Types/Runner/GlobalRunnerRepositoryTokens.mjs +8 -0
- package/Types/Runner/GlobalRunnerSandbox.d.mts +38 -0
- package/Types/Runner/GlobalRunnerSandbox.d.ts +38 -0
- package/Types/Runner/GlobalRunnerSandbox.js +178 -0
- package/Types/Runner/GlobalRunnerSandbox.mjs +9 -0
- package/Types/Runner/GlobalRunnerWork.js +9 -4
- package/Types/Runner/RunnerCodeFixCapability.d.mts +14 -0
- package/Types/Runner/RunnerCodeFixCapability.d.ts +14 -0
- package/Types/Runner/RunnerCodeFixCapability.js +103 -0
- package/Types/Runner/RunnerCodeFixCapability.mjs +7 -0
- package/Types/Runner/RunnerCodeFixes.d.mts +3 -0
- package/Types/Runner/RunnerCodeFixes.d.ts +3 -0
- package/Types/Runner/RunnerCodeFixes.js +27 -4
- package/Types/Runner/RunnerCodeFixes.mjs +1 -0
- package/Types/SSO/SessionsWithoutSso.d.mts +10 -0
- package/Types/SSO/SessionsWithoutSso.d.ts +10 -0
- package/Types/SSO/SessionsWithoutSso.js +39 -0
- package/Types/SSO/SessionsWithoutSso.mjs +5 -0
- package/Types/SerializableObjectDictionary.js +11 -8
- package/Types/SetupHealth/SetupHealth.d.mts +47 -2
- package/Types/SetupHealth/SetupHealth.d.ts +47 -2
- package/Types/SetupHealth/SetupHealth.js +228 -1
- package/Types/SetupHealth/SetupHealth.mjs +12 -0
- package/Types/StatusPage/StatusPageReport.d.mts +5 -2
- package/Types/StatusPage/StatusPageReport.d.ts +5 -2
- package/Types/StatusPage/SubscriberNotificationTemplateVariables.js +2 -2
- package/Types/StatusPage/UptimeDailyAggregate.d.mts +1 -0
- package/Types/StatusPage/UptimeDailyAggregate.d.ts +1 -0
- package/Types/Telemetry/LlmConventions.d.mts +1 -1
- package/Types/Telemetry/LlmConventions.d.ts +1 -1
- package/Types/Telemetry/LlmConventions.js +1 -1
- package/Types/Telemetry/ScrubRule.d.mts +1 -0
- package/Types/Telemetry/ScrubRule.d.ts +1 -0
- package/Types/Telemetry/ScrubRule.js +47 -0
- package/Types/Translator.d.mts +5 -2
- package/Types/Translator.d.ts +5 -2
- package/Types/Translator.js +43 -19
- package/Types/UsedBy/UsedBy.d.mts +107 -4
- package/Types/UsedBy/UsedBy.d.ts +107 -4
- package/Types/UsedBy/UsedBy.js +339 -6
- package/Types/UsedBy/UsedBy.mjs +12 -0
- package/Types/UsedBy/UsedByServerProducts.d.mts +5 -2
- package/Types/UsedBy/UsedByServerProducts.d.ts +5 -2
- package/Types/UsedBy/UsedByServerProducts.js +115 -6
- package/Types/UsedBy/UsedByServerProducts.mjs +1 -0
- package/Types/UserNotification/UserNotificationExecutionStatus.d.mts +2 -1
- package/Types/UserNotification/UserNotificationExecutionStatus.d.ts +2 -1
- package/Types/UserNotification/UserNotificationExecutionStatus.js +7 -0
- package/Types/UserSession/SessionEndCause.d.mts +1 -0
- package/Types/UserSession/SessionEndCause.d.ts +1 -0
- package/Types/UserSession/SessionEndCause.js +8 -1
- package/Types/WelcomeChecklist/ProjectGoal.js +5 -5
- package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.js +63 -1
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +0 -1
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +0 -1
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +0 -3
- package/Types/Workflow/WatchedFields.d.mts +1 -0
- package/Types/Workflow/WatchedFields.d.ts +1 -0
- package/Types/Workflow/WatchedFields.js +10 -1
- package/Types/Workflow/WatchedFields.mjs +1 -0
- package/Types/Workflow/WorkflowPrivateRecords.d.mts +2 -0
- package/Types/Workflow/WorkflowPrivateRecords.d.ts +2 -0
- package/Types/Workflow/WorkflowPrivateRecords.js +33 -0
- package/Types/Workflow/WorkflowPrivateRecords.mjs +3 -0
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +1 -0
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +1 -0
- package/Types/Workspace/NotificationRules/EventType.js +4 -3
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +19 -2
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +19 -2
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +127 -8
- package/Types/Workspace/WorkspaceLiveMessageKey.d.mts +5 -1
- package/Types/Workspace/WorkspaceLiveMessageKey.d.ts +5 -1
- package/Types/Workspace/WorkspaceLiveMessageKey.js +12 -0
- package/Types/Workspace/WorkspaceMessagePayload.d.mts +6 -0
- package/Types/Workspace/WorkspaceMessagePayload.d.ts +6 -0
- package/Utils/API.d.mts +6 -7
- package/Utils/API.d.ts +6 -7
- package/Utils/API.js +57 -35
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.mts +10 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.ts +10 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.js +89 -1
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.mjs +4 -0
- package/Utils/Billing/InvoiceAmount.d.mts +4 -0
- package/Utils/Billing/InvoiceAmount.d.ts +4 -0
- package/Utils/Billing/InvoiceAmount.js +35 -0
- package/Utils/Billing/InvoiceAmount.mjs +2 -0
- package/Utils/CertificateReissue.js +4 -3
- package/Utils/CronScheduleText.js +10 -3
- package/Utils/CronTab.js +6 -33
- package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +5 -18
- package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +5 -18
- package/Utils/Dashboard/MonitorListWidgetFormat.js +54 -18
- package/Utils/DeveloperDocs/ResourceProfiles.js +2 -1
- package/Utils/DeveloperDocs/TerraformSchema.js +3 -2
- package/Utils/LinearRegExp/LinearRegExp.d.mts +1 -0
- package/Utils/LinearRegExp/LinearRegExp.d.ts +1 -0
- package/Utils/LinearRegExp/LinearRegExp.js +17 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.mts +6 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +6 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +477 -152
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +1 -0
- package/Utils/Markdown/SlowMarkdown.js +168 -33
- package/Utils/Metrics/MetricFormulaEvaluator.d.mts +20 -4
- package/Utils/Metrics/MetricFormulaEvaluator.d.ts +20 -4
- package/Utils/Metrics/MetricFormulaEvaluator.js +233 -29
- package/Utils/Metrics/MetricResultUnitConverter.js +7 -1
- package/Utils/Metrics/MetricSeriesArrivalUtil.d.mts +4 -0
- package/Utils/Metrics/MetricSeriesArrivalUtil.d.ts +4 -0
- package/Utils/Metrics/MetricSeriesArrivalUtil.js +27 -0
- package/Utils/Metrics/MetricZeroFill.d.mts +45 -0
- package/Utils/Metrics/MetricZeroFill.d.ts +45 -0
- package/Utils/Metrics/MetricZeroFill.js +145 -0
- package/Utils/Metrics/MetricZeroFill.mjs +2 -0
- package/Utils/ModelImportExport.js +4 -1
- package/Utils/Monitor/EndpointAttachmentUtil.d.mts +3 -0
- package/Utils/Monitor/EndpointAttachmentUtil.d.ts +3 -0
- package/Utils/Monitor/EndpointAttachmentUtil.js +57 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.d.mts +9 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.d.ts +9 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.js +52 -0
- package/Utils/Monitor/HeartbeatSweepSchedule.mjs +5 -0
- package/Utils/Monitor/MonitorFirstCheck.d.mts +32 -0
- package/Utils/Monitor/MonitorFirstCheck.d.ts +32 -0
- package/Utils/Monitor/MonitorFirstCheck.js +128 -0
- package/Utils/Monitor/MonitorFirstCheck.mjs +4 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.d.mts +12 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.d.ts +12 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.js +87 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.mjs +2 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.d.mts +11 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.d.ts +11 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.js +86 -0
- package/Utils/Monitor/MonitorGroupUptimeSummaryUtil.mjs +2 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +4 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +4 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +122 -4
- package/Utils/Monitor/MonitorRowStatus.d.mts +56 -0
- package/Utils/Monitor/MonitorRowStatus.d.ts +56 -0
- package/Utils/Monitor/MonitorRowStatus.js +189 -0
- package/Utils/Monitor/MonitorRowStatus.mjs +6 -0
- package/Utils/Monitor/MonitorSummarySnapshotUtil.js +3 -2
- package/Utils/Monitor/MonitorUptimeSummaryUtil.js +14 -3
- package/Utils/NetworkDevice/TransceiverHealthUtil.js +2 -2
- package/Utils/Profiles/ProfileFrames.js +11 -4
- package/Utils/Profiles/ProfileFunctionNames.d.mts +2 -0
- package/Utils/Profiles/ProfileFunctionNames.d.ts +2 -0
- package/Utils/Profiles/ProfileFunctionNames.js +104 -0
- package/Utils/Profiles/ProfileFunctionNames.mjs +3 -0
- package/Utils/Project/ProjectBalance.js +2 -2
- package/Utils/Project/TwilioAccount.d.mts +3 -0
- package/Utils/Project/TwilioAccount.d.ts +3 -0
- package/Utils/Project/TwilioAccount.js +58 -18
- package/Utils/Project/TwilioAccount.mjs +2 -0
- package/Utils/ResponseTooLarge.d.mts +5 -0
- package/Utils/ResponseTooLarge.d.ts +5 -0
- package/Utils/ResponseTooLarge.js +69 -0
- package/Utils/ResponseTooLarge.mjs +2 -0
- package/Utils/RetryAfter.d.mts +17 -0
- package/Utils/RetryAfter.d.ts +17 -0
- package/Utils/RetryAfter.js +251 -0
- package/Utils/RetryAfter.mjs +5 -0
- package/Utils/ScheduledMaintenanceStart.js +2 -3
- package/Utils/Schema/BaseSchema.d.mts +12 -5
- package/Utils/Schema/BaseSchema.d.ts +12 -5
- package/Utils/Schema/BaseSchema.js +43 -4
- package/Utils/Schema/BaseSchema.mjs +1 -0
- package/Utils/Schema/ModelSchema.d.mts +10 -0
- package/Utils/Schema/ModelSchema.d.ts +10 -0
- package/Utils/Schema/ModelSchema.js +251 -22
- package/Utils/Slo/SloMonthlyReport.d.mts +187 -0
- package/Utils/Slo/SloMonthlyReport.d.ts +187 -0
- package/Utils/Slo/SloMonthlyReport.js +945 -0
- package/Utils/Slo/SloMonthlyReport.mjs +35 -0
- package/Utils/Slo/SloOverviewText.js +7 -2
- package/Utils/Slo/SloProjection.js +2 -1
- package/Utils/Slo/SloUtil.d.mts +5 -0
- package/Utils/Slo/SloUtil.d.ts +5 -0
- package/Utils/Slo/SloUtil.js +5 -0
- package/Utils/Slo/SloWidgetFormat.js +3 -1
- package/Utils/StatusPage/FrozenMonitorResources.d.mts +30 -0
- package/Utils/StatusPage/FrozenMonitorResources.d.ts +30 -0
- package/Utils/StatusPage/FrozenMonitorResources.js +147 -12
- package/Utils/StatusPage/FrozenMonitorResources.mjs +2 -0
- package/Utils/StatusPage/GroupNestingLayout.js +3 -2
- package/Utils/StatusPage/HistoryChartBarColors.d.mts +2 -0
- package/Utils/StatusPage/HistoryChartBarColors.d.ts +2 -0
- package/Utils/StatusPage/HistoryChartBarColors.js +15 -1
- package/Utils/StatusPage/HistoryChartBarColors.mjs +2 -0
- package/Utils/StatusPage/Report.js +12 -4
- package/Utils/StatusPage/ReportText.d.mts +4 -0
- package/Utils/StatusPage/ReportText.d.ts +4 -0
- package/Utils/StatusPage/ReportText.js +22 -2
- package/Utils/StatusPage/ReportText.mjs +1 -0
- package/Utils/StatusPage/ResourceUptime.js +32 -25
- package/Utils/StatusPage/UptimeDailyAggregateUtil.js +17 -3
- package/Utils/Syslog/SyslogMessageParser.d.mts +25 -0
- package/Utils/Syslog/SyslogMessageParser.d.ts +25 -0
- package/Utils/Syslog/SyslogMessageParser.js +428 -100
- package/Utils/Syslog/SyslogMessageParser.mjs +3 -0
- package/Utils/Syslog/SyslogRawCopies.d.mts +20 -0
- package/Utils/Syslog/SyslogRawCopies.d.ts +20 -0
- package/Utils/Syslog/SyslogRawCopies.js +283 -0
- package/Utils/Syslog/SyslogRawCopies.mjs +2 -0
- package/Utils/Telemetry/CorrelationIdAttributes.d.mts +8 -0
- package/Utils/Telemetry/CorrelationIdAttributes.d.ts +8 -0
- package/Utils/Telemetry/CorrelationIdAttributes.js +118 -0
- package/Utils/Telemetry/CorrelationIdAttributes.mjs +5 -0
- package/Utils/Telemetry/ScrubJsonKeys.d.mts +11 -0
- package/Utils/Telemetry/ScrubJsonKeys.d.ts +11 -0
- package/Utils/Telemetry/ScrubJsonKeys.js +505 -0
- package/Utils/Telemetry/ScrubJsonKeys.mjs +2 -0
- package/Utils/Telemetry/ScrubJsonText.d.mts +25 -0
- package/Utils/Telemetry/ScrubJsonText.d.ts +25 -0
- package/Utils/Telemetry/ScrubJsonText.js +568 -0
- package/Utils/Telemetry/ScrubJsonText.mjs +4 -0
- package/Utils/Telemetry/ScrubMask.d.mts +1 -0
- package/Utils/Telemetry/ScrubMask.d.ts +1 -0
- package/Utils/Telemetry/ScrubMask.js +54 -0
- package/Utils/Telemetry/ScrubMask.mjs +2 -0
- package/Utils/Telemetry/ScrubNestedValues.d.mts +5 -2
- package/Utils/Telemetry/ScrubNestedValues.d.ts +5 -2
- package/Utils/Telemetry/ScrubNestedValues.js +56 -9
- package/Utils/Uptime/DayUptimeGraphUtil.d.mts +17 -0
- package/Utils/Uptime/DayUptimeGraphUtil.d.ts +17 -0
- package/Utils/Uptime/DayUptimeGraphUtil.js +91 -3
- package/Utils/Uptime/DayUptimeGraphUtil.mjs +1 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.d.mts +11 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.d.ts +11 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.js +188 -0
- package/Utils/Uptime/TimeBeforeFirstCheck.mjs +2 -0
- package/package.json +1 -1
- package/Models/DatabaseModels/GreenlockCertificate.d.mts +0 -10
- package/Models/DatabaseModels/GreenlockCertificate.d.ts +0 -10
- package/Models/DatabaseModels/GreenlockCertificate.js +0 -143
- package/Models/DatabaseModels/GreenlockCertificate.mjs +0 -2
- package/Models/DatabaseModels/GreenlockChallenge.d.mts +0 -10
- package/Models/DatabaseModels/GreenlockChallenge.d.ts +0 -10
- package/Models/DatabaseModels/GreenlockChallenge.js +0 -144
- package/Models/DatabaseModels/GreenlockChallenge.mjs +0 -2
- package/Types/SampleProject/SampleProject.d.mts +0 -54
- package/Types/SampleProject/SampleProject.d.ts +0 -54
- package/Types/SampleProject/SampleProject.js +0 -177
- package/Types/SampleProject/SampleProject.mjs +0 -22
- package/Types/SampleProject/SampleProjectContent.d.mts +0 -127
- package/Types/SampleProject/SampleProjectContent.d.ts +0 -127
- package/Types/SampleProject/SampleProjectContent.js +0 -397
- package/Types/SampleProject/SampleProjectContent.mjs +0 -18
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
const MonitorCheckScheduleUtil_1 = __importStar(require("./MonitorCheckScheduleUtil"));
|
|
37
|
+
const MonitorOverviewFamily_1 = __importStar(require("./MonitorOverviewFamily"));
|
|
38
|
+
/*
|
|
39
|
+
* The families whose first result has a time it is due by: run on a
|
|
40
|
+
* schedule the page can see (getCheckFreshness). A pushed or event-driven
|
|
41
|
+
* monitor waits for its first signal however long it takes.
|
|
42
|
+
*/
|
|
43
|
+
const FAMILIES_WITH_A_FIRST_CHECK_DUE = [
|
|
44
|
+
MonitorOverviewFamily_1.MonitorOverviewFamily.ProbeCheck,
|
|
45
|
+
MonitorOverviewFamily_1.MonitorOverviewFamily.TelemetrySignal,
|
|
46
|
+
MonitorOverviewFamily_1.MonitorOverviewFamily.Infrastructure,
|
|
47
|
+
];
|
|
48
|
+
class MonitorFirstCheckOverdue {
|
|
49
|
+
/*
|
|
50
|
+
* Whether a monitor that has never been measured is past the time its
|
|
51
|
+
* first result was due: the page's "No results yet" (Overdue, nothing
|
|
52
|
+
* ever reported). Only the families run on a schedule have such a time;
|
|
53
|
+
* a monitor with no creation time, or of a type this build does not
|
|
54
|
+
* know, is still waiting. `now` is on the server's clock, as creation is.
|
|
55
|
+
*/
|
|
56
|
+
static isFirstCheckOverdue(data) {
|
|
57
|
+
const createdAt = MonitorCheckScheduleUtil_1.default.parseDate(data.monitor.createdAt);
|
|
58
|
+
if (!createdAt || !data.monitor.monitorType) {
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
let family;
|
|
62
|
+
try {
|
|
63
|
+
family = MonitorOverviewFamily_1.default.getFamily(data.monitor.monitorType);
|
|
64
|
+
}
|
|
65
|
+
catch (_a) {
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
if (!FAMILIES_WITH_A_FIRST_CHECK_DUE.includes(family)) {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
const monitoringInterval = data.monitor.monitoringInterval || undefined;
|
|
72
|
+
return (MonitorCheckScheduleUtil_1.default.getCheckFreshness({
|
|
73
|
+
isScheduled: true,
|
|
74
|
+
isKnown: true,
|
|
75
|
+
lastResultAt: undefined,
|
|
76
|
+
nextCheckAt: undefined,
|
|
77
|
+
cadenceSeconds: MonitorCheckScheduleUtil_1.default.resolveCadenceSeconds({
|
|
78
|
+
monitoringInterval: monitoringInterval,
|
|
79
|
+
from: data.now,
|
|
80
|
+
}),
|
|
81
|
+
createdAt: createdAt,
|
|
82
|
+
now: data.now,
|
|
83
|
+
monitoringInterval: monitoringInterval,
|
|
84
|
+
}).freshness === MonitorCheckScheduleUtil_1.MonitorCheckFreshness.Stale);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.default = MonitorFirstCheckOverdue;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JSONObject } from "../../Types/JSON.mjs";
|
|
2
|
+
import { MonitorGroupUptimeSummary } from "../../Types/Monitor/MonitorGroupUptimeSummary.mjs";
|
|
3
|
+
import UptimePrecision from "../../Types/StatusPage/UptimePrecision.mjs";
|
|
4
|
+
export default class MonitorGroupUptimeSummaryUtil {
|
|
5
|
+
static toJSON(summary: MonitorGroupUptimeSummary): JSONObject;
|
|
6
|
+
static fromJSON(json: JSONObject | null | undefined): MonitorGroupUptimeSummary | null;
|
|
7
|
+
static getUptimePercent(data: {
|
|
8
|
+
summary: MonitorGroupUptimeSummary;
|
|
9
|
+
precision: UptimePrecision;
|
|
10
|
+
}): number | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JSONObject } from "../../Types/JSON";
|
|
2
|
+
import { MonitorGroupUptimeSummary } from "../../Types/Monitor/MonitorGroupUptimeSummary";
|
|
3
|
+
import UptimePrecision from "../../Types/StatusPage/UptimePrecision";
|
|
4
|
+
export default class MonitorGroupUptimeSummaryUtil {
|
|
5
|
+
static toJSON(summary: MonitorGroupUptimeSummary): JSONObject;
|
|
6
|
+
static fromJSON(json: JSONObject | null | undefined): MonitorGroupUptimeSummary | null;
|
|
7
|
+
static getUptimePercent(data: {
|
|
8
|
+
summary: MonitorGroupUptimeSummary;
|
|
9
|
+
precision: UptimePrecision;
|
|
10
|
+
}): number | null;
|
|
11
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const ObjectID_1 = __importDefault(require("../../Types/ObjectID"));
|
|
7
|
+
const UptimeDailyAggregateUtil_1 = __importDefault(require("../StatusPage/UptimeDailyAggregateUtil"));
|
|
8
|
+
const UptimeUtil_1 = __importDefault(require("../Uptime/UptimeUtil"));
|
|
9
|
+
/*
|
|
10
|
+
* A monitor group's uptime history (Types/Monitor/MonitorGroupUptimeSummary,
|
|
11
|
+
* issue #6886) on the wire, both directions in one place.
|
|
12
|
+
*
|
|
13
|
+
* PLAIN on purpose, like MonitorUptimeSummaryUtil and UptimeDailyAggregateUtil
|
|
14
|
+
* (whose bucket encoding this shares): ISO strings, numbers and id strings,
|
|
15
|
+
* none of the typed JSON envelopes, which would triple the payload.
|
|
16
|
+
*/
|
|
17
|
+
const toSeconds = (value) => {
|
|
18
|
+
const seconds = Number(value);
|
|
19
|
+
return Number.isFinite(seconds) && seconds > 0 ? seconds : 0;
|
|
20
|
+
};
|
|
21
|
+
const toDateOrNull = (value) => {
|
|
22
|
+
if (typeof value !== "string" && !(value instanceof Date)) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
const date = new Date(value);
|
|
26
|
+
return Number.isNaN(date.getTime()) ? null : date;
|
|
27
|
+
};
|
|
28
|
+
class MonitorGroupUptimeSummaryUtil {
|
|
29
|
+
static toJSON(summary) {
|
|
30
|
+
return {
|
|
31
|
+
monitorGroupId: summary.monitorGroupId.toString(),
|
|
32
|
+
timezone: summary.timezone,
|
|
33
|
+
generatedAt: summary.generatedAt.toISOString(),
|
|
34
|
+
startDate: summary.startDate.toISOString(),
|
|
35
|
+
endDate: summary.endDate.toISOString(),
|
|
36
|
+
buckets: UptimeDailyAggregateUtil_1.default.bucketsToJSON(summary.buckets),
|
|
37
|
+
coveredSeconds: summary.coveredSeconds,
|
|
38
|
+
downtimeSeconds: summary.downtimeSeconds,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/*
|
|
42
|
+
* Total: never throws. Null when the payload is not a summary at all, so
|
|
43
|
+
* the page can draw from the group's rows rather than an empty strip that
|
|
44
|
+
* looks like a group with no history. A malformed bucket is skipped, and a
|
|
45
|
+
* total that is not a positive number reads as none.
|
|
46
|
+
*/
|
|
47
|
+
static fromJSON(json) {
|
|
48
|
+
if (!json || typeof json !== "object" || Array.isArray(json)) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
const monitorGroupId = json["monitorGroupId"];
|
|
52
|
+
if (typeof monitorGroupId !== "string" || !monitorGroupId) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
const startDate = toDateOrNull(json["startDate"]);
|
|
56
|
+
const endDate = toDateOrNull(json["endDate"]);
|
|
57
|
+
if (!startDate || !endDate || !Array.isArray(json["buckets"])) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
monitorGroupId: new ObjectID_1.default(monitorGroupId),
|
|
62
|
+
timezone: typeof json["timezone"] === "string" && json["timezone"]
|
|
63
|
+
? json["timezone"]
|
|
64
|
+
: "UTC",
|
|
65
|
+
generatedAt: toDateOrNull(json["generatedAt"]) || endDate,
|
|
66
|
+
startDate: startDate,
|
|
67
|
+
endDate: endDate,
|
|
68
|
+
buckets: UptimeDailyAggregateUtil_1.default.bucketsFromJSON(json["buckets"]),
|
|
69
|
+
coveredSeconds: toSeconds(json["coveredSeconds"]),
|
|
70
|
+
downtimeSeconds: toSeconds(json["downtimeSeconds"]),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
/*
|
|
74
|
+
* The group's uptime over its days, or null when nothing was recorded in
|
|
75
|
+
* them - its monitors off, or not checked yet - so the page shows no
|
|
76
|
+
* percentage rather than the 100% that no time at all reads as.
|
|
77
|
+
*/
|
|
78
|
+
static getUptimePercent(data) {
|
|
79
|
+
return UptimeUtil_1.default.calculateUptimePercentOfCoveredSeconds({
|
|
80
|
+
coveredSeconds: data.summary.coveredSeconds,
|
|
81
|
+
downtimeSeconds: Math.min(data.summary.downtimeSeconds, data.summary.coveredSeconds),
|
|
82
|
+
precision: data.precision,
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.default = MonitorGroupUptimeSummaryUtil;
|
|
@@ -84,6 +84,7 @@ export interface MonitorOverviewPresentationInput {
|
|
|
84
84
|
monitorSteps?: MonitorSteps | undefined;
|
|
85
85
|
monitoringInterval?: string | undefined;
|
|
86
86
|
createdAt?: Date | undefined;
|
|
87
|
+
firstMeasuredAt?: Date | null | undefined;
|
|
87
88
|
currentStatus?: MonitorOverviewStatusRef | undefined;
|
|
88
89
|
statusSince?: Date | undefined;
|
|
89
90
|
pause: {
|
|
@@ -172,6 +173,7 @@ export default class MonitorOverviewPresentationUtil {
|
|
|
172
173
|
private static getContext;
|
|
173
174
|
private static getEvaluationStatus;
|
|
174
175
|
private static isTelemetryFamily;
|
|
176
|
+
private static isEvaluatedOnTheServer;
|
|
175
177
|
private static readEvaluationLog;
|
|
176
178
|
private static getTelemetryTiming;
|
|
177
179
|
private static getPushMissingMinutes;
|
|
@@ -183,6 +185,8 @@ export default class MonitorOverviewPresentationUtil {
|
|
|
183
185
|
private static getNotCheckingHero;
|
|
184
186
|
private static getAwaitingHero;
|
|
185
187
|
private static isNeverReported;
|
|
188
|
+
private static isStartingStatus;
|
|
189
|
+
private static isNothingMeasured;
|
|
186
190
|
private static getOverdueExplanation;
|
|
187
191
|
private static getPulse;
|
|
188
192
|
private static getFacts;
|
|
@@ -84,6 +84,7 @@ export interface MonitorOverviewPresentationInput {
|
|
|
84
84
|
monitorSteps?: MonitorSteps | undefined;
|
|
85
85
|
monitoringInterval?: string | undefined;
|
|
86
86
|
createdAt?: Date | undefined;
|
|
87
|
+
firstMeasuredAt?: Date | null | undefined;
|
|
87
88
|
currentStatus?: MonitorOverviewStatusRef | undefined;
|
|
88
89
|
statusSince?: Date | undefined;
|
|
89
90
|
pause: {
|
|
@@ -172,6 +173,7 @@ export default class MonitorOverviewPresentationUtil {
|
|
|
172
173
|
private static getContext;
|
|
173
174
|
private static getEvaluationStatus;
|
|
174
175
|
private static isTelemetryFamily;
|
|
176
|
+
private static isEvaluatedOnTheServer;
|
|
175
177
|
private static readEvaluationLog;
|
|
176
178
|
private static getTelemetryTiming;
|
|
177
179
|
private static getPushMissingMinutes;
|
|
@@ -183,6 +185,8 @@ export default class MonitorOverviewPresentationUtil {
|
|
|
183
185
|
private static getNotCheckingHero;
|
|
184
186
|
private static getAwaitingHero;
|
|
185
187
|
private static isNeverReported;
|
|
188
|
+
private static isStartingStatus;
|
|
189
|
+
private static isNothingMeasured;
|
|
186
190
|
private static getOverdueExplanation;
|
|
187
191
|
private static getPulse;
|
|
188
192
|
private static getFacts;
|
|
@@ -48,6 +48,7 @@ const MonitorCheckScheduleUtil_1 = __importStar(require("./MonitorCheckScheduleU
|
|
|
48
48
|
const MonitorOverviewCriteriaUtil_1 = __importDefault(require("./MonitorOverviewCriteriaUtil"));
|
|
49
49
|
const MonitorOverviewFamily_1 = __importStar(require("./MonitorOverviewFamily"));
|
|
50
50
|
const MonitorStatusHistoryUtil_1 = __importDefault(require("./MonitorStatusHistoryUtil"));
|
|
51
|
+
const HeartbeatSweepSchedule_1 = __importStar(require("./HeartbeatSweepSchedule"));
|
|
51
52
|
const ProbeStatusMonitorUtil_1 = __importDefault(require("./ProbeStatusMonitorUtil"));
|
|
52
53
|
const MonitorOverviewTargetUtil_1 = __importDefault(require("./MonitorOverviewTargetUtil"));
|
|
53
54
|
const ProbeFailureReading_1 = require("./ProbeFailureReading");
|
|
@@ -475,6 +476,15 @@ class MonitorOverviewPresentationUtil {
|
|
|
475
476
|
return (family === MonitorOverviewFamily_1.MonitorOverviewFamily.TelemetrySignal ||
|
|
476
477
|
family === MonitorOverviewFamily_1.MonitorOverviewFamily.Infrastructure);
|
|
477
478
|
}
|
|
479
|
+
/*
|
|
480
|
+
* The families whose measurements leave a trace only in the evaluation
|
|
481
|
+
* log: telemetry and infrastructure, network devices, Probe Status.
|
|
482
|
+
*/
|
|
483
|
+
static isEvaluatedOnTheServer(family) {
|
|
484
|
+
return (MonitorOverviewPresentationUtil.isTelemetryFamily(family) ||
|
|
485
|
+
family === MonitorOverviewFamily_1.MonitorOverviewFamily.NetworkDevice ||
|
|
486
|
+
family === MonitorOverviewFamily_1.MonitorOverviewFamily.ProbeStatus);
|
|
487
|
+
}
|
|
478
488
|
/*
|
|
479
489
|
* An empty log means "never evaluated" only while it would still hold
|
|
480
490
|
* every evaluation the monitor could have had. Past that, its rows may
|
|
@@ -482,12 +492,22 @@ class MonitorOverviewPresentationUtil {
|
|
|
482
492
|
*/
|
|
483
493
|
static readEvaluationLog(data) {
|
|
484
494
|
const input = data.input;
|
|
495
|
+
if (data.evaluationStatus === "loaded" && input.latestEvaluationAt) {
|
|
496
|
+
return "evaluated";
|
|
497
|
+
}
|
|
498
|
+
/*
|
|
499
|
+
* The monitor's row says nothing has ever measured it: no evaluation
|
|
500
|
+
* has completed, however old the monitor and whether or not the log
|
|
501
|
+
* could be read - as the lists, which read the row alone, say. A row
|
|
502
|
+
* in the log wins: the stamp is written once, by the first result.
|
|
503
|
+
*/
|
|
504
|
+
if (input.firstMeasuredAt === null &&
|
|
505
|
+
MonitorOverviewPresentationUtil.isEvaluatedOnTheServer(data.family)) {
|
|
506
|
+
return "never";
|
|
507
|
+
}
|
|
485
508
|
if (data.evaluationStatus !== "loaded") {
|
|
486
509
|
return "unread";
|
|
487
510
|
}
|
|
488
|
-
if (input.latestEvaluationAt) {
|
|
489
|
-
return "evaluated";
|
|
490
|
-
}
|
|
491
511
|
const isYoungerThanLog = !input.createdAt ||
|
|
492
512
|
input.now.getTime() - input.createdAt.getTime() <
|
|
493
513
|
exports.MONITOR_LOG_MINIMUM_RETENTION_SECONDS * 1000;
|
|
@@ -708,8 +728,18 @@ class MonitorOverviewPresentationUtil {
|
|
|
708
728
|
* The status's name as the hero's badge draws it (StatusBadge): one of
|
|
709
729
|
* OneUptime's own names ("Operational") in the reader's words, a name
|
|
710
730
|
* the project gave a status as written.
|
|
731
|
+
*
|
|
732
|
+
* Left out while nothing has been measured and the status is still the
|
|
733
|
+
* operational one every monitor starts in (MonitorService): beside
|
|
734
|
+
* "Waiting for the first check", "Last recorded status: Operational"
|
|
735
|
+
* read as a check that had come back up (#7464). A status something
|
|
736
|
+
* else set before the first check - an incident, a person - was
|
|
737
|
+
* recorded, and is still said.
|
|
711
738
|
*/
|
|
712
|
-
const
|
|
739
|
+
const isStatusNothingRecorded = Boolean(status &&
|
|
740
|
+
MonitorOverviewPresentationUtil.isStartingStatus(status) &&
|
|
741
|
+
MonitorOverviewPresentationUtil.isNothingMeasured(input, context));
|
|
742
|
+
const lastKnownStatus = status && !isStatusNothingRecorded
|
|
713
743
|
? t.translateTemplate("Last recorded status: {{status}}", {
|
|
714
744
|
status: (0, Translator_1.translatableTerm)(status.name),
|
|
715
745
|
})
|
|
@@ -1114,6 +1144,68 @@ class MonitorOverviewPresentationUtil {
|
|
|
1114
1144
|
context.freshness.resultAgeSeconds === null &&
|
|
1115
1145
|
!((_a = context.telemetry) === null || _a === void 0 ? void 0 : _a.isMissingFromLog));
|
|
1116
1146
|
}
|
|
1147
|
+
/*
|
|
1148
|
+
* The status a monitor starts in: MonitorService creates every monitor in
|
|
1149
|
+
* the project's operational status. Offline first, as getStatusTone reads
|
|
1150
|
+
* a status flagged both ways.
|
|
1151
|
+
*/
|
|
1152
|
+
static isStartingStatus(status) {
|
|
1153
|
+
return status.isOperationalState && !status.isOfflineState;
|
|
1154
|
+
}
|
|
1155
|
+
/*
|
|
1156
|
+
* Nothing the monitor's checks measure has come back, as far as the page
|
|
1157
|
+
* can tell: it is still waiting for its first result, or overdue with
|
|
1158
|
+
* none since it was created (6b), or - paused or not checked now - no
|
|
1159
|
+
* probe has a result (switched off or not), no heartbeat, email or agent
|
|
1160
|
+
* report has arrived, and the evaluation log, which would still hold
|
|
1161
|
+
* every evaluation it has had, is empty. What could not be read (the
|
|
1162
|
+
* probes, the log) is not "nothing": it says the status as before.
|
|
1163
|
+
*/
|
|
1164
|
+
static isNothingMeasured(input, context) {
|
|
1165
|
+
/*
|
|
1166
|
+
* The row says something has measured the monitor (issue #8899): its
|
|
1167
|
+
* status was recorded, whatever the probe rows or the log still hold -
|
|
1168
|
+
* a probe taken off since, a log that has dropped the row.
|
|
1169
|
+
*/
|
|
1170
|
+
if (input.firstMeasuredAt) {
|
|
1171
|
+
return false;
|
|
1172
|
+
}
|
|
1173
|
+
if (context.runState === MonitorOverviewRunState.AwaitingFirstData ||
|
|
1174
|
+
MonitorOverviewPresentationUtil.isNeverReported(context)) {
|
|
1175
|
+
return true;
|
|
1176
|
+
}
|
|
1177
|
+
switch (context.family) {
|
|
1178
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.ProbeCheck:
|
|
1179
|
+
/*
|
|
1180
|
+
* lastResultAt counts the enabled probes only; a probe switched off
|
|
1181
|
+
* since keeps the result it last returned on its row. Probes that
|
|
1182
|
+
* could not be read say nothing, unless the row says nothing has
|
|
1183
|
+
* ever come back.
|
|
1184
|
+
*/
|
|
1185
|
+
if (input.probes === null) {
|
|
1186
|
+
return input.firstMeasuredAt === null;
|
|
1187
|
+
}
|
|
1188
|
+
return (!input.probes.lastResultAt &&
|
|
1189
|
+
input.probes.rows.every((row) => {
|
|
1190
|
+
var _a;
|
|
1191
|
+
return !((_a = row.latestResult) === null || _a === void 0 ? void 0 : _a.monitoredAt);
|
|
1192
|
+
}));
|
|
1193
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.Heartbeat:
|
|
1194
|
+
return input.monitorType === MonitorType_1.default.IncomingEmail
|
|
1195
|
+
? !input.email.lastReceivedAt
|
|
1196
|
+
: !input.heartbeat.lastReceivedAt;
|
|
1197
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.Agent:
|
|
1198
|
+
return !input.agent.lastReportAt;
|
|
1199
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.TelemetrySignal:
|
|
1200
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.Infrastructure:
|
|
1201
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.NetworkDevice:
|
|
1202
|
+
case MonitorOverviewFamily_1.MonitorOverviewFamily.ProbeStatus:
|
|
1203
|
+
return context.evaluationLog === "never";
|
|
1204
|
+
default:
|
|
1205
|
+
// A manual monitor's status is whatever a person set.
|
|
1206
|
+
return false;
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1117
1209
|
/*
|
|
1118
1210
|
* "No result for 12m" states how long it has been since the last result -
|
|
1119
1211
|
* the same age the pulse's "Last checked" shows - so the two never
|
|
@@ -1340,6 +1432,32 @@ class MonitorOverviewPresentationUtil {
|
|
|
1340
1432
|
value: t.translatePlural({ one: "{{count}} minute", other: "{{count}} minutes" }, minutes),
|
|
1341
1433
|
secondary: t.translateTemplate("From this monitor's criteria"),
|
|
1342
1434
|
});
|
|
1435
|
+
/*
|
|
1436
|
+
* The sweep visits the monitor every 30 seconds but stamps the
|
|
1437
|
+
* check only every few minutes (HeartbeatSweepSchedule, issue
|
|
1438
|
+
* #8123): while the stamp is as recent as that leaves it, the fact
|
|
1439
|
+
* says the schedule, not a stamp that reads minutes old. Older than
|
|
1440
|
+
* that, the sweeps have stopped reaching it, and when they last
|
|
1441
|
+
* did is the fact. A paused monitor is not swept: its stamp says
|
|
1442
|
+
* when it last was.
|
|
1443
|
+
*/
|
|
1444
|
+
if (!context.isPaused &&
|
|
1445
|
+
HeartbeatSweepSchedule_1.default.isStampOnSchedule({
|
|
1446
|
+
checkedAt: lastCheckedAt,
|
|
1447
|
+
now: input.now,
|
|
1448
|
+
})) {
|
|
1449
|
+
facts.push({
|
|
1450
|
+
key: "heartbeat-check",
|
|
1451
|
+
label: isEmail
|
|
1452
|
+
? t.translateTemplate("Missing-email check")
|
|
1453
|
+
: t.translateTemplate("Missing-request check"),
|
|
1454
|
+
value: t.translatePlural({
|
|
1455
|
+
one: "Every {{count}} second",
|
|
1456
|
+
other: "Every {{count}} seconds",
|
|
1457
|
+
}, HeartbeatSweepSchedule_1.HEARTBEAT_SWEEP_EVERY_SECONDS),
|
|
1458
|
+
});
|
|
1459
|
+
break;
|
|
1460
|
+
}
|
|
1343
1461
|
facts.push(lastCheckedAt
|
|
1344
1462
|
? {
|
|
1345
1463
|
key: "heartbeat-check",
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import Color from "../../Types/Color.mjs";
|
|
2
|
+
import { MonitorFirstCheckFields, StartingStatusFlags } from "./MonitorFirstCheck.mjs";
|
|
3
|
+
import { FirstCheckScheduleFields } from "./MonitorFirstCheckOverdue.mjs";
|
|
4
|
+
import { MonitoredFlags } from "./MonitoringOff.mjs";
|
|
5
|
+
export declare enum MonitorRowStatusKind {
|
|
6
|
+
Archived = "Archived",
|
|
7
|
+
MonitoringOff = "MonitoringOff",
|
|
8
|
+
NoProbeEnabled = "NoProbeEnabled",
|
|
9
|
+
ProbesDisconnected = "ProbesDisconnected",
|
|
10
|
+
PausedBeforeFirstCheck = "PausedBeforeFirstCheck",
|
|
11
|
+
NoResultsYet = "NoResultsYet",
|
|
12
|
+
WaitingForData = "WaitingForData",
|
|
13
|
+
Status = "Status",
|
|
14
|
+
NoStatus = "NoStatus"
|
|
15
|
+
}
|
|
16
|
+
export declare const MONITOR_ROW_STATUS_WORDS: Record<Exclude<MonitorRowStatusKind, MonitorRowStatusKind.Status>, string>;
|
|
17
|
+
export declare const MONITOR_ROW_STATUS_COLORS: Record<Exclude<MonitorRowStatusKind, MonitorRowStatusKind.Status | MonitorRowStatusKind.NoStatus>, Color>;
|
|
18
|
+
export interface MonitorRowStatusFields extends MonitoredFlags, MonitorFirstCheckFields, FirstCheckScheduleFields {
|
|
19
|
+
disableActiveMonitoringBecauseOfManualIncident?: boolean | null | undefined;
|
|
20
|
+
disableActiveMonitoringBecauseOfScheduledMaintenanceEvent?: boolean | null | undefined;
|
|
21
|
+
isNoProbeEnabledOnThisMonitor?: boolean | null | undefined;
|
|
22
|
+
isAllProbesDisconnectedFromThisMonitor?: boolean | null | undefined;
|
|
23
|
+
currentMonitorStatus?: (StartingStatusFlags & {
|
|
24
|
+
name?: string | null | undefined;
|
|
25
|
+
color?: Color | string | null | undefined;
|
|
26
|
+
}) | null | undefined;
|
|
27
|
+
}
|
|
28
|
+
export declare const MONITOR_ROW_STATUS_SELECT: {
|
|
29
|
+
isArchived: true;
|
|
30
|
+
disableActiveMonitoring: true;
|
|
31
|
+
disableActiveMonitoringBecauseOfManualIncident: true;
|
|
32
|
+
disableActiveMonitoringBecauseOfScheduledMaintenanceEvent: true;
|
|
33
|
+
isNoProbeEnabledOnThisMonitor: true;
|
|
34
|
+
isAllProbesDisconnectedFromThisMonitor: true;
|
|
35
|
+
monitorType: true;
|
|
36
|
+
firstMeasuredAt: true;
|
|
37
|
+
createdAt: true;
|
|
38
|
+
monitoringInterval: true;
|
|
39
|
+
currentMonitorStatus: {
|
|
40
|
+
name: true;
|
|
41
|
+
color: true;
|
|
42
|
+
isOperationalState: true;
|
|
43
|
+
isOfflineState: true;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export interface MonitorRowStatus {
|
|
47
|
+
kind: MonitorRowStatusKind;
|
|
48
|
+
text: string;
|
|
49
|
+
color: Color | null;
|
|
50
|
+
isProductWords: boolean;
|
|
51
|
+
shouldAnimate: boolean;
|
|
52
|
+
}
|
|
53
|
+
export default class MonitorRowStatusUtil {
|
|
54
|
+
static getRowStatus(monitor: MonitorRowStatusFields, now?: Date | undefined): MonitorRowStatus;
|
|
55
|
+
static isOwnStatus(status: MonitorRowStatus): boolean;
|
|
56
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import Color from "../../Types/Color";
|
|
2
|
+
import { MonitorFirstCheckFields, StartingStatusFlags } from "./MonitorFirstCheck";
|
|
3
|
+
import { FirstCheckScheduleFields } from "./MonitorFirstCheckOverdue";
|
|
4
|
+
import { MonitoredFlags } from "./MonitoringOff";
|
|
5
|
+
export declare enum MonitorRowStatusKind {
|
|
6
|
+
Archived = "Archived",
|
|
7
|
+
MonitoringOff = "MonitoringOff",
|
|
8
|
+
NoProbeEnabled = "NoProbeEnabled",
|
|
9
|
+
ProbesDisconnected = "ProbesDisconnected",
|
|
10
|
+
PausedBeforeFirstCheck = "PausedBeforeFirstCheck",
|
|
11
|
+
NoResultsYet = "NoResultsYet",
|
|
12
|
+
WaitingForData = "WaitingForData",
|
|
13
|
+
Status = "Status",
|
|
14
|
+
NoStatus = "NoStatus"
|
|
15
|
+
}
|
|
16
|
+
export declare const MONITOR_ROW_STATUS_WORDS: Record<Exclude<MonitorRowStatusKind, MonitorRowStatusKind.Status>, string>;
|
|
17
|
+
export declare const MONITOR_ROW_STATUS_COLORS: Record<Exclude<MonitorRowStatusKind, MonitorRowStatusKind.Status | MonitorRowStatusKind.NoStatus>, Color>;
|
|
18
|
+
export interface MonitorRowStatusFields extends MonitoredFlags, MonitorFirstCheckFields, FirstCheckScheduleFields {
|
|
19
|
+
disableActiveMonitoringBecauseOfManualIncident?: boolean | null | undefined;
|
|
20
|
+
disableActiveMonitoringBecauseOfScheduledMaintenanceEvent?: boolean | null | undefined;
|
|
21
|
+
isNoProbeEnabledOnThisMonitor?: boolean | null | undefined;
|
|
22
|
+
isAllProbesDisconnectedFromThisMonitor?: boolean | null | undefined;
|
|
23
|
+
currentMonitorStatus?: (StartingStatusFlags & {
|
|
24
|
+
name?: string | null | undefined;
|
|
25
|
+
color?: Color | string | null | undefined;
|
|
26
|
+
}) | null | undefined;
|
|
27
|
+
}
|
|
28
|
+
export declare const MONITOR_ROW_STATUS_SELECT: {
|
|
29
|
+
isArchived: true;
|
|
30
|
+
disableActiveMonitoring: true;
|
|
31
|
+
disableActiveMonitoringBecauseOfManualIncident: true;
|
|
32
|
+
disableActiveMonitoringBecauseOfScheduledMaintenanceEvent: true;
|
|
33
|
+
isNoProbeEnabledOnThisMonitor: true;
|
|
34
|
+
isAllProbesDisconnectedFromThisMonitor: true;
|
|
35
|
+
monitorType: true;
|
|
36
|
+
firstMeasuredAt: true;
|
|
37
|
+
createdAt: true;
|
|
38
|
+
monitoringInterval: true;
|
|
39
|
+
currentMonitorStatus: {
|
|
40
|
+
name: true;
|
|
41
|
+
color: true;
|
|
42
|
+
isOperationalState: true;
|
|
43
|
+
isOfflineState: true;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export interface MonitorRowStatus {
|
|
47
|
+
kind: MonitorRowStatusKind;
|
|
48
|
+
text: string;
|
|
49
|
+
color: Color | null;
|
|
50
|
+
isProductWords: boolean;
|
|
51
|
+
shouldAnimate: boolean;
|
|
52
|
+
}
|
|
53
|
+
export default class MonitorRowStatusUtil {
|
|
54
|
+
static getRowStatus(monitor: MonitorRowStatusFields, now?: Date | undefined): MonitorRowStatus;
|
|
55
|
+
static isOwnStatus(status: MonitorRowStatus): boolean;
|
|
56
|
+
}
|