@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,122 @@
|
|
|
1
|
+
import { ServerSetupChecklistAnswer } from "../ServerSetup/ServerSetupChecklist";
|
|
2
|
+
export declare enum InstallationHealthLevel {
|
|
3
|
+
Fix = "fix",
|
|
4
|
+
Warn = "warn"
|
|
5
|
+
}
|
|
6
|
+
export declare enum InstallationHealthFindingId {
|
|
7
|
+
Postgres = "postgres",
|
|
8
|
+
Clickhouse = "clickhouse",
|
|
9
|
+
Valkey = "valkey",
|
|
10
|
+
MigrationFailed = "migration-failed",
|
|
11
|
+
MigrationsPending = "migrations-pending",
|
|
12
|
+
ClickhouseDisk = "clickhouse-disk",
|
|
13
|
+
QueueBacklog = "queue-backlog",
|
|
14
|
+
UpdateAvailable = "update-available"
|
|
15
|
+
}
|
|
16
|
+
export declare enum InstallationHealthCheck {
|
|
17
|
+
Postgres = "postgres",
|
|
18
|
+
Clickhouse = "clickhouse",
|
|
19
|
+
Valkey = "valkey",
|
|
20
|
+
Migrations = "migrations",
|
|
21
|
+
ClickhouseDisk = "clickhouse-disk",
|
|
22
|
+
Queues = "queues",
|
|
23
|
+
Version = "version",
|
|
24
|
+
ServerSetup = "server-setup"
|
|
25
|
+
}
|
|
26
|
+
export declare const INSTALLATION_HEALTH_ADMIN_PATHS: {
|
|
27
|
+
clickhouse: string;
|
|
28
|
+
migrations: string;
|
|
29
|
+
setup: string;
|
|
30
|
+
};
|
|
31
|
+
export declare const INSTALLATION_HEALTH_GUIDES: {
|
|
32
|
+
upgrading: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const CLICKHOUSE_DISK_FIX_FREE_PERCENT: number;
|
|
35
|
+
export declare const CLICKHOUSE_DISK_WARN_FREE_PERCENT: number;
|
|
36
|
+
export declare const QUEUE_BACKLOG_LIMIT: number;
|
|
37
|
+
export declare const INSTALLATION_HEALTH_WORDS: Readonly<Record<InstallationHealthFindingId, {
|
|
38
|
+
title: string;
|
|
39
|
+
words: string;
|
|
40
|
+
fix: string;
|
|
41
|
+
}>>;
|
|
42
|
+
export declare const INSTALLATION_HEALTH_SETUP_FIX: string;
|
|
43
|
+
export declare const INSTALLATION_HEALTH_ALL_RIGHT: string;
|
|
44
|
+
export interface InstallationHealthFinding {
|
|
45
|
+
id: string;
|
|
46
|
+
level: InstallationHealthLevel;
|
|
47
|
+
title: string;
|
|
48
|
+
words: string;
|
|
49
|
+
fix: string | null;
|
|
50
|
+
values: Record<string, string>;
|
|
51
|
+
adminPath: string | null;
|
|
52
|
+
guidePath: string | null;
|
|
53
|
+
sentence: string;
|
|
54
|
+
fixSentence: string | null;
|
|
55
|
+
}
|
|
56
|
+
export interface InstallationHealthFacts {
|
|
57
|
+
isPostgresConnected: boolean;
|
|
58
|
+
isClickhouseConnected: boolean;
|
|
59
|
+
isValkeyConnected: boolean;
|
|
60
|
+
migrations: {
|
|
61
|
+
pending: number;
|
|
62
|
+
failure: {
|
|
63
|
+
name: string;
|
|
64
|
+
reason: string;
|
|
65
|
+
at: string | null;
|
|
66
|
+
} | null;
|
|
67
|
+
} | null;
|
|
68
|
+
clickhouseDisks: Array<{
|
|
69
|
+
name: string;
|
|
70
|
+
freeInBytes: number;
|
|
71
|
+
totalInBytes: number;
|
|
72
|
+
}>;
|
|
73
|
+
queues: Array<{
|
|
74
|
+
name: string;
|
|
75
|
+
waiting: number;
|
|
76
|
+
}>;
|
|
77
|
+
version: {
|
|
78
|
+
current: string;
|
|
79
|
+
latest: string | null;
|
|
80
|
+
isUpdateAvailable: boolean;
|
|
81
|
+
isUpdateCheckDisabled: boolean;
|
|
82
|
+
};
|
|
83
|
+
serverSetup: ServerSetupChecklistAnswer | null;
|
|
84
|
+
}
|
|
85
|
+
export interface InstallationHealthAnswer {
|
|
86
|
+
findings: Array<InstallationHealthFinding>;
|
|
87
|
+
checked: Array<InstallationHealthCheck>;
|
|
88
|
+
version: InstallationHealthFacts["version"];
|
|
89
|
+
addressProof: string | null;
|
|
90
|
+
checkedAt: string;
|
|
91
|
+
}
|
|
92
|
+
export default class InstallationHealthUtil {
|
|
93
|
+
static formatBytes(bytes: number): string;
|
|
94
|
+
static formatTime(value: string | null): string;
|
|
95
|
+
static finding(data: {
|
|
96
|
+
id: string;
|
|
97
|
+
level: InstallationHealthLevel;
|
|
98
|
+
title: string;
|
|
99
|
+
words: string;
|
|
100
|
+
fix: string | null;
|
|
101
|
+
values?: Record<string, string> | undefined;
|
|
102
|
+
adminPath?: string | null | undefined;
|
|
103
|
+
guidePath?: string | null | undefined;
|
|
104
|
+
}): InstallationHealthFinding;
|
|
105
|
+
private static ofCatalogue;
|
|
106
|
+
static datastoreFindings(facts: InstallationHealthFacts): Array<InstallationHealthFinding>;
|
|
107
|
+
static migrationFindings(facts: InstallationHealthFacts): Array<InstallationHealthFinding>;
|
|
108
|
+
static diskFindings(facts: InstallationHealthFacts): Array<InstallationHealthFinding>;
|
|
109
|
+
static queueFindings(facts: InstallationHealthFacts): Array<InstallationHealthFinding>;
|
|
110
|
+
static versionFindings(facts: InstallationHealthFacts): Array<InstallationHealthFinding>;
|
|
111
|
+
static setupFindings(facts: InstallationHealthFacts): Array<InstallationHealthFinding>;
|
|
112
|
+
private static setupValues;
|
|
113
|
+
static evaluate(facts: InstallationHealthFacts): Array<InstallationHealthFinding>;
|
|
114
|
+
static worstFirst(findings: Array<InstallationHealthFinding>): Array<InstallationHealthFinding>;
|
|
115
|
+
static getAnswer(data: {
|
|
116
|
+
facts: InstallationHealthFacts;
|
|
117
|
+
addressProof: string | null;
|
|
118
|
+
checkedAt: string;
|
|
119
|
+
}): InstallationHealthAnswer;
|
|
120
|
+
static parseAnswer(value: unknown): InstallationHealthAnswer | null;
|
|
121
|
+
private static readPath;
|
|
122
|
+
}
|
|
@@ -0,0 +1,513 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.INSTALLATION_HEALTH_ALL_RIGHT = exports.INSTALLATION_HEALTH_SETUP_FIX = exports.INSTALLATION_HEALTH_WORDS = exports.QUEUE_BACKLOG_LIMIT = exports.CLICKHOUSE_DISK_WARN_FREE_PERCENT = exports.CLICKHOUSE_DISK_FIX_FREE_PERCENT = exports.INSTALLATION_HEALTH_GUIDES = exports.INSTALLATION_HEALTH_ADMIN_PATHS = exports.InstallationHealthCheck = exports.InstallationHealthFindingId = exports.InstallationHealthLevel = void 0;
|
|
37
|
+
const Translator_1 = require("../Translator");
|
|
38
|
+
const ServerSetupChecklist_1 = __importStar(require("../ServerSetup/ServerSetupChecklist"));
|
|
39
|
+
/*
|
|
40
|
+
* WHAT IS WRONG WITH THIS INSTALLATION, AND THE FIX FOR EACH (#6826).
|
|
41
|
+
*
|
|
42
|
+
* One list of findings, worst first, each with what is wrong, why it matters
|
|
43
|
+
* and the exact fix. The server works it out from what it can see of itself
|
|
44
|
+
* (/api/admin/health/doctor, App/API/AdminHealth.ts):
|
|
45
|
+
*
|
|
46
|
+
* - PostgreSQL, ClickHouse and Valkey answer;
|
|
47
|
+
* - the database migrations have all run, and none failed;
|
|
48
|
+
* - ClickHouse's disks have room;
|
|
49
|
+
* - the background queues are moving;
|
|
50
|
+
* - the version, against the latest release;
|
|
51
|
+
* - the server setup checklist (#6824): email, HTTPS, sign-ups, SMS and
|
|
52
|
+
* calls, probes, backups, update checks. Its words are reused here, so
|
|
53
|
+
* the checklist and this list never say a thing two ways.
|
|
54
|
+
*
|
|
55
|
+
* Three readers print the same findings:
|
|
56
|
+
*
|
|
57
|
+
* - `npm run doctor` (Scripts/Install/Doctor.js), on a Docker Compose
|
|
58
|
+
* server. It asks the local ingress, in a POST with the cluster key from
|
|
59
|
+
* config.env, and adds what only the host can see: the containers,
|
|
60
|
+
* config.env, whether HOST reaches this OneUptime, the certificate and
|
|
61
|
+
* the disk.
|
|
62
|
+
* - HelmChart/Public/diagnose.sh, on Kubernetes, from inside the app pod,
|
|
63
|
+
* in a POST with the cluster key the pod holds.
|
|
64
|
+
* - The Admin Dashboard's OneUptime Health overview, in every edition, in
|
|
65
|
+
* a GET as a master admin.
|
|
66
|
+
*
|
|
67
|
+
* The terminals read `sentence` and `fixSentence`, filled in English. The
|
|
68
|
+
* Admin Dashboard translates `words` and `fix` with `values`.
|
|
69
|
+
*
|
|
70
|
+
* A finding's level:
|
|
71
|
+
*
|
|
72
|
+
* - fix: something required fails. `npm run doctor` exits 1.
|
|
73
|
+
* - warn: worth a look; OneUptime works without it.
|
|
74
|
+
*
|
|
75
|
+
* Pure, with no Node or browser APIs.
|
|
76
|
+
*/
|
|
77
|
+
var InstallationHealthLevel;
|
|
78
|
+
(function (InstallationHealthLevel) {
|
|
79
|
+
InstallationHealthLevel["Fix"] = "fix";
|
|
80
|
+
InstallationHealthLevel["Warn"] = "warn";
|
|
81
|
+
})(InstallationHealthLevel || (exports.InstallationHealthLevel = InstallationHealthLevel = {}));
|
|
82
|
+
var InstallationHealthFindingId;
|
|
83
|
+
(function (InstallationHealthFindingId) {
|
|
84
|
+
InstallationHealthFindingId["Postgres"] = "postgres";
|
|
85
|
+
InstallationHealthFindingId["Clickhouse"] = "clickhouse";
|
|
86
|
+
InstallationHealthFindingId["Valkey"] = "valkey";
|
|
87
|
+
InstallationHealthFindingId["MigrationFailed"] = "migration-failed";
|
|
88
|
+
InstallationHealthFindingId["MigrationsPending"] = "migrations-pending";
|
|
89
|
+
InstallationHealthFindingId["ClickhouseDisk"] = "clickhouse-disk";
|
|
90
|
+
InstallationHealthFindingId["QueueBacklog"] = "queue-backlog";
|
|
91
|
+
InstallationHealthFindingId["UpdateAvailable"] = "update-available";
|
|
92
|
+
})(InstallationHealthFindingId || (exports.InstallationHealthFindingId = InstallationHealthFindingId = {}));
|
|
93
|
+
// What was looked at, so a reader can say what an empty list covers.
|
|
94
|
+
var InstallationHealthCheck;
|
|
95
|
+
(function (InstallationHealthCheck) {
|
|
96
|
+
InstallationHealthCheck["Postgres"] = "postgres";
|
|
97
|
+
InstallationHealthCheck["Clickhouse"] = "clickhouse";
|
|
98
|
+
InstallationHealthCheck["Valkey"] = "valkey";
|
|
99
|
+
InstallationHealthCheck["Migrations"] = "migrations";
|
|
100
|
+
InstallationHealthCheck["ClickhouseDisk"] = "clickhouse-disk";
|
|
101
|
+
InstallationHealthCheck["Queues"] = "queues";
|
|
102
|
+
InstallationHealthCheck["Version"] = "version";
|
|
103
|
+
InstallationHealthCheck["ServerSetup"] = "server-setup";
|
|
104
|
+
})(InstallationHealthCheck || (exports.InstallationHealthCheck = InstallationHealthCheck = {}));
|
|
105
|
+
// The Admin Dashboard pages the findings are fixed on.
|
|
106
|
+
exports.INSTALLATION_HEALTH_ADMIN_PATHS = {
|
|
107
|
+
clickhouse: "/admin/health/clickhouse",
|
|
108
|
+
migrations: "/admin/health/migrations",
|
|
109
|
+
setup: ServerSetupChecklist_1.SERVER_SETUP_ADMIN_PATHS.setup,
|
|
110
|
+
};
|
|
111
|
+
exports.INSTALLATION_HEALTH_GUIDES = {
|
|
112
|
+
upgrading: "/docs/installation/upgrading",
|
|
113
|
+
};
|
|
114
|
+
/*
|
|
115
|
+
* ClickHouse's disk: below this share free it is something to fix, below
|
|
116
|
+
* the other worth a look. ClickHouse stops taking writes when a disk fills,
|
|
117
|
+
* and merges need room of their own.
|
|
118
|
+
*/
|
|
119
|
+
exports.CLICKHOUSE_DISK_FIX_FREE_PERCENT = 10;
|
|
120
|
+
exports.CLICKHOUSE_DISK_WARN_FREE_PERCENT = 20;
|
|
121
|
+
/*
|
|
122
|
+
* A queue with more jobs than this waiting is behind. BullMQ keeps the last
|
|
123
|
+
* 100 failed jobs of every queue, so a count of failed jobs says nothing
|
|
124
|
+
* about now; a backlog that grows does.
|
|
125
|
+
*/
|
|
126
|
+
exports.QUEUE_BACKLOG_LIMIT = 1000;
|
|
127
|
+
// What each finding says: the title, what is wrong and why, and the fix.
|
|
128
|
+
exports.INSTALLATION_HEALTH_WORDS = {
|
|
129
|
+
[InstallationHealthFindingId.Postgres]: {
|
|
130
|
+
title: (0, Translator_1.translationKey)("PostgreSQL"),
|
|
131
|
+
words: (0, Translator_1.translationKey)("PostgreSQL does not answer, so OneUptime cannot read or save anything."),
|
|
132
|
+
fix: (0, Translator_1.translationKey)("Check that PostgreSQL is running, and read its log for the reason."),
|
|
133
|
+
},
|
|
134
|
+
[InstallationHealthFindingId.Clickhouse]: {
|
|
135
|
+
title: (0, Translator_1.translationKey)("ClickHouse"),
|
|
136
|
+
words: (0, Translator_1.translationKey)("ClickHouse does not answer, so logs, metrics, traces and monitor results are not saved."),
|
|
137
|
+
fix: (0, Translator_1.translationKey)("Check that ClickHouse is running, and read its log for the reason."),
|
|
138
|
+
},
|
|
139
|
+
[InstallationHealthFindingId.Valkey]: {
|
|
140
|
+
title: (0, Translator_1.translationKey)("Valkey"),
|
|
141
|
+
words: (0, Translator_1.translationKey)("Valkey does not answer, so background jobs and live updates stop."),
|
|
142
|
+
fix: (0, Translator_1.translationKey)("Check that Valkey is running, and read its log for the reason."),
|
|
143
|
+
},
|
|
144
|
+
[InstallationHealthFindingId.MigrationFailed]: {
|
|
145
|
+
title: (0, Translator_1.translationKey)("Database migrations"),
|
|
146
|
+
words: (0, Translator_1.translationKey)("The database migration {{name}} failed on {{time}}: {{reason}}"),
|
|
147
|
+
fix: (0, Translator_1.translationKey)("Fix what the error names, then restart OneUptime so the migration runs again."),
|
|
148
|
+
},
|
|
149
|
+
[InstallationHealthFindingId.MigrationsPending]: {
|
|
150
|
+
title: (0, Translator_1.translationKey)("Database migrations"),
|
|
151
|
+
words: (0, Translator_1.translationKey)("Database migrations are still running: {{count}} left. They run while OneUptime starts."),
|
|
152
|
+
fix: (0, Translator_1.translationKey)("Wait a few minutes. If they do not finish, restart OneUptime and read the app's log."),
|
|
153
|
+
},
|
|
154
|
+
[InstallationHealthFindingId.ClickhouseDisk]: {
|
|
155
|
+
title: (0, Translator_1.translationKey)("ClickHouse disk"),
|
|
156
|
+
words: (0, Translator_1.translationKey)("ClickHouse's disk {{disk}} has {{free}} free of {{total}}. When it fills, ClickHouse stops saving telemetry."),
|
|
157
|
+
fix: (0, Translator_1.translationKey)("Give the disk more space, or turn on automatic pruning on the ClickHouse page of OneUptime Health."),
|
|
158
|
+
},
|
|
159
|
+
[InstallationHealthFindingId.QueueBacklog]: {
|
|
160
|
+
title: (0, Translator_1.translationKey)("Background jobs"),
|
|
161
|
+
words: (0, Translator_1.translationKey)("{{count}} jobs are waiting in the {{queue}} queue, so the workers are behind."),
|
|
162
|
+
fix: (0, Translator_1.translationKey)("Give the workers more memory and CPU, and read the app's log for jobs that keep failing."),
|
|
163
|
+
},
|
|
164
|
+
[InstallationHealthFindingId.UpdateAvailable]: {
|
|
165
|
+
title: (0, Translator_1.translationKey)("Version"),
|
|
166
|
+
words: (0, Translator_1.translationKey)("This server runs OneUptime {{current}}. {{latest}} is out."),
|
|
167
|
+
fix: (0, Translator_1.translationKey)("Back up, then update: npm run update on Docker Compose, helm upgrade on Kubernetes."),
|
|
168
|
+
},
|
|
169
|
+
};
|
|
170
|
+
// The fix of a step of the server setup checklist: its own page.
|
|
171
|
+
exports.INSTALLATION_HEALTH_SETUP_FIX = (0, Translator_1.translationKey)("Finish it on the Server setup page.");
|
|
172
|
+
// What the Admin Dashboard says when there is nothing to list.
|
|
173
|
+
exports.INSTALLATION_HEALTH_ALL_RIGHT = (0, Translator_1.translationKey)("Everything looks right.");
|
|
174
|
+
const GIGABYTE = 1000 * 1000 * 1000;
|
|
175
|
+
const isObject = (value) => {
|
|
176
|
+
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
177
|
+
};
|
|
178
|
+
const readText = (value, limit = 2000) => {
|
|
179
|
+
if (typeof value !== "string") {
|
|
180
|
+
return null;
|
|
181
|
+
}
|
|
182
|
+
const text = value.trim();
|
|
183
|
+
return text ? text.slice(0, limit) : null;
|
|
184
|
+
};
|
|
185
|
+
class InstallationHealthUtil {
|
|
186
|
+
// Bytes as people read a disk: "8.4 GB", "120 GB", "512 MB".
|
|
187
|
+
static formatBytes(bytes) {
|
|
188
|
+
if (!Number.isFinite(bytes) || bytes < 0) {
|
|
189
|
+
return "0 MB";
|
|
190
|
+
}
|
|
191
|
+
if (bytes < GIGABYTE) {
|
|
192
|
+
return `${Math.round(bytes / (1000 * 1000))} MB`;
|
|
193
|
+
}
|
|
194
|
+
const gigabytes = bytes / GIGABYTE;
|
|
195
|
+
return `${gigabytes >= 10 ? Math.round(gigabytes) : Math.round(gigabytes * 10) / 10} GB`;
|
|
196
|
+
}
|
|
197
|
+
// A date as a terminal and a browser alike read it: "2026-11-12 14:05 UTC".
|
|
198
|
+
static formatTime(value) {
|
|
199
|
+
if (!value) {
|
|
200
|
+
return "an unknown date";
|
|
201
|
+
}
|
|
202
|
+
const date = new Date(value);
|
|
203
|
+
if (Number.isNaN(date.getTime())) {
|
|
204
|
+
return "an unknown date";
|
|
205
|
+
}
|
|
206
|
+
return `${date.toISOString().slice(0, 16).replace("T", " ")} UTC`;
|
|
207
|
+
}
|
|
208
|
+
static finding(data) {
|
|
209
|
+
const values = data.values || {};
|
|
210
|
+
return {
|
|
211
|
+
id: data.id,
|
|
212
|
+
level: data.level,
|
|
213
|
+
title: data.title,
|
|
214
|
+
words: data.words,
|
|
215
|
+
fix: data.fix,
|
|
216
|
+
values: values,
|
|
217
|
+
adminPath: data.adminPath || null,
|
|
218
|
+
guidePath: data.guidePath || null,
|
|
219
|
+
sentence: (0, Translator_1.fillTemplate)(data.words, values),
|
|
220
|
+
fixSentence: data.fix ? (0, Translator_1.fillTemplate)(data.fix, values) : null,
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
static ofCatalogue(data) {
|
|
224
|
+
const words = exports.INSTALLATION_HEALTH_WORDS[data.id];
|
|
225
|
+
return InstallationHealthUtil.finding({
|
|
226
|
+
id: data.id,
|
|
227
|
+
level: data.level,
|
|
228
|
+
title: words.title,
|
|
229
|
+
words: words.words,
|
|
230
|
+
fix: words.fix,
|
|
231
|
+
values: data.values,
|
|
232
|
+
adminPath: data.adminPath,
|
|
233
|
+
guidePath: data.guidePath,
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
// The datastores: each one that does not answer is something to fix.
|
|
237
|
+
static datastoreFindings(facts) {
|
|
238
|
+
const findings = [];
|
|
239
|
+
const datastores = [
|
|
240
|
+
{
|
|
241
|
+
id: InstallationHealthFindingId.Postgres,
|
|
242
|
+
isConnected: facts.isPostgresConnected,
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
id: InstallationHealthFindingId.Clickhouse,
|
|
246
|
+
isConnected: facts.isClickhouseConnected,
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
id: InstallationHealthFindingId.Valkey,
|
|
250
|
+
isConnected: facts.isValkeyConnected,
|
|
251
|
+
},
|
|
252
|
+
];
|
|
253
|
+
for (const datastore of datastores) {
|
|
254
|
+
if (!datastore.isConnected) {
|
|
255
|
+
findings.push(InstallationHealthUtil.ofCatalogue({
|
|
256
|
+
id: datastore.id,
|
|
257
|
+
level: InstallationHealthLevel.Fix,
|
|
258
|
+
}));
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
return findings;
|
|
262
|
+
}
|
|
263
|
+
/*
|
|
264
|
+
* The migrations: one that failed and is still pending is something to
|
|
265
|
+
* fix; pending ones alone are worth a look (they run while the app
|
|
266
|
+
* starts).
|
|
267
|
+
*/
|
|
268
|
+
static migrationFindings(facts) {
|
|
269
|
+
const migrations = facts.migrations;
|
|
270
|
+
if (!migrations || migrations.pending <= 0) {
|
|
271
|
+
return [];
|
|
272
|
+
}
|
|
273
|
+
if (migrations.failure) {
|
|
274
|
+
return [
|
|
275
|
+
InstallationHealthUtil.ofCatalogue({
|
|
276
|
+
id: InstallationHealthFindingId.MigrationFailed,
|
|
277
|
+
level: InstallationHealthLevel.Fix,
|
|
278
|
+
values: {
|
|
279
|
+
name: migrations.failure.name,
|
|
280
|
+
time: InstallationHealthUtil.formatTime(migrations.failure.at),
|
|
281
|
+
reason: migrations.failure.reason,
|
|
282
|
+
},
|
|
283
|
+
adminPath: exports.INSTALLATION_HEALTH_ADMIN_PATHS.migrations,
|
|
284
|
+
}),
|
|
285
|
+
];
|
|
286
|
+
}
|
|
287
|
+
return [
|
|
288
|
+
InstallationHealthUtil.ofCatalogue({
|
|
289
|
+
id: InstallationHealthFindingId.MigrationsPending,
|
|
290
|
+
level: InstallationHealthLevel.Warn,
|
|
291
|
+
values: { count: String(migrations.pending) },
|
|
292
|
+
adminPath: exports.INSTALLATION_HEALTH_ADMIN_PATHS.migrations,
|
|
293
|
+
}),
|
|
294
|
+
];
|
|
295
|
+
}
|
|
296
|
+
// ClickHouse's fullest disk, when it is short of room.
|
|
297
|
+
static diskFindings(facts) {
|
|
298
|
+
let fullest = null;
|
|
299
|
+
let fullestFreePercent = 100;
|
|
300
|
+
for (const disk of facts.clickhouseDisks) {
|
|
301
|
+
if (!(disk.totalInBytes > 0) || !(disk.freeInBytes >= 0)) {
|
|
302
|
+
continue;
|
|
303
|
+
}
|
|
304
|
+
const freePercent = (disk.freeInBytes / disk.totalInBytes) * 100;
|
|
305
|
+
if (!fullest || freePercent < fullestFreePercent) {
|
|
306
|
+
fullest = disk;
|
|
307
|
+
fullestFreePercent = freePercent;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
if (!fullest || fullestFreePercent >= exports.CLICKHOUSE_DISK_WARN_FREE_PERCENT) {
|
|
311
|
+
return [];
|
|
312
|
+
}
|
|
313
|
+
return [
|
|
314
|
+
InstallationHealthUtil.ofCatalogue({
|
|
315
|
+
id: InstallationHealthFindingId.ClickhouseDisk,
|
|
316
|
+
level: fullestFreePercent < exports.CLICKHOUSE_DISK_FIX_FREE_PERCENT
|
|
317
|
+
? InstallationHealthLevel.Fix
|
|
318
|
+
: InstallationHealthLevel.Warn,
|
|
319
|
+
values: {
|
|
320
|
+
disk: fullest.name,
|
|
321
|
+
free: InstallationHealthUtil.formatBytes(fullest.freeInBytes),
|
|
322
|
+
total: InstallationHealthUtil.formatBytes(fullest.totalInBytes),
|
|
323
|
+
},
|
|
324
|
+
adminPath: exports.INSTALLATION_HEALTH_ADMIN_PATHS.clickhouse,
|
|
325
|
+
}),
|
|
326
|
+
];
|
|
327
|
+
}
|
|
328
|
+
// The queue furthest behind, when one is.
|
|
329
|
+
static queueFindings(facts) {
|
|
330
|
+
let behind = null;
|
|
331
|
+
for (const queue of facts.queues) {
|
|
332
|
+
if (queue.waiting > exports.QUEUE_BACKLOG_LIMIT &&
|
|
333
|
+
(!behind || queue.waiting > behind.waiting)) {
|
|
334
|
+
behind = queue;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
if (!behind) {
|
|
338
|
+
return [];
|
|
339
|
+
}
|
|
340
|
+
return [
|
|
341
|
+
InstallationHealthUtil.ofCatalogue({
|
|
342
|
+
id: InstallationHealthFindingId.QueueBacklog,
|
|
343
|
+
level: InstallationHealthLevel.Warn,
|
|
344
|
+
values: { count: String(behind.waiting), queue: behind.name },
|
|
345
|
+
}),
|
|
346
|
+
];
|
|
347
|
+
}
|
|
348
|
+
static versionFindings(facts) {
|
|
349
|
+
if (!facts.version.isUpdateAvailable || !facts.version.latest) {
|
|
350
|
+
return [];
|
|
351
|
+
}
|
|
352
|
+
return [
|
|
353
|
+
InstallationHealthUtil.ofCatalogue({
|
|
354
|
+
id: InstallationHealthFindingId.UpdateAvailable,
|
|
355
|
+
level: InstallationHealthLevel.Warn,
|
|
356
|
+
values: {
|
|
357
|
+
current: facts.version.current,
|
|
358
|
+
latest: facts.version.latest,
|
|
359
|
+
},
|
|
360
|
+
guidePath: exports.INSTALLATION_HEALTH_GUIDES.upgrading,
|
|
361
|
+
}),
|
|
362
|
+
];
|
|
363
|
+
}
|
|
364
|
+
/*
|
|
365
|
+
* The server setup checklist's open steps, in its words: a required one
|
|
366
|
+
* is something to fix, a recommended one worth a look. An optional one
|
|
367
|
+
* is a choice, not a fault, unless it is set up and failing.
|
|
368
|
+
*/
|
|
369
|
+
static setupFindings(facts) {
|
|
370
|
+
if (!facts.serverSetup) {
|
|
371
|
+
return [];
|
|
372
|
+
}
|
|
373
|
+
const findings = [];
|
|
374
|
+
for (const check of facts.serverSetup.checks) {
|
|
375
|
+
if (check.isFinished) {
|
|
376
|
+
continue;
|
|
377
|
+
}
|
|
378
|
+
let level = null;
|
|
379
|
+
if (check.tier === ServerSetupChecklist_1.ServerSetupCheckTier.Required) {
|
|
380
|
+
level = InstallationHealthLevel.Fix;
|
|
381
|
+
}
|
|
382
|
+
else if (check.tier === ServerSetupChecklist_1.ServerSetupCheckTier.Recommended) {
|
|
383
|
+
level = InstallationHealthLevel.Warn;
|
|
384
|
+
}
|
|
385
|
+
else if (check.status === ServerSetupChecklist_1.ServerSetupStatus.Failing) {
|
|
386
|
+
level = InstallationHealthLevel.Warn;
|
|
387
|
+
}
|
|
388
|
+
const words = ServerSetupChecklist_1.default.getStatusWords(check);
|
|
389
|
+
if (!level || !words) {
|
|
390
|
+
continue;
|
|
391
|
+
}
|
|
392
|
+
const definition = ServerSetupChecklist_1.default.getDefinition(check.id);
|
|
393
|
+
findings.push(InstallationHealthUtil.finding({
|
|
394
|
+
id: `setup-${check.id}`,
|
|
395
|
+
level: level,
|
|
396
|
+
title: definition.title,
|
|
397
|
+
words: words,
|
|
398
|
+
fix: exports.INSTALLATION_HEALTH_SETUP_FIX,
|
|
399
|
+
values: InstallationHealthUtil.setupValues(check),
|
|
400
|
+
adminPath: definition.adminPath || null,
|
|
401
|
+
guidePath: definition.guidePath || null,
|
|
402
|
+
}));
|
|
403
|
+
}
|
|
404
|
+
return findings;
|
|
405
|
+
}
|
|
406
|
+
static setupValues(check) {
|
|
407
|
+
return check.time
|
|
408
|
+
? { time: InstallationHealthUtil.formatTime(check.time) }
|
|
409
|
+
: {};
|
|
410
|
+
}
|
|
411
|
+
// Every finding, worst first: what to fix, then what is worth a look.
|
|
412
|
+
static evaluate(facts) {
|
|
413
|
+
const findings = [
|
|
414
|
+
...InstallationHealthUtil.datastoreFindings(facts),
|
|
415
|
+
...InstallationHealthUtil.migrationFindings(facts),
|
|
416
|
+
...InstallationHealthUtil.diskFindings(facts),
|
|
417
|
+
...InstallationHealthUtil.setupFindings(facts),
|
|
418
|
+
...InstallationHealthUtil.queueFindings(facts),
|
|
419
|
+
...InstallationHealthUtil.versionFindings(facts),
|
|
420
|
+
];
|
|
421
|
+
return InstallationHealthUtil.worstFirst(findings);
|
|
422
|
+
}
|
|
423
|
+
// Fix before warn, keeping each level's order.
|
|
424
|
+
static worstFirst(findings) {
|
|
425
|
+
return [
|
|
426
|
+
...findings.filter((finding) => {
|
|
427
|
+
return finding.level === InstallationHealthLevel.Fix;
|
|
428
|
+
}),
|
|
429
|
+
...findings.filter((finding) => {
|
|
430
|
+
return finding.level !== InstallationHealthLevel.Fix;
|
|
431
|
+
}),
|
|
432
|
+
];
|
|
433
|
+
}
|
|
434
|
+
static getAnswer(data) {
|
|
435
|
+
return {
|
|
436
|
+
findings: InstallationHealthUtil.evaluate(data.facts),
|
|
437
|
+
checked: Object.values(InstallationHealthCheck),
|
|
438
|
+
version: data.facts.version,
|
|
439
|
+
addressProof: data.addressProof,
|
|
440
|
+
checkedAt: data.checkedAt,
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
/*
|
|
444
|
+
* The answer, read in a browser, or null when it is not one (a failed
|
|
445
|
+
* read, a proxy's page). A finding that is not one is left out.
|
|
446
|
+
*/
|
|
447
|
+
static parseAnswer(value) {
|
|
448
|
+
if (!isObject(value) || !Array.isArray(value["findings"])) {
|
|
449
|
+
return null;
|
|
450
|
+
}
|
|
451
|
+
const findings = [];
|
|
452
|
+
for (const row of value["findings"]) {
|
|
453
|
+
if (!isObject(row)) {
|
|
454
|
+
continue;
|
|
455
|
+
}
|
|
456
|
+
const id = readText(row["id"], 100);
|
|
457
|
+
const title = readText(row["title"], 200);
|
|
458
|
+
const words = readText(row["words"]);
|
|
459
|
+
const level = Object.values(InstallationHealthLevel).includes(row["level"])
|
|
460
|
+
? row["level"]
|
|
461
|
+
: null;
|
|
462
|
+
if (!id || !title || !words || !level) {
|
|
463
|
+
continue;
|
|
464
|
+
}
|
|
465
|
+
const values = {};
|
|
466
|
+
if (isObject(row["values"])) {
|
|
467
|
+
for (const [key, entry] of Object.entries(row["values"])) {
|
|
468
|
+
if (typeof entry === "string" || typeof entry === "number") {
|
|
469
|
+
values[key] = String(entry).slice(0, 2000);
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
findings.push(InstallationHealthUtil.finding({
|
|
474
|
+
id: id,
|
|
475
|
+
level: level,
|
|
476
|
+
title: title,
|
|
477
|
+
words: words,
|
|
478
|
+
fix: readText(row["fix"]),
|
|
479
|
+
values: values,
|
|
480
|
+
adminPath: InstallationHealthUtil.readPath(row["adminPath"]),
|
|
481
|
+
guidePath: InstallationHealthUtil.readPath(row["guidePath"]),
|
|
482
|
+
}));
|
|
483
|
+
}
|
|
484
|
+
const version = isObject(value["version"])
|
|
485
|
+
? value["version"]
|
|
486
|
+
: {};
|
|
487
|
+
return {
|
|
488
|
+
findings: InstallationHealthUtil.worstFirst(findings),
|
|
489
|
+
checked: Array.isArray(value["checked"])
|
|
490
|
+
? value["checked"].filter((entry) => {
|
|
491
|
+
return Object.values(InstallationHealthCheck).includes(entry);
|
|
492
|
+
})
|
|
493
|
+
: [],
|
|
494
|
+
version: {
|
|
495
|
+
current: readText(version["current"], 100) || "",
|
|
496
|
+
latest: readText(version["latest"], 100),
|
|
497
|
+
isUpdateAvailable: version["isUpdateAvailable"] === true,
|
|
498
|
+
isUpdateCheckDisabled: version["isUpdateCheckDisabled"] === true,
|
|
499
|
+
},
|
|
500
|
+
addressProof: readText(value["addressProof"], 200),
|
|
501
|
+
checkedAt: readText(value["checkedAt"], 100) || "",
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
// A path on this server ("/admin/...", "/docs/..."), never another host's address.
|
|
505
|
+
static readPath(value) {
|
|
506
|
+
const path = readText(value, 300);
|
|
507
|
+
if (!path || !path.startsWith("/") || path.startsWith("//")) {
|
|
508
|
+
return null;
|
|
509
|
+
}
|
|
510
|
+
return path;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
exports.default = InstallationHealthUtil;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import commonJsModule from "./InstallationHealth.js";
|
|
2
|
+
export default commonJsModule.default;
|
|
3
|
+
export const CLICKHOUSE_DISK_FIX_FREE_PERCENT = commonJsModule.CLICKHOUSE_DISK_FIX_FREE_PERCENT;
|
|
4
|
+
export const CLICKHOUSE_DISK_WARN_FREE_PERCENT = commonJsModule.CLICKHOUSE_DISK_WARN_FREE_PERCENT;
|
|
5
|
+
export const INSTALLATION_HEALTH_ADMIN_PATHS = commonJsModule.INSTALLATION_HEALTH_ADMIN_PATHS;
|
|
6
|
+
export const INSTALLATION_HEALTH_ALL_RIGHT = commonJsModule.INSTALLATION_HEALTH_ALL_RIGHT;
|
|
7
|
+
export const INSTALLATION_HEALTH_GUIDES = commonJsModule.INSTALLATION_HEALTH_GUIDES;
|
|
8
|
+
export const INSTALLATION_HEALTH_SETUP_FIX = commonJsModule.INSTALLATION_HEALTH_SETUP_FIX;
|
|
9
|
+
export const INSTALLATION_HEALTH_WORDS = commonJsModule.INSTALLATION_HEALTH_WORDS;
|
|
10
|
+
export const InstallationHealthCheck = commonJsModule.InstallationHealthCheck;
|
|
11
|
+
export const InstallationHealthFindingId = commonJsModule.InstallationHealthFindingId;
|
|
12
|
+
export const InstallationHealthLevel = commonJsModule.InstallationHealthLevel;
|
|
13
|
+
export const QUEUE_BACKLOG_LIMIT = commonJsModule.QUEUE_BACKLOG_LIMIT;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Dictionary from "../Dictionary.mjs";
|
|
2
|
+
import { JSONValue } from "../JSON.mjs";
|
|
3
|
+
export interface LLMProviderExchange {
|
|
4
|
+
method: string;
|
|
5
|
+
url: string;
|
|
6
|
+
requestHeaders: Dictionary<string>;
|
|
7
|
+
requestBody?: JSONValue | undefined;
|
|
8
|
+
statusCode?: number | undefined;
|
|
9
|
+
responseHeaders?: Dictionary<string> | undefined;
|
|
10
|
+
responseBody?: JSONValue | undefined;
|
|
11
|
+
error?: string | undefined;
|
|
12
|
+
durationMs: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const LLM_PROVIDER_EXCHANGE_MAX_COUNT: number;
|
|
15
|
+
export declare const LLM_PROVIDER_EXCHANGE_MAX_BODY_LENGTH: number;
|
|
16
|
+
export declare const LLM_PROVIDER_EXCHANGE_TRUNCATED_SUFFIX: string;
|
|
17
|
+
export declare function readLLMProviderExchanges(value: JSONValue | undefined): Array<LLMProviderExchange>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Dictionary from "../Dictionary";
|
|
2
|
+
import { JSONValue } from "../JSON";
|
|
3
|
+
export interface LLMProviderExchange {
|
|
4
|
+
method: string;
|
|
5
|
+
url: string;
|
|
6
|
+
requestHeaders: Dictionary<string>;
|
|
7
|
+
requestBody?: JSONValue | undefined;
|
|
8
|
+
statusCode?: number | undefined;
|
|
9
|
+
responseHeaders?: Dictionary<string> | undefined;
|
|
10
|
+
responseBody?: JSONValue | undefined;
|
|
11
|
+
error?: string | undefined;
|
|
12
|
+
durationMs: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const LLM_PROVIDER_EXCHANGE_MAX_COUNT: number;
|
|
15
|
+
export declare const LLM_PROVIDER_EXCHANGE_MAX_BODY_LENGTH: number;
|
|
16
|
+
export declare const LLM_PROVIDER_EXCHANGE_TRUNCATED_SUFFIX: string;
|
|
17
|
+
export declare function readLLMProviderExchanges(value: JSONValue | undefined): Array<LLMProviderExchange>;
|