@oneuptime/common 14.0.108 → 14.0.109
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/AnalyticsModels/AuditLog.js +1 -1
- package/Models/DatabaseModels/CloudApp.d.mts +5 -0
- package/Models/DatabaseModels/CloudApp.d.ts +5 -0
- package/Models/DatabaseModels/CloudApp.js +112 -0
- package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
- package/Models/DatabaseModels/GlobalConfig.js +111 -0
- package/Models/DatabaseModels/Index.js +7 -0
- package/Models/DatabaseModels/Monitor.js +14 -0
- package/Models/DatabaseModels/MonitorStatusTimeline.d.mts +1 -0
- package/Models/DatabaseModels/MonitorStatusTimeline.d.ts +1 -0
- package/Models/DatabaseModels/MonitorStatusTimeline.js +43 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +4 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +4 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +132 -2
- package/Models/DatabaseModels/ProductFeedback.d.mts +11 -0
- package/Models/DatabaseModels/ProductFeedback.d.ts +11 -0
- package/Models/DatabaseModels/ProductFeedback.js +203 -0
- package/Models/DatabaseModels/ProductFeedback.mjs +2 -0
- package/Models/DatabaseModels/Project.d.mts +6 -0
- package/Models/DatabaseModels/Project.d.ts +6 -0
- package/Models/DatabaseModels/Project.js +237 -0
- package/Models/DatabaseModels/ProjectMilestone.d.mts +11 -0
- package/Models/DatabaseModels/ProjectMilestone.d.ts +11 -0
- package/Models/DatabaseModels/ProjectMilestone.js +207 -0
- package/Models/DatabaseModels/ProjectMilestone.mjs +2 -0
- package/Models/DatabaseModels/ProjectUserPreference.d.mts +11 -0
- package/Models/DatabaseModels/ProjectUserPreference.d.ts +11 -0
- package/Models/DatabaseModels/ProjectUserPreference.js +194 -0
- package/Models/DatabaseModels/ProjectUserPreference.mjs +2 -0
- package/Models/DatabaseModels/RumSessionPin.js +16 -2
- package/Models/DatabaseModels/RumSessionReplayView.js +8 -1
- package/Models/DatabaseModels/SecurityCase.js +8 -1
- package/Models/DatabaseModels/User.d.mts +2 -0
- package/Models/DatabaseModels/User.d.ts +2 -0
- package/Models/DatabaseModels/User.js +52 -0
- package/Models/DatabaseModels/UserOnCallLog.js +32 -4
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +10 -0
- package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.mts +9 -0
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.ts +9 -0
- package/Server/Services/DatabaseService.d.mts +1 -0
- package/Server/Services/DatabaseService.d.ts +1 -0
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.mts +2 -1
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.ts +2 -1
- package/Server/Utils/Workspace/WorkspaceBase.d.mts +1 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.ts +1 -0
- package/Types/AI/AIActionWords.d.mts +167 -7
- package/Types/AI/AIActionWords.d.ts +167 -7
- package/Types/AI/AIActionWords.js +474 -17
- package/Types/AI/AIActionWords.mjs +22 -0
- package/Types/AI/AIChatMessageStatus.js +3 -2
- package/Types/AI/AIChatRecordSeen.d.mts +6 -2
- package/Types/AI/AIChatRecordSeen.d.ts +6 -2
- package/Types/AI/AIChatRecordSeen.js +48 -9
- package/Types/AI/AIChatRecordSeen.mjs +2 -0
- package/Types/AI/AIChatTypes.d.mts +19 -1
- package/Types/AI/AIChatTypes.d.ts +19 -1
- package/Types/AI/AIChatTypes.js +44 -1
- package/Types/AI/AIChatTypes.mjs +3 -0
- package/Types/AI/AIRunAttempt.d.mts +8 -0
- package/Types/AI/AIRunAttempt.d.ts +8 -0
- package/Types/AI/AIRunAttempt.js +60 -6
- package/Types/AI/AIRunAttempt.mjs +3 -0
- package/Types/AI/AISetupActions.d.mts +9 -0
- package/Types/AI/AISetupActions.d.ts +9 -0
- package/Types/AI/AISetupActions.js +56 -0
- package/Types/AI/AISetupActions.mjs +10 -0
- package/Types/AI/CodeTask.d.mts +14 -0
- package/Types/AI/CodeTask.d.ts +14 -0
- package/Types/AI/RecordAiTokenLimit.d.mts +24 -0
- package/Types/AI/RecordAiTokenLimit.d.ts +24 -0
- package/Types/AI/RecordAiTokenLimit.js +153 -0
- package/Types/AI/RecordAiTokenLimit.mjs +8 -0
- package/Types/Accounts/SignInMessages.d.mts +8 -0
- package/Types/Accounts/SignInMessages.d.ts +8 -0
- package/Types/Accounts/SignInMessages.js +28 -0
- package/Types/Accounts/SignInMessages.mjs +5 -0
- package/Types/Analytics/ActivationMilestone.d.mts +48 -0
- package/Types/Analytics/ActivationMilestone.d.ts +48 -0
- package/Types/Analytics/ActivationMilestone.js +247 -0
- package/Types/Analytics/ActivationMilestone.mjs +16 -0
- package/Types/Analytics/ChecklistProgress.d.mts +11 -0
- package/Types/Analytics/ChecklistProgress.d.ts +11 -0
- package/Types/Analytics/ChecklistProgress.js +32 -0
- package/Types/Analytics/ChecklistProgress.mjs +2 -0
- package/Types/Analytics/ProductEvent.d.mts +61 -0
- package/Types/Analytics/ProductEvent.d.ts +61 -0
- package/Types/Analytics/ProductEvent.js +430 -0
- package/Types/Analytics/ProductEvent.mjs +14 -0
- package/Types/AuditLog/AuditLogAction.d.mts +5 -1
- package/Types/AuditLog/AuditLogAction.d.ts +5 -1
- package/Types/AuditLog/AuditLogAction.js +11 -0
- package/Types/AuditLog/AuditLogActionLabel.d.mts +3 -0
- package/Types/AuditLog/AuditLogActionLabel.d.ts +3 -0
- package/Types/AuditLog/AuditLogActionLabel.js +30 -0
- package/Types/AuditLog/AuditLogActionLabel.mjs +3 -0
- package/Types/AuditLog/AuditLogCoverage.d.mts +2 -1
- package/Types/AuditLog/AuditLogCoverage.d.ts +2 -1
- package/Types/AuditLog/AuditLogCoverage.js +8 -1
- package/Types/AuditLog/AuditLogRetention.js +7 -4
- package/Types/AuditLog/AuditLogSessionEvent.d.mts +45 -0
- package/Types/AuditLog/AuditLogSessionEvent.d.ts +45 -0
- package/Types/AuditLog/AuditLogSessionEvent.js +210 -0
- package/Types/AuditLog/AuditLogSessionEvent.mjs +14 -0
- package/Types/AutoRemediation/RemediationRound.d.mts +4 -0
- package/Types/AutoRemediation/RemediationRound.d.ts +4 -0
- package/Types/AutoRemediation/RemediationRound.js +19 -2
- package/Types/AutoRemediation/RemediationRoundName.d.mts +1 -0
- package/Types/AutoRemediation/RemediationRoundName.d.ts +1 -0
- package/Types/AutoRemediation/RemediationRoundName.js +5 -0
- package/Types/AutoRemediation/RemediationRoundName.mjs +1 -0
- package/Types/Cloud/CloudAppTelemetrySignal.d.mts +9 -0
- package/Types/Cloud/CloudAppTelemetrySignal.d.ts +9 -0
- package/Types/Cloud/CloudAppTelemetrySignal.js +41 -0
- package/Types/Cloud/CloudAppTelemetrySignal.mjs +4 -0
- package/Types/Cloud/CloudPlatform.js +7 -1
- package/Types/CodeRepository/CodeFileSeen.d.mts +5 -0
- package/Types/CodeRepository/CodeFileSeen.d.ts +5 -0
- package/Types/CodeRepository/CodeFileSeen.js +142 -27
- package/Types/CustomDomain/CustomDomainDnsCheckResult.d.mts +13 -0
- package/Types/CustomDomain/CustomDomainDnsCheckResult.d.ts +13 -0
- package/Types/CustomDomain/CustomDomainDnsCheckResult.js +80 -0
- package/Types/CustomDomain/CustomDomainDnsCheckResult.mjs +2 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.d.mts +55 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.d.ts +55 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.js +199 -0
- package/Types/CustomDomain/CustomDomainServerReadiness.mjs +8 -0
- package/Types/CustomDomain/DnsRecordCheck.d.mts +34 -0
- package/Types/CustomDomain/DnsRecordCheck.d.ts +34 -0
- package/Types/CustomDomain/DnsRecordCheck.js +175 -0
- package/Types/CustomDomain/DnsRecordCheck.mjs +6 -0
- package/Types/CustomDomain/DnsRecordCheckWords.d.mts +35 -0
- package/Types/CustomDomain/DnsRecordCheckWords.d.ts +35 -0
- package/Types/CustomDomain/DnsRecordCheckWords.js +151 -0
- package/Types/CustomDomain/DnsRecordCheckWords.mjs +5 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.mts +1 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.ts +1 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.js +11 -1
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.mjs +1 -0
- package/Types/DataObservability/DataCheckType.d.mts +4 -0
- package/Types/DataObservability/DataCheckType.d.ts +4 -0
- package/Types/DataObservability/DataCheckType.js +17 -0
- package/Types/DataObservability/DataCheckType.mjs +1 -0
- package/Types/DataObservability/DataLineageColumnTrail.d.mts +10 -0
- package/Types/DataObservability/DataLineageColumnTrail.d.ts +10 -0
- package/Types/DataObservability/DataLineageColumnTrail.js +152 -0
- package/Types/DataObservability/DataLineageColumnTrail.mjs +4 -0
- package/Types/DataObservability/DataLineageExpansion.d.mts +29 -0
- package/Types/DataObservability/DataLineageExpansion.d.ts +29 -0
- package/Types/DataObservability/DataLineageExpansion.js +166 -0
- package/Types/DataObservability/DataLineageExpansion.mjs +4 -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/DataObservability/DataTableLineage.d.mts +7 -0
- package/Types/DataObservability/DataTableLineage.d.ts +7 -0
- package/Types/DataObservability/DataTableLineage.js +15 -3
- package/Types/DataObservability/DataTableLineage.mjs +1 -0
- package/Types/Date.d.mts +22 -0
- package/Types/Date.d.ts +22 -0
- package/Types/Date.js +72 -3
- package/Types/DateLanguage.d.mts +7 -0
- package/Types/DateLanguage.d.ts +7 -0
- package/Types/DateLanguage.js +44 -1
- package/Types/DateLanguage.mjs +1 -0
- package/Types/Docs/DocsLanguage.d.mts +2 -0
- package/Types/Docs/DocsLanguage.d.ts +2 -0
- package/Types/Docs/DocsLanguage.js +23 -1
- package/Types/Docs/DocsLanguage.mjs +2 -0
- package/Types/Docs/GlossaryTerm.d.mts +82 -0
- package/Types/Docs/GlossaryTerm.d.ts +82 -0
- package/Types/Docs/GlossaryTerm.js +126 -0
- package/Types/Docs/GlossaryTerm.mjs +5 -0
- package/Types/Email/AmazonSesAuthenticationType.d.mts +23 -0
- package/Types/Email/AmazonSesAuthenticationType.d.ts +23 -0
- package/Types/Email/AmazonSesAuthenticationType.js +40 -0
- package/Types/Email/AmazonSesAuthenticationType.mjs +4 -0
- package/Types/Email/EmailServer.d.mts +2 -0
- package/Types/Email/EmailServer.d.ts +2 -0
- package/Types/Email/EmailTemplateType.d.mts +1 -0
- package/Types/Email/EmailTemplateType.d.ts +1 -0
- package/Types/Email/EmailTemplateType.js +2 -0
- package/Types/Exception/BadDataExceptionWithDetails.d.mts +6 -0
- package/Types/Exception/BadDataExceptionWithDetails.d.ts +6 -0
- package/Types/Exception/BadDataExceptionWithDetails.js +20 -0
- package/Types/Exception/BadDataExceptionWithDetails.mjs +2 -0
- package/Types/Exception/ErrorMessageRule.d.mts +4 -0
- package/Types/Exception/ErrorMessageRule.d.ts +4 -0
- package/Types/Exception/ErrorMessageRule.js +143 -0
- package/Types/Exception/ErrorMessageRule.mjs +5 -0
- package/Types/Exception/UnexplainedError.d.mts +45 -0
- package/Types/Exception/UnexplainedError.d.ts +45 -0
- package/Types/Exception/UnexplainedError.js +179 -0
- package/Types/Exception/UnexplainedError.mjs +11 -0
- package/Types/Icon/IconProp.d.mts +4 -1
- package/Types/Icon/IconProp.d.ts +4 -1
- package/Types/Icon/IconProp.js +6 -0
- package/Types/InstallationHealth/InstallationHealth.d.mts +122 -0
- package/Types/InstallationHealth/InstallationHealth.d.ts +122 -0
- package/Types/InstallationHealth/InstallationHealth.js +513 -0
- package/Types/InstallationHealth/InstallationHealth.mjs +13 -0
- package/Types/LLM/LLMProviderExchange.d.mts +17 -0
- package/Types/LLM/LLMProviderExchange.d.ts +17 -0
- package/Types/LLM/LLMProviderExchange.js +70 -0
- package/Types/LLM/LLMProviderExchange.mjs +5 -0
- package/Types/Monitor/CriteriaFilter.d.mts +1 -0
- package/Types/Monitor/CriteriaFilter.d.ts +1 -0
- package/Types/Monitor/CriteriaFilter.js +3 -1
- package/Types/Monitor/CriteriaFilterTerms.js +1 -0
- package/Types/Monitor/CriteriaFilterValues.d.mts +2 -0
- package/Types/Monitor/CriteriaFilterValues.d.ts +2 -0
- package/Types/Monitor/CriteriaFilterValues.js +22 -0
- package/Types/Monitor/EvaluationSentence.d.mts +1 -0
- package/Types/Monitor/EvaluationSentence.d.ts +1 -0
- package/Types/Monitor/EvaluationSentence.js +34 -3
- package/Types/Monitor/EvaluationSentence.mjs +1 -0
- package/Types/Monitor/RetiredEvaluationTemplates.d.mts +2 -0
- package/Types/Monitor/RetiredEvaluationTemplates.d.ts +2 -0
- package/Types/Monitor/RetiredEvaluationTemplates.js +95 -0
- package/Types/Monitor/RetiredEvaluationTemplates.mjs +3 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.d.mts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.d.ts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.js +20 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationCheckMethod.mjs +2 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.d.mts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.d.ts +6 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.js +29 -0
- package/Types/Monitor/SSLMonitor/CertificateRevocationStatus.mjs +2 -0
- package/Types/Monitor/SSLMonitor/SslMonitorResponse.d.mts +7 -0
- package/Types/Monitor/SSLMonitor/SslMonitorResponse.d.ts +7 -0
- package/Types/Monitor/WhoIsTold.d.mts +165 -0
- package/Types/Monitor/WhoIsTold.d.ts +165 -0
- package/Types/Monitor/WhoIsTold.js +582 -0
- package/Types/Monitor/WhoIsTold.mjs +17 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.mts +6 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.d.ts +6 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.js +34 -0
- package/Types/OnCallDutyPolicy/OnCallDutyPolicyRunWait.mjs +2 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +240 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +240 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.js +574 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +52 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.d.mts +31 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.d.ts +31 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.js +105 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageWords.mjs +14 -0
- package/Types/PhoneNumberDirection.d.mts +6 -0
- package/Types/PhoneNumberDirection.d.ts +6 -0
- package/Types/PhoneNumberDirection.js +123 -0
- package/Types/PhoneNumberDirection.mjs +6 -0
- package/Types/Product/ProductKey.d.mts +58 -0
- package/Types/Product/ProductKey.d.ts +58 -0
- package/Types/Product/ProductKey.js +175 -0
- package/Types/Product/ProductKey.mjs +8 -0
- package/Types/Product/ProductPins.d.mts +10 -0
- package/Types/Product/ProductPins.d.ts +10 -0
- package/Types/Product/ProductPins.js +65 -0
- package/Types/Product/ProductPins.mjs +6 -0
- package/Types/Product/ProductUsage.d.mts +21 -0
- package/Types/Product/ProductUsage.d.ts +21 -0
- package/Types/Product/ProductUsage.js +175 -0
- package/Types/Product/ProductUsage.mjs +10 -0
- package/Types/Product/ProjectProducts.d.mts +60 -0
- package/Types/Product/ProjectProducts.d.ts +60 -0
- package/Types/Product/ProjectProducts.js +336 -0
- package/Types/Product/ProjectProducts.mjs +19 -0
- package/Types/Product/ProjectProductsAnswer.d.mts +20 -0
- package/Types/Product/ProjectProductsAnswer.d.ts +20 -0
- package/Types/Product/ProjectProductsAnswer.js +139 -0
- package/Types/Product/ProjectProductsAnswer.mjs +7 -0
- package/Types/ProductFeedback/NewGitHubIssue.d.mts +12 -0
- package/Types/ProductFeedback/NewGitHubIssue.d.ts +12 -0
- package/Types/ProductFeedback/NewGitHubIssue.js +64 -0
- package/Types/ProductFeedback/NewGitHubIssue.mjs +5 -0
- package/Types/ProductFeedback/ProductFeedback.d.mts +140 -0
- package/Types/ProductFeedback/ProductFeedback.d.ts +140 -0
- package/Types/ProductFeedback/ProductFeedback.js +517 -0
- package/Types/ProductFeedback/ProductFeedback.mjs +49 -0
- package/Types/ReadingDirection.d.mts +2 -0
- package/Types/ReadingDirection.d.ts +2 -0
- package/Types/ReadingDirection.js +83 -2
- package/Types/ReadingDirection.mjs +2 -0
- package/Types/Recommendation/RecommendationType.d.mts +2 -1
- package/Types/Recommendation/RecommendationType.d.ts +2 -1
- package/Types/Recommendation/RecommendationType.js +6 -0
- package/Types/Reminder/ReminderInterval.d.mts +7 -0
- package/Types/Reminder/ReminderInterval.d.ts +7 -0
- package/Types/Reminder/ReminderInterval.js +110 -0
- package/Types/Reminder/ReminderInterval.mjs +8 -0
- package/Types/Retention/ResolvedRecordRetention.d.mts +19 -0
- package/Types/Retention/ResolvedRecordRetention.d.ts +19 -0
- package/Types/Retention/ResolvedRecordRetention.js +124 -0
- package/Types/Retention/ResolvedRecordRetention.mjs +14 -0
- package/Types/RollingTime/RollingTimeUtil.d.mts +1 -0
- package/Types/RollingTime/RollingTimeUtil.d.ts +1 -0
- package/Types/RollingTime/RollingTimeUtil.js +9 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +108 -101
- package/Types/ServerSending/ServerSendingStatus.d.mts +69 -0
- package/Types/ServerSending/ServerSendingStatus.d.ts +69 -0
- package/Types/ServerSending/ServerSendingStatus.js +281 -0
- package/Types/ServerSending/ServerSendingStatus.mjs +7 -0
- package/Types/ServerSending/ServerSendingWords.d.mts +9 -0
- package/Types/ServerSending/ServerSendingWords.d.ts +9 -0
- package/Types/ServerSending/ServerSendingWords.js +95 -0
- package/Types/ServerSending/ServerSendingWords.mjs +7 -0
- package/Types/ServerSetup/ServerSetupChecklist.d.mts +172 -0
- package/Types/ServerSetup/ServerSetupChecklist.d.ts +172 -0
- package/Types/ServerSetup/ServerSetupChecklist.js +735 -0
- package/Types/ServerSetup/ServerSetupChecklist.mjs +12 -0
- package/Types/ServerSetup/ServerTestSend.d.mts +35 -0
- package/Types/ServerSetup/ServerTestSend.d.ts +35 -0
- package/Types/ServerSetup/ServerTestSend.js +160 -0
- package/Types/ServerSetup/ServerTestSend.mjs +10 -0
- package/Types/SetupHealth/SetupHealth.d.mts +283 -0
- package/Types/SetupHealth/SetupHealth.d.ts +283 -0
- package/Types/SetupHealth/SetupHealth.js +1047 -0
- package/Types/SetupHealth/SetupHealth.mjs +46 -0
- package/Types/StatusPage/StatusPageSummary.d.mts +1 -0
- package/Types/StatusPage/StatusPageSummary.d.ts +1 -0
- package/Types/StatusPage/StatusPageSummary.js +3 -0
- package/Types/StatusPage/UptimeDailyAggregate.d.mts +25 -0
- package/Types/StatusPage/UptimeDailyAggregate.d.ts +25 -0
- package/Types/Telemetry/LlmCallKind.js +1 -1
- package/Types/Telemetry/TelemetryIngestionBudget.d.mts +1 -0
- package/Types/Telemetry/TelemetryIngestionBudget.d.ts +1 -0
- package/Types/Telemetry/TelemetryIngestionBudget.js +135 -2
- package/Types/Telemetry/TelemetryIngestionBudget.mjs +1 -0
- package/Types/ToolImport/ToolImportCatalog.d.mts +1 -0
- package/Types/ToolImport/ToolImportCatalog.d.ts +1 -0
- package/Types/ToolImport/ToolImportCatalog.js +54 -1
- package/Types/ToolImport/ToolImportCatalog.mjs +1 -0
- package/Types/Translator.js +64 -31
- package/Types/UserNotification/UserNotificationEventType.d.mts +2 -1
- package/Types/UserNotification/UserNotificationEventType.d.ts +2 -1
- package/Types/UserNotification/UserNotificationEventType.js +7 -0
- package/Types/UserSession/SessionEndCause.d.mts +17 -0
- package/Types/UserSession/SessionEndCause.d.ts +17 -0
- package/Types/UserSession/SessionEndCause.js +79 -0
- package/Types/UserSession/SessionEndCause.mjs +6 -0
- package/Types/UserSession/SessionSignIn.d.mts +44 -0
- package/Types/UserSession/SessionSignIn.d.ts +44 -0
- package/Types/UserSession/SessionSignIn.js +174 -0
- package/Types/UserSession/SessionSignIn.mjs +17 -0
- package/Types/WelcomeChecklist/ProjectGoal.d.mts +16 -0
- package/Types/WelcomeChecklist/ProjectGoal.d.ts +16 -0
- package/Types/WelcomeChecklist/ProjectGoal.js +94 -0
- package/Types/WelcomeChecklist/ProjectGoal.mjs +8 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +76 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +76 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.js +344 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +19 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +24 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +24 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +136 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.mjs +9 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.d.mts +27 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.d.ts +27 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.js +183 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.mjs +13 -0
- package/Types/Workflow/Documentation/AIDocumentation.js +1 -1
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.d.mts +7 -0
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.d.ts +7 -0
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.js +40 -0
- package/Types/Workspace/NotificationSummary/WorkspaceSummaryTestChannel.mjs +3 -0
- package/Types/Workspace/WorkspaceChannelMembers.d.mts +1 -0
- package/Types/Workspace/WorkspaceChannelMembers.d.ts +1 -0
- package/Types/Workspace/WorkspaceChannelMembers.js +9 -2
- package/UI/Components/Dropdown/Dropdown.d.mts +1 -0
- package/UI/Components/Dropdown/Dropdown.d.ts +1 -0
- package/Utils/API.js +10 -0
- package/Utils/Dashboard/DashboardWidgetSorts.js +25 -4
- package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +37 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +37 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.js +86 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.mjs +10 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.d.mts +31 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.d.ts +31 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.js +89 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.mjs +6 -0
- package/Utils/GuidedSetup/StatusPageRecords.d.mts +36 -0
- package/Utils/GuidedSetup/StatusPageRecords.d.ts +36 -0
- package/Utils/GuidedSetup/StatusPageRecords.js +105 -0
- package/Utils/GuidedSetup/StatusPageRecords.mjs +6 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.d.mts +41 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.d.ts +41 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.js +204 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.mjs +9 -0
- package/Utils/Markdown/InlineImageDataUri.d.mts +9 -0
- package/Utils/Markdown/InlineImageDataUri.d.ts +9 -0
- package/Utils/Markdown/InlineImageDataUri.js +17 -1
- package/Utils/Markdown/InlineImageDataUri.mjs +1 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.mts +12 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +12 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +539 -0
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +4 -0
- package/Utils/Monitor/ExternalStatusPageReading.d.mts +9 -0
- package/Utils/Monitor/ExternalStatusPageReading.d.ts +9 -0
- package/Utils/Monitor/ExternalStatusPageReading.js +77 -8
- package/Utils/Monitor/ExternalStatusPageReading.mjs +3 -0
- package/Utils/Monitor/ExternalStatusPageScope.js +17 -1
- package/Utils/Monitor/MonitorDestinationUtil.js +2 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +2 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +2 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +10 -1
- package/Utils/Monitor/MonitorStatusHistoryUtil.d.mts +1 -0
- package/Utils/Monitor/MonitorStatusHistoryUtil.d.ts +1 -0
- package/Utils/Monitor/MonitorStatusHistoryUtil.js +1 -0
- package/Utils/Monitor/MonitorSummaryProbeUtil.d.mts +2 -0
- package/Utils/Monitor/MonitorSummaryProbeUtil.d.ts +2 -0
- package/Utils/Monitor/MonitorSummaryProbeUtil.js +13 -17
- package/Utils/Monitor/MonitorSummarySnapshotUtil.js +5 -3
- package/Utils/Monitor/MonitorUptimeSummaryUtil.d.mts +1 -1
- package/Utils/Monitor/MonitorUptimeSummaryUtil.d.ts +1 -1
- package/Utils/Monitor/MonitorUptimeSummaryUtil.js +1 -0
- package/Utils/Monitor/MonitoringOff.d.mts +20 -0
- package/Utils/Monitor/MonitoringOff.d.ts +20 -0
- package/Utils/Monitor/MonitoringOff.js +81 -0
- package/Utils/Monitor/MonitoringOff.mjs +4 -0
- package/Utils/Monitor/NotOperationalMonitorQuery.js +9 -7
- package/Utils/Monitor/StateChangeLogScreenshots.d.mts +8 -0
- package/Utils/Monitor/StateChangeLogScreenshots.d.ts +8 -0
- package/Utils/Monitor/StateChangeLogScreenshots.js +116 -0
- package/Utils/Monitor/StateChangeLogScreenshots.mjs +3 -0
- package/Utils/NetworkDevice/Naming/NamingLookup.d.mts +1 -1
- package/Utils/NetworkDevice/Naming/NamingLookup.d.ts +1 -1
- package/Utils/NetworkDevice/Naming/NamingLookup.js +14 -4
- package/Utils/NetworkDevice/Naming/NamingLookup.mjs +1 -0
- package/Utils/Slo/SloErrorBudgetPolicy.d.mts +2 -1
- package/Utils/Slo/SloErrorBudgetPolicy.d.ts +2 -1
- package/Utils/Slo/SloErrorBudgetPolicy.js +8 -2
- package/Utils/Slo/SloListWidgetFormat.d.mts +7 -1
- package/Utils/Slo/SloListWidgetFormat.d.ts +7 -1
- package/Utils/Slo/SloListWidgetFormat.js +20 -26
- package/Utils/Slo/SloOverviewText.d.mts +6 -1
- package/Utils/Slo/SloOverviewText.d.ts +6 -1
- package/Utils/Slo/SloOverviewText.js +3 -3
- package/Utils/Slo/SloUtil.d.mts +18 -9
- package/Utils/Slo/SloUtil.d.ts +18 -9
- package/Utils/Slo/SloUtil.js +47 -10
- package/Utils/Slo/SloWidgetFormat.d.mts +69 -11
- package/Utils/Slo/SloWidgetFormat.d.ts +69 -11
- package/Utils/Slo/SloWidgetFormat.js +198 -50
- package/Utils/Slo/SloWidgetFormat.mjs +7 -0
- package/Utils/StatusPage/FrozenMonitorResources.d.mts +41 -0
- package/Utils/StatusPage/FrozenMonitorResources.d.ts +41 -0
- package/Utils/StatusPage/FrozenMonitorResources.js +155 -0
- package/Utils/StatusPage/FrozenMonitorResources.mjs +4 -0
- package/Utils/StatusPage/GroupNestingLayout.d.mts +2 -0
- package/Utils/StatusPage/GroupNestingLayout.d.ts +2 -0
- package/Utils/StatusPage/GroupNestingLayout.js +12 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.d.mts +48 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.d.ts +48 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.js +181 -0
- package/Utils/StatusPage/MonitorGroupUptimeDailyAggregateUtil.mjs +2 -0
- package/Utils/StatusPage/ResourceExplorer.d.mts +1 -0
- package/Utils/StatusPage/ResourceExplorer.d.ts +1 -0
- package/Utils/StatusPage/ResourceExplorer.js +11 -1
- package/Utils/StatusPage/ResourceUptime.d.mts +6 -1
- package/Utils/StatusPage/ResourceUptime.d.ts +6 -1
- package/Utils/StatusPage/ResourceUptime.js +31 -6
- package/Utils/StatusPage/StatusPageSummaryBuilder.d.mts +1 -0
- package/Utils/StatusPage/StatusPageSummaryBuilder.d.ts +1 -0
- package/Utils/StatusPage/StatusPageSummaryBuilder.js +12 -1
- package/Utils/StatusPage/StatusPageUptimeTimezone.d.mts +41 -0
- package/Utils/StatusPage/StatusPageUptimeTimezone.d.ts +41 -0
- package/Utils/StatusPage/StatusPageUptimeTimezone.js +114 -0
- package/Utils/StatusPage/StatusPageUptimeTimezone.mjs +2 -0
- package/Utils/StatusPage/UptimeDailyAggregateUtil.d.mts +3 -1
- package/Utils/StatusPage/UptimeDailyAggregateUtil.d.ts +3 -1
- package/Utils/StatusPage/UptimeDailyAggregateUtil.js +69 -50
- package/Utils/Telemetry/CloudInstanceIdentity.js +12 -7
- package/Utils/Uptime/DayUptimeGraphUtil.d.mts +8 -0
- package/Utils/Uptime/DayUptimeGraphUtil.d.ts +8 -0
- package/Utils/Uptime/DayUptimeGraphUtil.js +41 -6
- package/Utils/Uptime/UptimeMaintenanceUtil.d.mts +3 -0
- package/Utils/Uptime/UptimeMaintenanceUtil.d.ts +3 -0
- package/Utils/Uptime/UptimeMaintenanceUtil.js +49 -0
- package/Utils/Uptime/UptimeUtil.d.mts +38 -1
- package/Utils/Uptime/UptimeUtil.d.ts +38 -1
- package/Utils/Uptime/UptimeUtil.js +270 -75
- package/Utils/Uptime/WorstStatusTimeline.d.mts +31 -0
- package/Utils/Uptime/WorstStatusTimeline.d.ts +31 -0
- package/Utils/Uptime/WorstStatusTimeline.js +190 -0
- package/Utils/Uptime/WorstStatusTimeline.mjs +2 -0
- package/Utils/Workspace/WorkspaceSummarySetup.d.mts +25 -0
- package/Utils/Workspace/WorkspaceSummarySetup.d.ts +25 -0
- package/Utils/Workspace/WorkspaceSummarySetup.js +215 -0
- package/Utils/Workspace/WorkspaceSummarySetup.mjs +11 -0
- package/package.json +1 -1
- package/Utils/StatusPage/ArchivedMonitorResources.d.mts +0 -10
- package/Utils/StatusPage/ArchivedMonitorResources.d.ts +0 -10
- package/Utils/StatusPage/ArchivedMonitorResources.js +0 -33
- package/Utils/StatusPage/ArchivedMonitorResources.mjs +0 -2
|
@@ -4,6 +4,7 @@ import ObjectID from "../../Types/ObjectID";
|
|
|
4
4
|
import MonitorStatus from "../../Models/DatabaseModels/MonitorStatus";
|
|
5
5
|
import MonitorStatusTimeline from "../../Models/DatabaseModels/MonitorStatusTimeline";
|
|
6
6
|
import UptimePrecision from "../../Types/StatusPage/UptimePrecision";
|
|
7
|
+
import { WorstStatusTimelineOptions } from "./WorstStatusTimeline";
|
|
7
8
|
/**
|
|
8
9
|
* The time period an uptime calculation is reported over. When this is supplied, events are
|
|
9
10
|
* clipped to it and the denominator of the uptime percentage is the window itself - clipped to
|
|
@@ -16,6 +17,11 @@ export interface UptimeWindow {
|
|
|
16
17
|
startDate: Date;
|
|
17
18
|
endDate: Date;
|
|
18
19
|
}
|
|
20
|
+
export interface MonitoringOffSpan {
|
|
21
|
+
monitorId: ObjectID;
|
|
22
|
+
startDate: Date;
|
|
23
|
+
endDate: Date;
|
|
24
|
+
}
|
|
19
25
|
export default class UptimeUtil {
|
|
20
26
|
/**
|
|
21
27
|
* Chronological order for timeline rows, to the millisecond.
|
|
@@ -38,15 +44,43 @@ export default class UptimeUtil {
|
|
|
38
44
|
* tie leaves behind can then never cut the open row short.
|
|
39
45
|
*/
|
|
40
46
|
static compareTimelinesChronologically(a: MonitorStatusTimeline, b: MonitorStatusTimeline): number;
|
|
47
|
+
static isMonitoringOff(row: MonitorStatusTimeline): boolean;
|
|
41
48
|
/**
|
|
42
49
|
* This function, `getMonitorEventsForId`, takes a `monitorId` as an argument and returns an array of `MonitorEvent` objects.
|
|
50
|
+
*
|
|
51
|
+
* Time with the monitor's monitoring turned off is no event (issue #6480): nothing checked
|
|
52
|
+
* the monitor then, so the status its row holds is only what the last check saw before that.
|
|
53
|
+
* The row still ends the row before it - an open row runs to the next row's start, whatever
|
|
54
|
+
* that row is - and leaves a gap of its own, which getTotalDowntimeInSeconds leaves out of
|
|
55
|
+
* the time it measures (getNotMonitoredSeconds).
|
|
43
56
|
* @param {ObjectID} monitorId - The ID of the monitor for which events are to be fetched.
|
|
44
57
|
* @param {UptimeWindow | undefined} window - If supplied, events are clipped to this window and events outside it are dropped.
|
|
45
58
|
* @returns {Array<MonitorEvent>} - An array of `MonitorEvent` objects.
|
|
46
59
|
*/
|
|
47
60
|
static getMonitorEventsForId(monitorId: ObjectID, statusTimelineItems: Array<MonitorStatusTimeline>, window?: UptimeWindow | undefined): Array<MonitorEvent>;
|
|
61
|
+
static getMonitoringOffSpans(items: Array<MonitorStatusTimeline>, window?: UptimeWindow | undefined): Array<MonitoringOffSpan>;
|
|
62
|
+
static getNotMonitoredSeconds(data: {
|
|
63
|
+
items: Array<MonitorStatusTimeline>;
|
|
64
|
+
startDate: Date;
|
|
65
|
+
endDate: Date;
|
|
66
|
+
}): number;
|
|
67
|
+
private static mergeMillisecondIntervals;
|
|
68
|
+
private static intersectMillisecondIntervals;
|
|
69
|
+
private static getMonitorIds;
|
|
70
|
+
private static getRowSpansForId;
|
|
48
71
|
static compareEventsByStartDate(a: Event, b: Event): number;
|
|
49
|
-
|
|
72
|
+
/**
|
|
73
|
+
* One timeline out of the rows of one or more monitors: at every instant,
|
|
74
|
+
* the worst status among the monitors recorded then, and nothing where
|
|
75
|
+
* none was. See WorstStatusTimeline.merge.
|
|
76
|
+
*
|
|
77
|
+
* Pass the downtime statuses when the result is measured for uptime: they
|
|
78
|
+
* then outrank every other status, so the time it counts as down is
|
|
79
|
+
* exactly the time at least one of the monitors was down - what a monitor
|
|
80
|
+
* group's uptime percentage is measured from on the server
|
|
81
|
+
* (MonitorStatusTimelineService.getMergedDowntimeSeconds).
|
|
82
|
+
*/
|
|
83
|
+
static getNonOverlappingMonitorEvents(items: Array<MonitorStatusTimeline>, window?: UptimeWindow | undefined, options?: WorstStatusTimelineOptions | undefined): Array<Event>;
|
|
50
84
|
static getMonitorEvents(items: Array<MonitorStatusTimeline>, window?: UptimeWindow | undefined): Array<MonitorEvent>;
|
|
51
85
|
static getTotalDowntimeInSeconds(monitorStatusTimelines: Array<MonitorStatusTimeline>, downtimeMonitorStatuses: Array<MonitorStatus>, window?: UptimeWindow | undefined): {
|
|
52
86
|
totalDowntimeInSeconds: number;
|
|
@@ -57,6 +91,9 @@ export default class UptimeUtil {
|
|
|
57
91
|
precision: UptimePrecision;
|
|
58
92
|
}): number;
|
|
59
93
|
static calculateUptimePercentage(monitorStatusTimelines: Array<MonitorStatusTimeline>, precision: UptimePrecision, downtimeMonitorStatuses: Array<MonitorStatus>, window?: UptimeWindow | undefined): number;
|
|
94
|
+
static calculateUptimePercentageOfMonitoredTime(monitorStatusTimelines: Array<MonitorStatusTimeline>, precision: UptimePrecision, downtimeMonitorStatuses: Array<MonitorStatus>, window?: UptimeWindow | undefined): number | null;
|
|
95
|
+
private static withoutNotMonitoredSeconds;
|
|
96
|
+
private static toUptimePercentage;
|
|
60
97
|
/**
|
|
61
98
|
* Uptime over the seconds that were actually recorded, or null when none
|
|
62
99
|
* were, so a caller can tell a resource with no data from one that was up.
|
|
@@ -7,6 +7,7 @@ const BrandColors_1 = require("../../Types/BrandColors");
|
|
|
7
7
|
const Date_1 = __importDefault(require("../../Types/Date"));
|
|
8
8
|
const ObjectID_1 = __importDefault(require("../../Types/ObjectID"));
|
|
9
9
|
const UptimePrecision_1 = __importDefault(require("../../Types/StatusPage/UptimePrecision"));
|
|
10
|
+
const WorstStatusTimeline_1 = __importDefault(require("./WorstStatusTimeline"));
|
|
10
11
|
class UptimeUtil {
|
|
11
12
|
/**
|
|
12
13
|
* Chronological order for timeline rows, to the millisecond.
|
|
@@ -50,21 +51,198 @@ class UptimeUtil {
|
|
|
50
51
|
return (Date_1.default.fromString(a.endsAt).getTime() -
|
|
51
52
|
Date_1.default.fromString(b.endsAt).getTime());
|
|
52
53
|
}
|
|
54
|
+
/*
|
|
55
|
+
* Whether a status timeline row covers time with the monitor's monitoring
|
|
56
|
+
* turned off. Only an explicit true does: the column is NOT NULL and
|
|
57
|
+
* defaults to false, so a row read without it was read without the
|
|
58
|
+
* column, not with monitoring off.
|
|
59
|
+
*/
|
|
60
|
+
static isMonitoringOff(row) {
|
|
61
|
+
return row.isMonitoringOff === true;
|
|
62
|
+
}
|
|
53
63
|
/**
|
|
54
64
|
* This function, `getMonitorEventsForId`, takes a `monitorId` as an argument and returns an array of `MonitorEvent` objects.
|
|
65
|
+
*
|
|
66
|
+
* Time with the monitor's monitoring turned off is no event (issue #6480): nothing checked
|
|
67
|
+
* the monitor then, so the status its row holds is only what the last check saw before that.
|
|
68
|
+
* The row still ends the row before it - an open row runs to the next row's start, whatever
|
|
69
|
+
* that row is - and leaves a gap of its own, which getTotalDowntimeInSeconds leaves out of
|
|
70
|
+
* the time it measures (getNotMonitoredSeconds).
|
|
55
71
|
* @param {ObjectID} monitorId - The ID of the monitor for which events are to be fetched.
|
|
56
72
|
* @param {UptimeWindow | undefined} window - If supplied, events are clipped to this window and events outside it are dropped.
|
|
57
73
|
* @returns {Array<MonitorEvent>} - An array of `MonitorEvent` objects.
|
|
58
74
|
*/
|
|
59
75
|
static getMonitorEventsForId(monitorId, statusTimelineItems, window) {
|
|
60
|
-
|
|
61
|
-
|
|
76
|
+
var _a, _b, _c;
|
|
77
|
+
const eventList = [];
|
|
78
|
+
for (const span of this.getRowSpansForId(monitorId, statusTimelineItems, window)) {
|
|
79
|
+
if (UptimeUtil.isMonitoringOff(span.row)) {
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
82
|
+
// Push a new MonitorEvent object to the eventList array with properties from the current item and calculated dates.
|
|
83
|
+
eventList.push({
|
|
84
|
+
startDate: span.startDate,
|
|
85
|
+
endDate: span.endDate,
|
|
86
|
+
label: ((_a = span.row.monitorStatus) === null || _a === void 0 ? void 0 : _a.name) || "Operational",
|
|
87
|
+
priority: ((_b = span.row.monitorStatus) === null || _b === void 0 ? void 0 : _b.priority) || 0,
|
|
88
|
+
color: ((_c = span.row.monitorStatus) === null || _c === void 0 ? void 0 : _c.color) || BrandColors_1.Green,
|
|
89
|
+
monitorId: span.row.monitorId,
|
|
90
|
+
eventStatusId: span.row.monitorStatus.id,
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
// Return the populated eventList array.
|
|
94
|
+
return eventList;
|
|
95
|
+
}
|
|
96
|
+
/*
|
|
97
|
+
* The time each monitor's monitoring was turned off, as its rows mark it:
|
|
98
|
+
* clipped and ended exactly as getMonitorEventsForId clips and ends the
|
|
99
|
+
* rows it turns into events, so the two never overlap. In start order.
|
|
100
|
+
*/
|
|
101
|
+
static getMonitoringOffSpans(items, window) {
|
|
102
|
+
const spans = [];
|
|
103
|
+
for (const monitorId of this.getMonitorIds(items)) {
|
|
104
|
+
for (const span of this.getRowSpansForId(monitorId, items, window)) {
|
|
105
|
+
if (!UptimeUtil.isMonitoringOff(span.row)) {
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
108
|
+
spans.push({
|
|
109
|
+
monitorId: monitorId,
|
|
110
|
+
startDate: Date_1.default.fromString(span.startDate),
|
|
111
|
+
endDate: Date_1.default.fromString(span.endDate),
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return spans.sort((a, b) => {
|
|
116
|
+
return a.startDate.getTime() - b.startDate.getTime();
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
/*
|
|
120
|
+
* Seconds of [startDate, endDate] in which none of the monitors in `items`
|
|
121
|
+
* was monitored: at each such instant every one of them either had its
|
|
122
|
+
* monitoring turned off, or had no row yet. That time is no time at all
|
|
123
|
+
* for uptime (issue #6480): neither up nor down. A gap in a timeline - a
|
|
124
|
+
* row deleted from its middle - is read as it always was.
|
|
125
|
+
*
|
|
126
|
+
* Zero when no row marks monitoring off, so a timeline without such a
|
|
127
|
+
* row is measured exactly as before.
|
|
128
|
+
*/
|
|
129
|
+
static getNotMonitoredSeconds(data) {
|
|
130
|
+
var _a;
|
|
131
|
+
const periodStart = Date_1.default.fromString(data.startDate).getTime();
|
|
132
|
+
const periodEnd = Date_1.default.fromString(data.endDate).getTime();
|
|
133
|
+
if (!(periodEnd > periodStart) ||
|
|
134
|
+
!data.items.some((item) => {
|
|
135
|
+
return Boolean(item) && UptimeUtil.isMonitoringOff(item);
|
|
136
|
+
})) {
|
|
137
|
+
return 0;
|
|
138
|
+
}
|
|
139
|
+
let notMonitored = null;
|
|
140
|
+
for (const monitorId of this.getMonitorIds(data.items)) {
|
|
141
|
+
const intervals = [];
|
|
142
|
+
// Before its first row the monitor was not there to be checked.
|
|
143
|
+
let firstRowStart = null;
|
|
144
|
+
for (const item of data.items) {
|
|
145
|
+
if (!item || ((_a = item.monitorId) === null || _a === void 0 ? void 0 : _a.toString()) !== monitorId.toString()) {
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
148
|
+
const startsAt = Date_1.default.fromString(item.startsAt || Date_1.default.getCurrentDate()).getTime();
|
|
149
|
+
if (firstRowStart === null || startsAt < firstRowStart) {
|
|
150
|
+
firstRowStart = startsAt;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
if (firstRowStart !== null && firstRowStart > periodStart) {
|
|
154
|
+
intervals.push([periodStart, Math.min(firstRowStart, periodEnd)]);
|
|
155
|
+
}
|
|
156
|
+
for (const span of this.getRowSpansForId(monitorId, data.items)) {
|
|
157
|
+
if (!UptimeUtil.isMonitoringOff(span.row)) {
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
intervals.push([
|
|
161
|
+
Math.max(Date_1.default.fromString(span.startDate).getTime(), periodStart),
|
|
162
|
+
Math.min(Date_1.default.fromString(span.endDate).getTime(), periodEnd),
|
|
163
|
+
]);
|
|
164
|
+
}
|
|
165
|
+
const merged = UptimeUtil.mergeMillisecondIntervals(intervals);
|
|
166
|
+
notMonitored =
|
|
167
|
+
notMonitored === null
|
|
168
|
+
? merged
|
|
169
|
+
: UptimeUtil.intersectMillisecondIntervals(notMonitored, merged);
|
|
170
|
+
if (notMonitored.length === 0) {
|
|
171
|
+
return 0;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
let notMonitoredMilliseconds = 0;
|
|
175
|
+
for (const interval of notMonitored || []) {
|
|
176
|
+
notMonitoredMilliseconds += interval[1] - interval[0];
|
|
177
|
+
}
|
|
178
|
+
return notMonitoredMilliseconds / 1000;
|
|
179
|
+
}
|
|
180
|
+
// Sorted, disjoint and non-empty: overlapping or touching intervals joined.
|
|
181
|
+
static mergeMillisecondIntervals(intervals) {
|
|
182
|
+
const merged = [];
|
|
183
|
+
const sorted = [...intervals].sort((a, b) => {
|
|
184
|
+
return a[0] - b[0];
|
|
185
|
+
});
|
|
186
|
+
for (const interval of sorted) {
|
|
187
|
+
if (!(interval[1] > interval[0])) {
|
|
188
|
+
continue;
|
|
189
|
+
}
|
|
190
|
+
const last = merged[merged.length - 1];
|
|
191
|
+
if (last && interval[0] <= last[1]) {
|
|
192
|
+
last[1] = Math.max(last[1], interval[1]);
|
|
193
|
+
continue;
|
|
194
|
+
}
|
|
195
|
+
merged.push([interval[0], interval[1]]);
|
|
196
|
+
}
|
|
197
|
+
return merged;
|
|
198
|
+
}
|
|
199
|
+
// The time both sorted, disjoint lists cover.
|
|
200
|
+
static intersectMillisecondIntervals(a, b) {
|
|
201
|
+
const both = [];
|
|
202
|
+
let i = 0;
|
|
203
|
+
let j = 0;
|
|
204
|
+
while (i < a.length && j < b.length) {
|
|
205
|
+
const start = Math.max(a[i][0], b[j][0]);
|
|
206
|
+
const end = Math.min(a[i][1], b[j][1]);
|
|
207
|
+
if (end > start) {
|
|
208
|
+
both.push([start, end]);
|
|
209
|
+
}
|
|
210
|
+
if (a[i][1] < b[j][1]) {
|
|
211
|
+
i++;
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
j++;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
return both;
|
|
218
|
+
}
|
|
219
|
+
// Every monitor the rows are of, once each, in the order first seen.
|
|
220
|
+
static getMonitorIds(items) {
|
|
221
|
+
var _a;
|
|
222
|
+
const monitorIds = [];
|
|
223
|
+
const seen = new Set();
|
|
224
|
+
for (const item of items) {
|
|
225
|
+
const monitorId = (_a = item === null || item === void 0 ? void 0 : item.monitorId) === null || _a === void 0 ? void 0 : _a.toString();
|
|
226
|
+
if (!monitorId || seen.has(monitorId)) {
|
|
227
|
+
continue;
|
|
228
|
+
}
|
|
229
|
+
seen.add(monitorId);
|
|
230
|
+
monitorIds.push(new ObjectID_1.default(monitorId));
|
|
231
|
+
}
|
|
232
|
+
return monitorIds;
|
|
233
|
+
}
|
|
234
|
+
/*
|
|
235
|
+
* One monitor's rows as the time each covers, in order: what
|
|
236
|
+
* getMonitorEventsForId makes its events of, and getMonitoringOffSpans
|
|
237
|
+
* and getNotMonitoredSeconds the time with monitoring off of.
|
|
238
|
+
*/
|
|
239
|
+
static getRowSpansForId(monitorId, statusTimelineItems, window) {
|
|
62
240
|
// make sure items are sorted by start date - to the millisecond, see compareTimelinesChronologically.
|
|
63
241
|
let items = [...statusTimelineItems];
|
|
64
242
|
items = items.sort((a, b) => {
|
|
65
243
|
return UptimeUtil.compareTimelinesChronologically(a, b);
|
|
66
244
|
});
|
|
67
|
-
const
|
|
245
|
+
const spans = [];
|
|
68
246
|
const monitorEvents = items.filter((item) => {
|
|
69
247
|
var _a;
|
|
70
248
|
return ((_a = item.monitorId) === null || _a === void 0 ? void 0 : _a.toString()) === monitorId.toString();
|
|
@@ -121,19 +299,13 @@ class UptimeUtil {
|
|
|
121
299
|
*/
|
|
122
300
|
continue;
|
|
123
301
|
}
|
|
124
|
-
|
|
125
|
-
|
|
302
|
+
spans.push({
|
|
303
|
+
row: monitorEvents[i],
|
|
126
304
|
startDate: eventStartDate,
|
|
127
305
|
endDate: eventEndDate,
|
|
128
|
-
label: ((_b = (_a = monitorEvents[i]) === null || _a === void 0 ? void 0 : _a.monitorStatus) === null || _b === void 0 ? void 0 : _b.name) || "Operational",
|
|
129
|
-
priority: ((_d = (_c = monitorEvents[i]) === null || _c === void 0 ? void 0 : _c.monitorStatus) === null || _d === void 0 ? void 0 : _d.priority) || 0,
|
|
130
|
-
color: ((_f = (_e = monitorEvents[i]) === null || _e === void 0 ? void 0 : _e.monitorStatus) === null || _f === void 0 ? void 0 : _f.color) || BrandColors_1.Green,
|
|
131
|
-
monitorId: monitorEvents[i].monitorId,
|
|
132
|
-
eventStatusId: monitorEvents[i].monitorStatus.id,
|
|
133
306
|
});
|
|
134
307
|
}
|
|
135
|
-
|
|
136
|
-
return eventList;
|
|
308
|
+
return spans;
|
|
137
309
|
}
|
|
138
310
|
/*
|
|
139
311
|
* Start-date order for events, to the millisecond rather than to the second
|
|
@@ -143,69 +315,25 @@ class UptimeUtil {
|
|
|
143
315
|
return (Date_1.default.fromString(a.startDate).getTime() -
|
|
144
316
|
Date_1.default.fromString(b.startDate).getTime());
|
|
145
317
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
let isEndDateOfCurrenteventAfterLastEvent = false;
|
|
162
|
-
if (eventList[eventList.length - 1] &&
|
|
163
|
-
((_a = eventList[eventList.length - 1]) === null || _a === void 0 ? void 0 : _a.endDate)) {
|
|
164
|
-
isEndDateOfCurrenteventAfterLastEvent =
|
|
165
|
-
Date_1.default.isAfter(monitorEvent.endDate, eventList[eventList.length - 1].endDate) ||
|
|
166
|
-
Date_1.default.isEqualBySeconds(monitorEvent.endDate, eventList[eventList.length - 1].endDate);
|
|
167
|
-
}
|
|
168
|
-
if (monitorEvent.priority > eventList[eventList.length - 1].priority ||
|
|
169
|
-
isEndDateOfCurrenteventAfterLastEvent) {
|
|
170
|
-
// end the last event at the start of this event.
|
|
171
|
-
const tempLastEvent = Object.assign({}, eventList[eventList.length - 1]);
|
|
172
|
-
eventList[eventList.length - 1].endDate = monitorEvent.startDate;
|
|
173
|
-
eventList.push(monitorEvent);
|
|
174
|
-
// if the monitorEvent endDate is before the end of the last event, then we need to add the end of the last event to the list.
|
|
175
|
-
if (Date_1.default.isBefore(monitorEvent.endDate, tempLastEvent.endDate)) {
|
|
176
|
-
eventList.push({
|
|
177
|
-
startDate: monitorEvent.endDate,
|
|
178
|
-
endDate: tempLastEvent.endDate,
|
|
179
|
-
label: tempLastEvent.label,
|
|
180
|
-
priority: tempLastEvent.priority,
|
|
181
|
-
color: tempLastEvent.color,
|
|
182
|
-
eventStatusId: tempLastEvent.eventStatusId,
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
continue;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
return eventList;
|
|
318
|
+
/**
|
|
319
|
+
* One timeline out of the rows of one or more monitors: at every instant,
|
|
320
|
+
* the worst status among the monitors recorded then, and nothing where
|
|
321
|
+
* none was. See WorstStatusTimeline.merge.
|
|
322
|
+
*
|
|
323
|
+
* Pass the downtime statuses when the result is measured for uptime: they
|
|
324
|
+
* then outrank every other status, so the time it counts as down is
|
|
325
|
+
* exactly the time at least one of the monitors was down - what a monitor
|
|
326
|
+
* group's uptime percentage is measured from on the server
|
|
327
|
+
* (MonitorStatusTimelineService.getMergedDowntimeSeconds).
|
|
328
|
+
*/
|
|
329
|
+
static getNonOverlappingMonitorEvents(items, window, options) {
|
|
330
|
+
return WorstStatusTimeline_1.default.merge(this.getMonitorEvents(items, window), {
|
|
331
|
+
downtimeMonitorStatusIds: options === null || options === void 0 ? void 0 : options.downtimeMonitorStatusIds,
|
|
332
|
+
});
|
|
190
333
|
}
|
|
191
334
|
static getMonitorEvents(items, window) {
|
|
192
|
-
var _a;
|
|
193
335
|
// get all distinct monitor ids.
|
|
194
|
-
const monitorIds =
|
|
195
|
-
for (let i = 0; i < items.length; i++) {
|
|
196
|
-
if (!items[i]) {
|
|
197
|
-
continue;
|
|
198
|
-
}
|
|
199
|
-
const monitorId = (_a = items[i].monitorId) === null || _a === void 0 ? void 0 : _a.toString();
|
|
200
|
-
if (!monitorId) {
|
|
201
|
-
continue;
|
|
202
|
-
}
|
|
203
|
-
if (!monitorIds.find((item) => {
|
|
204
|
-
return item.toString() === monitorId;
|
|
205
|
-
})) {
|
|
206
|
-
monitorIds.push(new ObjectID_1.default(monitorId));
|
|
207
|
-
}
|
|
208
|
-
}
|
|
336
|
+
const monitorIds = this.getMonitorIds(items);
|
|
209
337
|
const eventList = [];
|
|
210
338
|
// convert data to events.
|
|
211
339
|
for (const monitorId of monitorIds) {
|
|
@@ -223,7 +351,14 @@ class UptimeUtil {
|
|
|
223
351
|
return [...eventList];
|
|
224
352
|
}
|
|
225
353
|
static getTotalDowntimeInSeconds(monitorStatusTimelines, downtimeMonitorStatuses, window) {
|
|
226
|
-
const monitorEvents = this.getNonOverlappingMonitorEvents(monitorStatusTimelines, window
|
|
354
|
+
const monitorEvents = this.getNonOverlappingMonitorEvents(monitorStatusTimelines, window, {
|
|
355
|
+
downtimeMonitorStatusIds: (downtimeMonitorStatuses || [])
|
|
356
|
+
.map((status) => {
|
|
357
|
+
var _a;
|
|
358
|
+
return ((_a = status.id) === null || _a === void 0 ? void 0 : _a.toString()) || "";
|
|
359
|
+
})
|
|
360
|
+
.filter(Boolean),
|
|
361
|
+
});
|
|
227
362
|
// sort these by start date, to the millisecond.
|
|
228
363
|
monitorEvents.sort((a, b) => {
|
|
229
364
|
return UptimeUtil.compareEventsByStartDate(a, b);
|
|
@@ -246,8 +381,16 @@ class UptimeUtil {
|
|
|
246
381
|
*
|
|
247
382
|
* When there are no events at all there is nothing to clamp to and the denominator is the
|
|
248
383
|
* full (now-clipped) window.
|
|
384
|
+
*
|
|
385
|
+
* Either way, the time in it that none of the monitors was monitored - each had its
|
|
386
|
+
* monitoring turned off, or no row yet - is left out (getNotMonitoredSeconds, issue #6480).
|
|
387
|
+
* Their rows hold no events for it, so it would otherwise count as up. A window nothing was
|
|
388
|
+
* monitored in at all measures no time: 0.
|
|
249
389
|
*/
|
|
250
390
|
let windowSecondsInTimePeriod = null;
|
|
391
|
+
// The period measured, which the time nothing was monitored is taken out of.
|
|
392
|
+
let periodStartDate = null;
|
|
393
|
+
let periodEndDate = null;
|
|
251
394
|
if (window) {
|
|
252
395
|
const windowEndDate = Date_1.default.getLesserDate(window.endDate, Date_1.default.getCurrentDate());
|
|
253
396
|
const windowStartDate = monitorEvents.length > 0
|
|
@@ -258,13 +401,22 @@ class UptimeUtil {
|
|
|
258
401
|
if (!windowSecondsInTimePeriod || windowSecondsInTimePeriod < 0) {
|
|
259
402
|
windowSecondsInTimePeriod = 1;
|
|
260
403
|
}
|
|
404
|
+
periodStartDate = windowStartDate;
|
|
405
|
+
periodEndDate = windowEndDate;
|
|
261
406
|
}
|
|
262
407
|
// calculate number of seconds between start of first event to date time now.
|
|
263
408
|
let totalSecondsInTimePeriod = 0;
|
|
264
409
|
if (monitorEvents.length === 0) {
|
|
265
410
|
return {
|
|
266
411
|
totalDowntimeInSeconds: 0,
|
|
267
|
-
totalSecondsInTimePeriod: windowSecondsInTimePeriod
|
|
412
|
+
totalSecondsInTimePeriod: windowSecondsInTimePeriod === null
|
|
413
|
+
? 1
|
|
414
|
+
: UptimeUtil.withoutNotMonitoredSeconds({
|
|
415
|
+
seconds: windowSecondsInTimePeriod,
|
|
416
|
+
items: monitorStatusTimelines,
|
|
417
|
+
startDate: periodStartDate,
|
|
418
|
+
endDate: periodEndDate,
|
|
419
|
+
}),
|
|
268
420
|
};
|
|
269
421
|
}
|
|
270
422
|
if (windowSecondsInTimePeriod !== null) {
|
|
@@ -279,7 +431,15 @@ class UptimeUtil {
|
|
|
279
431
|
}
|
|
280
432
|
totalSecondsInTimePeriod =
|
|
281
433
|
Date_1.default.getSecondsBetweenDates(monitorEvents[0].startDate, Date_1.default.getCurrentDate()) || 1;
|
|
434
|
+
periodStartDate = monitorEvents[0].startDate;
|
|
435
|
+
periodEndDate = Date_1.default.getCurrentDate();
|
|
282
436
|
}
|
|
437
|
+
totalSecondsInTimePeriod = UptimeUtil.withoutNotMonitoredSeconds({
|
|
438
|
+
seconds: totalSecondsInTimePeriod,
|
|
439
|
+
items: monitorStatusTimelines,
|
|
440
|
+
startDate: periodStartDate,
|
|
441
|
+
endDate: periodEndDate,
|
|
442
|
+
});
|
|
283
443
|
// get order of operational state.
|
|
284
444
|
// if the event belongs to less than operationalStatePriority, then add the seconds to the total seconds.
|
|
285
445
|
let totalDowntime = 0;
|
|
@@ -315,7 +475,42 @@ class UptimeUtil {
|
|
|
315
475
|
}
|
|
316
476
|
static calculateUptimePercentage(monitorStatusTimelines, precision, downtimeMonitorStatuses, window) {
|
|
317
477
|
// calculate percentage.
|
|
318
|
-
|
|
478
|
+
return this.toUptimePercentage({
|
|
479
|
+
totals: this.getTotalDowntimeInSeconds(monitorStatusTimelines, downtimeMonitorStatuses, window),
|
|
480
|
+
precision: precision,
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
/*
|
|
484
|
+
* calculateUptimePercentage, or null when none of the period was
|
|
485
|
+
* monitored - every monitor's rows in it mark its monitoring off - so a
|
|
486
|
+
* reader can show no percentage rather than the 100% that no time at all
|
|
487
|
+
* reads as (issue #6480).
|
|
488
|
+
*/
|
|
489
|
+
static calculateUptimePercentageOfMonitoredTime(monitorStatusTimelines, precision, downtimeMonitorStatuses, window) {
|
|
490
|
+
const totals = this.getTotalDowntimeInSeconds(monitorStatusTimelines, downtimeMonitorStatuses, window);
|
|
491
|
+
if (!(totals.totalSecondsInTimePeriod > 0)) {
|
|
492
|
+
return null;
|
|
493
|
+
}
|
|
494
|
+
return this.toUptimePercentage({ totals: totals, precision: precision });
|
|
495
|
+
}
|
|
496
|
+
/*
|
|
497
|
+
* The period's seconds without those in it that none of the monitors was
|
|
498
|
+
* monitored (getNotMonitoredSeconds), never below zero.
|
|
499
|
+
*/
|
|
500
|
+
static withoutNotMonitoredSeconds(data) {
|
|
501
|
+
const notMonitoredSeconds = this.getNotMonitoredSeconds({
|
|
502
|
+
items: data.items,
|
|
503
|
+
startDate: data.startDate,
|
|
504
|
+
endDate: data.endDate,
|
|
505
|
+
});
|
|
506
|
+
if (!(notMonitoredSeconds > 0)) {
|
|
507
|
+
return data.seconds;
|
|
508
|
+
}
|
|
509
|
+
return Math.max(0, data.seconds - notMonitoredSeconds);
|
|
510
|
+
}
|
|
511
|
+
static toUptimePercentage(data) {
|
|
512
|
+
const { totalDowntimeInSeconds, totalSecondsInTimePeriod } = data.totals;
|
|
513
|
+
const precision = data.precision;
|
|
319
514
|
if (totalSecondsInTimePeriod === 0) {
|
|
320
515
|
return 100;
|
|
321
516
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import Event from "./Event.mjs";
|
|
2
|
+
import ObjectID from "../../Types/ObjectID.mjs";
|
|
3
|
+
export interface WorstStatusTimelineOptions {
|
|
4
|
+
downtimeMonitorStatusIds?: Array<ObjectID | string> | undefined;
|
|
5
|
+
}
|
|
6
|
+
export default class WorstStatusTimeline {
|
|
7
|
+
/**
|
|
8
|
+
* One timeline out of the events of one or more monitors: at every
|
|
9
|
+
* instant, the status that wins it among the events covering it (see
|
|
10
|
+
* WorstStatusTimelineOptions), and nothing where no event covers it.
|
|
11
|
+
*
|
|
12
|
+
* The result never overlaps itself, is in start order, and joins pieces
|
|
13
|
+
* of one status that meet. So however many monitors cover a day, the
|
|
14
|
+
* time it adds up to for that day is at most the day: each instant is
|
|
15
|
+
* counted once, in one status. And a gap no monitor recorded stays a gap
|
|
16
|
+
* rather than being counted as any status.
|
|
17
|
+
*
|
|
18
|
+
* This replaces a merge that compared each event with the LAST one it
|
|
19
|
+
* kept and nothing else. With several monitors covering the same hours it
|
|
20
|
+
* kept overlapping events side by side - a group of eight monitors all
|
|
21
|
+
* Offline for a day counted eight days of Offline in it - and cut others
|
|
22
|
+
* to a negative length, which took time away from the day instead
|
|
23
|
+
* (issue #6697). It also let a better status that merely ran on longer
|
|
24
|
+
* cut a worse one short: A Offline from 10:00 to 11:00 and B Operational
|
|
25
|
+
* from 10:30 to 12:00 kept only half an hour of A's outage.
|
|
26
|
+
*
|
|
27
|
+
* A sweep over every start and end, keeping the events that cover the
|
|
28
|
+
* current instant in a heap: O(n log n) for n events.
|
|
29
|
+
*/
|
|
30
|
+
static merge(events: Array<Event>, options?: WorstStatusTimelineOptions | undefined): Array<Event>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import Event from "./Event";
|
|
2
|
+
import ObjectID from "../../Types/ObjectID";
|
|
3
|
+
export interface WorstStatusTimelineOptions {
|
|
4
|
+
downtimeMonitorStatusIds?: Array<ObjectID | string> | undefined;
|
|
5
|
+
}
|
|
6
|
+
export default class WorstStatusTimeline {
|
|
7
|
+
/**
|
|
8
|
+
* One timeline out of the events of one or more monitors: at every
|
|
9
|
+
* instant, the status that wins it among the events covering it (see
|
|
10
|
+
* WorstStatusTimelineOptions), and nothing where no event covers it.
|
|
11
|
+
*
|
|
12
|
+
* The result never overlaps itself, is in start order, and joins pieces
|
|
13
|
+
* of one status that meet. So however many monitors cover a day, the
|
|
14
|
+
* time it adds up to for that day is at most the day: each instant is
|
|
15
|
+
* counted once, in one status. And a gap no monitor recorded stays a gap
|
|
16
|
+
* rather than being counted as any status.
|
|
17
|
+
*
|
|
18
|
+
* This replaces a merge that compared each event with the LAST one it
|
|
19
|
+
* kept and nothing else. With several monitors covering the same hours it
|
|
20
|
+
* kept overlapping events side by side - a group of eight monitors all
|
|
21
|
+
* Offline for a day counted eight days of Offline in it - and cut others
|
|
22
|
+
* to a negative length, which took time away from the day instead
|
|
23
|
+
* (issue #6697). It also let a better status that merely ran on longer
|
|
24
|
+
* cut a worse one short: A Offline from 10:00 to 11:00 and B Operational
|
|
25
|
+
* from 10:30 to 12:00 kept only half an hour of A's outage.
|
|
26
|
+
*
|
|
27
|
+
* A sweep over every start and end, keeping the events that cover the
|
|
28
|
+
* current instant in a heap: O(n log n) for n events.
|
|
29
|
+
*/
|
|
30
|
+
static merge(events: Array<Event>, options?: WorstStatusTimelineOptions | undefined): Array<Event>;
|
|
31
|
+
}
|