@oneuptime/common 14.0.108 → 14.0.110
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/AnalyticsModels/SecurityEvent.js +1 -1
- package/Models/DatabaseModels/AIInsight.js +2 -2
- package/Models/DatabaseModels/Alert.js +2 -2
- package/Models/DatabaseModels/AlertEpisode.js +2 -2
- package/Models/DatabaseModels/AlertEpisodeOnCallRule.js +3 -3
- package/Models/DatabaseModels/AlertGroupingRule.d.mts +1 -0
- package/Models/DatabaseModels/AlertGroupingRule.d.ts +1 -0
- package/Models/DatabaseModels/AlertGroupingRule.js +48 -2
- package/Models/DatabaseModels/AlertOnCallRule.js +3 -3
- package/Models/DatabaseModels/AlertSeverity.js +13 -4
- package/Models/DatabaseModels/AlertState.js +1 -1
- package/Models/DatabaseModels/CallLog.js +12 -12
- 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/DatabaseBaseModel/DatabaseBaseModel.d.mts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.ts +2 -0
- package/Models/DatabaseModels/EmailLog.js +12 -12
- package/Models/DatabaseModels/FormSubmission.js +2 -2
- package/Models/DatabaseModels/GlobalConfig.d.mts +6 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +6 -0
- package/Models/DatabaseModels/GlobalConfig.js +139 -0
- package/Models/DatabaseModels/Incident.js +2 -2
- package/Models/DatabaseModels/IncidentEpisode.js +2 -2
- package/Models/DatabaseModels/IncidentEpisodeOnCallRule.js +3 -3
- package/Models/DatabaseModels/IncidentGroupingRule.d.mts +1 -0
- package/Models/DatabaseModels/IncidentGroupingRule.d.ts +1 -0
- package/Models/DatabaseModels/IncidentGroupingRule.js +48 -2
- package/Models/DatabaseModels/IncidentOnCallRule.js +3 -3
- package/Models/DatabaseModels/IncidentSeverity.js +13 -4
- package/Models/DatabaseModels/IncidentState.js +1 -1
- package/Models/DatabaseModels/IncidentTemplate.js +2 -2
- package/Models/DatabaseModels/Index.js +7 -0
- package/Models/DatabaseModels/Monitor.js +17 -3
- 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/NetworkDevice.d.mts +1 -0
- package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
- package/Models/DatabaseModels/NetworkDevice.js +41 -0
- package/Models/DatabaseModels/OnCallDutyPolicy.js +4 -2
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRule.js +1 -1
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleSchedule.js +8 -5
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleTeam.js +5 -2
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleUser.js +5 -2
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +4 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +4 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +141 -8
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +10 -7
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.js +14 -11
- package/Models/DatabaseModels/OnCallDutyPolicyOwnerTeam.js +7 -4
- package/Models/DatabaseModels/OnCallDutyPolicyOwnerUser.js +7 -4
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.js +6 -3
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleCalendarFeed.js +4 -4
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayer.js +3 -3
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayerUser.js +6 -6
- package/Models/DatabaseModels/OnCallDutyPolicyTimeLog.js +9 -6
- 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 +8 -0
- package/Models/DatabaseModels/Project.d.ts +8 -0
- package/Models/DatabaseModels/Project.js +333 -2
- 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/ProxmoxCluster.d.mts +1 -0
- package/Models/DatabaseModels/ProxmoxCluster.d.ts +1 -0
- package/Models/DatabaseModels/ProxmoxCluster.js +52 -3
- package/Models/DatabaseModels/PushNotificationLog.js +12 -12
- package/Models/DatabaseModels/Reseller.js +8 -2
- package/Models/DatabaseModels/ResellerPlan.js +8 -2
- package/Models/DatabaseModels/RumSessionPin.js +16 -2
- package/Models/DatabaseModels/RumSessionReplayView.js +8 -1
- package/Models/DatabaseModels/ScheduledMaintenance.js +6 -3
- package/Models/DatabaseModels/ScheduledMaintenanceInternalNote.js +7 -4
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +2 -2
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +7 -4
- package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +1 -1
- package/Models/DatabaseModels/SecurityCase.js +8 -1
- package/Models/DatabaseModels/Service.js +1 -1
- package/Models/DatabaseModels/ServiceLevelObjectiveBurnRateRule.js +4 -4
- package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.js +4 -4
- package/Models/DatabaseModels/SmsLog.js +12 -12
- package/Models/DatabaseModels/StatusPage.js +5 -5
- package/Models/DatabaseModels/StatusPageSubscriber.js +2 -2
- package/Models/DatabaseModels/TelegramLog.js +12 -12
- package/Models/DatabaseModels/TelemetryIngestionKey.js +8 -5
- package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.js +7 -4
- package/Models/DatabaseModels/User.d.mts +6 -0
- package/Models/DatabaseModels/User.d.ts +6 -0
- package/Models/DatabaseModels/User.js +152 -0
- package/Models/DatabaseModels/UserOnCallLog.js +38 -10
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +13 -3
- package/Models/DatabaseModels/UserOnCallShiftReminderLog.js +2 -2
- package/Models/DatabaseModels/WebhookLog.js +12 -12
- package/Models/DatabaseModels/WhatsAppLog.js +12 -12
- package/Models/DatabaseModels/WorkspaceNotificationLog.js +12 -12
- 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 +21 -2
- package/Types/AI/AIChatTypes.d.ts +21 -2
- package/Types/AI/AIChatTypes.js +49 -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 +66 -0
- package/Types/Analytics/ProductEvent.d.ts +66 -0
- package/Types/Analytics/ProductEvent.js +471 -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 +3 -1
- package/Types/AuditLog/AuditLogCoverage.d.ts +3 -1
- package/Types/AuditLog/AuditLogCoverage.js +12 -3
- 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/Cloud/CloudResourceCatalog.d.mts +2 -0
- package/Types/Cloud/CloudResourceCatalog.d.ts +2 -0
- package/Types/Cloud/CloudResourceCatalog.js +33 -3
- package/Types/Cloud/CloudResourceCatalog.mjs +1 -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/DataObservability/DataCheckSuggestions.d.mts +25 -0
- package/Types/DataObservability/DataCheckSuggestions.d.ts +25 -0
- package/Types/DataObservability/DataCheckSuggestions.js +102 -65
- package/Types/DataObservability/DataCheckSuggestions.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/Database/TableMetadata.d.mts +2 -0
- package/Types/Database/TableMetadata.d.ts +2 -0
- package/Types/Database/TableMetadata.js +6 -0
- package/Types/Date.d.mts +42 -1
- package/Types/Date.d.ts +42 -1
- package/Types/Date.js +114 -5
- package/Types/DateLanguage.d.mts +9 -0
- package/Types/DateLanguage.d.ts +9 -0
- package/Types/DateLanguage.js +87 -2
- package/Types/DateLanguage.mjs +3 -0
- package/Types/DirectionArrow.d.mts +7 -0
- package/Types/DirectionArrow.d.ts +7 -0
- package/Types/DirectionArrow.js +88 -0
- package/Types/DirectionArrow.mjs +7 -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 +83 -0
- package/Types/Docs/GlossaryTerm.d.ts +83 -0
- package/Types/Docs/GlossaryTerm.js +128 -0
- package/Types/Docs/GlossaryTerm.mjs +5 -0
- package/Types/Docs/RetiredNames.d.mts +11 -0
- package/Types/Docs/RetiredNames.d.ts +11 -0
- package/Types/Docs/RetiredNames.js +139 -0
- package/Types/Docs/RetiredNames.mjs +3 -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/RefusalWithValues.d.mts +7 -0
- package/Types/Exception/RefusalWithValues.d.ts +7 -0
- package/Types/Exception/RefusalWithValues.js +76 -0
- package/Types/Exception/RefusalWithValues.mjs +3 -0
- package/Types/Exception/UnexplainedError.d.mts +58 -0
- package/Types/Exception/UnexplainedError.d.ts +58 -0
- package/Types/Exception/UnexplainedError.js +231 -0
- package/Types/Exception/UnexplainedError.mjs +12 -0
- package/Types/File/FileSize.d.mts +4 -1
- package/Types/File/FileSize.d.ts +4 -1
- package/Types/File/FileSize.js +18 -17
- package/Types/HostCollector/HostCollector.d.mts +1 -0
- package/Types/HostCollector/HostCollector.d.ts +1 -0
- package/Types/HostCollector/HostCollector.js +26 -10
- package/Types/HostCollector/HostCollector.mjs +1 -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/MonitorCriteria.js +2 -2
- package/Types/Monitor/MonitorStep.js +1 -1
- package/Types/Monitor/MonitorTemplateSyncField.d.mts +6 -0
- package/Types/Monitor/MonitorTemplateSyncField.d.ts +6 -0
- package/Types/Monitor/MonitorTemplateSyncField.js +106 -64
- package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.mts +1 -0
- package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.ts +1 -0
- package/Types/Monitor/NtpMonitor/NtpMonitorUtil.js +11 -3
- 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 +167 -0
- package/Types/Monitor/WhoIsTold.d.ts +167 -0
- package/Types/Monitor/WhoIsTold.js +583 -0
- package/Types/Monitor/WhoIsTold.mjs +17 -0
- package/Types/NotificationRule/PagingLadder.d.mts +137 -0
- package/Types/NotificationRule/PagingLadder.d.ts +137 -0
- package/Types/NotificationRule/PagingLadder.js +682 -0
- package/Types/NotificationRule/PagingLadder.mjs +28 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.js +1 -1
- 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/OnCallPageLine.d.mts +26 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.d.ts +26 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.js +136 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.mjs +18 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +284 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +284 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.js +665 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +53 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.d.mts +19 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.d.ts +19 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.js +222 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.mjs +6 -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/OnCallDutyPolicy/ScheduleLayerDefaults.js +5 -2
- package/Types/OnCallDutyPolicy/UserOverrideCoverRequest.js +9 -1
- package/Types/Permission.d.mts +2 -2
- package/Types/Permission.d.ts +2 -2
- package/Types/Permission.js +194 -193
- 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/ProductCatalog.d.mts +10 -0
- package/Types/Product/ProductCatalog.d.ts +10 -0
- package/Types/Product/ProductCatalog.js +208 -0
- package/Types/Product/ProductCatalog.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/ProductOfTable.d.mts +3 -0
- package/Types/Product/ProductOfTable.d.ts +3 -0
- package/Types/Product/ProductOfTable.js +68 -0
- package/Types/Product/ProductOfTable.mjs +3 -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 +23 -0
- package/Types/Product/ProjectProductsAnswer.d.ts +23 -0
- package/Types/Product/ProjectProductsAnswer.js +172 -0
- package/Types/Product/ProjectProductsAnswer.mjs +8 -0
- package/Types/Product/ServerProducts.d.mts +65 -0
- package/Types/Product/ServerProducts.d.ts +65 -0
- package/Types/Product/ServerProducts.js +383 -0
- package/Types/Product/ServerProducts.mjs +26 -0
- package/Types/Product/ServerProductsAnswer.d.mts +21 -0
- package/Types/Product/ServerProductsAnswer.d.ts +21 -0
- package/Types/Product/ServerProductsAnswer.js +78 -0
- package/Types/Product/ServerProductsAnswer.mjs +5 -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 +142 -0
- package/Types/ProductFeedback/ProductFeedback.d.ts +142 -0
- package/Types/ProductFeedback/ProductFeedback.js +525 -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/Rum/SessionReplayCustomEvents.d.mts +1 -0
- package/Types/Rum/SessionReplayCustomEvents.d.ts +1 -0
- package/Types/SampleProject/SampleProject.d.mts +54 -0
- package/Types/SampleProject/SampleProject.d.ts +54 -0
- package/Types/SampleProject/SampleProject.js +177 -0
- package/Types/SampleProject/SampleProject.mjs +22 -0
- package/Types/SampleProject/SampleProjectContent.d.mts +127 -0
- package/Types/SampleProject/SampleProjectContent.d.ts +127 -0
- package/Types/SampleProject/SampleProjectContent.js +397 -0
- package/Types/SampleProject/SampleProjectContent.mjs +18 -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/TelemetryIngestSurface.js +6 -5
- 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.d.mts +1 -0
- package/Types/Translator.d.ts +1 -0
- package/Types/Translator.js +104 -33
- package/Types/Translator.mjs +1 -0
- package/Types/UsedBy/UsedBy.d.mts +103 -0
- package/Types/UsedBy/UsedBy.d.ts +103 -0
- package/Types/UsedBy/UsedBy.js +389 -0
- package/Types/UsedBy/UsedBy.mjs +20 -0
- package/Types/UsedBy/UsedByServerProducts.d.mts +4 -0
- package/Types/UsedBy/UsedByServerProducts.d.ts +4 -0
- package/Types/UsedBy/UsedByServerProducts.js +48 -0
- package/Types/UsedBy/UsedByServerProducts.mjs +3 -0
- 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 +82 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +82 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.js +396 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +23 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +25 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +25 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +139 -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/Workflow/PassedOnFields.js +2 -1
- package/Types/Workflow/Templates.js +1 -1
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +2 -0
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +2 -0
- 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/AI/MeaningMatch.d.mts +36 -0
- package/Utils/AI/MeaningMatch.d.ts +36 -0
- package/Utils/AI/MeaningMatch.js +535 -0
- package/Utils/AI/MeaningMatch.mjs +7 -0
- package/Utils/API.js +10 -0
- package/Utils/ArchivableValues.js +1 -1
- package/Utils/AuditLog/AuditLogValues.js +2 -2
- package/Utils/Dashboard/ClockWidgetFormat.d.mts +14 -2
- package/Utils/Dashboard/ClockWidgetFormat.d.ts +14 -2
- package/Utils/Dashboard/ClockWidgetFormat.js +105 -2
- package/Utils/Dashboard/DashboardViewConfigSignature.d.mts +3 -0
- package/Utils/Dashboard/DashboardViewConfigSignature.d.ts +3 -0
- package/Utils/Dashboard/DashboardViewConfigSignature.js +45 -0
- package/Utils/Dashboard/DashboardViewConfigSignature.mjs +3 -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/DataSecurity/TextScanner.js +2 -2
- package/Utils/DeveloperDocs/AiAssistantExamples.js +4 -4
- package/Utils/DeveloperDocs/CliCommands.d.mts +1 -0
- package/Utils/DeveloperDocs/CliCommands.d.ts +1 -0
- package/Utils/DeveloperDocs/CliCommands.js +2 -1
- package/Utils/DeveloperDocs/CliResources.js +2 -1
- package/Utils/DeveloperDocs/TerraformSchema.js +3 -1
- 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 +20 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +20 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +1901 -0
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +5 -0
- package/Utils/Markdown/MarkdownTableCell.js +2 -1
- package/Utils/Markdown/OverLongText.js +523 -5
- package/Utils/Markdown/SlowMarkdown.d.mts +14 -0
- package/Utils/Markdown/SlowMarkdown.d.ts +14 -0
- package/Utils/Markdown/SlowMarkdown.js +595 -11
- package/Utils/Markdown/SlowMarkdown.mjs +6 -0
- package/Utils/ModelApiName.d.mts +11 -0
- package/Utils/ModelApiName.d.ts +11 -0
- package/Utils/ModelApiName.js +72 -0
- package/Utils/ModelApiName.mjs +5 -0
- package/Utils/Monitor/DeviceMacLearningUtil.d.mts +2 -1
- package/Utils/Monitor/DeviceMacLearningUtil.d.ts +2 -1
- package/Utils/Monitor/DeviceMacLearningUtil.js +26 -0
- package/Utils/Monitor/EndpointAttachmentUtil.js +8 -3
- package/Utils/Monitor/ExternalStatusPageReading.d.mts +12 -0
- package/Utils/Monitor/ExternalStatusPageReading.d.ts +12 -0
- package/Utils/Monitor/ExternalStatusPageReading.js +111 -8
- package/Utils/Monitor/ExternalStatusPageReading.mjs +5 -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/MonitorTemplateLinkRefusal.d.mts +9 -0
- package/Utils/Monitor/MonitorTemplateLinkRefusal.d.ts +9 -0
- package/Utils/Monitor/MonitorTemplateLinkRefusal.js +45 -0
- package/Utils/Monitor/MonitorTemplateLinkRefusal.mjs +6 -0
- 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/OpenStack/OpenStackCheckName.js +2 -1
- package/Utils/OpenStack/OpenStackLogScrub.js +1 -1
- package/Utils/OpenStack/OpenStackLogs.js +3 -2
- package/Utils/OpenStack/OpenStackTraces.js +2 -1
- package/Utils/Project/NotificationChannels.js +5 -5
- package/Utils/Project/ProjectBalance.js +2 -2
- package/Utils/Project/TwilioAccount.js +2 -2
- package/Utils/ScheduledMaintenanceStart.d.mts +3 -0
- package/Utils/ScheduledMaintenanceStart.d.ts +3 -0
- package/Utils/ScheduledMaintenanceStart.js +9 -0
- package/Utils/Schema/ModelSchema.js +10 -1
- 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 +51 -1
- 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/ValueFormatter.d.mts +8 -6
- package/Utils/ValueFormatter.d.ts +8 -6
- package/Utils/ValueFormatter.js +145 -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
|
@@ -56,7 +56,7 @@ exports.PROJECT_NOTIFICATION_CHANNEL_UPDATE_PERMISSIONS = [
|
|
|
56
56
|
Permission_1.default.ManageProjectBilling,
|
|
57
57
|
];
|
|
58
58
|
// The page that holds the switches (its Notification Channels card).
|
|
59
|
-
exports.PROJECT_NOTIFICATION_CHANNEL_SETTINGS_PAGE = "Project Settings > Notifications > Notification
|
|
59
|
+
exports.PROJECT_NOTIFICATION_CHANNEL_SETTINGS_PAGE = "Project Settings > Notifications > Notification Channels";
|
|
60
60
|
// Where that page is in the dashboard, under a project's own route.
|
|
61
61
|
exports.PROJECT_NOTIFICATION_CHANNEL_SETTINGS_PATH = "settings/notification-settings";
|
|
62
62
|
/*
|
|
@@ -81,7 +81,7 @@ const CHANNEL_WORDS = {
|
|
|
81
81
|
* Who can turn it on, and where, as the end of a sentence about a channel
|
|
82
82
|
* that is off ("it") or several ("them"): "a project owner, a Billing Admin
|
|
83
83
|
* or someone with Manage Billing can turn it on in Project Settings >
|
|
84
|
-
* Notifications > Notification
|
|
84
|
+
* Notifications > Notification Channels".
|
|
85
85
|
*/
|
|
86
86
|
const getWhoCanTurnOnClause = (pronoun) => {
|
|
87
87
|
return `${exports.WHO_MAY_TURN_THEM_ON} can turn ${pronoun} on in ${exports.PROJECT_NOTIFICATION_CHANNEL_SETTINGS_PAGE}`;
|
|
@@ -90,7 +90,7 @@ exports.getWhoCanTurnOnClause = getWhoCanTurnOnClause;
|
|
|
90
90
|
/*
|
|
91
91
|
* The same, as the sentence after one that says a channel is off: "A
|
|
92
92
|
* project owner, a Billing Admin or someone with Manage Billing can turn it
|
|
93
|
-
* on in Project Settings > Notifications > Notification
|
|
93
|
+
* on in Project Settings > Notifications > Notification Channels."
|
|
94
94
|
*/
|
|
95
95
|
const getWhoCanTurnOnSentence = (pronoun) => {
|
|
96
96
|
const clause = (0, exports.getWhoCanTurnOnClause)(pronoun);
|
|
@@ -104,7 +104,7 @@ const getPronoun = (channel) => {
|
|
|
104
104
|
* What the server says when something needs a channel the project has off:
|
|
105
105
|
* "SMS is off in this project. A project owner, a Billing Admin or someone
|
|
106
106
|
* with Manage Billing can turn it on in Project Settings > Notifications >
|
|
107
|
-
* Notification
|
|
107
|
+
* Notification Channels." Said to whoever asked - someone who may turn it on, or not -
|
|
108
108
|
* so it names who can rather than telling the reader to.
|
|
109
109
|
*/
|
|
110
110
|
const getProjectNotificationChannelOffMessage = (channel) => {
|
|
@@ -127,7 +127,7 @@ exports.STATUS_PAGE_SMS_SUBSCRIPTIONS_SMS_OFF_MESSAGE = `Visitors can't subscrib
|
|
|
127
127
|
* channel is off. They may turn it on, so it tells them to, and where (the
|
|
128
128
|
* email adds the link to that page): "SMS is off in this project. If it
|
|
129
129
|
* should be on, turn it on in Project Settings > Notifications > Notification
|
|
130
|
-
*
|
|
130
|
+
* Channels."
|
|
131
131
|
*/
|
|
132
132
|
const getProjectNotificationChannelOffOwnerSentence = (channel) => {
|
|
133
133
|
const words = CHANNEL_WORDS[channel];
|
|
@@ -73,7 +73,7 @@ const capitalize = (text) => {
|
|
|
73
73
|
* Who can add to a balance, and where, as the sentence after one that says
|
|
74
74
|
* it is too low - for whoever reads it, who may or may not be one of them:
|
|
75
75
|
* "A project owner or someone with Manage Billing can add balance in Project
|
|
76
|
-
* Settings > Notification
|
|
76
|
+
* Settings > Notification Channels."
|
|
77
77
|
*
|
|
78
78
|
* It does not offer Auto Recharge as the way out: most readers cannot turn
|
|
79
79
|
* it on, and where it is already on, it is what could not add more (its
|
|
@@ -118,7 +118,7 @@ const ONE_MESSAGE_WORDS = {
|
|
|
118
118
|
* verification code again, is refused because the project's balance is too
|
|
119
119
|
* low to pay for the code: "This project's balance is too low to send SMS.
|
|
120
120
|
* A project owner or someone with Manage Billing can add balance in Project
|
|
121
|
-
* Settings > Notification
|
|
121
|
+
* Settings > Notification Channels." Said to whoever asked, so it names who
|
|
122
122
|
* can rather than telling the reader to.
|
|
123
123
|
*/
|
|
124
124
|
const getProjectBalanceTooLowMessage = (channel) => {
|
|
@@ -11,7 +11,7 @@ const TwilioConfigUse_1 = __importDefault(require("../../Types/CallAndSMS/Twilio
|
|
|
11
11
|
*
|
|
12
12
|
* SMS and calls to the people in a project - on-call alerts, notifications, and
|
|
13
13
|
* the codes that verify their phone numbers - go through the project's default
|
|
14
|
-
* Twilio config (Project Settings > Notifications > Notification
|
|
14
|
+
* Twilio config (Project Settings > Notifications > Notification Channels), and
|
|
15
15
|
* through the Twilio account of the OneUptime server itself when the project
|
|
16
16
|
* has none (Admin Dashboard > Settings > Call and SMS). OneUptime Cloud always
|
|
17
17
|
* has the second. A self-hosted server has neither until somebody sets one up,
|
|
@@ -64,7 +64,7 @@ const WHAT_NEEDS_IT = {
|
|
|
64
64
|
* there is none: "The OneUptime server's administrator can add one in Admin
|
|
65
65
|
* Dashboard > Settings > Call and SMS, or a project owner, a project admin or
|
|
66
66
|
* someone with Create Call and SMS can add this project's own in Project
|
|
67
|
-
* Settings > Notification
|
|
67
|
+
* Settings > Notification Channels."
|
|
68
68
|
*/
|
|
69
69
|
exports.WHO_CAN_ADD_A_TWILIO_ACCOUNT_SENTENCE = `The OneUptime server's administrator can add one in ${exports.SERVER_TWILIO_SETTINGS_PAGE}, or ${exports.WHO_MAY_ADD_A_PROJECT_TWILIO_ACCOUNT} can add this project's own in ${exports.PROJECT_TWILIO_SETTINGS_PAGE}.`;
|
|
70
70
|
/*
|
|
@@ -57,6 +57,9 @@ export default class ScheduledMaintenanceStartUtil {
|
|
|
57
57
|
states: Array<unknown>;
|
|
58
58
|
state: unknown;
|
|
59
59
|
}): boolean;
|
|
60
|
+
static getScheduledState<T>(data: {
|
|
61
|
+
states: Array<T>;
|
|
62
|
+
}): T | null;
|
|
60
63
|
static getOngoingState<T>(data: {
|
|
61
64
|
states: Array<T>;
|
|
62
65
|
}): T | null;
|
|
@@ -57,6 +57,9 @@ export default class ScheduledMaintenanceStartUtil {
|
|
|
57
57
|
states: Array<unknown>;
|
|
58
58
|
state: unknown;
|
|
59
59
|
}): boolean;
|
|
60
|
+
static getScheduledState<T>(data: {
|
|
61
|
+
states: Array<T>;
|
|
62
|
+
}): T | null;
|
|
60
63
|
static getOngoingState<T>(data: {
|
|
61
64
|
states: Array<T>;
|
|
62
65
|
}): T | null;
|
|
@@ -292,6 +292,15 @@ class ScheduledMaintenanceStartUtil {
|
|
|
292
292
|
return ((0, StateOrder_1.getStateListReachedBuiltIn)(DEFINITION, placed.rows, placed.row) ===
|
|
293
293
|
COMPLETED_FLAG);
|
|
294
294
|
}
|
|
295
|
+
/*
|
|
296
|
+
* The project's scheduled state: the first state from the top flagged
|
|
297
|
+
* scheduled - the one a new event is created in, and the sample project's
|
|
298
|
+
* events start in. Null when the list has none (a project always keeps
|
|
299
|
+
* one; StateOrderGuard refuses deleting it).
|
|
300
|
+
*/
|
|
301
|
+
static getScheduledState(data) {
|
|
302
|
+
return this.getBuiltInState(data.states, SCHEDULED_FLAG);
|
|
303
|
+
}
|
|
295
304
|
/*
|
|
296
305
|
* The project's ongoing state: the first state from the top flagged
|
|
297
306
|
* ongoing - the one an event's start at its time, and Mark as Ongoing,
|
|
@@ -15,6 +15,7 @@ const MonitorSchemas_1 = require("./MonitorSchemas");
|
|
|
15
15
|
const MonitorType_1 = __importDefault(require("../../Types/Monitor/MonitorType"));
|
|
16
16
|
const WorkflowStatus_1 = __importDefault(require("../../Types/Workflow/WorkflowStatus"));
|
|
17
17
|
const CustomFieldType_1 = __importDefault(require("../../Types/CustomField/CustomFieldType"));
|
|
18
|
+
const ModelApiName_1 = require("../ModelApiName");
|
|
18
19
|
/*
|
|
19
20
|
* The text columns an encrypted secret is stored in. An encrypted JSON
|
|
20
21
|
* column holds a map of them, not one string, so it is left as it is.
|
|
@@ -638,8 +639,16 @@ class ModelSchema extends BaseSchema_1.BaseSchema {
|
|
|
638
639
|
if (!tableName) {
|
|
639
640
|
continue;
|
|
640
641
|
}
|
|
642
|
+
/*
|
|
643
|
+
* By the name the API keeps, the one OpenAPI.ts tags the model's
|
|
644
|
+
* endpoints with. A model renamed on screen (#6817: an On-Call Policy
|
|
645
|
+
* Schedule is an On-Call Schedule) keeps its tag, and its screen name
|
|
646
|
+
* here named a tag no endpoint has: the Terraform provider found no
|
|
647
|
+
* resource for the relation, and its docs example was not a list of
|
|
648
|
+
* ids.
|
|
649
|
+
*/
|
|
641
650
|
references[columnKey] = {
|
|
642
|
-
tag: target
|
|
651
|
+
tag: (0, ModelApiName_1.getApiSingularName)(target) || tableName,
|
|
643
652
|
tableName: tableName,
|
|
644
653
|
};
|
|
645
654
|
}
|
|
@@ -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.
|
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;
|