@oneuptime/common 14.0.107 → 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/DataBiConnection.d.mts +4 -0
- package/Models/DatabaseModels/DataBiConnection.d.ts +4 -0
- package/Models/DatabaseModels/DataBiConnection.js +59 -2
- 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 +9 -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/RumProductAnalyticsSavedView.d.mts +20 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.d.ts +20 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.js +353 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.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/WhatsAppLog.d.mts +3 -0
- package/Models/DatabaseModels/WhatsAppLog.d.ts +3 -0
- package/Models/DatabaseModels/WhatsAppLog.js +62 -0
- package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.mts +20 -0
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.ts +20 -0
- package/Models/DatabaseModels/WorkspaceUserGroup.js +1 -1
- package/Server/Services/DatabaseService.d.mts +1 -0
- package/Server/Services/DatabaseService.d.ts +1 -0
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.mts +213 -0
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.ts +213 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.mts +4 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.ts +4 -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 +20 -1
- package/Types/AI/AIChatTypes.d.ts +20 -1
- package/Types/AI/AIChatTypes.js +46 -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/InvestigationNotStartedReason.d.mts +7 -0
- package/Types/AI/InvestigationNotStartedReason.d.ts +7 -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/CodeInSentence.d.mts +8 -0
- package/Types/CodeInSentence.d.ts +8 -0
- package/Types/CodeInSentence.js +875 -0
- package/Types/CodeInSentence.mjs +4 -0
- 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/Dashboard/DashboardComponentType.d.mts +2 -0
- package/Types/Dashboard/DashboardComponentType.d.ts +2 -0
- package/Types/Dashboard/DashboardComponentType.js +7 -0
- package/Types/Dashboard/DashboardComponents/ComponentArgument.d.mts +3 -1
- package/Types/Dashboard/DashboardComponents/ComponentArgument.d.ts +3 -1
- package/Types/Dashboard/DashboardComponents/ComponentArgument.js +3 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.d.mts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.d.ts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.js +2 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.mjs +1 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.d.mts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.d.ts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.js +2 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.mjs +1 -0
- package/Types/Dashboard/PublicDashboardServedSettings.js +15 -7
- package/Types/DataObservability/DataBiRefreshAlert.d.mts +44 -0
- package/Types/DataObservability/DataBiRefreshAlert.d.ts +44 -0
- package/Types/DataObservability/DataBiRefreshAlert.js +206 -0
- package/Types/DataObservability/DataBiRefreshAlert.mjs +12 -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 +8 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.ts +8 -0
- package/Types/DataObservability/DataObservabilityApiTypes.js +14 -0
- package/Types/DataObservability/DataTableLineage.d.mts +29 -1
- package/Types/DataObservability/DataTableLineage.d.ts +29 -1
- package/Types/DataObservability/DataTableLineage.js +27 -7
- package/Types/DataObservability/DataTableLineage.mjs +3 -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/HashedString.js +9 -2
- 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 +18 -0
- package/Types/Monitor/CriteriaFilterValues.d.ts +18 -0
- package/Types/Monitor/CriteriaFilterValues.js +346 -0
- package/Types/Monitor/CriteriaFilterValues.mjs +2 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.d.mts +13 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.d.ts +13 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.js +108 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.mjs +3 -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/IncomingEmailMonitor/IncomingEmailMonitorRequest.d.mts +1 -0
- package/Types/Monitor/IncomingEmailMonitor/IncomingEmailMonitorRequest.d.ts +1 -0
- package/Types/Monitor/MonitorCriteriaInstance.js +22 -2
- package/Types/Monitor/MonitorStep.js +28 -11
- package/Types/Monitor/MonitorStepMetricMonitor.js +6 -1
- package/Types/Monitor/MonitorStepRollingTime.d.mts +12 -0
- package/Types/Monitor/MonitorStepRollingTime.d.ts +12 -0
- package/Types/Monitor/MonitorStepRollingTime.js +117 -0
- package/Types/Monitor/MonitorStepRollingTime.mjs +2 -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/SeriesContext/SeriesLabelDisplay.js +11 -0
- package/Types/Monitor/ServerMonitor/ServerMonitorResponse.d.mts +1 -0
- package/Types/Monitor/ServerMonitor/ServerMonitorResponse.d.ts +1 -0
- package/Types/Monitor/TelemetryAlertRule.js +7 -2
- 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/NotificationRule/NotificationRepeat.d.mts +10 -0
- package/Types/NotificationRule/NotificationRepeat.d.ts +10 -0
- package/Types/NotificationRule/NotificationRepeat.js +51 -0
- package/Types/NotificationRule/NotificationRepeat.mjs +2 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +70 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +70 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +276 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +12 -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/OnCallEscalationWait.d.mts +9 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.d.ts +9 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.js +44 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.mjs +5 -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/Probe/ProbeMonitorResponse.d.mts +1 -0
- package/Types/Probe/ProbeMonitorResponse.d.ts +1 -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 +4 -0
- package/Types/ReadingDirection.d.ts +4 -0
- package/Types/ReadingDirection.js +303 -26
- package/Types/ReadingDirection.mjs +4 -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 +8 -0
- package/Types/RollingTime/RollingTimeUtil.d.ts +8 -0
- package/Types/RollingTime/RollingTimeUtil.js +249 -71
- package/Types/Rum/ProductAnalyticsSavedViews.d.mts +56 -0
- package/Types/Rum/ProductAnalyticsSavedViews.d.ts +56 -0
- package/Types/Rum/ProductAnalyticsSavedViews.js +219 -0
- package/Types/Rum/ProductAnalyticsSavedViews.mjs +14 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +116 -108
- 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/ServiceType.d.mts +1 -0
- package/Types/Telemetry/ServiceType.d.ts +1 -0
- package/Types/Telemetry/ServiceType.js +6 -0
- 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/Crypto.js +10 -3
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.d.mts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.d.ts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.js +67 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.mjs +2 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.d.mts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.d.ts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.js +68 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.mjs +2 -0
- package/Utils/Dashboard/DashboardWidgetIds.js +6 -1
- 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/Metrics/MetricQueryCloudAggregation.js +2 -4
- 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/MonitorRootCauseWording.js +28 -24
- 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/MonitorStepMetricQueries.js +2 -1
- package/Utils/Monitor/MonitorStepsValuesUtil.d.mts +13 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.d.ts +13 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.js +80 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.mjs +2 -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/SloProjection.d.mts +18 -0
- package/Utils/Slo/SloProjection.d.ts +18 -0
- package/Utils/Slo/SloProjection.js +53 -12
- package/Utils/Slo/SloProjection.mjs +2 -0
- 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 -10
- package/Utils/StatusPage/ResourceExplorer.d.ts +1 -10
- package/Utils/StatusPage/ResourceExplorer.js +11 -29
- 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
|
@@ -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) => {
|
|
@@ -168,6 +168,24 @@ export declare const isSliBelowTarget: IsSliBelowTargetFunction;
|
|
|
168
168
|
* because the tile colours the SLI red on the unrounded comparison and the
|
|
169
169
|
* words must not contradict the colour.
|
|
170
170
|
*/
|
|
171
|
+
export declare enum SliDeltaSide {
|
|
172
|
+
JustBelow = "JustBelow",
|
|
173
|
+
JustAbove = "JustAbove",
|
|
174
|
+
OnTarget = "OnTarget",
|
|
175
|
+
Above = "Above",
|
|
176
|
+
Below = "Below"
|
|
177
|
+
}
|
|
178
|
+
export interface SliDelta {
|
|
179
|
+
side: SliDeltaSide;
|
|
180
|
+
percentagePoints: number;
|
|
181
|
+
targetText: string;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* The parts getSliDeltaText words, for a caller that words them in another
|
|
185
|
+
* language. Null when either number is unknown.
|
|
186
|
+
*/
|
|
187
|
+
export type GetSliDeltaFunction = (data: SliVersusTargetData) => SliDelta | null;
|
|
188
|
+
export declare const getSliDelta: GetSliDeltaFunction;
|
|
171
189
|
export type GetSliDeltaTextFunction = (data: SliVersusTargetData) => string | null;
|
|
172
190
|
export declare const getSliDeltaText: GetSliDeltaTextFunction;
|
|
173
191
|
/**
|
|
@@ -168,6 +168,24 @@ export declare const isSliBelowTarget: IsSliBelowTargetFunction;
|
|
|
168
168
|
* because the tile colours the SLI red on the unrounded comparison and the
|
|
169
169
|
* words must not contradict the colour.
|
|
170
170
|
*/
|
|
171
|
+
export declare enum SliDeltaSide {
|
|
172
|
+
JustBelow = "JustBelow",
|
|
173
|
+
JustAbove = "JustAbove",
|
|
174
|
+
OnTarget = "OnTarget",
|
|
175
|
+
Above = "Above",
|
|
176
|
+
Below = "Below"
|
|
177
|
+
}
|
|
178
|
+
export interface SliDelta {
|
|
179
|
+
side: SliDeltaSide;
|
|
180
|
+
percentagePoints: number;
|
|
181
|
+
targetText: string;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* The parts getSliDeltaText words, for a caller that words them in another
|
|
185
|
+
* language. Null when either number is unknown.
|
|
186
|
+
*/
|
|
187
|
+
export type GetSliDeltaFunction = (data: SliVersusTargetData) => SliDelta | null;
|
|
188
|
+
export declare const getSliDelta: GetSliDeltaFunction;
|
|
171
189
|
export type GetSliDeltaTextFunction = (data: SliVersusTargetData) => string | null;
|
|
172
190
|
export declare const getSliDeltaText: GetSliDeltaTextFunction;
|
|
173
191
|
/**
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getSloChartBucketSeconds = exports.getSloIdealBurnPoints = exports.getSloComplianceWindowRange = exports.getSloAllowedDowntime = exports.isBurnRateAtOrAboveThreshold = exports.getLowestBurnRateThreshold = exports.getSliDeltaText = exports.isSliBelowTarget = exports.getSliDeltaPercentagePoints = exports.getSloBudgetBarGeometry = exports.getSloBudgetRunway = exports.SloProjectionTone = exports.SloBudgetRunwayKind = exports.getRollingWindowFill = exports.getRollingWindowFillFraction = void 0;
|
|
6
|
+
exports.getSloChartBucketSeconds = exports.getSloIdealBurnPoints = exports.getSloComplianceWindowRange = exports.getSloAllowedDowntime = exports.isBurnRateAtOrAboveThreshold = exports.getLowestBurnRateThreshold = exports.getSliDeltaText = exports.getSliDelta = exports.SliDeltaSide = exports.isSliBelowTarget = exports.getSliDeltaPercentagePoints = exports.getSloBudgetBarGeometry = exports.getSloBudgetRunway = exports.SloProjectionTone = exports.SloBudgetRunwayKind = exports.getRollingWindowFill = exports.getRollingWindowFillFraction = void 0;
|
|
7
7
|
const AggregationInterval_1 = __importDefault(require("../../Types/BaseDatabase/AggregationInterval"));
|
|
8
8
|
const SloMultiMonitorMode_1 = __importDefault(require("../../Types/ServiceLevelObjective/SloMultiMonitorMode"));
|
|
9
9
|
const SloWindowType_1 = __importDefault(require("../../Types/ServiceLevelObjective/SloWindowType"));
|
|
@@ -320,7 +320,27 @@ const isSliBelowTarget = (data) => {
|
|
|
320
320
|
return sli !== null && target !== null && sli < target;
|
|
321
321
|
};
|
|
322
322
|
exports.isSliBelowTarget = isSliBelowTarget;
|
|
323
|
-
|
|
323
|
+
/**
|
|
324
|
+
* "0.042 pp above the 99.9% target" — how far the SLI sits from its target,
|
|
325
|
+
* in percentage points, which is how the gap is discussed ("we are 4 basis
|
|
326
|
+
* points under"). Returns null when either number is unknown so the caller
|
|
327
|
+
* phrases "not evaluated" in its own context.
|
|
328
|
+
*
|
|
329
|
+
* A gap that rounds to zero still says which side it is on ("Just below"),
|
|
330
|
+
* because the tile colours the SLI red on the unrounded comparison and the
|
|
331
|
+
* words must not contradict the colour.
|
|
332
|
+
*/
|
|
333
|
+
var SliDeltaSide;
|
|
334
|
+
(function (SliDeltaSide) {
|
|
335
|
+
// Rounds to zero, SLI below the target.
|
|
336
|
+
SliDeltaSide["JustBelow"] = "JustBelow";
|
|
337
|
+
// Rounds to zero, SLI above the target.
|
|
338
|
+
SliDeltaSide["JustAbove"] = "JustAbove";
|
|
339
|
+
SliDeltaSide["OnTarget"] = "OnTarget";
|
|
340
|
+
SliDeltaSide["Above"] = "Above";
|
|
341
|
+
SliDeltaSide["Below"] = "Below";
|
|
342
|
+
})(SliDeltaSide || (exports.SliDeltaSide = SliDeltaSide = {}));
|
|
343
|
+
const getSliDelta = (data) => {
|
|
324
344
|
const delta = (0, exports.getSliDeltaPercentagePoints)(data);
|
|
325
345
|
if (delta === null) {
|
|
326
346
|
return null;
|
|
@@ -328,19 +348,40 @@ const getSliDeltaText = (data) => {
|
|
|
328
348
|
const sli = data.currentSliPercentage;
|
|
329
349
|
const target = data.targetPercentage;
|
|
330
350
|
const targetText = `${roundToDecimals(target, SLI_DELTA_DECIMALS)}%`;
|
|
351
|
+
let side = delta > 0 ? SliDeltaSide.Above : SliDeltaSide.Below;
|
|
331
352
|
if (delta === 0) {
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
353
|
+
side =
|
|
354
|
+
sli < target
|
|
355
|
+
? SliDeltaSide.JustBelow
|
|
356
|
+
: sli > target
|
|
357
|
+
? SliDeltaSide.JustAbove
|
|
358
|
+
: SliDeltaSide.OnTarget;
|
|
359
|
+
}
|
|
360
|
+
return {
|
|
361
|
+
side: side,
|
|
362
|
+
percentagePoints: Math.abs(delta),
|
|
363
|
+
targetText: targetText,
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
exports.getSliDelta = getSliDelta;
|
|
367
|
+
const getSliDeltaText = (data) => {
|
|
368
|
+
const delta = (0, exports.getSliDelta)(data);
|
|
369
|
+
if (delta === null) {
|
|
370
|
+
return null;
|
|
339
371
|
}
|
|
340
|
-
|
|
341
|
-
|
|
372
|
+
switch (delta.side) {
|
|
373
|
+
case SliDeltaSide.JustBelow:
|
|
374
|
+
return `Just below the ${delta.targetText} target`;
|
|
375
|
+
case SliDeltaSide.JustAbove:
|
|
376
|
+
return `Just above the ${delta.targetText} target`;
|
|
377
|
+
case SliDeltaSide.OnTarget:
|
|
378
|
+
return `Exactly on the ${delta.targetText} target`;
|
|
379
|
+
case SliDeltaSide.Above:
|
|
380
|
+
return `${delta.percentagePoints} pp above the ${delta.targetText} target`;
|
|
381
|
+
case SliDeltaSide.Below:
|
|
382
|
+
default:
|
|
383
|
+
return `${delta.percentagePoints} pp below the ${delta.targetText} target`;
|
|
342
384
|
}
|
|
343
|
-
return `${Math.abs(delta)} pp below the ${targetText} target`;
|
|
344
385
|
};
|
|
345
386
|
exports.getSliDeltaText = getSliDeltaText;
|
|
346
387
|
const getLowestBurnRateThreshold = (thresholds) => {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import commonJsModule from "./SloProjection.js";
|
|
2
|
+
export const SliDeltaSide = commonJsModule.SliDeltaSide;
|
|
2
3
|
export const SloBudgetRunwayKind = commonJsModule.SloBudgetRunwayKind;
|
|
3
4
|
export const SloProjectionTone = commonJsModule.SloProjectionTone;
|
|
4
5
|
export const getLowestBurnRateThreshold = commonJsModule.getLowestBurnRateThreshold;
|
|
5
6
|
export const getRollingWindowFill = commonJsModule.getRollingWindowFill;
|
|
6
7
|
export const getRollingWindowFillFraction = commonJsModule.getRollingWindowFillFraction;
|
|
8
|
+
export const getSliDelta = commonJsModule.getSliDelta;
|
|
7
9
|
export const getSliDeltaPercentagePoints = commonJsModule.getSliDeltaPercentagePoints;
|
|
8
10
|
export const getSliDeltaText = commonJsModule.getSliDeltaText;
|
|
9
11
|
export const getSloAllowedDowntime = commonJsModule.getSloAllowedDowntime;
|
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.
|
package/Utils/Slo/SloUtil.js
CHANGED
|
@@ -48,14 +48,16 @@ const SloEvaluation_1 = require("./SloEvaluation");
|
|
|
48
48
|
*
|
|
49
49
|
* Design notes (see SLO design doc paragraph 3.1 / 5):
|
|
50
50
|
*
|
|
51
|
-
* - Multi-monitor downtime
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
51
|
+
* - Multi-monitor downtime is combined here with explicit semantics
|
|
52
|
+
* (SloMultiMonitorMode), working per monitor (getMonitorEventsForId) rather
|
|
53
|
+
* than by feeding several monitors into UptimeUtil.getNonOverlappingMonitorEvents.
|
|
54
|
+
* That merge used to be a priority flatten that let a better-status event that
|
|
55
|
+
* merely ended later truncate a concurrent worse-status event (Monitor A
|
|
56
|
+
* Offline 10:00-11:00 + Monitor B Operational 10:30-12:00 lost 30 minutes of
|
|
57
|
+
* downtime). It now takes the worst status at every instant (WorstStatusTimeline,
|
|
58
|
+
* issue #6697), which is the AnyDown union - but the other modes (an average
|
|
59
|
+
* per monitor, all monitors down) are not a merged timeline at all, so the
|
|
60
|
+
* per-monitor approach stays.
|
|
59
61
|
*
|
|
60
62
|
* - Every comparison against a threshold uses UNROUNDED values. Round only at
|
|
61
63
|
* render time (roundForDisplay floors - fine for display, wrong for
|
|
@@ -153,7 +155,7 @@ class SloUtil {
|
|
|
153
155
|
* The correctness case this exists for: Monitor A Offline 10:00-11:00 while
|
|
154
156
|
* Monitor B is Operational 10:30-12:00 must yield 3600 seconds of downtime,
|
|
155
157
|
* NOT 1800 - which is what the cross-monitor priority flatten in
|
|
156
|
-
* UptimeUtil.getNonOverlappingMonitorEvents
|
|
158
|
+
* UptimeUtil.getNonOverlappingMonitorEvents used to produce.
|
|
157
159
|
*/
|
|
158
160
|
static getUnionDowntimeSeconds(perMonitor, downtimeStatuses, window) {
|
|
159
161
|
const allIntervals = [];
|
|
@@ -181,6 +183,12 @@ class SloUtil {
|
|
|
181
183
|
* - MonitorSecondsAverage: the clamp happens PER MONITOR (each monitor's own
|
|
182
184
|
* first event), mirroring UptimeUtil.getTotalDowntimeInSeconds - otherwise
|
|
183
185
|
* adding a young monitor dilutes the SLI.
|
|
186
|
+
* - Time with monitoring off (MonitorStatusTimeline.isMonitoringOff, issue
|
|
187
|
+
* #6480) is in neither the numerator nor the denominator: nothing checked
|
|
188
|
+
* the monitor, so it neither spends the error budget nor counts as good.
|
|
189
|
+
* AnyDown leaves out the time NONE of the monitors was monitored;
|
|
190
|
+
* MonitorSecondsAverage each monitor's own (UptimeUtil.getNotMonitoredSeconds).
|
|
191
|
+
* A calendar window's budget is still the full month's.
|
|
184
192
|
*
|
|
185
193
|
* No data at all (no timeline rows for any monitor) => totalSeconds 0,
|
|
186
194
|
* sliPercentage 100 - callers decide what "no data" means (the evaluator marks
|
|
@@ -235,7 +243,20 @@ class SloUtil {
|
|
|
235
243
|
const windowStartDate = earliestEventStart
|
|
236
244
|
? Date_1.default.getGreaterDate(window.startDate, earliestEventStart)
|
|
237
245
|
: window.startDate;
|
|
238
|
-
|
|
246
|
+
/*
|
|
247
|
+
* Time with monitoring off is left out (issue #6480): when none of the
|
|
248
|
+
* monitors was monitored - each had its monitoring turned off, or no row
|
|
249
|
+
* yet - nothing measured the service, so that time neither spends the
|
|
250
|
+
* error budget nor counts as good. Their rows hold no downtime for it
|
|
251
|
+
* (getMonitorEventsForId skips them), so without this it would count as
|
|
252
|
+
* good.
|
|
253
|
+
*/
|
|
254
|
+
const totalSeconds = Date_1.default.getSecondsBetweenDates(windowStartDate, windowEndDate) -
|
|
255
|
+
UptimeUtil_1.default.getNotMonitoredSeconds({
|
|
256
|
+
items: this.getOwnTimelines(perMonitorTimelines),
|
|
257
|
+
startDate: windowStartDate,
|
|
258
|
+
endDate: windowEndDate,
|
|
259
|
+
});
|
|
239
260
|
if (totalSeconds <= 0) {
|
|
240
261
|
return {
|
|
241
262
|
badSeconds: 0,
|
|
@@ -250,6 +271,22 @@ class SloUtil {
|
|
|
250
271
|
sliPercentage: ((totalSeconds - badSeconds) / totalSeconds) * 100,
|
|
251
272
|
};
|
|
252
273
|
}
|
|
274
|
+
/*
|
|
275
|
+
* Every monitor's own rows, in one list: a row of another monitor that
|
|
276
|
+
* came in a monitor's set is left out, as getMonitorEventsForId leaves it.
|
|
277
|
+
*/
|
|
278
|
+
static getOwnTimelines(perMonitorTimelines) {
|
|
279
|
+
var _a;
|
|
280
|
+
const timelines = [];
|
|
281
|
+
for (const monitor of perMonitorTimelines) {
|
|
282
|
+
for (const timeline of monitor.timelines) {
|
|
283
|
+
if (((_a = timeline.monitorId) === null || _a === void 0 ? void 0 : _a.toString()) === monitor.monitorId.toString()) {
|
|
284
|
+
timelines.push(timeline);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
return timelines;
|
|
289
|
+
}
|
|
253
290
|
static computeMonitorSecondsAverageSli(data) {
|
|
254
291
|
const { perMonitorTimelines, downtimeStatuses, window } = data;
|
|
255
292
|
let badSeconds = 0;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import AggregationInterval from "../../Types/BaseDatabase/AggregationInterval.mjs";
|
|
2
2
|
import { SloWidgetMetric } from "../../Types/Dashboard/DashboardComponents/DashboardSloComponent.mjs";
|
|
3
3
|
import SloStatus from "../../Types/ServiceLevelObjective/SloStatus.mjs";
|
|
4
|
+
import { Translator } from "../../Types/Translator.mjs";
|
|
4
5
|
/**
|
|
5
6
|
* Pure value/label derivation for the dashboard SLO widget.
|
|
6
7
|
*
|
|
@@ -12,9 +13,21 @@ import SloStatus from "../../Types/ServiceLevelObjective/SloStatus.mjs";
|
|
|
12
13
|
* The worker-maintained state columns on ServiceLevelObjective are NULL
|
|
13
14
|
* until the SLO is first evaluated, so every entry point must be able to
|
|
14
15
|
* answer "not evaluated yet" instead of rendering "null%" or "NaN%".
|
|
16
|
+
*
|
|
17
|
+
* Each helper takes the reader's Translator as an optional last argument
|
|
18
|
+
* (the Dashboard passes useTranslator()). With one, a figure is written the
|
|
19
|
+
* way the reader's language writes it - "99,874 %" in German, "۹۹٫۸۷۴٪" in
|
|
20
|
+
* Persian, Latin digits in Arabic (DateLanguage's LATIN_DIGIT_LANGUAGES) -
|
|
21
|
+
* and the words are the reader's: each is a key of the Dashboard's locales,
|
|
22
|
+
* read from this file by the extractor (SOURCE_ROOTS in
|
|
23
|
+
* scripts/i18n/ExtractStrings.ts), which reads only what the file marks.
|
|
24
|
+
* Without one, and for an English reader, every text reads exactly as it
|
|
25
|
+
* always did: what the API, Terraform, the server and a unit test get.
|
|
15
26
|
*/
|
|
16
27
|
/** Shown in place of a number whenever the SLO has no evaluated state. */
|
|
17
28
|
export declare const SLO_NOT_EVALUATED_TEXT: string;
|
|
29
|
+
/** "target 99.9%": the line under an SLI, on the widget and the SLO list. */
|
|
30
|
+
export declare const SLO_TARGET_SUBLINE_TEMPLATE: string;
|
|
18
31
|
/**
|
|
19
32
|
* The subset of ServiceLevelObjective the widget reads. Declared
|
|
20
33
|
* structurally (rather than importing the database model) so this helper
|
|
@@ -39,18 +52,34 @@ export interface SloWidgetTileDisplay {
|
|
|
39
52
|
/** Secondary line under the number, or null when there is nothing to add. */
|
|
40
53
|
subline: string | null;
|
|
41
54
|
}
|
|
42
|
-
|
|
55
|
+
/**
|
|
56
|
+
* SLI is quoted to three decimals to match the SLO pages — the digits past
|
|
57
|
+
* the second matter at 99.99x targets. Error budget remaining is a coarse
|
|
58
|
+
* gauge, so one decimal is enough; the precise number lives in the
|
|
59
|
+
* seconds subline.
|
|
60
|
+
*/
|
|
61
|
+
export declare const SLI_DECIMALS: number;
|
|
62
|
+
export declare const BUDGET_PERCENT_DECIMALS: number;
|
|
63
|
+
export declare const BURN_RATE_DECIMALS: number;
|
|
64
|
+
/**
|
|
65
|
+
* A figure with no unit of its own - a gap in percentage points, a rule's
|
|
66
|
+
* threshold in a sentence that writes its "×" - rounded to at most
|
|
67
|
+
* `maxDecimals` places and written the reader's way.
|
|
68
|
+
*/
|
|
69
|
+
export type FormatSloNumberFunction = (value: number | undefined | null, maxDecimals: number, translator?: Translator | undefined) => string | null;
|
|
70
|
+
export declare const formatSloNumber: FormatSloNumberFunction;
|
|
71
|
+
export type FormatSloPercentFunction = (value: number | undefined | null, maxDecimals?: number | undefined, translator?: Translator | undefined) => string | null;
|
|
43
72
|
export declare const formatSloPercent: FormatSloPercentFunction;
|
|
44
|
-
export type FormatSloBurnRateFunction = (value: number | undefined | null) => string | null;
|
|
73
|
+
export type FormatSloBurnRateFunction = (value: number | undefined | null, translator?: Translator | undefined) => string | null;
|
|
45
74
|
export declare const formatSloBurnRate: FormatSloBurnRateFunction;
|
|
46
75
|
/**
|
|
47
76
|
* `errorBudgetRemainingSeconds` is SIGNED: negative means the budget is
|
|
48
77
|
* overspent. Render the overage plainly ("−42 min over budget") rather
|
|
49
78
|
* than clamping it to zero, which would hide a breach.
|
|
50
79
|
*/
|
|
51
|
-
export type FormatErrorBudgetRemainingSecondsFunction = (seconds: number | undefined | null) => string | null;
|
|
80
|
+
export type FormatErrorBudgetRemainingSecondsFunction = (seconds: number | undefined | null, translator?: Translator | undefined) => string | null;
|
|
52
81
|
export declare const formatErrorBudgetRemainingSeconds: FormatErrorBudgetRemainingSecondsFunction;
|
|
53
|
-
export type GetSloMetricLabelFunction = (sloMetric: SloWidgetMetric | undefined | null) => string;
|
|
82
|
+
export type GetSloMetricLabelFunction = (sloMetric: SloWidgetMetric | undefined | null, translator?: Translator | undefined) => string;
|
|
54
83
|
export declare const getSloMetricLabel: GetSloMetricLabelFunction;
|
|
55
84
|
/**
|
|
56
85
|
* ClickHouse `SloHistory.metricName` value for each widget metric — the
|
|
@@ -58,18 +87,46 @@ export declare const getSloMetricLabel: GetSloMetricLabelFunction;
|
|
|
58
87
|
*/
|
|
59
88
|
export type GetSloHistoryMetricNameFunction = (sloMetric: SloWidgetMetric | undefined | null) => string;
|
|
60
89
|
export declare const getSloHistoryMetricName: GetSloHistoryMetricNameFunction;
|
|
90
|
+
/** What the widget's header is made of (getSloWidgetTitle). */
|
|
91
|
+
export interface SloWidgetTitleData {
|
|
92
|
+
widgetTitle?: string | undefined | null;
|
|
93
|
+
sloName?: string | undefined | null;
|
|
94
|
+
sloMetric?: SloWidgetMetric | undefined | null;
|
|
95
|
+
followsSelection?: boolean | undefined;
|
|
96
|
+
translator?: Translator | undefined;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* A header that holds the SLO's name, in pieces: the sentence around the
|
|
100
|
+
* name - its English template, a key of the locales - and the name, as
|
|
101
|
+
* written.
|
|
102
|
+
*
|
|
103
|
+
* Drawn as one line, the sentence reads the reader's way, so on an Arabic
|
|
104
|
+
* dashboard an English name in it lost its START where the tile cut the
|
|
105
|
+
* line ("...T AVAILABILITY (EU WEST, 30 DAYS)"), and took the metric after
|
|
106
|
+
* it out of sight. The widget draws a name that reads the other way in a
|
|
107
|
+
* box of its own (TranslatedSentence), cut at its own end.
|
|
108
|
+
*/
|
|
109
|
+
export interface SloWidgetTitleSentence {
|
|
110
|
+
template: string;
|
|
111
|
+
name: string;
|
|
112
|
+
values: Record<string, string>;
|
|
113
|
+
}
|
|
114
|
+
export type GetSloWidgetTitleSentenceFunction = (data: SloWidgetTitleData) => SloWidgetTitleSentence | null;
|
|
115
|
+
export declare const getSloWidgetTitleSentence: GetSloWidgetTitleSentenceFunction;
|
|
61
116
|
/**
|
|
62
117
|
* Widget header: the author's title wins; otherwise fall back to the SLO
|
|
63
118
|
* name plus the metric label so an unnamed widget still says what it is.
|
|
64
119
|
* A whitespace-only title counts as empty.
|
|
65
120
|
*/
|
|
66
|
-
export type GetSloWidgetTitleFunction = (data:
|
|
67
|
-
widgetTitle?: string | undefined | null;
|
|
68
|
-
sloName?: string | undefined | null;
|
|
69
|
-
sloMetric?: SloWidgetMetric | undefined | null;
|
|
70
|
-
followsSelection?: boolean | undefined;
|
|
71
|
-
}) => string;
|
|
121
|
+
export type GetSloWidgetTitleFunction = (data: SloWidgetTitleData) => string;
|
|
72
122
|
export declare const getSloWidgetTitle: GetSloWidgetTitleFunction;
|
|
123
|
+
/**
|
|
124
|
+
* "target 99.9%" under an SLI, or null when the SLO has no target - in the
|
|
125
|
+
* reader's words and with the figure written their way when a translator
|
|
126
|
+
* is passed.
|
|
127
|
+
*/
|
|
128
|
+
export type FormatSloTargetSublineFunction = (targetPercentage: number | undefined | null, translator?: Translator | undefined) => string | null;
|
|
129
|
+
export declare const formatSloTargetSubline: FormatSloTargetSublineFunction;
|
|
73
130
|
/**
|
|
74
131
|
* Everything the tile renders for one metric. Returns the explicit
|
|
75
132
|
* not-evaluated state whenever the metric's own state column is missing,
|
|
@@ -78,6 +135,7 @@ export declare const getSloWidgetTitle: GetSloWidgetTitleFunction;
|
|
|
78
135
|
export type GetSloWidgetTileDisplayFunction = (data: {
|
|
79
136
|
sloMetric?: SloWidgetMetric | undefined | null;
|
|
80
137
|
slo?: SloWidgetStateData | undefined | null;
|
|
138
|
+
translator?: Translator | undefined;
|
|
81
139
|
}) => SloWidgetTileDisplay;
|
|
82
140
|
export declare const getSloWidgetTileDisplay: GetSloWidgetTileDisplayFunction;
|
|
83
141
|
/**
|
|
@@ -99,5 +157,5 @@ export declare const getSloChartAggregationInterval: GetSloChartAggregationInter
|
|
|
99
157
|
* ambiguous across the three metrics (a "3" could be 3% or 3× budget
|
|
100
158
|
* burn), so each metric carries its own unit.
|
|
101
159
|
*/
|
|
102
|
-
export type FormatSloChartValueFunction = (sloMetric: SloWidgetMetric | undefined | null, value: number) => string;
|
|
160
|
+
export type FormatSloChartValueFunction = (sloMetric: SloWidgetMetric | undefined | null, value: number, translator?: Translator | undefined) => string;
|
|
103
161
|
export declare const formatSloChartValue: FormatSloChartValueFunction;
|