@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
|
@@ -3,9 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_STATUS_NOT_SHOWN = exports.EXTERNAL_STATUS_PAGE_UNNAMED_INCIDENT = exports.EXTERNAL_STATUS_PAGE_MAX_INCIDENTS = exports.EXTERNAL_STATUS_PAGE_MAX_COMPONENTS = void 0;
|
|
6
|
+
exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE_OF = exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE = exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_NOT_MONITORED = exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_STATUS_NOT_SHOWN = exports.EXTERNAL_STATUS_PAGE_UNNAMED_INCIDENT = exports.EXTERNAL_STATUS_PAGE_MAX_INCIDENTS = exports.EXTERNAL_STATUS_PAGE_MAX_COMPONENTS = void 0;
|
|
7
7
|
const ExternalStatusPageComponentStatusUtil_1 = __importDefault(require("./ExternalStatusPageComponentStatusUtil"));
|
|
8
8
|
const TrailingRuns_1 = require("../TrailingRuns");
|
|
9
|
+
const Translator_1 = require("../../Types/Translator");
|
|
9
10
|
/*
|
|
10
11
|
* WHAT A STATUS PAGE SAYS, READ FROM ITS ANSWERS.
|
|
11
12
|
*
|
|
@@ -34,8 +35,41 @@ exports.EXTERNAL_STATUS_PAGE_MAX_COMPONENTS = 5000;
|
|
|
34
35
|
exports.EXTERNAL_STATUS_PAGE_MAX_INCIDENTS = 1000;
|
|
35
36
|
// The name an incident goes by when the page gives it none.
|
|
36
37
|
exports.EXTERNAL_STATUS_PAGE_UNNAMED_INCIDENT = "Unknown incident";
|
|
38
|
+
/*
|
|
39
|
+
* ONEUPTIME'S OWN NOTES ON A ONEUPTIME PAGE'S COMPONENT.
|
|
40
|
+
*
|
|
41
|
+
* A OneUptime page's resource is described by its status's name, which is
|
|
42
|
+
* the page's own word - unless the page gives it no status, when the probe
|
|
43
|
+
* writes a note of its own as the component's description. Each is a
|
|
44
|
+
* translation key (the Dashboard's npm run i18n:extract reads this
|
|
45
|
+
* directory), so the monitor's summary draws it in the reader's language
|
|
46
|
+
* (readOneUptimeNote) while the probe stores the English, as every check's
|
|
47
|
+
* description is stored.
|
|
48
|
+
*/
|
|
37
49
|
// A OneUptime page's component's description when the page does not show its status.
|
|
38
|
-
exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_STATUS_NOT_SHOWN = "The status page does not show this resource's status.";
|
|
50
|
+
exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_STATUS_NOT_SHOWN = (0, Translator_1.translationKey)("The status page does not show this resource's status.");
|
|
51
|
+
/*
|
|
52
|
+
* A OneUptime page's component's description when nothing checks it: its
|
|
53
|
+
* monitoring is off, so the page shows it as not monitored and gives it no
|
|
54
|
+
* status (StatusPageSummaryResource.isMonitored).
|
|
55
|
+
*/
|
|
56
|
+
exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_NOT_MONITORED = (0, Translator_1.translationKey)("The status page shows this resource as not monitored.");
|
|
57
|
+
/*
|
|
58
|
+
* A OneUptime page's component's description while a scheduled maintenance
|
|
59
|
+
* event in progress affects it: the events' titles - the page's own words -
|
|
60
|
+
* after the note, or the note alone when they have none. The note alone
|
|
61
|
+
* only repeats the component's status (Under Maintenance), which the
|
|
62
|
+
* summary says once, so it is no translation key.
|
|
63
|
+
*/
|
|
64
|
+
exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE = "Under maintenance";
|
|
65
|
+
exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE_OF = (0, Translator_1.translationKey)("Under maintenance: {{events}}");
|
|
66
|
+
// What comes before the events' titles in a note of maintenance.
|
|
67
|
+
const UNDER_MAINTENANCE_OF_PREFIX = exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE_OF.slice(0, exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE_OF.indexOf("{{events}}"));
|
|
68
|
+
// The notes that are whole sentences, with nothing of the page's in them.
|
|
69
|
+
const ONEUPTIME_SENTENCE_NOTES = [
|
|
70
|
+
exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_STATUS_NOT_SHOWN,
|
|
71
|
+
exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_NOT_MONITORED,
|
|
72
|
+
];
|
|
39
73
|
const isRecord = (value) => {
|
|
40
74
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
41
75
|
};
|
|
@@ -313,8 +347,8 @@ class ExternalStatusPageReading {
|
|
|
313
347
|
* status is the value the page's status stands for
|
|
314
348
|
* (ExternalStatusPageComponentStatusUtil) - under maintenance while a
|
|
315
349
|
* scheduled maintenance event in progress affects it, whatever its
|
|
316
|
-
* monitors' status
|
|
317
|
-
* by their ids.
|
|
350
|
+
* monitors' status, and unknown while the page shows it as not monitored.
|
|
351
|
+
* Each active incident affects the resources it names, by their ids.
|
|
318
352
|
*/
|
|
319
353
|
static readOneUptimeSummary(summary) {
|
|
320
354
|
const maintenanceTitles = new Map();
|
|
@@ -335,8 +369,11 @@ class ExternalStatusPageReading {
|
|
|
335
369
|
if (resource.isUnderMaintenance) {
|
|
336
370
|
description =
|
|
337
371
|
titles.length > 0
|
|
338
|
-
?
|
|
339
|
-
:
|
|
372
|
+
? (0, Translator_1.fillTemplate)(exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE_OF, { events: titles.join(", ") })
|
|
373
|
+
: exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE;
|
|
374
|
+
}
|
|
375
|
+
else if (!resource.isMonitored) {
|
|
376
|
+
description = exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_NOT_MONITORED;
|
|
340
377
|
}
|
|
341
378
|
else if (!resource.currentStatus) {
|
|
342
379
|
description = exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_STATUS_NOT_SHOWN;
|
|
@@ -344,16 +381,21 @@ class ExternalStatusPageReading {
|
|
|
344
381
|
else {
|
|
345
382
|
description = resource.currentStatus.name;
|
|
346
383
|
}
|
|
347
|
-
|
|
384
|
+
const component = {
|
|
348
385
|
key: resource.id,
|
|
349
386
|
name: resource.name,
|
|
350
387
|
groupName: resource.groupName || undefined,
|
|
351
388
|
status: ExternalStatusPageComponentStatusUtil_1.default.fromStatusPageStatus({
|
|
352
|
-
status
|
|
389
|
+
// A status nothing checks says nothing now, whatever was sent.
|
|
390
|
+
status: resource.isMonitored ? resource.currentStatus : null,
|
|
353
391
|
isUnderMaintenance: resource.isUnderMaintenance,
|
|
354
392
|
}),
|
|
355
393
|
description: description,
|
|
356
394
|
};
|
|
395
|
+
if (!resource.isMonitored) {
|
|
396
|
+
component.isMonitored = false;
|
|
397
|
+
}
|
|
398
|
+
return component;
|
|
357
399
|
});
|
|
358
400
|
const namesById = new Map();
|
|
359
401
|
for (const resource of summary.resources) {
|
|
@@ -376,5 +418,32 @@ class ExternalStatusPageReading {
|
|
|
376
418
|
});
|
|
377
419
|
return { components: components, incidents: incidents };
|
|
378
420
|
}
|
|
421
|
+
/*
|
|
422
|
+
* One of OneUptime's own notes on a OneUptime page's component, read
|
|
423
|
+
* back from the description readOneUptimeSummary wrote, so it can be
|
|
424
|
+
* drawn in the reader's language: the note's English, and the page's
|
|
425
|
+
* words in it - the maintenance events' titles, as written. Null for any
|
|
426
|
+
* other description, which is the page's own words and stays as written.
|
|
427
|
+
*
|
|
428
|
+
* Only a OneUptime page's description is read this way (the caller asks
|
|
429
|
+
* for that provider): an Atlassian Statuspage's component can be
|
|
430
|
+
* described "Under maintenance: ..." by the people who run it.
|
|
431
|
+
*/
|
|
432
|
+
static readOneUptimeNote(description) {
|
|
433
|
+
const text = (description || "").trim();
|
|
434
|
+
if (ONEUPTIME_SENTENCE_NOTES.includes(text)) {
|
|
435
|
+
return { template: text, values: {} };
|
|
436
|
+
}
|
|
437
|
+
if (text.startsWith(UNDER_MAINTENANCE_OF_PREFIX)) {
|
|
438
|
+
const events = text.slice(UNDER_MAINTENANCE_OF_PREFIX.length);
|
|
439
|
+
if (events.trim()) {
|
|
440
|
+
return {
|
|
441
|
+
template: exports.EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE_OF,
|
|
442
|
+
values: { events: events },
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
return null;
|
|
447
|
+
}
|
|
379
448
|
}
|
|
380
449
|
exports.default = ExternalStatusPageReading;
|
|
@@ -2,5 +2,8 @@ import commonJsModule from "./ExternalStatusPageReading.js";
|
|
|
2
2
|
export default commonJsModule.default;
|
|
3
3
|
export const EXTERNAL_STATUS_PAGE_MAX_COMPONENTS = commonJsModule.EXTERNAL_STATUS_PAGE_MAX_COMPONENTS;
|
|
4
4
|
export const EXTERNAL_STATUS_PAGE_MAX_INCIDENTS = commonJsModule.EXTERNAL_STATUS_PAGE_MAX_INCIDENTS;
|
|
5
|
+
export const EXTERNAL_STATUS_PAGE_ONEUPTIME_NOT_MONITORED = commonJsModule.EXTERNAL_STATUS_PAGE_ONEUPTIME_NOT_MONITORED;
|
|
5
6
|
export const EXTERNAL_STATUS_PAGE_ONEUPTIME_STATUS_NOT_SHOWN = commonJsModule.EXTERNAL_STATUS_PAGE_ONEUPTIME_STATUS_NOT_SHOWN;
|
|
7
|
+
export const EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE = commonJsModule.EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE;
|
|
8
|
+
export const EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE_OF = commonJsModule.EXTERNAL_STATUS_PAGE_ONEUPTIME_UNDER_MAINTENANCE_OF;
|
|
6
9
|
export const EXTERNAL_STATUS_PAGE_UNNAMED_INCIDENT = commonJsModule.EXTERNAL_STATUS_PAGE_UNNAMED_INCIDENT;
|
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.EXTERNAL_STATUS_PAGE_MAX_REPORTED_INCIDENT_NAME_LENGTH = exports.EXTERNAL_STATUS_PAGE_MAX_REPORTED_INCIDENT_NAMES = void 0;
|
|
7
7
|
const ExternalStatusPageComponentNames_1 = __importDefault(require("./ExternalStatusPageComponentNames"));
|
|
8
|
+
const ExternalStatusPageComponentStatusUtil_1 = require("./ExternalStatusPageComponentStatusUtil");
|
|
8
9
|
/*
|
|
9
10
|
* WHAT ON A STATUS PAGE AN EXTERNAL STATUS PAGE MONITOR WATCHES.
|
|
10
11
|
*
|
|
@@ -21,6 +22,8 @@ const ExternalStatusPageComponentNames_1 = __importDefault(require("./ExternalSt
|
|
|
21
22
|
* - the overall status is the page's own while it watches the whole page,
|
|
22
23
|
* and otherwise the worst status of the components in scope (degraded
|
|
23
24
|
* when one of their incidents is open while they all say operational).
|
|
25
|
+
* A component the page shows as not monitored decides nothing, and
|
|
26
|
+
* when every component in scope is so the status is unknown.
|
|
24
27
|
*
|
|
25
28
|
* What it leaves out is said too, so the person can tell a quiet monitor
|
|
26
29
|
* from one that watches nothing: the chosen names no component on the
|
|
@@ -99,11 +102,24 @@ class ExternalStatusPageScope {
|
|
|
99
102
|
* Derives an overall status from the (already scoped) component list. Returns a
|
|
100
103
|
* standard status string (e.g. "operational", "degraded_performance",
|
|
101
104
|
* "major_outage") so it is comparable in monitor criteria.
|
|
105
|
+
*
|
|
106
|
+
* A component the page shows as not monitored (isMonitored false: a
|
|
107
|
+
* OneUptime page's resource whose monitoring is off) decides nothing, as
|
|
108
|
+
* on the page's own banner. When every component is so, and no incident
|
|
109
|
+
* is open on them, there is no status to give: unknown.
|
|
102
110
|
*/
|
|
103
111
|
static deriveOverallStatus(components, scopedIncidentCount) {
|
|
112
|
+
const monitored = components.filter((component) => {
|
|
113
|
+
return component.isMonitored !== false;
|
|
114
|
+
});
|
|
115
|
+
if (components.length > 0 &&
|
|
116
|
+
monitored.length === 0 &&
|
|
117
|
+
scopedIncidentCount === 0) {
|
|
118
|
+
return ExternalStatusPageComponentStatusUtil_1.ExternalStatusPageComponentStatusValue.Unknown;
|
|
119
|
+
}
|
|
104
120
|
let worstStatus = "operational";
|
|
105
121
|
let worstRank = 0;
|
|
106
|
-
for (const component of
|
|
122
|
+
for (const component of monitored) {
|
|
107
123
|
const rank = ExternalStatusPageScope.getStatusRank(component.status);
|
|
108
124
|
if (rank > worstRank) {
|
|
109
125
|
worstRank = rank;
|
|
@@ -101,7 +101,8 @@ class MonitorDestinationUtil {
|
|
|
101
101
|
destination: undefined,
|
|
102
102
|
error: err instanceof Exception_1.default
|
|
103
103
|
? err.getMessage()
|
|
104
|
-
: (err === null || err === void 0 ? void 0 : err.message) ||
|
|
104
|
+
: (err === null || err === void 0 ? void 0 : err.message) ||
|
|
105
|
+
"This is not an address OneUptime can monitor. Check it for typos.",
|
|
105
106
|
};
|
|
106
107
|
}
|
|
107
108
|
}
|
|
@@ -148,6 +148,7 @@ export interface MonitorOverviewPresentation {
|
|
|
148
148
|
pulse: MonitorOverviewPulse;
|
|
149
149
|
freshness: MonitorCheckFreshness;
|
|
150
150
|
isNeverReported?: boolean | undefined;
|
|
151
|
+
isMonitoringOff?: boolean | undefined;
|
|
151
152
|
facts: Array<MonitorOverviewFact>;
|
|
152
153
|
target: MonitorOverviewTarget | null;
|
|
153
154
|
sections: MonitorOverviewSections;
|
|
@@ -159,7 +160,7 @@ export default class MonitorOverviewPresentationUtil {
|
|
|
159
160
|
runState: MonitorOverviewRunState;
|
|
160
161
|
}): Array<MonitorOverviewMoreActionKey>;
|
|
161
162
|
static getRunState(input: MonitorOverviewPresentationInput): MonitorOverviewRunState;
|
|
162
|
-
static getUptimeCaveat(presentation: Pick<MonitorOverviewPresentation, "family" | "runState" | "isNeverReported">): MonitorUptimeCaveat | null;
|
|
163
|
+
static getUptimeCaveat(presentation: Pick<MonitorOverviewPresentation, "family" | "runState" | "isNeverReported" | "isMonitoringOff">): MonitorUptimeCaveat | null;
|
|
163
164
|
static getStatusTone(status: MonitorOverviewStatusRef | undefined): MonitorOverviewTone;
|
|
164
165
|
static getExpiryFact(data: {
|
|
165
166
|
key: "certificate-expiry" | "domain-expiry";
|
|
@@ -148,6 +148,7 @@ export interface MonitorOverviewPresentation {
|
|
|
148
148
|
pulse: MonitorOverviewPulse;
|
|
149
149
|
freshness: MonitorCheckFreshness;
|
|
150
150
|
isNeverReported?: boolean | undefined;
|
|
151
|
+
isMonitoringOff?: boolean | undefined;
|
|
151
152
|
facts: Array<MonitorOverviewFact>;
|
|
152
153
|
target: MonitorOverviewTarget | null;
|
|
153
154
|
sections: MonitorOverviewSections;
|
|
@@ -159,7 +160,7 @@ export default class MonitorOverviewPresentationUtil {
|
|
|
159
160
|
runState: MonitorOverviewRunState;
|
|
160
161
|
}): Array<MonitorOverviewMoreActionKey>;
|
|
161
162
|
static getRunState(input: MonitorOverviewPresentationInput): MonitorOverviewRunState;
|
|
162
|
-
static getUptimeCaveat(presentation: Pick<MonitorOverviewPresentation, "family" | "runState" | "isNeverReported">): MonitorUptimeCaveat | null;
|
|
163
|
+
static getUptimeCaveat(presentation: Pick<MonitorOverviewPresentation, "family" | "runState" | "isNeverReported" | "isMonitoringOff">): MonitorUptimeCaveat | null;
|
|
163
164
|
static getStatusTone(status: MonitorOverviewStatusRef | undefined): MonitorOverviewTone;
|
|
164
165
|
static getExpiryFact(data: {
|
|
165
166
|
key: "certificate-expiry" | "domain-expiry";
|
|
@@ -183,7 +183,7 @@ class MonitorOverviewPresentationUtil {
|
|
|
183
183
|
static build(input) {
|
|
184
184
|
const context = MonitorOverviewPresentationUtil.getContext(input);
|
|
185
185
|
const hero = MonitorOverviewPresentationUtil.getHero(input, context);
|
|
186
|
-
return Object.assign(Object.assign({ family: context.family, runState: context.runState }, hero), { moreActions: MonitorOverviewPresentationUtil.getMoreActions(context), pulse: MonitorOverviewPresentationUtil.getPulse(input, context), freshness: context.freshness.freshness, isNeverReported: MonitorOverviewPresentationUtil.isNeverReported(context), facts: MonitorOverviewPresentationUtil.getFacts(input, context), target: MonitorOverviewTargetUtil_1.default.getTarget({
|
|
186
|
+
return Object.assign(Object.assign({ family: context.family, runState: context.runState }, hero), { moreActions: MonitorOverviewPresentationUtil.getMoreActions(context), pulse: MonitorOverviewPresentationUtil.getPulse(input, context), freshness: context.freshness.freshness, isNeverReported: MonitorOverviewPresentationUtil.isNeverReported(context), isMonitoringOff: input.pause.isDisabled === true, facts: MonitorOverviewPresentationUtil.getFacts(input, context), target: MonitorOverviewTargetUtil_1.default.getTarget({
|
|
187
187
|
monitorType: input.monitorType,
|
|
188
188
|
monitorSteps: input.monitorSteps,
|
|
189
189
|
serverHostname: input.agent.hostname,
|
|
@@ -216,8 +216,17 @@ class MonitorOverviewPresentationUtil {
|
|
|
216
216
|
* monitoring is paused, while nothing checks, and before the first check
|
|
217
217
|
* completes. A manual monitor has no checks to pause, so it never gets
|
|
218
218
|
* one.
|
|
219
|
+
*
|
|
220
|
+
* Monitoring turned off is the exception (issue #6480): that time is not
|
|
221
|
+
* counted but left out, from the moment it was turned off, whatever the
|
|
222
|
+
* monitor's kind, so the windows say that instead - measured over less
|
|
223
|
+
* than their length. Archived, or paused by an incident or a scheduled
|
|
224
|
+
* maintenance event, the last status still counts: "paused".
|
|
219
225
|
*/
|
|
220
226
|
static getUptimeCaveat(presentation) {
|
|
227
|
+
if (presentation.isMonitoringOff) {
|
|
228
|
+
return "monitoring-off";
|
|
229
|
+
}
|
|
221
230
|
if (presentation.family === MonitorOverviewFamily_1.MonitorOverviewFamily.Manual) {
|
|
222
231
|
return null;
|
|
223
232
|
}
|
|
@@ -81,6 +81,7 @@ class MonitorStatusHistoryUtil {
|
|
|
81
81
|
startsAt: startsAt,
|
|
82
82
|
endsAt: rowEndsAt !== null && rowEndsAt !== void 0 ? rowEndsAt : successorStartsAt,
|
|
83
83
|
isOngoing: i === 0 && !rowEndsAt,
|
|
84
|
+
isMonitoringOff: row.isMonitoringOff === true,
|
|
84
85
|
});
|
|
85
86
|
}
|
|
86
87
|
return changeRows;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Translator } from "../../Types/Translator.mjs";
|
|
1
2
|
export interface AttachedProbe {
|
|
2
3
|
id: string;
|
|
3
4
|
name: string;
|
|
@@ -16,6 +17,7 @@ export default class MonitorSummaryProbeUtil {
|
|
|
16
17
|
}): string | null;
|
|
17
18
|
static getProbeDropdownOptions(data: {
|
|
18
19
|
probes: Array<AttachedProbe>;
|
|
20
|
+
translator?: Translator | undefined;
|
|
19
21
|
}): Array<{
|
|
20
22
|
label: string;
|
|
21
23
|
value: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Translator } from "../../Types/Translator";
|
|
1
2
|
export interface AttachedProbe {
|
|
2
3
|
id: string;
|
|
3
4
|
name: string;
|
|
@@ -16,6 +17,7 @@ export default class MonitorSummaryProbeUtil {
|
|
|
16
17
|
}): string | null;
|
|
17
18
|
static getProbeDropdownOptions(data: {
|
|
18
19
|
probes: Array<AttachedProbe>;
|
|
20
|
+
translator?: Translator | undefined;
|
|
19
21
|
}): Array<{
|
|
20
22
|
label: string;
|
|
21
23
|
value: string;
|
|
@@ -1,20 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* The rules behind the "Monitor Summary" probe picker.
|
|
4
|
-
*
|
|
5
|
-
* That card used to be fed every probe in the project plus every global probe,
|
|
6
|
-
* not the probes attached to the monitor being viewed. Choosing one of the
|
|
7
|
-
* strangers answered "No summary available for the selected probe. Should be
|
|
8
|
-
* few minutes for summary to show up." about data that could never arrive -
|
|
9
|
-
* and because the list is project-probes-first, the card frequently *opened*
|
|
10
|
-
* on one. Users read that as "I changed the probe and it was not applied".
|
|
11
|
-
*
|
|
12
|
-
* The picker is a view filter over data that already exists. It cannot change
|
|
13
|
-
* which probe monitors a resource (that is a MonitorProbe row, edited under
|
|
14
|
-
* Monitor > Probes), so it must never offer a probe that does not.
|
|
15
|
-
*/
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
3
|
exports.MonitorSummaryProbeState = void 0;
|
|
4
|
+
const Translator_1 = require("../../Types/Translator");
|
|
5
|
+
// Option labels drawn without the reader's translator: English.
|
|
6
|
+
const ENGLISH = (0, Translator_1.createTranslator)(undefined);
|
|
18
7
|
var MonitorSummaryProbeState;
|
|
19
8
|
(function (MonitorSummaryProbeState) {
|
|
20
9
|
// Nothing is monitoring this resource at all.
|
|
@@ -59,7 +48,9 @@ class MonitorSummaryProbeUtil {
|
|
|
59
48
|
/*
|
|
60
49
|
* The option labels. A disabled probe stays on the list - the user may well
|
|
61
50
|
* want to look at what it collected before it was switched off - but saying
|
|
62
|
-
* so is what stops "no summary" from looking like a bug.
|
|
51
|
+
* so is what stops "no summary" from looking like a bug. Given the
|
|
52
|
+
* reader's Translator, "(disabled)" and "Unknown" read in their language;
|
|
53
|
+
* a probe's name is its own.
|
|
63
54
|
*/
|
|
64
55
|
static getProbeDropdownOptions(data) {
|
|
65
56
|
return (data.probes || [])
|
|
@@ -67,9 +58,14 @@ class MonitorSummaryProbeUtil {
|
|
|
67
58
|
return Boolean(probe && probe.id);
|
|
68
59
|
})
|
|
69
60
|
.map((probe) => {
|
|
70
|
-
const
|
|
61
|
+
const translator = data.translator || ENGLISH;
|
|
62
|
+
const name = probe.name || translator.translateText("Unknown") || "Unknown";
|
|
71
63
|
return {
|
|
72
|
-
label: probe.isEnabled
|
|
64
|
+
label: probe.isEnabled
|
|
65
|
+
? name
|
|
66
|
+
: translator.translateTemplate("{{name}} (disabled)", {
|
|
67
|
+
name: name,
|
|
68
|
+
}),
|
|
73
69
|
value: probe.id,
|
|
74
70
|
};
|
|
75
71
|
});
|
|
@@ -43,9 +43,11 @@ const MonitorType_1 = __importStar(require("../../Types/Monitor/MonitorType"));
|
|
|
43
43
|
/*
|
|
44
44
|
* Synthetic monitors carry base64 screenshots, one per browser × screen
|
|
45
45
|
* size, and a single check can run to several megabytes. createdStateLog
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
46
|
+
* keeps none of them (StateChangeLogScreenshots), though incidents and
|
|
47
|
+
* alerts opened before that have them there, unbounded; this column keeps
|
|
48
|
+
* them while they fit. Past the budget we drop the screenshots (the largest
|
|
49
|
+
* thing by far) and flag it, so the row stays a sane size and the view can
|
|
50
|
+
* say why the images are missing.
|
|
49
51
|
*/
|
|
50
52
|
exports.MonitorSummarySnapshotMaxSizeInBytes = 1024 * 1024;
|
|
51
53
|
/*
|
|
@@ -3,7 +3,7 @@ import { MonitorUptimeSummary, MonitorUptimeSummaryStatus, MonitorUptimeWindowKe
|
|
|
3
3
|
import { UptimeDayBucket } from "../../Types/StatusPage/UptimeDailyAggregate.mjs";
|
|
4
4
|
import { Translator } from "../../Types/Translator.mjs";
|
|
5
5
|
export type UptimeWindowKind = "Measured" | "NoData";
|
|
6
|
-
export type MonitorUptimeCaveat = "paused" | "not-checking" | "no-results";
|
|
6
|
+
export type MonitorUptimeCaveat = "paused" | "not-checking" | "no-results" | "monitoring-off";
|
|
7
7
|
export interface UptimeWindowPresentation {
|
|
8
8
|
key: MonitorUptimeWindowKey;
|
|
9
9
|
kind: UptimeWindowKind;
|
|
@@ -3,7 +3,7 @@ import { MonitorUptimeSummary, MonitorUptimeSummaryStatus, MonitorUptimeWindowKe
|
|
|
3
3
|
import { UptimeDayBucket } from "../../Types/StatusPage/UptimeDailyAggregate";
|
|
4
4
|
import { Translator } from "../../Types/Translator";
|
|
5
5
|
export type UptimeWindowKind = "Measured" | "NoData";
|
|
6
|
-
export type MonitorUptimeCaveat = "paused" | "not-checking" | "no-results";
|
|
6
|
+
export type MonitorUptimeCaveat = "paused" | "not-checking" | "no-results" | "monitoring-off";
|
|
7
7
|
export interface UptimeWindowPresentation {
|
|
8
8
|
key: MonitorUptimeWindowKey;
|
|
9
9
|
kind: UptimeWindowKind;
|
|
@@ -20,6 +20,7 @@ const CAVEAT_TEXT = {
|
|
|
20
20
|
paused: (0, Translator_1.translationKey)("includes paused time"),
|
|
21
21
|
"not-checking": (0, Translator_1.translationKey)("includes time with no checks running"),
|
|
22
22
|
"no-results": (0, Translator_1.translationKey)("no check has completed yet"),
|
|
23
|
+
"monitoring-off": (0, Translator_1.translationKey)("leaves out time with monitoring off"),
|
|
23
24
|
};
|
|
24
25
|
// English, word for word as the windows always read: no lookup.
|
|
25
26
|
const ENGLISH = (0, Translator_1.createTranslator)(undefined, "en");
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Monitor from "../../Models/DatabaseModels/Monitor.mjs";
|
|
2
|
+
import Query from "../../Types/BaseDatabase/Query.mjs";
|
|
3
|
+
export declare const MONITORING_OFF_SELECT: {
|
|
4
|
+
disableActiveMonitoring: true;
|
|
5
|
+
};
|
|
6
|
+
export interface MonitoringOffFlags {
|
|
7
|
+
disableActiveMonitoring?: boolean | undefined | null;
|
|
8
|
+
}
|
|
9
|
+
export declare const MONITORED_SELECT: {
|
|
10
|
+
isArchived: true;
|
|
11
|
+
disableActiveMonitoring: true;
|
|
12
|
+
};
|
|
13
|
+
export interface MonitoredFlags extends MonitoringOffFlags {
|
|
14
|
+
isArchived?: boolean | undefined | null;
|
|
15
|
+
}
|
|
16
|
+
export default class MonitoringOff {
|
|
17
|
+
static isOff(monitor: MonitoringOffFlags | null | undefined): boolean;
|
|
18
|
+
static getMonitoredQuery(): Query<Monitor>;
|
|
19
|
+
static isMonitored(monitor: MonitoredFlags | null | undefined): boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Monitor from "../../Models/DatabaseModels/Monitor";
|
|
2
|
+
import Query from "../../Types/BaseDatabase/Query";
|
|
3
|
+
export declare const MONITORING_OFF_SELECT: {
|
|
4
|
+
disableActiveMonitoring: true;
|
|
5
|
+
};
|
|
6
|
+
export interface MonitoringOffFlags {
|
|
7
|
+
disableActiveMonitoring?: boolean | undefined | null;
|
|
8
|
+
}
|
|
9
|
+
export declare const MONITORED_SELECT: {
|
|
10
|
+
isArchived: true;
|
|
11
|
+
disableActiveMonitoring: true;
|
|
12
|
+
};
|
|
13
|
+
export interface MonitoredFlags extends MonitoringOffFlags {
|
|
14
|
+
isArchived?: boolean | undefined | null;
|
|
15
|
+
}
|
|
16
|
+
export default class MonitoringOff {
|
|
17
|
+
static isOff(monitor: MonitoringOffFlags | null | undefined): boolean;
|
|
18
|
+
static getMonitoredQuery(): Query<Monitor>;
|
|
19
|
+
static isMonitored(monitor: MonitoredFlags | null | undefined): boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MONITORED_SELECT = exports.MONITORING_OFF_SELECT = void 0;
|
|
4
|
+
/*
|
|
5
|
+
* A MONITOR WHOSE MONITORING IS TURNED OFF.
|
|
6
|
+
*
|
|
7
|
+
* Someone switched the monitor's monitoring off (`disableActiveMonitoring`),
|
|
8
|
+
* so nothing checks it: the status it still holds - "Offline", say - is only
|
|
9
|
+
* what its last check saw before that, and it will not change until its
|
|
10
|
+
* monitoring is turned on again. Turning it off resolves the incidents and
|
|
11
|
+
* alerts it would have resolved itself (Server/Utils/Monitor/MonitorTurnedOff),
|
|
12
|
+
* so nothing of it is left open as a live problem either.
|
|
13
|
+
*
|
|
14
|
+
* So wherever a monitor's status is read as live - a status filter, a
|
|
15
|
+
* problem count, an order that puts problems first, a status drawn beside
|
|
16
|
+
* its name - a monitor whose monitoring is off is not one of the monitors
|
|
17
|
+
* that status speaks for. It is still a monitor of the project, and a list
|
|
18
|
+
* of all of them keeps it, saying "Disabled" (the Monitors table's word)
|
|
19
|
+
* instead of the frozen status.
|
|
20
|
+
*
|
|
21
|
+
* An archived monitor is not checked either, and it has left every monitor
|
|
22
|
+
* list (Models/DatabaseModels/Monitor isArchived), so the monitors whose
|
|
23
|
+
* status is live are the ones neither archived nor turned off. A monitor
|
|
24
|
+
* paused by an incident declared by hand or by a scheduled maintenance event
|
|
25
|
+
* is one of them: what paused it is what its status shows.
|
|
26
|
+
*
|
|
27
|
+
* Read by NotOperationalMonitorQuery (every Not Operational list and count),
|
|
28
|
+
* the Monitor List widget on a dashboard and on a public dashboard
|
|
29
|
+
* (Utils/Dashboard/MonitorListWidgetFormat), OneUptime AI's query_monitors
|
|
30
|
+
* and a monitor page's Ask AI context. The mobile app keeps its own copy of
|
|
31
|
+
* the rule (MobileApp/src/utils/monitorHealth.ts), held to this one by
|
|
32
|
+
* Tests/Utils/Monitor/MonitorHealthMobileParity.test.ts.
|
|
33
|
+
*
|
|
34
|
+
* isMonitored is getMonitoredQuery for a monitor already read. A network
|
|
35
|
+
* device backed by a monitor takes its status from that monitor only while
|
|
36
|
+
* it is monitored (NetworkDeviceService.refreshStampedMonitorStatus,
|
|
37
|
+
* NetworkSiteService.onMonitorStatusChanged): otherwise the device has no
|
|
38
|
+
* status, so neither its site's roll-up, the Network Map nor the site's
|
|
39
|
+
* alerts count it, and its pages say why (Monitoring off, Monitor archived).
|
|
40
|
+
*/
|
|
41
|
+
// What a monitor is read with before isOff can answer for it.
|
|
42
|
+
exports.MONITORING_OFF_SELECT = {
|
|
43
|
+
disableActiveMonitoring: true,
|
|
44
|
+
};
|
|
45
|
+
// What a monitor is read with before isMonitored can answer for it.
|
|
46
|
+
exports.MONITORED_SELECT = {
|
|
47
|
+
isArchived: true,
|
|
48
|
+
disableActiveMonitoring: true,
|
|
49
|
+
};
|
|
50
|
+
class MonitoringOff {
|
|
51
|
+
/*
|
|
52
|
+
* Whether the monitor's monitoring is turned off. Only an explicit true is:
|
|
53
|
+
* the column is NOT NULL and defaults to false, so a monitor read without
|
|
54
|
+
* it was read without the column, not turned off.
|
|
55
|
+
*/
|
|
56
|
+
static isOff(monitor) {
|
|
57
|
+
return (monitor === null || monitor === void 0 ? void 0 : monitor.disableActiveMonitoring) === true;
|
|
58
|
+
}
|
|
59
|
+
/*
|
|
60
|
+
* The monitors whose status is live: not archived, monitoring on. A fresh
|
|
61
|
+
* object each time, so a caller that adds to it changes no one else's.
|
|
62
|
+
*/
|
|
63
|
+
static getMonitoredQuery() {
|
|
64
|
+
return {
|
|
65
|
+
isArchived: false,
|
|
66
|
+
disableActiveMonitoring: false,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
/*
|
|
70
|
+
* Whether the monitor's status is live: neither archived nor turned off,
|
|
71
|
+
* as getMonitoredQuery finds monitors, for one already read (with
|
|
72
|
+
* MONITORED_SELECT). Only an explicit true sets either flag, as in isOff:
|
|
73
|
+
* a monitor read without them - or not found at all - counts as
|
|
74
|
+
* monitored, so a read that forgets them shows a frozen status rather
|
|
75
|
+
* than hiding a live one.
|
|
76
|
+
*/
|
|
77
|
+
static isMonitored(monitor) {
|
|
78
|
+
return (monitor === null || monitor === void 0 ? void 0 : monitor.isArchived) !== true && !MonitoringOff.isOff(monitor);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.default = MonitoringOff;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const MonitoringOff_1 = __importDefault(require("./MonitoringOff"));
|
|
3
7
|
/*
|
|
4
8
|
* WHICH MONITORS ARE NOT OPERATIONAL.
|
|
5
9
|
*
|
|
@@ -21,17 +25,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
21
25
|
*
|
|
22
26
|
* The one rule for each list and count that says "not operational": the
|
|
23
27
|
* Monitors and Home menus' Not Operational pages and badges, Home's attention
|
|
24
|
-
* strip,
|
|
28
|
+
* strip, the Monitor List widget's "non-operational" filter on a dashboard
|
|
29
|
+
* and a public dashboard, and OneUptime AI's query_monitors with
|
|
30
|
+
* problemsOnly. The checked monitors are MonitoringOff's.
|
|
25
31
|
*/
|
|
26
32
|
class NotOperationalMonitorQuery {
|
|
27
33
|
static getQuery() {
|
|
28
|
-
return {
|
|
29
|
-
isArchived: false,
|
|
30
|
-
disableActiveMonitoring: false,
|
|
31
|
-
currentMonitorStatus: {
|
|
34
|
+
return Object.assign(Object.assign({}, MonitoringOff_1.default.getMonitoredQuery()), { currentMonitorStatus: {
|
|
32
35
|
isOperationalState: false,
|
|
33
|
-
}
|
|
34
|
-
};
|
|
36
|
+
} });
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
exports.default = NotOperationalMonitorQuery;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JSONObject, JSONValue } from "../../Types/JSON.mjs";
|
|
2
|
+
export declare const SCREENSHOTS_OMITTED_FIELD: string;
|
|
3
|
+
export default class StateChangeLogScreenshots {
|
|
4
|
+
static leaveOut<T extends JSONObject | undefined | null>(log: T): T;
|
|
5
|
+
static hasAny(value: JSONValue | undefined, depth: number): boolean;
|
|
6
|
+
private static copyWithout;
|
|
7
|
+
private static runWithout;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JSONObject, JSONValue } from "../../Types/JSON";
|
|
2
|
+
export declare const SCREENSHOTS_OMITTED_FIELD: string;
|
|
3
|
+
export default class StateChangeLogScreenshots {
|
|
4
|
+
static leaveOut<T extends JSONObject | undefined | null>(log: T): T;
|
|
5
|
+
static hasAny(value: JSONValue | undefined, depth: number): boolean;
|
|
6
|
+
private static copyWithout;
|
|
7
|
+
private static runWithout;
|
|
8
|
+
}
|