@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
|
@@ -0,0 +1,114 @@
|
|
|
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 TimezoneAlias_1 = __importDefault(require("../../Types/TimezoneAlias"));
|
|
7
|
+
const UptimeDailyAggregateUtil_1 = require("./UptimeDailyAggregateUtil");
|
|
8
|
+
const moment_timezone_1 = __importDefault(require("moment-timezone"));
|
|
9
|
+
const DAY_MS = 24 * 60 * 60 * 1000;
|
|
10
|
+
/*
|
|
11
|
+
* The zone a status page's uptime history is cut in, for one visitor.
|
|
12
|
+
*
|
|
13
|
+
* Each bar of the history is one calendar day of the VISITOR's - "Today" is
|
|
14
|
+
* their today, and an incident at 15:36 in Shanghai is on that date's bar
|
|
15
|
+
* in Shanghai, beside the times the tooltip already shows in the visitor's
|
|
16
|
+
* zone (issue #6697). The page used to cut every day in UTC, because the
|
|
17
|
+
* overview is one cached response shared by every visitor; the history is
|
|
18
|
+
* now built per zone, and cached per zone (StatusPageOverviewCache).
|
|
19
|
+
*/
|
|
20
|
+
class StatusPageUptimeTimezone {
|
|
21
|
+
/**
|
|
22
|
+
* The zone a visitor asked for, as a name the server can cut days in, or
|
|
23
|
+
* UTC.
|
|
24
|
+
*
|
|
25
|
+
* Lenient on purpose: a status page must render, so a zone it cannot use
|
|
26
|
+
* - missing, not a string, not one moment knows - is UTC, the history the
|
|
27
|
+
* page always drew, never an error. A legacy name a browser reports
|
|
28
|
+
* (Chromium says Asia/Calcutta for India, Europe/Kiev for Ukraine) is
|
|
29
|
+
* translated to its current one first (TimezoneAlias): the Postgres in
|
|
30
|
+
* the shipped images has no legacy tzdata links and rejects several of
|
|
31
|
+
* them in AT TIME ZONE. The name comes back in moment's own spelling, so
|
|
32
|
+
* "asia/shanghai" and "Asia/Shanghai" are one zone.
|
|
33
|
+
*/
|
|
34
|
+
static resolve(raw) {
|
|
35
|
+
var _a;
|
|
36
|
+
if (typeof raw !== "string") {
|
|
37
|
+
return UptimeDailyAggregateUtil_1.DEFAULT_UPTIME_AGGREGATE_TIMEZONE;
|
|
38
|
+
}
|
|
39
|
+
const trimmed = raw.trim();
|
|
40
|
+
if (!trimmed || trimmed.length > this.MAX_TIMEZONE_LENGTH) {
|
|
41
|
+
return UptimeDailyAggregateUtil_1.DEFAULT_UPTIME_AGGREGATE_TIMEZONE;
|
|
42
|
+
}
|
|
43
|
+
const canonical = TimezoneAlias_1.default.getCanonicalTimezone(trimmed);
|
|
44
|
+
let name = null;
|
|
45
|
+
try {
|
|
46
|
+
name = ((_a = moment_timezone_1.default.tz.zone(canonical)) === null || _a === void 0 ? void 0 : _a.name) || null;
|
|
47
|
+
}
|
|
48
|
+
catch (_b) {
|
|
49
|
+
name = null;
|
|
50
|
+
}
|
|
51
|
+
if (!name) {
|
|
52
|
+
return UptimeDailyAggregateUtil_1.DEFAULT_UPTIME_AGGREGATE_TIMEZONE;
|
|
53
|
+
}
|
|
54
|
+
// moment knows a few names only as links; their target is what it names.
|
|
55
|
+
return TimezoneAlias_1.default.getCanonicalTimezone(name);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* A key that is the same for every zone that cuts the same days over
|
|
59
|
+
* [startDate, endDate]: its UTC offset at the start, and every change of
|
|
60
|
+
* offset in the window (with a day of margin each side), with the offset
|
|
61
|
+
* it changes to.
|
|
62
|
+
*
|
|
63
|
+
* Two zones with the same key keep the same clock over the window, so
|
|
64
|
+
* their local midnights - the history's day boundaries - fall at the same
|
|
65
|
+
* instants, and one zone's history serves the other. Every UTC+8 zone
|
|
66
|
+
* without daylight saving (Shanghai, Singapore, Perth, Manila) has one
|
|
67
|
+
* key, and so has every zone on the EU's rules (Berlin, Paris, Madrid,
|
|
68
|
+
* Oslo), which change at the same instant. A status page's visitors come
|
|
69
|
+
* from a few dozen zones but far fewer clocks, and each clock costs the
|
|
70
|
+
* database one history build per cache entry.
|
|
71
|
+
*
|
|
72
|
+
* Conservative: two zones whose offsets differ only at instants that are
|
|
73
|
+
* not midnights get different keys though their days agree. That costs a
|
|
74
|
+
* build, never a wrong day.
|
|
75
|
+
*/
|
|
76
|
+
static getZoneKey(data) {
|
|
77
|
+
let zone = null;
|
|
78
|
+
try {
|
|
79
|
+
zone = moment_timezone_1.default.tz.zone(data.timezone);
|
|
80
|
+
}
|
|
81
|
+
catch (_a) {
|
|
82
|
+
zone = null;
|
|
83
|
+
}
|
|
84
|
+
if (!zone) {
|
|
85
|
+
return `zone:${data.timezone}`;
|
|
86
|
+
}
|
|
87
|
+
const from = data.startDate.getTime() - DAY_MS;
|
|
88
|
+
const to = data.endDate.getTime() + DAY_MS;
|
|
89
|
+
if (!Number.isFinite(from) || !Number.isFinite(to)) {
|
|
90
|
+
return `zone:${zone.name}`;
|
|
91
|
+
}
|
|
92
|
+
const parts = [`offset:${zone.utcOffset(from)}`];
|
|
93
|
+
for (let i = 0; i < zone.untils.length; i++) {
|
|
94
|
+
const until = zone.untils[i];
|
|
95
|
+
if (typeof until !== "number" || !Number.isFinite(until)) {
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
if (until <= from) {
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
if (until > to) {
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
parts.push(`${until}:${zone.offsets[i + 1]}`);
|
|
105
|
+
}
|
|
106
|
+
return parts.join("|");
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
/*
|
|
110
|
+
* The longest zone name a visitor may send. IANA names run to about 30
|
|
111
|
+
* characters; anything longer is not one.
|
|
112
|
+
*/
|
|
113
|
+
StatusPageUptimeTimezone.MAX_TIMEZONE_LENGTH = 64;
|
|
114
|
+
exports.default = StatusPageUptimeTimezone;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ObjectID from "../../Types/ObjectID.mjs";
|
|
2
|
-
import { JSONObject } from "../../Types/JSON.mjs";
|
|
2
|
+
import { JSONArray, JSONObject } from "../../Types/JSON.mjs";
|
|
3
3
|
import { UptimeDailyAggregate, UptimeDayBucket } from "../../Types/StatusPage/UptimeDailyAggregate.mjs";
|
|
4
4
|
import UptimePrecision from "../../Types/StatusPage/UptimePrecision.mjs";
|
|
5
5
|
export declare const DEFAULT_UPTIME_AGGREGATE_TIMEZONE: string;
|
|
@@ -9,6 +9,8 @@ export interface UptimeDailyAggregateTotals {
|
|
|
9
9
|
}
|
|
10
10
|
export default class UptimeDailyAggregateUtil {
|
|
11
11
|
static toJSON(aggregate: UptimeDailyAggregate): JSONObject;
|
|
12
|
+
static bucketsToJSON(buckets: Array<UptimeDayBucket>): JSONArray;
|
|
13
|
+
static bucketsFromJSON(rawBuckets: unknown): Array<UptimeDayBucket>;
|
|
12
14
|
/**
|
|
13
15
|
* The zone an aggregate's day buckets were cut in: the one it says, when
|
|
14
16
|
* that is a zone moment knows, and UTC otherwise.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ObjectID from "../../Types/ObjectID";
|
|
2
|
-
import { JSONObject } from "../../Types/JSON";
|
|
2
|
+
import { JSONArray, JSONObject } from "../../Types/JSON";
|
|
3
3
|
import { UptimeDailyAggregate, UptimeDayBucket } from "../../Types/StatusPage/UptimeDailyAggregate";
|
|
4
4
|
import UptimePrecision from "../../Types/StatusPage/UptimePrecision";
|
|
5
5
|
export declare const DEFAULT_UPTIME_AGGREGATE_TIMEZONE: string;
|
|
@@ -9,6 +9,8 @@ export interface UptimeDailyAggregateTotals {
|
|
|
9
9
|
}
|
|
10
10
|
export default class UptimeDailyAggregateUtil {
|
|
11
11
|
static toJSON(aggregate: UptimeDailyAggregate): JSONObject;
|
|
12
|
+
static bucketsToJSON(buckets: Array<UptimeDayBucket>): JSONArray;
|
|
13
|
+
static bucketsFromJSON(rawBuckets: unknown): Array<UptimeDayBucket>;
|
|
12
14
|
/**
|
|
13
15
|
* The zone an aggregate's day buckets were cut in: the one it says, when
|
|
14
16
|
* that is a zone moment knows, and UTC otherwise.
|
|
@@ -35,20 +35,7 @@ class UptimeDailyAggregateUtil {
|
|
|
35
35
|
monitors: aggregate.monitors.map((monitor) => {
|
|
36
36
|
return {
|
|
37
37
|
monitorId: monitor.monitorId.toString(),
|
|
38
|
-
buckets: monitor.buckets
|
|
39
|
-
return {
|
|
40
|
-
bucketStart: bucket.bucketStart.toISOString(),
|
|
41
|
-
bucketEnd: bucket.bucketEnd.toISOString(),
|
|
42
|
-
daySeconds: bucket.daySeconds,
|
|
43
|
-
coveredSeconds: bucket.coveredSeconds,
|
|
44
|
-
statusDurations: bucket.statusDurations.map((duration) => {
|
|
45
|
-
return {
|
|
46
|
-
monitorStatusId: duration.monitorStatusId.toString(),
|
|
47
|
-
seconds: duration.seconds,
|
|
48
|
-
};
|
|
49
|
-
}),
|
|
50
|
-
};
|
|
51
|
-
}),
|
|
38
|
+
buckets: UptimeDailyAggregateUtil.bucketsToJSON(monitor.buckets),
|
|
52
39
|
};
|
|
53
40
|
}),
|
|
54
41
|
isComplete: aggregate.isComplete,
|
|
@@ -58,6 +45,73 @@ class UptimeDailyAggregateUtil {
|
|
|
58
45
|
timezone: UptimeDailyAggregateUtil.getTimezone(aggregate),
|
|
59
46
|
};
|
|
60
47
|
}
|
|
48
|
+
/*
|
|
49
|
+
* Day buckets in the wire format: ISO strings and id strings. A monitor
|
|
50
|
+
* group's buckets (MonitorGroupUptimeDailyAggregateUtil) are written the
|
|
51
|
+
* same way, so both read back through bucketsFromJSON.
|
|
52
|
+
*/
|
|
53
|
+
static bucketsToJSON(buckets) {
|
|
54
|
+
return buckets.map((bucket) => {
|
|
55
|
+
return {
|
|
56
|
+
bucketStart: bucket.bucketStart.toISOString(),
|
|
57
|
+
bucketEnd: bucket.bucketEnd.toISOString(),
|
|
58
|
+
daySeconds: bucket.daySeconds,
|
|
59
|
+
coveredSeconds: bucket.coveredSeconds,
|
|
60
|
+
statusDurations: bucket.statusDurations.map((duration) => {
|
|
61
|
+
return {
|
|
62
|
+
monitorStatusId: duration.monitorStatusId.toString(),
|
|
63
|
+
seconds: duration.seconds,
|
|
64
|
+
};
|
|
65
|
+
}),
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/*
|
|
70
|
+
* Day buckets from the wire format. Total: anything that is not a list
|
|
71
|
+
* reads as no buckets, and a bucket with a date it cannot read, or a
|
|
72
|
+
* duration with no status, is skipped.
|
|
73
|
+
*/
|
|
74
|
+
static bucketsFromJSON(rawBuckets) {
|
|
75
|
+
const buckets = [];
|
|
76
|
+
if (!Array.isArray(rawBuckets)) {
|
|
77
|
+
return buckets;
|
|
78
|
+
}
|
|
79
|
+
for (const rawBucket of rawBuckets) {
|
|
80
|
+
if (!rawBucket || typeof rawBucket !== "object") {
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
const bucket = rawBucket;
|
|
84
|
+
const bucketStart = new Date(bucket["bucketStart"]);
|
|
85
|
+
const bucketEnd = new Date(bucket["bucketEnd"]);
|
|
86
|
+
if (Number.isNaN(bucketStart.getTime()) ||
|
|
87
|
+
Number.isNaN(bucketEnd.getTime())) {
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
const rawDurations = bucket["statusDurations"];
|
|
91
|
+
const statusDurations = [];
|
|
92
|
+
if (Array.isArray(rawDurations)) {
|
|
93
|
+
for (const rawDuration of rawDurations) {
|
|
94
|
+
const duration = (rawDuration || {});
|
|
95
|
+
const statusId = duration["monitorStatusId"];
|
|
96
|
+
if (typeof statusId !== "string" || !statusId) {
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
statusDurations.push({
|
|
100
|
+
monitorStatusId: new ObjectID_1.default(statusId),
|
|
101
|
+
seconds: Number(duration["seconds"]) || 0,
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
buckets.push({
|
|
106
|
+
bucketStart: bucketStart,
|
|
107
|
+
bucketEnd: bucketEnd,
|
|
108
|
+
daySeconds: Number(bucket["daySeconds"]) || 0,
|
|
109
|
+
coveredSeconds: Number(bucket["coveredSeconds"]) || 0,
|
|
110
|
+
statusDurations: statusDurations,
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
return buckets;
|
|
114
|
+
}
|
|
61
115
|
/**
|
|
62
116
|
* The zone an aggregate's day buckets were cut in: the one it says, when
|
|
63
117
|
* that is a zone moment knows, and UTC otherwise.
|
|
@@ -107,44 +161,9 @@ class UptimeDailyAggregateUtil {
|
|
|
107
161
|
if (typeof monitorId !== "string" || !monitorId) {
|
|
108
162
|
continue;
|
|
109
163
|
}
|
|
110
|
-
const rawBuckets = monitor["buckets"];
|
|
111
|
-
const buckets = [];
|
|
112
|
-
if (Array.isArray(rawBuckets)) {
|
|
113
|
-
for (const rawBucket of rawBuckets) {
|
|
114
|
-
const bucket = rawBucket;
|
|
115
|
-
const bucketStart = new Date(bucket["bucketStart"]);
|
|
116
|
-
const bucketEnd = new Date(bucket["bucketEnd"]);
|
|
117
|
-
if (Number.isNaN(bucketStart.getTime()) ||
|
|
118
|
-
Number.isNaN(bucketEnd.getTime())) {
|
|
119
|
-
continue;
|
|
120
|
-
}
|
|
121
|
-
const rawDurations = bucket["statusDurations"];
|
|
122
|
-
const statusDurations = [];
|
|
123
|
-
if (Array.isArray(rawDurations)) {
|
|
124
|
-
for (const rawDuration of rawDurations) {
|
|
125
|
-
const duration = rawDuration;
|
|
126
|
-
const statusId = duration["monitorStatusId"];
|
|
127
|
-
if (typeof statusId !== "string" || !statusId) {
|
|
128
|
-
continue;
|
|
129
|
-
}
|
|
130
|
-
statusDurations.push({
|
|
131
|
-
monitorStatusId: new ObjectID_1.default(statusId),
|
|
132
|
-
seconds: Number(duration["seconds"]) || 0,
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
buckets.push({
|
|
137
|
-
bucketStart: bucketStart,
|
|
138
|
-
bucketEnd: bucketEnd,
|
|
139
|
-
daySeconds: Number(bucket["daySeconds"]) || 0,
|
|
140
|
-
coveredSeconds: Number(bucket["coveredSeconds"]) || 0,
|
|
141
|
-
statusDurations: statusDurations,
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
164
|
monitors.push({
|
|
146
165
|
monitorId: new ObjectID_1.default(monitorId),
|
|
147
|
-
buckets: buckets,
|
|
166
|
+
buckets: UptimeDailyAggregateUtil.bucketsFromJSON(monitor["buckets"]),
|
|
148
167
|
});
|
|
149
168
|
}
|
|
150
169
|
const completeFromRaw = json["completeFrom"];
|
|
@@ -7,19 +7,23 @@
|
|
|
7
7
|
* `service.instance.id`, then the generic fallbacks:
|
|
8
8
|
*
|
|
9
9
|
* - The platform's task / instance id (ECS task, Cloud Run instance,
|
|
10
|
-
* Container Apps replica) is what the platform's
|
|
11
|
-
* stamps on BOTH the application's telemetry and a
|
|
12
|
-
* container metrics, and it survives process
|
|
13
|
-
* puts the app's spans and the sidecar's CPU /
|
|
14
|
-
* row.
|
|
10
|
+
* Container Apps replica, App Service instance) is what the platform's
|
|
11
|
+
* resource detector stamps on BOTH the application's telemetry and a
|
|
12
|
+
* sidecar collector's container metrics, and it survives process
|
|
13
|
+
* restarts. Keying on it puts the app's spans and the sidecar's CPU /
|
|
14
|
+
* memory points on one row. On App Service it is the Collector's and
|
|
15
|
+
* the Go SDK's `azureappservice` detectors' WEBSITE_INSTANCE_ID, as
|
|
16
|
+
* `azure.app_service.instance.id` (issue #6770: unread, an app they
|
|
17
|
+
* describe named no instance, and read 0 instances while it ran).
|
|
15
18
|
* - `service.instance.id` is usually minted by the SDK as a random id per
|
|
16
19
|
* process (the Node SDK's default `serviceinstance` detector does
|
|
17
20
|
* exactly that). If it came first, an ECS task would split into two
|
|
18
21
|
* rows — one under the SDK's uuid, one under the task id the
|
|
19
22
|
* awsecscontainermetrics receiver reports — and the live-instance count
|
|
20
23
|
* would double. It is used when the platform sets no identity of its
|
|
21
|
-
* own, which is the case on App Runner,
|
|
22
|
-
*
|
|
24
|
+
* own, which is the case on App Runner, Beanstalk and Container
|
|
25
|
+
* Instances - and on App Service with the Node.js and .NET detectors,
|
|
26
|
+
* which put the same WEBSITE_INSTANCE_ID there.
|
|
23
27
|
* - `container.id`, `host.id` and `host.name` catch everything else; on a
|
|
24
28
|
* managed platform the container hostname is normally the instance name
|
|
25
29
|
* (Container Apps sets it to the replica name).
|
|
@@ -45,6 +49,7 @@ exports.CLOUD_INSTANCE_IDENTITY_ATTRIBUTES = [
|
|
|
45
49
|
"aws.ecs.task.arn",
|
|
46
50
|
"faas.instance",
|
|
47
51
|
"azure.container_app.instance.id",
|
|
52
|
+
"azure.app_service.instance.id",
|
|
48
53
|
"service.instance.id",
|
|
49
54
|
"container.id",
|
|
50
55
|
"host.id",
|
|
@@ -47,5 +47,13 @@ export default class DayUptimeGraphUtil {
|
|
|
47
47
|
date: Date;
|
|
48
48
|
timezone?: string | undefined;
|
|
49
49
|
}): string;
|
|
50
|
+
static isViewersClock(data: {
|
|
51
|
+
date: Date;
|
|
52
|
+
timezone?: string | undefined;
|
|
53
|
+
}): boolean;
|
|
54
|
+
static formatEventTime(data: {
|
|
55
|
+
date: Date;
|
|
56
|
+
timezone?: string | undefined;
|
|
57
|
+
}): string;
|
|
50
58
|
private static interpolate;
|
|
51
59
|
}
|
|
@@ -47,5 +47,13 @@ export default class DayUptimeGraphUtil {
|
|
|
47
47
|
date: Date;
|
|
48
48
|
timezone?: string | undefined;
|
|
49
49
|
}): string;
|
|
50
|
+
static isViewersClock(data: {
|
|
51
|
+
date: Date;
|
|
52
|
+
timezone?: string | undefined;
|
|
53
|
+
}): boolean;
|
|
54
|
+
static formatEventTime(data: {
|
|
55
|
+
date: Date;
|
|
56
|
+
timezone?: string | undefined;
|
|
57
|
+
}): string;
|
|
50
58
|
private static interpolate;
|
|
51
59
|
}
|
|
@@ -255,16 +255,51 @@ class DayUptimeGraphUtil {
|
|
|
255
255
|
format: "MMM DD, YYYY",
|
|
256
256
|
timezone: data.timezone,
|
|
257
257
|
});
|
|
258
|
-
|
|
259
|
-
const barOffset = (0, moment_timezone_1.default)(data.date).tz(data.timezone).utcOffset();
|
|
260
|
-
const viewerOffset = this.isValidTimezone(viewerTimezone)
|
|
261
|
-
? (0, moment_timezone_1.default)(data.date).tz(viewerTimezone).utcOffset()
|
|
262
|
-
: barOffset;
|
|
263
|
-
if (barOffset === viewerOffset) {
|
|
258
|
+
if (this.isViewersClock({ date: data.date, timezone: data.timezone })) {
|
|
264
259
|
return label;
|
|
265
260
|
}
|
|
266
261
|
return `${label} (${Date_1.default.getZoneAbbrByTimezone(data.timezone, data.date)})`;
|
|
267
262
|
}
|
|
263
|
+
/*
|
|
264
|
+
* Whether a bar drawn in `timezone` reads the viewer's own clock at
|
|
265
|
+
* `date` - the zone every "local" time on the page is shown in
|
|
266
|
+
* (OneUptimeDate.getCurrentTimezone). True without a zone of its own.
|
|
267
|
+
*
|
|
268
|
+
* The status page asks for its history in the viewer's zone, and the
|
|
269
|
+
* Dashboard in the user's, so a bar's zone is the viewer's - unless the
|
|
270
|
+
* server could not cut days in it and fell back to UTC.
|
|
271
|
+
*/
|
|
272
|
+
static isViewersClock(data) {
|
|
273
|
+
if (!this.isValidTimezone(data.timezone)) {
|
|
274
|
+
return true;
|
|
275
|
+
}
|
|
276
|
+
const viewerTimezone = Date_1.default.getCurrentTimezone();
|
|
277
|
+
if (!this.isValidTimezone(viewerTimezone)) {
|
|
278
|
+
return true;
|
|
279
|
+
}
|
|
280
|
+
const date = Date_1.default.fromString(data.date);
|
|
281
|
+
return ((0, moment_timezone_1.default)(date).tz(data.timezone).utcOffset() ===
|
|
282
|
+
(0, moment_timezone_1.default)(date).tz(viewerTimezone).utcOffset());
|
|
283
|
+
}
|
|
284
|
+
/*
|
|
285
|
+
* When something on a bar's day happened - an incident declared - in the
|
|
286
|
+
* zone the day is drawn in, so the day and what it lists agree.
|
|
287
|
+
*
|
|
288
|
+
* On the viewer's own clock that is the page's usual local time, with its
|
|
289
|
+
* zone ("Nov 06 2026, 15:36 CST"). On a bar drawn in another zone - a UTC
|
|
290
|
+
* day, labelled "(UTC)" - it is that zone's time, named: listed in the
|
|
291
|
+
* viewer's zone, an incident at 02:00 CST on 7 November sat under the bar
|
|
292
|
+
* of 6 November (UTC) and read as the wrong day (issue #6697).
|
|
293
|
+
*/
|
|
294
|
+
static formatEventTime(data) {
|
|
295
|
+
if (this.isViewersClock(data)) {
|
|
296
|
+
return Date_1.default.getDateAsUserFriendlyLocalFormattedString(data.date, false);
|
|
297
|
+
}
|
|
298
|
+
return Date_1.default.getDateAsFormattedStringInTimezone({
|
|
299
|
+
date: data.date,
|
|
300
|
+
timezone: data.timezone,
|
|
301
|
+
});
|
|
302
|
+
}
|
|
268
303
|
/*
|
|
269
304
|
* The same {{placeholder}} shape i18next uses, so a caller can hand these
|
|
270
305
|
* strings straight from a translation file. Replacing rather than
|
|
@@ -38,10 +38,12 @@ export default class UptimeMaintenanceUtil {
|
|
|
38
38
|
static formatWindow(data: {
|
|
39
39
|
startsAt: Date;
|
|
40
40
|
endsAt: Date;
|
|
41
|
+
timezone?: string | undefined;
|
|
41
42
|
}): string;
|
|
42
43
|
static getWindowText(data: {
|
|
43
44
|
startsAt: Date;
|
|
44
45
|
endsAt: Date;
|
|
46
|
+
timezone?: string | undefined;
|
|
45
47
|
}): MaintenanceWindowText | null;
|
|
46
48
|
static fromScheduledMaintenance(data: {
|
|
47
49
|
event: ScheduledMaintenance;
|
|
@@ -54,6 +56,7 @@ export default class UptimeMaintenanceUtil {
|
|
|
54
56
|
states: Array<ScheduledMaintenanceState>;
|
|
55
57
|
translateStateName?: TranslateStateName | undefined;
|
|
56
58
|
}): Array<UptimeBarTooltipMaintenance>;
|
|
59
|
+
private static getWindowTextInTimezone;
|
|
57
60
|
private static getTimeOfDayText;
|
|
58
61
|
private static toDate;
|
|
59
62
|
}
|
|
@@ -38,10 +38,12 @@ export default class UptimeMaintenanceUtil {
|
|
|
38
38
|
static formatWindow(data: {
|
|
39
39
|
startsAt: Date;
|
|
40
40
|
endsAt: Date;
|
|
41
|
+
timezone?: string | undefined;
|
|
41
42
|
}): string;
|
|
42
43
|
static getWindowText(data: {
|
|
43
44
|
startsAt: Date;
|
|
44
45
|
endsAt: Date;
|
|
46
|
+
timezone?: string | undefined;
|
|
45
47
|
}): MaintenanceWindowText | null;
|
|
46
48
|
static fromScheduledMaintenance(data: {
|
|
47
49
|
event: ScheduledMaintenance;
|
|
@@ -54,6 +56,7 @@ export default class UptimeMaintenanceUtil {
|
|
|
54
56
|
states: Array<ScheduledMaintenanceState>;
|
|
55
57
|
translateStateName?: TranslateStateName | undefined;
|
|
56
58
|
}): Array<UptimeBarTooltipMaintenance>;
|
|
59
|
+
private static getWindowTextInTimezone;
|
|
57
60
|
private static getTimeOfDayText;
|
|
58
61
|
private static toDate;
|
|
59
62
|
}
|
|
@@ -42,6 +42,7 @@ const Date_1 = __importDefault(require("../../Types/Date"));
|
|
|
42
42
|
const DateLanguage_1 = require("../../Types/DateLanguage");
|
|
43
43
|
const ObjectID_1 = __importDefault(require("../../Types/ObjectID"));
|
|
44
44
|
const TimezoneAlias_1 = __importDefault(require("../../Types/TimezoneAlias"));
|
|
45
|
+
const DayUptimeGraphUtil_1 = __importDefault(require("./DayUptimeGraphUtil"));
|
|
45
46
|
const ScheduledMaintenanceStart_1 = __importStar(require("../ScheduledMaintenanceStart"));
|
|
46
47
|
// Between the two ends of a window: "Oct 21, 18:00 – 20:00 CEST".
|
|
47
48
|
exports.MAINTENANCE_WINDOW_SEPARATOR = " – ";
|
|
@@ -173,6 +174,18 @@ class UptimeMaintenanceUtil {
|
|
|
173
174
|
? plannedEnd
|
|
174
175
|
: start;
|
|
175
176
|
const use12HourFormat = Date_1.default.getUserPrefers12HourFormat();
|
|
177
|
+
if (data.timezone &&
|
|
178
|
+
!DayUptimeGraphUtil_1.default.isViewersClock({
|
|
179
|
+
date: start,
|
|
180
|
+
timezone: data.timezone,
|
|
181
|
+
})) {
|
|
182
|
+
return this.getWindowTextInTimezone({
|
|
183
|
+
start: start,
|
|
184
|
+
end: end,
|
|
185
|
+
timezone: data.timezone,
|
|
186
|
+
use12HourFormat: use12HourFormat,
|
|
187
|
+
});
|
|
188
|
+
}
|
|
176
189
|
const startText = Date_1.default.getDateAsLocalShortDateTimeString(start, { use12HourFormat: use12HourFormat });
|
|
177
190
|
const endText = Date_1.default.areOnTheSameLocalDay(start, end)
|
|
178
191
|
? this.getTimeOfDayText(end, use12HourFormat)
|
|
@@ -258,6 +271,42 @@ class UptimeMaintenanceUtil {
|
|
|
258
271
|
}
|
|
259
272
|
return items;
|
|
260
273
|
}
|
|
274
|
+
// getWindowText on the clock of `timezone`, each end named with its zone.
|
|
275
|
+
static getWindowTextInTimezone(data) {
|
|
276
|
+
const dateTimeText = (date) => {
|
|
277
|
+
return Date_1.default.getDateAsFormattedStringInTimezone({
|
|
278
|
+
date: date,
|
|
279
|
+
timezone: data.timezone,
|
|
280
|
+
use12HourFormat: data.use12HourFormat,
|
|
281
|
+
hideYear: true,
|
|
282
|
+
hideZone: true,
|
|
283
|
+
});
|
|
284
|
+
};
|
|
285
|
+
const sameDay = Date_1.default.getDateAsCustomFormattedStringInTimezone({
|
|
286
|
+
date: data.start,
|
|
287
|
+
format: "YYYY-MM-DD",
|
|
288
|
+
timezone: data.timezone,
|
|
289
|
+
}) ===
|
|
290
|
+
Date_1.default.getDateAsCustomFormattedStringInTimezone({
|
|
291
|
+
date: data.end,
|
|
292
|
+
format: "YYYY-MM-DD",
|
|
293
|
+
timezone: data.timezone,
|
|
294
|
+
});
|
|
295
|
+
const startText = dateTimeText(data.start);
|
|
296
|
+
const endText = sameDay
|
|
297
|
+
? Date_1.default.getDateAsCustomFormattedStringInTimezone({
|
|
298
|
+
date: data.end,
|
|
299
|
+
format: data.use12HourFormat ? "h:mm A" : "HH:mm",
|
|
300
|
+
timezone: data.timezone,
|
|
301
|
+
})
|
|
302
|
+
: dateTimeText(data.end);
|
|
303
|
+
const startZone = Date_1.default.getZoneAbbrByTimezone(data.timezone, data.start);
|
|
304
|
+
const endZone = Date_1.default.getZoneAbbrByTimezone(data.timezone, data.end);
|
|
305
|
+
return {
|
|
306
|
+
start: startZone === endZone ? startText : `${startText} ${startZone}`.trim(),
|
|
307
|
+
end: `${endText} ${endZone}`.trim(),
|
|
308
|
+
};
|
|
309
|
+
}
|
|
261
310
|
// The time of day `date` reads at on the reader's clock, in their language.
|
|
262
311
|
static getTimeOfDayText(date, use12HourFormat) {
|
|
263
312
|
return (0, DateLanguage_1.writeInDateDisplayLanguage)(() => {
|
|
@@ -4,6 +4,7 @@ import ObjectID from "../../Types/ObjectID.mjs";
|
|
|
4
4
|
import MonitorStatus from "../../Models/DatabaseModels/MonitorStatus.mjs";
|
|
5
5
|
import MonitorStatusTimeline from "../../Models/DatabaseModels/MonitorStatusTimeline.mjs";
|
|
6
6
|
import UptimePrecision from "../../Types/StatusPage/UptimePrecision.mjs";
|
|
7
|
+
import { WorstStatusTimelineOptions } from "./WorstStatusTimeline.mjs";
|
|
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.
|