@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,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SCREENSHOTS_OMITTED_FIELD = void 0;
|
|
4
|
+
/*
|
|
5
|
+
* A STATE CHANGE'S LOG KEEPS NO SCREENSHOTS (OneUptime issue #6903).
|
|
6
|
+
*
|
|
7
|
+
* The check that opened or resolved an incident or an alert is kept with the
|
|
8
|
+
* state change it caused (IncidentStateTimeline.stateChangeLog,
|
|
9
|
+
* AlertStateTimeline.stateChangeLog), and a Synthetic monitor's check
|
|
10
|
+
* carries a base64 screenshot for every browser and screen size it ran on:
|
|
11
|
+
* megabytes a row, which is how one installation's incident state timeline
|
|
12
|
+
* grew to 13 GB for 46 thousand rows. The log is shown as JSON text (State
|
|
13
|
+
* Timeline -> View Logs), where a screenshot is pages of base64 no one can
|
|
14
|
+
* look at. The screenshots are shown where they can be seen: the incident's
|
|
15
|
+
* or alert's Monitor Summary card (Incident.monitorSummary) and the
|
|
16
|
+
* monitor's own logs.
|
|
17
|
+
*
|
|
18
|
+
* So a state change's log keeps everything but them - the script's log
|
|
19
|
+
* lines, its result, its error, the evaluation - and every run that had
|
|
20
|
+
* screenshots says it left them out (areScreenshotsOmitted), so a reader of
|
|
21
|
+
* the log knows there were some.
|
|
22
|
+
*
|
|
23
|
+
* Only the screenshots of a Synthetic monitor's runs are left out
|
|
24
|
+
* (syntheticMonitorResponse[].screenshots, SyntheticMonitorResponse): what a
|
|
25
|
+
* Custom Code script returned is the script's, whatever its keys are named.
|
|
26
|
+
*/
|
|
27
|
+
// Where a check keeps a Synthetic monitor's runs.
|
|
28
|
+
const SYNTHETIC_RUNS_FIELD = "syntheticMonitorResponse";
|
|
29
|
+
// A run's screenshots: base64 images, by name.
|
|
30
|
+
const SCREENSHOTS_FIELD = "screenshots";
|
|
31
|
+
// What a run whose screenshots were left out says.
|
|
32
|
+
exports.SCREENSHOTS_OMITTED_FIELD = "areScreenshotsOmitted";
|
|
33
|
+
// Deep enough for any check kept, shallow enough to bound the walk.
|
|
34
|
+
const MAX_DEPTH = 12;
|
|
35
|
+
function isPlainObject(value) {
|
|
36
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
37
|
+
}
|
|
38
|
+
// Whether a run's screenshots hold anything: a name with an image.
|
|
39
|
+
function hasScreenshots(value) {
|
|
40
|
+
if (!isPlainObject(value)) {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
return Object.keys(value).length > 0;
|
|
44
|
+
}
|
|
45
|
+
class StateChangeLogScreenshots {
|
|
46
|
+
/*
|
|
47
|
+
* The log as a state change keeps it: a copy without a Synthetic monitor's
|
|
48
|
+
* screenshots, each run that had some saying so. A log with none comes
|
|
49
|
+
* back as it was given - the same object.
|
|
50
|
+
*/
|
|
51
|
+
static leaveOut(log) {
|
|
52
|
+
if (!isPlainObject(log) || !this.hasAny(log, 0)) {
|
|
53
|
+
return log;
|
|
54
|
+
}
|
|
55
|
+
return this.copyWithout(log, 0);
|
|
56
|
+
}
|
|
57
|
+
// Whether a log carries a Synthetic monitor's screenshots anywhere.
|
|
58
|
+
static hasAny(value, depth) {
|
|
59
|
+
if (depth > MAX_DEPTH || value === null || typeof value !== "object") {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
if (Array.isArray(value)) {
|
|
63
|
+
return value.some((item) => {
|
|
64
|
+
return this.hasAny(item, depth + 1);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
for (const key of Object.keys(value)) {
|
|
68
|
+
const child = value[key];
|
|
69
|
+
if (key === SYNTHETIC_RUNS_FIELD && Array.isArray(child)) {
|
|
70
|
+
for (const run of child) {
|
|
71
|
+
if (isPlainObject(run) && hasScreenshots(run[SCREENSHOTS_FIELD])) {
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (this.hasAny(child, depth + 1)) {
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
static copyWithout(value, depth) {
|
|
83
|
+
if (depth > MAX_DEPTH || value === null || typeof value !== "object") {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
if (Array.isArray(value)) {
|
|
87
|
+
return value.map((item) => {
|
|
88
|
+
return this.copyWithout(item, depth + 1);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
const copy = {};
|
|
92
|
+
for (const key of Object.keys(value)) {
|
|
93
|
+
const child = value[key];
|
|
94
|
+
copy[key] =
|
|
95
|
+
key === SYNTHETIC_RUNS_FIELD && Array.isArray(child)
|
|
96
|
+
? child.map((run) => {
|
|
97
|
+
return this.runWithout(run, depth + 2);
|
|
98
|
+
})
|
|
99
|
+
: this.copyWithout(child, depth + 1);
|
|
100
|
+
}
|
|
101
|
+
return copy;
|
|
102
|
+
}
|
|
103
|
+
// One Synthetic run, its screenshots left out when it had some.
|
|
104
|
+
static runWithout(run, depth) {
|
|
105
|
+
if (!isPlainObject(run)) {
|
|
106
|
+
return this.copyWithout(run, depth);
|
|
107
|
+
}
|
|
108
|
+
const copy = this.copyWithout(run, depth);
|
|
109
|
+
if (hasScreenshots(run[SCREENSHOTS_FIELD])) {
|
|
110
|
+
delete copy[SCREENSHOTS_FIELD];
|
|
111
|
+
copy[exports.SCREENSHOTS_OMITTED_FIELD] = true;
|
|
112
|
+
}
|
|
113
|
+
return copy;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
exports.default = StateChangeLogScreenshots;
|
|
@@ -8,13 +8,13 @@ export declare const NAMING_LOOKUP_PROBLEMS: {
|
|
|
8
8
|
readonly noKeyKind: string;
|
|
9
9
|
readonly unusedTable: string;
|
|
10
10
|
readonly emptyTable: string;
|
|
11
|
-
readonly badKey: string;
|
|
12
11
|
readonly keyTooLong: string;
|
|
13
12
|
readonly emptyValue: string;
|
|
14
13
|
readonly valueTooLong: string;
|
|
15
14
|
readonly controlCharacter: string;
|
|
16
15
|
readonly duplicateKey: string;
|
|
17
16
|
};
|
|
17
|
+
export declare const NAMING_LOOKUP_BAD_KEY_PROBLEMS: Readonly<Record<NamingLookupKey, string>>;
|
|
18
18
|
export interface NamingLookupProblem {
|
|
19
19
|
template: string;
|
|
20
20
|
values: Record<string, string>;
|
|
@@ -8,13 +8,13 @@ export declare const NAMING_LOOKUP_PROBLEMS: {
|
|
|
8
8
|
readonly noKeyKind: string;
|
|
9
9
|
readonly unusedTable: string;
|
|
10
10
|
readonly emptyTable: string;
|
|
11
|
-
readonly badKey: string;
|
|
12
11
|
readonly keyTooLong: string;
|
|
13
12
|
readonly emptyValue: string;
|
|
14
13
|
readonly valueTooLong: string;
|
|
15
14
|
readonly controlCharacter: string;
|
|
16
15
|
readonly duplicateKey: string;
|
|
17
16
|
};
|
|
17
|
+
export declare const NAMING_LOOKUP_BAD_KEY_PROBLEMS: Readonly<Record<NamingLookupKey, string>>;
|
|
18
18
|
export interface NamingLookupProblem {
|
|
19
19
|
template: string;
|
|
20
20
|
values: Record<string, string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MAX_NAMING_LOOKUP_TEXT_LENGTH = exports.NAMING_LOOKUP_PROBLEMS = exports.NAMING_LOOKUP_KEY_EXAMPLES = exports.NAMING_LOOKUP_VALUE_EXAMPLE = exports.NAMING_LOOKUP_KEY_TITLES = void 0;
|
|
3
|
+
exports.MAX_NAMING_LOOKUP_TEXT_LENGTH = exports.NAMING_LOOKUP_BAD_KEY_PROBLEMS = exports.NAMING_LOOKUP_PROBLEMS = exports.NAMING_LOOKUP_KEY_EXAMPLES = exports.NAMING_LOOKUP_VALUE_EXAMPLE = exports.NAMING_LOOKUP_KEY_TITLES = void 0;
|
|
4
4
|
exports.formatNamingLookupProblem = formatNamingLookupProblem;
|
|
5
5
|
exports.normalizeNamingLookupKey = normalizeNamingLookupKey;
|
|
6
6
|
exports.readNamingLookupTable = readNamingLookupTable;
|
|
@@ -72,13 +72,24 @@ exports.NAMING_LOOKUP_PROBLEMS = {
|
|
|
72
72
|
noKeyKind: translationKey("Choose what the lookup table is keyed by: the last part of the IP address, the IP address, the MAC address or the discovered name."),
|
|
73
73
|
unusedTable: translationKey("Put {lookup} in the name pattern where the table's value goes, or clear the table."),
|
|
74
74
|
emptyTable: translationKey("The name pattern uses {lookup}: add a row to the lookup table, or take {lookup} out of the pattern."),
|
|
75
|
-
badKey: translationKey('Row {{row}}: "{{key}}" is not a {{kind}}, such as {{example}}.'),
|
|
76
75
|
keyTooLong: translationKey("Row {{row}}: the key can be at most {{max}} characters long."),
|
|
77
76
|
emptyValue: translationKey("Row {{row}}: enter the value for {{key}}."),
|
|
78
77
|
valueTooLong: translationKey("Row {{row}}: the value can be at most {{max}} characters long."),
|
|
79
78
|
controlCharacter: translationKey("Row {{row}}: a key or value can't contain line breaks or other control characters."),
|
|
80
79
|
duplicateKey: translationKey('Rows {{first}} and {{row}} both have the key "{{key}}". Keep one of them.'),
|
|
81
80
|
};
|
|
81
|
+
/*
|
|
82
|
+
* A key that is not of the table's kind, said whole for each kind: a
|
|
83
|
+
* sentence that put the kind's title inside it ("is not a {{kind}}") read
|
|
84
|
+
* "is not a last part of the ip address" in English, and left the title
|
|
85
|
+
* English, or wrongly lowercased, in every other language.
|
|
86
|
+
*/
|
|
87
|
+
exports.NAMING_LOOKUP_BAD_KEY_PROBLEMS = {
|
|
88
|
+
[DeviceNaming_1.NamingLookupKey.LastIpOctet]: translationKey('Row {{row}}: "{{key}}" is not the last part of an IP address, such as {{example}}.'),
|
|
89
|
+
[DeviceNaming_1.NamingLookupKey.IpAddress]: translationKey('Row {{row}}: "{{key}}" is not an IP address, such as {{example}}.'),
|
|
90
|
+
[DeviceNaming_1.NamingLookupKey.MacAddress]: translationKey('Row {{row}}: "{{key}}" is not a MAC address, such as {{example}}.'),
|
|
91
|
+
[DeviceNaming_1.NamingLookupKey.DiscoveredName]: translationKey('Row {{row}}: "{{key}}" is not a discovered name, such as {{example}}.'),
|
|
92
|
+
};
|
|
82
93
|
function formatNamingLookupProblem(problem) {
|
|
83
94
|
let text = problem.template;
|
|
84
95
|
for (const [key, value] of Object.entries(problem.values)) {
|
|
@@ -258,11 +269,10 @@ function validateNamingLookupEntries(data) {
|
|
|
258
269
|
if (!key) {
|
|
259
270
|
return {
|
|
260
271
|
problem: {
|
|
261
|
-
template: exports.
|
|
272
|
+
template: exports.NAMING_LOOKUP_BAD_KEY_PROBLEMS[kind],
|
|
262
273
|
values: {
|
|
263
274
|
row: row,
|
|
264
275
|
key: rawKey,
|
|
265
|
-
kind: exports.NAMING_LOOKUP_KEY_TITLES[kind].toLowerCase(),
|
|
266
276
|
example: exports.NAMING_LOOKUP_KEY_EXAMPLES[kind],
|
|
267
277
|
},
|
|
268
278
|
},
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import commonJsModule from "./NamingLookup.js";
|
|
2
2
|
export const MAX_NAMING_LOOKUP_TEXT_LENGTH = commonJsModule.MAX_NAMING_LOOKUP_TEXT_LENGTH;
|
|
3
|
+
export const NAMING_LOOKUP_BAD_KEY_PROBLEMS = commonJsModule.NAMING_LOOKUP_BAD_KEY_PROBLEMS;
|
|
3
4
|
export const NAMING_LOOKUP_KEY_EXAMPLES = commonJsModule.NAMING_LOOKUP_KEY_EXAMPLES;
|
|
4
5
|
export const NAMING_LOOKUP_KEY_TITLES = commonJsModule.NAMING_LOOKUP_KEY_TITLES;
|
|
5
6
|
export const NAMING_LOOKUP_PROBLEMS = commonJsModule.NAMING_LOOKUP_PROBLEMS;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JSONObject, JSONValue } from "../../Types/JSON.mjs";
|
|
2
2
|
import SloErrorBudgetPolicyChange from "../../Types/ServiceLevelObjective/SloErrorBudgetPolicyChange.mjs";
|
|
3
|
+
import { Translator } from "../../Types/Translator.mjs";
|
|
3
4
|
export declare const SLO_POLICY_TIER_MIN_THRESHOLD_PERCENTAGE: number;
|
|
4
5
|
export declare const SLO_POLICY_TIER_MAX_THRESHOLD_PERCENTAGE: number;
|
|
5
6
|
export declare const SLO_POLICY_TIER_WHAT_WE_DO_MAX_LENGTH: number;
|
|
@@ -30,7 +31,7 @@ export declare function computeSloPolicyTier<T extends SloPolicyTierLike>(data:
|
|
|
30
31
|
}): T | null;
|
|
31
32
|
export type IsMoreSevereSloPolicyTierFunction = (tier: SloPolicyTierLike | null | undefined, than: SloPolicyTierLike | null | undefined) => boolean;
|
|
32
33
|
export declare const isMoreSevereSloPolicyTier: IsMoreSevereSloPolicyTierFunction;
|
|
33
|
-
export type FormatSloPolicyTierThresholdFunction = (thresholdPercentage: number | string | undefined | null) => string;
|
|
34
|
+
export type FormatSloPolicyTierThresholdFunction = (thresholdPercentage: number | string | undefined | null, translator?: Translator | undefined) => string;
|
|
34
35
|
export declare const formatSloPolicyTierThreshold: FormatSloPolicyTierThresholdFunction;
|
|
35
36
|
export interface SloDeploymentFreezingTier {
|
|
36
37
|
freezesDeployments?: boolean | null | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JSONObject, JSONValue } from "../../Types/JSON";
|
|
2
2
|
import SloErrorBudgetPolicyChange from "../../Types/ServiceLevelObjective/SloErrorBudgetPolicyChange";
|
|
3
|
+
import { Translator } from "../../Types/Translator";
|
|
3
4
|
export declare const SLO_POLICY_TIER_MIN_THRESHOLD_PERCENTAGE: number;
|
|
4
5
|
export declare const SLO_POLICY_TIER_MAX_THRESHOLD_PERCENTAGE: number;
|
|
5
6
|
export declare const SLO_POLICY_TIER_WHAT_WE_DO_MAX_LENGTH: number;
|
|
@@ -30,7 +31,7 @@ export declare function computeSloPolicyTier<T extends SloPolicyTierLike>(data:
|
|
|
30
31
|
}): T | null;
|
|
31
32
|
export type IsMoreSevereSloPolicyTierFunction = (tier: SloPolicyTierLike | null | undefined, than: SloPolicyTierLike | null | undefined) => boolean;
|
|
32
33
|
export declare const isMoreSevereSloPolicyTier: IsMoreSevereSloPolicyTierFunction;
|
|
33
|
-
export type FormatSloPolicyTierThresholdFunction = (thresholdPercentage: number | string | undefined | null) => string;
|
|
34
|
+
export type FormatSloPolicyTierThresholdFunction = (thresholdPercentage: number | string | undefined | null, translator?: Translator | undefined) => string;
|
|
34
35
|
export declare const formatSloPolicyTierThreshold: FormatSloPolicyTierThresholdFunction;
|
|
35
36
|
export interface SloDeploymentFreezingTier {
|
|
36
37
|
freezesDeployments?: boolean | null | undefined;
|
|
@@ -12,6 +12,7 @@ exports.getSloDeploymentGateChange = getSloDeploymentGateChange;
|
|
|
12
12
|
exports.getSloErrorBudgetPolicyChanges = getSloErrorBudgetPolicyChanges;
|
|
13
13
|
const SloErrorBudgetPolicyChange_1 = __importDefault(require("../../Types/ServiceLevelObjective/SloErrorBudgetPolicyChange"));
|
|
14
14
|
const SloEvaluation_1 = require("./SloEvaluation");
|
|
15
|
+
const SloWidgetFormat_1 = require("./SloWidgetFormat");
|
|
15
16
|
/*
|
|
16
17
|
* AN SLO'S ERROR BUDGET POLICY.
|
|
17
18
|
*
|
|
@@ -193,13 +194,18 @@ exports.isMoreSevereSloPolicyTier = isMoreSevereSloPolicyTier;
|
|
|
193
194
|
/*
|
|
194
195
|
* "25%", the way every surface writes a tier's threshold: two decimals at
|
|
195
196
|
* most, and none on a whole number. A threshold that is not a valid one
|
|
196
|
-
* reads as an empty string.
|
|
197
|
+
* reads as an empty string. A page passes the reader's Translator for the
|
|
198
|
+
* figure in their language ("25 %" in German, "۲۵٪" in Persian); the
|
|
199
|
+
* worker, the server and the API's texts pass none and read as before.
|
|
197
200
|
*/
|
|
198
|
-
const formatSloPolicyTierThreshold = (thresholdPercentage) => {
|
|
201
|
+
const formatSloPolicyTierThreshold = (thresholdPercentage, translator) => {
|
|
199
202
|
const threshold = (0, exports.readSloPolicyTierThreshold)(thresholdPercentage);
|
|
200
203
|
if (threshold === null) {
|
|
201
204
|
return "";
|
|
202
205
|
}
|
|
206
|
+
if (translator) {
|
|
207
|
+
return (0, SloWidgetFormat_1.formatSloPercent)(threshold, 2, translator) || "";
|
|
208
|
+
}
|
|
203
209
|
return `${String(Math.round(threshold * 100) / 100)}%`;
|
|
204
210
|
};
|
|
205
211
|
exports.formatSloPolicyTierThreshold = formatSloPolicyTierThreshold;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import SortOrder from "../../Types/BaseDatabase/SortOrder.mjs";
|
|
2
2
|
import Color from "../../Types/Color.mjs";
|
|
3
3
|
import SloStatus from "../../Types/ServiceLevelObjective/SloStatus.mjs";
|
|
4
|
+
import { Translator } from "../../Types/Translator.mjs";
|
|
4
5
|
import { SloWidgetStateData } from "./SloWidgetFormat.mjs";
|
|
5
6
|
/**
|
|
6
7
|
* Pure display rules for the dashboard SLO List widget — every objective in a
|
|
@@ -10,6 +11,11 @@ import { SloWidgetStateData } from "./SloWidgetFormat.mjs";
|
|
|
10
11
|
* formatting can be unit-tested without a DOM, and so the public-dashboard
|
|
11
12
|
* policy on the server shares the list's sort and variable mapping with the
|
|
12
13
|
* browser instead of keeping a second copy that could drift.
|
|
14
|
+
*
|
|
15
|
+
* A row's figures and lines take the reader's Translator, as the single-SLO
|
|
16
|
+
* widget's do (SloWidgetFormat); its status labels are keys the widget looks
|
|
17
|
+
* up where it draws them, and stay English here, where the honeycomb and the
|
|
18
|
+
* summary read them as values.
|
|
13
19
|
*/
|
|
14
20
|
export declare const SLO_LIST_SORT: {
|
|
15
21
|
[key: string]: SortOrder;
|
|
@@ -48,7 +54,7 @@ export interface SloListRowDisplay {
|
|
|
48
54
|
statusText: string;
|
|
49
55
|
statusColor: Color;
|
|
50
56
|
}
|
|
51
|
-
export type GetSloListRowDisplayFunction = (slo: SloListRowData) => SloListRowDisplay;
|
|
57
|
+
export type GetSloListRowDisplayFunction = (slo: SloListRowData, translator?: Translator | undefined) => SloListRowDisplay;
|
|
52
58
|
export declare const getSloListRowDisplay: GetSloListRowDisplayFunction;
|
|
53
59
|
export interface SloStatusSummaryEntry {
|
|
54
60
|
label: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import SortOrder from "../../Types/BaseDatabase/SortOrder";
|
|
2
2
|
import Color from "../../Types/Color";
|
|
3
3
|
import SloStatus from "../../Types/ServiceLevelObjective/SloStatus";
|
|
4
|
+
import { Translator } from "../../Types/Translator";
|
|
4
5
|
import { SloWidgetStateData } from "./SloWidgetFormat";
|
|
5
6
|
/**
|
|
6
7
|
* Pure display rules for the dashboard SLO List widget — every objective in a
|
|
@@ -10,6 +11,11 @@ import { SloWidgetStateData } from "./SloWidgetFormat";
|
|
|
10
11
|
* formatting can be unit-tested without a DOM, and so the public-dashboard
|
|
11
12
|
* policy on the server shares the list's sort and variable mapping with the
|
|
12
13
|
* browser instead of keeping a second copy that could drift.
|
|
14
|
+
*
|
|
15
|
+
* A row's figures and lines take the reader's Translator, as the single-SLO
|
|
16
|
+
* widget's do (SloWidgetFormat); its status labels are keys the widget looks
|
|
17
|
+
* up where it draws them, and stay English here, where the honeycomb and the
|
|
18
|
+
* summary read them as values.
|
|
13
19
|
*/
|
|
14
20
|
export declare const SLO_LIST_SORT: {
|
|
15
21
|
[key: string]: SortOrder;
|
|
@@ -48,7 +54,7 @@ export interface SloListRowDisplay {
|
|
|
48
54
|
statusText: string;
|
|
49
55
|
statusColor: Color;
|
|
50
56
|
}
|
|
51
|
-
export type GetSloListRowDisplayFunction = (slo: SloListRowData) => SloListRowDisplay;
|
|
57
|
+
export type GetSloListRowDisplayFunction = (slo: SloListRowData, translator?: Translator | undefined) => SloListRowDisplay;
|
|
52
58
|
export declare const getSloListRowDisplay: GetSloListRowDisplayFunction;
|
|
53
59
|
export interface SloStatusSummaryEntry {
|
|
54
60
|
label: string;
|
|
@@ -8,6 +8,7 @@ const BrandColors_1 = require("../../Types/BrandColors");
|
|
|
8
8
|
const Includes_1 = __importDefault(require("../../Types/BaseDatabase/Includes"));
|
|
9
9
|
const SortOrder_1 = __importDefault(require("../../Types/BaseDatabase/SortOrder"));
|
|
10
10
|
const SloStatus_1 = __importDefault(require("../../Types/ServiceLevelObjective/SloStatus"));
|
|
11
|
+
const Translator_1 = require("../../Types/Translator");
|
|
11
12
|
const SloStatusColor_1 = require("./SloStatusColor");
|
|
12
13
|
const SloMetricType_1 = require("./SloMetricType");
|
|
13
14
|
const SloWidgetFormat_1 = require("./SloWidgetFormat");
|
|
@@ -19,6 +20,11 @@ const SloWidgetFormat_1 = require("./SloWidgetFormat");
|
|
|
19
20
|
* formatting can be unit-tested without a DOM, and so the public-dashboard
|
|
20
21
|
* policy on the server shares the list's sort and variable mapping with the
|
|
21
22
|
* browser instead of keeping a second copy that could drift.
|
|
23
|
+
*
|
|
24
|
+
* A row's figures and lines take the reader's Translator, as the single-SLO
|
|
25
|
+
* widget's do (SloWidgetFormat); its status labels are keys the widget looks
|
|
26
|
+
* up where it draws them, and stay English here, where the honeycomb and the
|
|
27
|
+
* summary read them as values.
|
|
22
28
|
*/
|
|
23
29
|
/*
|
|
24
30
|
* Enabled objectives first, then least error budget first. An SLO review
|
|
@@ -56,9 +62,9 @@ exports.SLO_LIST_ATTRIBUTE_TO_COLUMN = {
|
|
|
56
62
|
[SloMetricType_1.SLO_METRIC_SLO_NAME_ATTRIBUTE]: "name",
|
|
57
63
|
};
|
|
58
64
|
exports.SLO_LIST_DEFAULT_MAX_ROWS = 50;
|
|
59
|
-
exports.SLO_NOT_EVALUATED_STATUS_LABEL = "Not Evaluated";
|
|
65
|
+
exports.SLO_NOT_EVALUATED_STATUS_LABEL = (0, Translator_1.translationKey)("Not Evaluated");
|
|
60
66
|
// The same word the SLOs page puts on a disabled SLO's status pill.
|
|
61
|
-
exports.SLO_DISABLED_STATUS_LABEL = "Disabled";
|
|
67
|
+
exports.SLO_DISABLED_STATUS_LABEL = (0, Translator_1.translationKey)("Disabled");
|
|
62
68
|
/*
|
|
63
69
|
* Only an explicit false is disabled, exactly as on the SLOs page
|
|
64
70
|
* (getSloListStatusKind). The column is NOT NULL and defaults to true, so a
|
|
@@ -115,8 +121,15 @@ const getSloBudgetBarFillPercent = (errorBudgetRemainingPercentage) => {
|
|
|
115
121
|
return Math.min(Math.max(errorBudgetRemainingPercentage, 0), 100);
|
|
116
122
|
};
|
|
117
123
|
exports.getSloBudgetBarFillPercent = getSloBudgetBarFillPercent;
|
|
118
|
-
const getSloListRowDisplay = (slo) => {
|
|
119
|
-
const
|
|
124
|
+
const getSloListRowDisplay = (slo, translator) => {
|
|
125
|
+
const figures = {
|
|
126
|
+
sli: (0, SloWidgetFormat_1.formatSloPercent)(slo.currentSliPercentage, SloWidgetFormat_1.SLI_DECIMALS, translator),
|
|
127
|
+
target: (0, SloWidgetFormat_1.formatSloTargetSubline)(slo.targetPercentage, translator),
|
|
128
|
+
budget: (0, SloWidgetFormat_1.formatSloPercent)(slo.errorBudgetRemainingPercentage, SloWidgetFormat_1.BUDGET_PERCENT_DECIMALS, translator),
|
|
129
|
+
budgetTime: (0, SloWidgetFormat_1.formatErrorBudgetRemainingSeconds)(slo.errorBudgetRemainingSeconds, translator),
|
|
130
|
+
budgetFillPercent: (0, exports.getSloBudgetBarFillPercent)(slo.errorBudgetRemainingPercentage),
|
|
131
|
+
burnRate: (0, SloWidgetFormat_1.formatSloBurnRate)(slo.currentBurnRate, translator),
|
|
132
|
+
};
|
|
120
133
|
/*
|
|
121
134
|
* A disabled SLO is not evaluated, so its status, budget and burn rate are
|
|
122
135
|
* frozen at the moment it was switched off. The row keeps those last
|
|
@@ -126,26 +139,9 @@ const getSloListRowDisplay = (slo) => {
|
|
|
126
139
|
* is no longer moving.
|
|
127
140
|
*/
|
|
128
141
|
if ((0, exports.isSloListRowDisabled)(slo)) {
|
|
129
|
-
return {
|
|
130
|
-
sli: (0, SloWidgetFormat_1.formatSloPercent)(slo.currentSliPercentage, 3),
|
|
131
|
-
target: target === null ? null : `target ${target}`,
|
|
132
|
-
budget: (0, SloWidgetFormat_1.formatSloPercent)(slo.errorBudgetRemainingPercentage, 1),
|
|
133
|
-
budgetTime: (0, SloWidgetFormat_1.formatErrorBudgetRemainingSeconds)(slo.errorBudgetRemainingSeconds),
|
|
134
|
-
budgetFillPercent: (0, exports.getSloBudgetBarFillPercent)(slo.errorBudgetRemainingPercentage),
|
|
135
|
-
burnRate: (0, SloWidgetFormat_1.formatSloBurnRate)(slo.currentBurnRate),
|
|
136
|
-
burnRateTone: SloBurnRateTone.Unknown,
|
|
137
|
-
statusText: exports.SLO_DISABLED_STATUS_LABEL,
|
|
138
|
-
statusColor: BrandColors_1.Gray500,
|
|
139
|
-
};
|
|
142
|
+
return Object.assign(Object.assign({}, figures), { burnRateTone: SloBurnRateTone.Unknown, statusText: exports.SLO_DISABLED_STATUS_LABEL, statusColor: BrandColors_1.Gray500 });
|
|
140
143
|
}
|
|
141
|
-
return {
|
|
142
|
-
sli: (0, SloWidgetFormat_1.formatSloPercent)(slo.currentSliPercentage, 3),
|
|
143
|
-
target: target === null ? null : `target ${target}`,
|
|
144
|
-
budget: (0, SloWidgetFormat_1.formatSloPercent)(slo.errorBudgetRemainingPercentage, 1),
|
|
145
|
-
budgetTime: (0, SloWidgetFormat_1.formatErrorBudgetRemainingSeconds)(slo.errorBudgetRemainingSeconds),
|
|
146
|
-
budgetFillPercent: (0, exports.getSloBudgetBarFillPercent)(slo.errorBudgetRemainingPercentage),
|
|
147
|
-
burnRate: (0, SloWidgetFormat_1.formatSloBurnRate)(slo.currentBurnRate),
|
|
148
|
-
burnRateTone: (0, exports.getSloBurnRateTone)(slo.currentBurnRate),
|
|
144
|
+
return Object.assign(Object.assign({}, figures), { burnRateTone: (0, exports.getSloBurnRateTone)(slo.currentBurnRate),
|
|
149
145
|
/*
|
|
150
146
|
* A NULL status is an SLO the worker has not reached yet. The single-SLO
|
|
151
147
|
* widget's pill says "Unknown"; in a list of objectives the summary strip
|
|
@@ -153,9 +149,7 @@ const getSloListRowDisplay = (slo) => {
|
|
|
153
149
|
*/
|
|
154
150
|
statusText: slo.sloStatus
|
|
155
151
|
? (0, SloStatusColor_1.getSloStatusText)(slo.sloStatus)
|
|
156
|
-
: exports.SLO_NOT_EVALUATED_STATUS_LABEL,
|
|
157
|
-
statusColor: (0, SloStatusColor_1.getSloStatusColor)(slo.sloStatus),
|
|
158
|
-
};
|
|
152
|
+
: exports.SLO_NOT_EVALUATED_STATUS_LABEL, statusColor: (0, SloStatusColor_1.getSloStatusColor)(slo.sloStatus) });
|
|
159
153
|
};
|
|
160
154
|
exports.getSloListRowDisplay = getSloListRowDisplay;
|
|
161
155
|
/*
|
|
@@ -2,6 +2,7 @@ import SliType from "../../Types/ServiceLevelObjective/SliType.mjs";
|
|
|
2
2
|
import SloMultiMonitorMode from "../../Types/ServiceLevelObjective/SloMultiMonitorMode.mjs";
|
|
3
3
|
import SloStatus from "../../Types/ServiceLevelObjective/SloStatus.mjs";
|
|
4
4
|
import SloWindowType from "../../Types/ServiceLevelObjective/SloWindowType.mjs";
|
|
5
|
+
import { Translator } from "../../Types/Translator.mjs";
|
|
5
6
|
export interface SloWindowTextData {
|
|
6
7
|
windowType?: SloWindowType | undefined | null;
|
|
7
8
|
windowDays?: number | undefined | null;
|
|
@@ -23,8 +24,12 @@ export declare const getSloTargetText: GetSloTargetTextFunction;
|
|
|
23
24
|
* A budget below zero is exceeded, not a useful negative percentage left.
|
|
24
25
|
* Classify before rounding so even a small overage cannot read as 0%.
|
|
25
26
|
* The signed value remains available to calculations and history charts.
|
|
27
|
+
*
|
|
28
|
+
* With the reader's Translator the percentage is written their way ("42,5 %",
|
|
29
|
+
* "<0,1 %"); the words for a spent budget stay English here, for the
|
|
30
|
+
* Dashboard to look up (getSloBudgetRemainingTextInLanguage).
|
|
26
31
|
*/
|
|
27
|
-
export type GetSloBudgetRemainingTextFunction = (percentage: number | undefined | null) => string | null;
|
|
32
|
+
export type GetSloBudgetRemainingTextFunction = (percentage: number | undefined | null, translator?: Translator | undefined) => string | null;
|
|
28
33
|
export declare const getSloBudgetRemainingText: GetSloBudgetRemainingTextFunction;
|
|
29
34
|
/** "No monitors" / "1 monitor" / "12 monitors". */
|
|
30
35
|
export type GetSloMonitorCountTextFunction = (count: number) => string;
|
|
@@ -2,6 +2,7 @@ import SliType from "../../Types/ServiceLevelObjective/SliType";
|
|
|
2
2
|
import SloMultiMonitorMode from "../../Types/ServiceLevelObjective/SloMultiMonitorMode";
|
|
3
3
|
import SloStatus from "../../Types/ServiceLevelObjective/SloStatus";
|
|
4
4
|
import SloWindowType from "../../Types/ServiceLevelObjective/SloWindowType";
|
|
5
|
+
import { Translator } from "../../Types/Translator";
|
|
5
6
|
export interface SloWindowTextData {
|
|
6
7
|
windowType?: SloWindowType | undefined | null;
|
|
7
8
|
windowDays?: number | undefined | null;
|
|
@@ -23,8 +24,12 @@ export declare const getSloTargetText: GetSloTargetTextFunction;
|
|
|
23
24
|
* A budget below zero is exceeded, not a useful negative percentage left.
|
|
24
25
|
* Classify before rounding so even a small overage cannot read as 0%.
|
|
25
26
|
* The signed value remains available to calculations and history charts.
|
|
27
|
+
*
|
|
28
|
+
* With the reader's Translator the percentage is written their way ("42,5 %",
|
|
29
|
+
* "<0,1 %"); the words for a spent budget stay English here, for the
|
|
30
|
+
* Dashboard to look up (getSloBudgetRemainingTextInLanguage).
|
|
26
31
|
*/
|
|
27
|
-
export type GetSloBudgetRemainingTextFunction = (percentage: number | undefined | null) => string | null;
|
|
32
|
+
export type GetSloBudgetRemainingTextFunction = (percentage: number | undefined | null, translator?: Translator | undefined) => string | null;
|
|
28
33
|
export declare const getSloBudgetRemainingText: GetSloBudgetRemainingTextFunction;
|
|
29
34
|
/** "No monitors" / "1 monitor" / "12 monitors". */
|
|
30
35
|
export type GetSloMonitorCountTextFunction = (count: number) => string;
|
|
@@ -43,7 +43,7 @@ const getSloTargetText = (targetPercentage) => {
|
|
|
43
43
|
return target === null ? null : `Target ${target}`;
|
|
44
44
|
};
|
|
45
45
|
exports.getSloTargetText = getSloTargetText;
|
|
46
|
-
const getSloBudgetRemainingText = (percentage) => {
|
|
46
|
+
const getSloBudgetRemainingText = (percentage, translator) => {
|
|
47
47
|
const remaining = toFiniteNumber(percentage);
|
|
48
48
|
if (remaining === null) {
|
|
49
49
|
return null;
|
|
@@ -55,9 +55,9 @@ const getSloBudgetRemainingText = (percentage) => {
|
|
|
55
55
|
return "No budget left";
|
|
56
56
|
}
|
|
57
57
|
if (remaining < 0.1) {
|
|
58
|
-
return
|
|
58
|
+
return `<${(0, SloWidgetFormat_1.formatSloPercent)(0.1, 1, translator)}`;
|
|
59
59
|
}
|
|
60
|
-
return (0, SloWidgetFormat_1.formatSloPercent)(Math.min(remaining, 100), 1);
|
|
60
|
+
return (0, SloWidgetFormat_1.formatSloPercent)(Math.min(remaining, 100), 1, translator);
|
|
61
61
|
};
|
|
62
62
|
exports.getSloBudgetRemainingText = getSloBudgetRemainingText;
|
|
63
63
|
const getSloMonitorCountText = (count) => {
|
package/Utils/Slo/SloUtil.d.mts
CHANGED
|
@@ -62,14 +62,16 @@ export interface CalendarMonthWindow {
|
|
|
62
62
|
*
|
|
63
63
|
* Design notes (see SLO design doc paragraph 3.1 / 5):
|
|
64
64
|
*
|
|
65
|
-
* - Multi-monitor downtime
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
65
|
+
* - Multi-monitor downtime is combined here with explicit semantics
|
|
66
|
+
* (SloMultiMonitorMode), working per monitor (getMonitorEventsForId) rather
|
|
67
|
+
* than by feeding several monitors into UptimeUtil.getNonOverlappingMonitorEvents.
|
|
68
|
+
* That merge used to be a priority flatten that let a better-status event that
|
|
69
|
+
* merely ended later truncate a concurrent worse-status event (Monitor A
|
|
70
|
+
* Offline 10:00-11:00 + Monitor B Operational 10:30-12:00 lost 30 minutes of
|
|
71
|
+
* downtime). It now takes the worst status at every instant (WorstStatusTimeline,
|
|
72
|
+
* issue #6697), which is the AnyDown union - but the other modes (an average
|
|
73
|
+
* per monitor, all monitors down) are not a merged timeline at all, so the
|
|
74
|
+
* per-monitor approach stays.
|
|
73
75
|
*
|
|
74
76
|
* - Every comparison against a threshold uses UNROUNDED values. Round only at
|
|
75
77
|
* render time (roundForDisplay floors - fine for display, wrong for
|
|
@@ -115,7 +117,7 @@ export default class SloUtil {
|
|
|
115
117
|
* The correctness case this exists for: Monitor A Offline 10:00-11:00 while
|
|
116
118
|
* Monitor B is Operational 10:30-12:00 must yield 3600 seconds of downtime,
|
|
117
119
|
* NOT 1800 - which is what the cross-monitor priority flatten in
|
|
118
|
-
* UptimeUtil.getNonOverlappingMonitorEvents
|
|
120
|
+
* UptimeUtil.getNonOverlappingMonitorEvents used to produce.
|
|
119
121
|
*/
|
|
120
122
|
static getUnionDowntimeSeconds(perMonitor: Array<MonitorTimelineSet>, downtimeStatuses: Array<MonitorStatus>, window: UptimeWindow): number;
|
|
121
123
|
/**
|
|
@@ -132,6 +134,12 @@ export default class SloUtil {
|
|
|
132
134
|
* - MonitorSecondsAverage: the clamp happens PER MONITOR (each monitor's own
|
|
133
135
|
* first event), mirroring UptimeUtil.getTotalDowntimeInSeconds - otherwise
|
|
134
136
|
* adding a young monitor dilutes the SLI.
|
|
137
|
+
* - Time with monitoring off (MonitorStatusTimeline.isMonitoringOff, issue
|
|
138
|
+
* #6480) is in neither the numerator nor the denominator: nothing checked
|
|
139
|
+
* the monitor, so it neither spends the error budget nor counts as good.
|
|
140
|
+
* AnyDown leaves out the time NONE of the monitors was monitored;
|
|
141
|
+
* MonitorSecondsAverage each monitor's own (UptimeUtil.getNotMonitoredSeconds).
|
|
142
|
+
* A calendar window's budget is still the full month's.
|
|
135
143
|
*
|
|
136
144
|
* No data at all (no timeline rows for any monitor) => totalSeconds 0,
|
|
137
145
|
* sliPercentage 100 - callers decide what "no data" means (the evaluator marks
|
|
@@ -151,6 +159,7 @@ export default class SloUtil {
|
|
|
151
159
|
mode: SloMultiMonitorMode;
|
|
152
160
|
}): TimeSliResult;
|
|
153
161
|
private static computeAnyDownSli;
|
|
162
|
+
private static getOwnTimelines;
|
|
154
163
|
private static computeMonitorSecondsAverageSli;
|
|
155
164
|
/**
|
|
156
165
|
* Error budget from an SLI measurement.
|
package/Utils/Slo/SloUtil.d.ts
CHANGED
|
@@ -62,14 +62,16 @@ export interface CalendarMonthWindow {
|
|
|
62
62
|
*
|
|
63
63
|
* Design notes (see SLO design doc paragraph 3.1 / 5):
|
|
64
64
|
*
|
|
65
|
-
* - Multi-monitor downtime
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
65
|
+
* - Multi-monitor downtime is combined here with explicit semantics
|
|
66
|
+
* (SloMultiMonitorMode), working per monitor (getMonitorEventsForId) rather
|
|
67
|
+
* than by feeding several monitors into UptimeUtil.getNonOverlappingMonitorEvents.
|
|
68
|
+
* That merge used to be a priority flatten that let a better-status event that
|
|
69
|
+
* merely ended later truncate a concurrent worse-status event (Monitor A
|
|
70
|
+
* Offline 10:00-11:00 + Monitor B Operational 10:30-12:00 lost 30 minutes of
|
|
71
|
+
* downtime). It now takes the worst status at every instant (WorstStatusTimeline,
|
|
72
|
+
* issue #6697), which is the AnyDown union - but the other modes (an average
|
|
73
|
+
* per monitor, all monitors down) are not a merged timeline at all, so the
|
|
74
|
+
* per-monitor approach stays.
|
|
73
75
|
*
|
|
74
76
|
* - Every comparison against a threshold uses UNROUNDED values. Round only at
|
|
75
77
|
* render time (roundForDisplay floors - fine for display, wrong for
|
|
@@ -115,7 +117,7 @@ export default class SloUtil {
|
|
|
115
117
|
* The correctness case this exists for: Monitor A Offline 10:00-11:00 while
|
|
116
118
|
* Monitor B is Operational 10:30-12:00 must yield 3600 seconds of downtime,
|
|
117
119
|
* NOT 1800 - which is what the cross-monitor priority flatten in
|
|
118
|
-
* UptimeUtil.getNonOverlappingMonitorEvents
|
|
120
|
+
* UptimeUtil.getNonOverlappingMonitorEvents used to produce.
|
|
119
121
|
*/
|
|
120
122
|
static getUnionDowntimeSeconds(perMonitor: Array<MonitorTimelineSet>, downtimeStatuses: Array<MonitorStatus>, window: UptimeWindow): number;
|
|
121
123
|
/**
|
|
@@ -132,6 +134,12 @@ export default class SloUtil {
|
|
|
132
134
|
* - MonitorSecondsAverage: the clamp happens PER MONITOR (each monitor's own
|
|
133
135
|
* first event), mirroring UptimeUtil.getTotalDowntimeInSeconds - otherwise
|
|
134
136
|
* adding a young monitor dilutes the SLI.
|
|
137
|
+
* - Time with monitoring off (MonitorStatusTimeline.isMonitoringOff, issue
|
|
138
|
+
* #6480) is in neither the numerator nor the denominator: nothing checked
|
|
139
|
+
* the monitor, so it neither spends the error budget nor counts as good.
|
|
140
|
+
* AnyDown leaves out the time NONE of the monitors was monitored;
|
|
141
|
+
* MonitorSecondsAverage each monitor's own (UptimeUtil.getNotMonitoredSeconds).
|
|
142
|
+
* A calendar window's budget is still the full month's.
|
|
135
143
|
*
|
|
136
144
|
* No data at all (no timeline rows for any monitor) => totalSeconds 0,
|
|
137
145
|
* sliPercentage 100 - callers decide what "no data" means (the evaluator marks
|
|
@@ -151,6 +159,7 @@ export default class SloUtil {
|
|
|
151
159
|
mode: SloMultiMonitorMode;
|
|
152
160
|
}): TimeSliResult;
|
|
153
161
|
private static computeAnyDownSli;
|
|
162
|
+
private static getOwnTimelines;
|
|
154
163
|
private static computeMonitorSecondsAverageSli;
|
|
155
164
|
/**
|
|
156
165
|
* Error budget from an SLI measurement.
|