@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
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const Date_1 = __importDefault(require("../../Types/Date"));
|
|
7
|
+
/*
|
|
8
|
+
* Whether `a` takes an instant both cover from `b`: a downtime status first
|
|
9
|
+
* (when the caller named them), then the higher priority. Of two events of
|
|
10
|
+
* the same rank, the one that started first keeps the time - an event that
|
|
11
|
+
* merely starts later does not interrupt an equal one - and then the one
|
|
12
|
+
* that came first.
|
|
13
|
+
*/
|
|
14
|
+
const outranks = (a, b) => {
|
|
15
|
+
if (a.isDowntime !== b.isDowntime) {
|
|
16
|
+
return a.isDowntime;
|
|
17
|
+
}
|
|
18
|
+
if (a.priority !== b.priority) {
|
|
19
|
+
return a.priority > b.priority;
|
|
20
|
+
}
|
|
21
|
+
if (a.start !== b.start) {
|
|
22
|
+
return a.start < b.start;
|
|
23
|
+
}
|
|
24
|
+
return a.order < b.order;
|
|
25
|
+
};
|
|
26
|
+
/*
|
|
27
|
+
* A binary max-heap of the events covering the sweep's current instant,
|
|
28
|
+
* ordered by `outranks`. Ended events are left in it and dropped when they
|
|
29
|
+
* reach the top - an ended event can only ever be below a live one that
|
|
30
|
+
* outranks it, so the top, once live, is the winner.
|
|
31
|
+
*/
|
|
32
|
+
class EventHeap {
|
|
33
|
+
constructor() {
|
|
34
|
+
this.items = [];
|
|
35
|
+
}
|
|
36
|
+
get size() {
|
|
37
|
+
return this.items.length;
|
|
38
|
+
}
|
|
39
|
+
peek() {
|
|
40
|
+
return this.items[0];
|
|
41
|
+
}
|
|
42
|
+
push(item) {
|
|
43
|
+
this.items.push(item);
|
|
44
|
+
let index = this.items.length - 1;
|
|
45
|
+
while (index > 0) {
|
|
46
|
+
const parent = Math.floor((index - 1) / 2);
|
|
47
|
+
if (!outranks(this.items[index], this.items[parent])) {
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
this.swap(index, parent);
|
|
51
|
+
index = parent;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
pop() {
|
|
55
|
+
const top = this.items[0];
|
|
56
|
+
const last = this.items.pop();
|
|
57
|
+
if (this.items.length === 0 || !last) {
|
|
58
|
+
return top;
|
|
59
|
+
}
|
|
60
|
+
this.items[0] = last;
|
|
61
|
+
let index = 0;
|
|
62
|
+
for (;;) {
|
|
63
|
+
const left = index * 2 + 1;
|
|
64
|
+
const right = left + 1;
|
|
65
|
+
let best = index;
|
|
66
|
+
if (left < this.items.length &&
|
|
67
|
+
outranks(this.items[left], this.items[best])) {
|
|
68
|
+
best = left;
|
|
69
|
+
}
|
|
70
|
+
if (right < this.items.length &&
|
|
71
|
+
outranks(this.items[right], this.items[best])) {
|
|
72
|
+
best = right;
|
|
73
|
+
}
|
|
74
|
+
if (best === index) {
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
this.swap(index, best);
|
|
78
|
+
index = best;
|
|
79
|
+
}
|
|
80
|
+
return top;
|
|
81
|
+
}
|
|
82
|
+
swap(a, b) {
|
|
83
|
+
const item = this.items[a];
|
|
84
|
+
this.items[a] = this.items[b];
|
|
85
|
+
this.items[b] = item;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
class WorstStatusTimeline {
|
|
89
|
+
/**
|
|
90
|
+
* One timeline out of the events of one or more monitors: at every
|
|
91
|
+
* instant, the status that wins it among the events covering it (see
|
|
92
|
+
* WorstStatusTimelineOptions), and nothing where no event covers it.
|
|
93
|
+
*
|
|
94
|
+
* The result never overlaps itself, is in start order, and joins pieces
|
|
95
|
+
* of one status that meet. So however many monitors cover a day, the
|
|
96
|
+
* time it adds up to for that day is at most the day: each instant is
|
|
97
|
+
* counted once, in one status. And a gap no monitor recorded stays a gap
|
|
98
|
+
* rather than being counted as any status.
|
|
99
|
+
*
|
|
100
|
+
* This replaces a merge that compared each event with the LAST one it
|
|
101
|
+
* kept and nothing else. With several monitors covering the same hours it
|
|
102
|
+
* kept overlapping events side by side - a group of eight monitors all
|
|
103
|
+
* Offline for a day counted eight days of Offline in it - and cut others
|
|
104
|
+
* to a negative length, which took time away from the day instead
|
|
105
|
+
* (issue #6697). It also let a better status that merely ran on longer
|
|
106
|
+
* cut a worse one short: A Offline from 10:00 to 11:00 and B Operational
|
|
107
|
+
* from 10:30 to 12:00 kept only half an hour of A's outage.
|
|
108
|
+
*
|
|
109
|
+
* A sweep over every start and end, keeping the events that cover the
|
|
110
|
+
* current instant in a heap: O(n log n) for n events.
|
|
111
|
+
*/
|
|
112
|
+
static merge(events, options) {
|
|
113
|
+
var _a;
|
|
114
|
+
const downtimeIds = new Set(((options === null || options === void 0 ? void 0 : options.downtimeMonitorStatusIds) || []).map((id) => {
|
|
115
|
+
return id.toString();
|
|
116
|
+
}));
|
|
117
|
+
const timedEvents = [];
|
|
118
|
+
for (let i = 0; i < events.length; i++) {
|
|
119
|
+
const event = events[i];
|
|
120
|
+
if (!event || !event.startDate || !event.endDate) {
|
|
121
|
+
continue;
|
|
122
|
+
}
|
|
123
|
+
const start = Date_1.default.fromString(event.startDate).getTime();
|
|
124
|
+
const end = Date_1.default.fromString(event.endDate).getTime();
|
|
125
|
+
// an event that does not run forward covers nothing.
|
|
126
|
+
if (!Number.isFinite(start) || !Number.isFinite(end) || end <= start) {
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
timedEvents.push({
|
|
130
|
+
event: event,
|
|
131
|
+
start: start,
|
|
132
|
+
end: end,
|
|
133
|
+
isDowntime: downtimeIds.has(((_a = event.eventStatusId) === null || _a === void 0 ? void 0 : _a.toString()) || ""),
|
|
134
|
+
priority: Number.isFinite(event.priority) ? event.priority : 0,
|
|
135
|
+
order: i,
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
if (timedEvents.length === 0) {
|
|
139
|
+
return [];
|
|
140
|
+
}
|
|
141
|
+
timedEvents.sort((a, b) => {
|
|
142
|
+
return a.start - b.start || a.order - b.order;
|
|
143
|
+
});
|
|
144
|
+
const boundarySet = new Set();
|
|
145
|
+
for (const timedEvent of timedEvents) {
|
|
146
|
+
boundarySet.add(timedEvent.start);
|
|
147
|
+
boundarySet.add(timedEvent.end);
|
|
148
|
+
}
|
|
149
|
+
const boundaries = Array.from(boundarySet).sort((a, b) => {
|
|
150
|
+
return a - b;
|
|
151
|
+
});
|
|
152
|
+
const heap = new EventHeap();
|
|
153
|
+
const merged = [];
|
|
154
|
+
let nextEvent = 0;
|
|
155
|
+
for (let i = 0; i < boundaries.length - 1; i++) {
|
|
156
|
+
const from = boundaries[i];
|
|
157
|
+
const to = boundaries[i + 1];
|
|
158
|
+
while (nextEvent < timedEvents.length &&
|
|
159
|
+
timedEvents[nextEvent].start <= from) {
|
|
160
|
+
heap.push(timedEvents[nextEvent]);
|
|
161
|
+
nextEvent++;
|
|
162
|
+
}
|
|
163
|
+
while (heap.size > 0 && heap.peek().end <= from) {
|
|
164
|
+
heap.pop();
|
|
165
|
+
}
|
|
166
|
+
const winner = heap.peek();
|
|
167
|
+
// no event covers [from, to): nothing was recorded then.
|
|
168
|
+
if (!winner) {
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
171
|
+
const last = merged[merged.length - 1];
|
|
172
|
+
if (last &&
|
|
173
|
+
last.endDate.getTime() === from &&
|
|
174
|
+
last.eventStatusId.toString() === winner.event.eventStatusId.toString()) {
|
|
175
|
+
last.endDate = new Date(to);
|
|
176
|
+
continue;
|
|
177
|
+
}
|
|
178
|
+
merged.push({
|
|
179
|
+
startDate: new Date(from),
|
|
180
|
+
endDate: new Date(to),
|
|
181
|
+
label: winner.event.label,
|
|
182
|
+
priority: winner.event.priority,
|
|
183
|
+
color: winner.event.color,
|
|
184
|
+
eventStatusId: winner.event.eventStatusId,
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
return merged;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
exports.default = WorstStatusTimeline;
|
|
@@ -3,16 +3,18 @@ export interface FormattedValue {
|
|
|
3
3
|
unit: string;
|
|
4
4
|
formatted: string;
|
|
5
5
|
}
|
|
6
|
+
export interface ValueFormatterOptions {
|
|
7
|
+
metricName?: string;
|
|
8
|
+
language?: string | undefined;
|
|
9
|
+
}
|
|
6
10
|
export default class ValueFormatter {
|
|
7
|
-
static formatValue(value: number, unit: string, options?:
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
static formatValue(value: number, unit: string, options?: ValueFormatterOptions): string;
|
|
12
|
+
static formatValueInParts(value: number, unit: string, options?: ValueFormatterOptions): FormattedValue;
|
|
13
|
+
static isUnitSetApart(parts: FormattedValue): boolean;
|
|
10
14
|
static getCompactUnit(unit: string, options?: {
|
|
11
15
|
metricName?: string;
|
|
12
16
|
}): string;
|
|
13
|
-
static formatValueCompact(value: number, unit: string, options?:
|
|
14
|
-
metricName?: string;
|
|
15
|
-
}): FormattedValue;
|
|
17
|
+
static formatValueCompact(value: number, unit: string, options?: ValueFormatterOptions): FormattedValue;
|
|
16
18
|
static isPercentUnit(unit: string | undefined): boolean;
|
|
17
19
|
static isFractionMetric(metricName: string | undefined): boolean;
|
|
18
20
|
static isHigherWorseMetric(metricName: string | undefined): boolean;
|
|
@@ -3,16 +3,18 @@ export interface FormattedValue {
|
|
|
3
3
|
unit: string;
|
|
4
4
|
formatted: string;
|
|
5
5
|
}
|
|
6
|
+
export interface ValueFormatterOptions {
|
|
7
|
+
metricName?: string;
|
|
8
|
+
language?: string | undefined;
|
|
9
|
+
}
|
|
6
10
|
export default class ValueFormatter {
|
|
7
|
-
static formatValue(value: number, unit: string, options?:
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
static formatValue(value: number, unit: string, options?: ValueFormatterOptions): string;
|
|
12
|
+
static formatValueInParts(value: number, unit: string, options?: ValueFormatterOptions): FormattedValue;
|
|
13
|
+
static isUnitSetApart(parts: FormattedValue): boolean;
|
|
10
14
|
static getCompactUnit(unit: string, options?: {
|
|
11
15
|
metricName?: string;
|
|
12
16
|
}): string;
|
|
13
|
-
static formatValueCompact(value: number, unit: string, options?:
|
|
14
|
-
metricName?: string;
|
|
15
|
-
}): FormattedValue;
|
|
17
|
+
static formatValueCompact(value: number, unit: string, options?: ValueFormatterOptions): FormattedValue;
|
|
16
18
|
static isPercentUnit(unit: string | undefined): boolean;
|
|
17
19
|
static isFractionMetric(metricName: string | undefined): boolean;
|
|
18
20
|
static isHigherWorseMetric(metricName: string | undefined): boolean;
|
package/Utils/ValueFormatter.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Converts raw values like 1048576 bytes → "1 MB", 3661 seconds → "1.02 hr", etc.
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
const DateLanguage_1 = require("../Types/DateLanguage");
|
|
7
8
|
const byteUnits = [
|
|
8
9
|
{ threshold: 1e15, unit: "PB", divisor: 1e15 },
|
|
9
10
|
{ threshold: 1e12, unit: "TB", divisor: 1e12 },
|
|
@@ -363,6 +364,107 @@ function formatPercent(value) {
|
|
|
363
364
|
}
|
|
364
365
|
return value.toFixed(2);
|
|
365
366
|
}
|
|
367
|
+
/*
|
|
368
|
+
* THE NUMBER IN THE READER'S LANGUAGE (#7094).
|
|
369
|
+
*
|
|
370
|
+
* The formatter writes its numbers the way English does - "73.40", "1.5K" -
|
|
371
|
+
* and a Gauge or a Value widget drew them so on every board: Latin digits
|
|
372
|
+
* and a point on a Persian one, beside an SLO tile that wrote "۹۹٫۹٪", and
|
|
373
|
+
* "73.4" where German writes "73,4". Given the reader's language, a number
|
|
374
|
+
* keeps exactly the decimals and the scale letter (K, M, B, T, P) it was
|
|
375
|
+
* written with, in that language's digits, decimal sign and minus: "73,40"
|
|
376
|
+
* in German, "۷۳٫۴۰" in Persian, Latin digits in Arabic (getNumberLocale).
|
|
377
|
+
* A percentage takes the language's own percent sign and spacing, as the
|
|
378
|
+
* SLO tiles write theirs: "73,40 %", "۷۳٫۴۰٪". No language, or English,
|
|
379
|
+
* writes every number exactly as before.
|
|
380
|
+
*/
|
|
381
|
+
// A number as formatNumber and formatPercent write it: "73.40", "-1.5", "119.25B".
|
|
382
|
+
const WRITTEN_NUMBER = /^(-?\d+)(?:\.(\d+))?([KMBTP]?)$/;
|
|
383
|
+
// What follows a number that sets its unit apart: a space, or a no-break one.
|
|
384
|
+
const STARTS_WITH_SPACE = /^\s/;
|
|
385
|
+
// One Intl format per language, decimals and style: a board writes many numbers.
|
|
386
|
+
const languageNumberFormats = new Map();
|
|
387
|
+
function getLanguageNumberFormat(language, decimals, isPercent) {
|
|
388
|
+
const key = [
|
|
389
|
+
language,
|
|
390
|
+
decimals,
|
|
391
|
+
isPercent ? "percent" : "decimal",
|
|
392
|
+
].join("|");
|
|
393
|
+
if (!languageNumberFormats.has(key)) {
|
|
394
|
+
let format = null;
|
|
395
|
+
try {
|
|
396
|
+
format = new Intl.NumberFormat((0, DateLanguage_1.getNumberLocale)(language), {
|
|
397
|
+
style: isPercent ? "percent" : "decimal",
|
|
398
|
+
minimumFractionDigits: decimals,
|
|
399
|
+
maximumFractionDigits: decimals,
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
catch (_a) {
|
|
403
|
+
format = null;
|
|
404
|
+
}
|
|
405
|
+
languageNumberFormats.set(key, format);
|
|
406
|
+
}
|
|
407
|
+
return languageNumberFormats.get(key) || null;
|
|
408
|
+
}
|
|
409
|
+
/*
|
|
410
|
+
* `text`, a number this formatter wrote in English, written in `language`:
|
|
411
|
+
* the number (with its scale letter), the percent sign when it is a
|
|
412
|
+
* percentage ("" otherwise), and the two as the language joins them. Null
|
|
413
|
+
* where there is nothing to rewrite - English, or a text that is not a
|
|
414
|
+
* number - and the English stands.
|
|
415
|
+
*/
|
|
416
|
+
function writeNumberInLanguage(text, isPercent, language) {
|
|
417
|
+
var _a;
|
|
418
|
+
if ((0, DateLanguage_1.isEnglishDateLanguage)(language)) {
|
|
419
|
+
return null;
|
|
420
|
+
}
|
|
421
|
+
const match = WRITTEN_NUMBER.exec(text);
|
|
422
|
+
if (!match) {
|
|
423
|
+
return null;
|
|
424
|
+
}
|
|
425
|
+
const fraction = match[2] || "";
|
|
426
|
+
const scaleLetter = match[3] || "";
|
|
427
|
+
const format = getLanguageNumberFormat((language || "").trim(), fraction.length, isPercent);
|
|
428
|
+
if (!format) {
|
|
429
|
+
return null;
|
|
430
|
+
}
|
|
431
|
+
const number = Number(fraction ? `${match[1]}.${fraction}` : match[1]);
|
|
432
|
+
const parts = format.formatToParts(isPercent ? number / 100 : number);
|
|
433
|
+
/*
|
|
434
|
+
* Everything but the percent sign is the number - a negative's minus and
|
|
435
|
+
* the mark that keeps it before its digits on a page read from the right
|
|
436
|
+
* too - except the space or the marks set beside the sign (German's
|
|
437
|
+
* space, Arabic's marks), which go with the sign.
|
|
438
|
+
*/
|
|
439
|
+
const value = parts
|
|
440
|
+
.filter((part, index) => {
|
|
441
|
+
var _a, _b;
|
|
442
|
+
if (part.type === "percentSign") {
|
|
443
|
+
return false;
|
|
444
|
+
}
|
|
445
|
+
return (part.type !== "literal" ||
|
|
446
|
+
(((_a = parts[index - 1]) === null || _a === void 0 ? void 0 : _a.type) !== "percentSign" &&
|
|
447
|
+
((_b = parts[index + 1]) === null || _b === void 0 ? void 0 : _b.type) !== "percentSign"));
|
|
448
|
+
})
|
|
449
|
+
.map((part) => {
|
|
450
|
+
return part.value;
|
|
451
|
+
})
|
|
452
|
+
.join("");
|
|
453
|
+
const percentSign = ((_a = parts.find((part) => {
|
|
454
|
+
return part.type === "percentSign";
|
|
455
|
+
})) === null || _a === void 0 ? void 0 : _a.value) || "";
|
|
456
|
+
return {
|
|
457
|
+
value: `${value}${scaleLetter}`,
|
|
458
|
+
percentSign: percentSign,
|
|
459
|
+
formatted: isPercent
|
|
460
|
+
? parts
|
|
461
|
+
.map((part) => {
|
|
462
|
+
return part.value;
|
|
463
|
+
})
|
|
464
|
+
.join("")
|
|
465
|
+
: `${value}${scaleLetter}`,
|
|
466
|
+
};
|
|
467
|
+
}
|
|
366
468
|
/*
|
|
367
469
|
* The separator rules formatValue has always used: percent joins with no
|
|
368
470
|
* space, an empty unit contributes nothing, everything else gets one space.
|
|
@@ -400,6 +502,21 @@ function compactThresholdUnit(unit) {
|
|
|
400
502
|
function formatValueParts(value, unit, options, unitStyle) {
|
|
401
503
|
const trimmedUnit = (unit || "").trim();
|
|
402
504
|
const build = (partValue, partUnit) => {
|
|
505
|
+
// In the reader's language, when one is given (#7094).
|
|
506
|
+
const inLanguage = writeNumberInLanguage(partValue, partUnit === "%", options === null || options === void 0 ? void 0 : options.language);
|
|
507
|
+
if (inLanguage) {
|
|
508
|
+
return partUnit === "%"
|
|
509
|
+
? {
|
|
510
|
+
value: inLanguage.value,
|
|
511
|
+
unit: inLanguage.percentSign || partUnit,
|
|
512
|
+
formatted: inLanguage.formatted,
|
|
513
|
+
}
|
|
514
|
+
: {
|
|
515
|
+
value: inLanguage.value,
|
|
516
|
+
unit: partUnit,
|
|
517
|
+
formatted: joinValueAndUnit(inLanguage.value, partUnit),
|
|
518
|
+
};
|
|
519
|
+
}
|
|
403
520
|
return {
|
|
404
521
|
value: partValue,
|
|
405
522
|
unit: partUnit,
|
|
@@ -477,10 +594,38 @@ class ValueFormatter {
|
|
|
477
594
|
* e.g. formatValue(3661, "seconds") → "1.02 hr"
|
|
478
595
|
* e.g. formatValue(42, "%") → "42%"
|
|
479
596
|
* e.g. formatValue(0.25, "1", { metricName: "system.cpu.utilization" }) → "25%"
|
|
597
|
+
* e.g. formatValue(73.4, "%", { language: "de" }) → "73,40 %"
|
|
480
598
|
*/
|
|
481
599
|
static formatValue(value, unit, options) {
|
|
482
600
|
return formatValueParts(value, unit, options, "readable").formatted;
|
|
483
601
|
}
|
|
602
|
+
/*
|
|
603
|
+
* formatValue, but returning the number and the unit separately, the unit
|
|
604
|
+
* named as formatValue names it ("hours", "Bytes per Second"). For a
|
|
605
|
+
* widget that draws the two at different sizes, as formatValueCompact is
|
|
606
|
+
* for one that draws the unit's symbol: the Gauge split the joined string
|
|
607
|
+
* at its last space, which put "requests per" in the big-number span and
|
|
608
|
+
* cannot find the number in "73,40 %" or "۷۳٫۴۰٪".
|
|
609
|
+
*/
|
|
610
|
+
static formatValueInParts(value, unit, options) {
|
|
611
|
+
return formatValueParts(value, unit, options, "readable");
|
|
612
|
+
}
|
|
613
|
+
/*
|
|
614
|
+
* Whether `parts` set their unit apart from the number - "1.5 MB", and
|
|
615
|
+
* "73,40 %" in German - or write it right after it: "73.40%", "۷۳٫۴۰٪".
|
|
616
|
+
* What a widget that draws the number and the unit in spans of their own
|
|
617
|
+
* leaves between them.
|
|
618
|
+
*/
|
|
619
|
+
static isUnitSetApart(parts) {
|
|
620
|
+
if (!parts.unit) {
|
|
621
|
+
return false;
|
|
622
|
+
}
|
|
623
|
+
const valueStart = parts.formatted.indexOf(parts.value);
|
|
624
|
+
if (valueStart < 0) {
|
|
625
|
+
return parts.unit !== "%";
|
|
626
|
+
}
|
|
627
|
+
return STARTS_WITH_SPACE.test(parts.formatted.slice(valueStart + parts.value.length));
|
|
628
|
+
}
|
|
484
629
|
/*
|
|
485
630
|
* Compact sibling of getReadableUnit: the unit SYMBOL, for surfaces where
|
|
486
631
|
* the spelled-out name competes with the value for horizontal space.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import BadDataException from "../../Types/Exception/BadDataException.mjs";
|
|
2
|
+
export declare const WORKSPACE_SUMMARY_NO_PROJECT_REASON: string;
|
|
3
|
+
export declare const WORKSPACE_SUMMARY_NO_CHANNELS_REASON: string;
|
|
4
|
+
export declare const WORKSPACE_SUMMARY_NO_ITEMS_REASON: string;
|
|
5
|
+
export declare const DEFAULT_LOOKBACK_DAYS: number;
|
|
6
|
+
export declare const MIN_LOOKBACK_DAYS: number;
|
|
7
|
+
export declare const MAX_LOOKBACK_DAYS: number;
|
|
8
|
+
export declare const WORKSPACE_SUMMARY_LOOKBACK_REASON: string;
|
|
9
|
+
export declare class WorkspaceSummaryNotSendableException extends BadDataException {
|
|
10
|
+
}
|
|
11
|
+
export declare const LOOKBACK_DAYS_COLUMN: string;
|
|
12
|
+
export default class WorkspaceSummarySetup {
|
|
13
|
+
static readChannelNames(value: unknown): Array<string>;
|
|
14
|
+
static readSummaryItems(value: unknown): Array<string>;
|
|
15
|
+
static readLookbackDays(value: unknown): number | null;
|
|
16
|
+
static getLookbackDays(value: unknown): number;
|
|
17
|
+
static getSendProblem(data: {
|
|
18
|
+
hasProject: boolean;
|
|
19
|
+
channelNames: Array<string>;
|
|
20
|
+
summaryItems: Array<string>;
|
|
21
|
+
}): string | null;
|
|
22
|
+
static normalizeWrite(write: Record<string, unknown>): string | null;
|
|
23
|
+
private static readNumber;
|
|
24
|
+
private static readTexts;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import BadDataException from "../../Types/Exception/BadDataException";
|
|
2
|
+
export declare const WORKSPACE_SUMMARY_NO_PROJECT_REASON: string;
|
|
3
|
+
export declare const WORKSPACE_SUMMARY_NO_CHANNELS_REASON: string;
|
|
4
|
+
export declare const WORKSPACE_SUMMARY_NO_ITEMS_REASON: string;
|
|
5
|
+
export declare const DEFAULT_LOOKBACK_DAYS: number;
|
|
6
|
+
export declare const MIN_LOOKBACK_DAYS: number;
|
|
7
|
+
export declare const MAX_LOOKBACK_DAYS: number;
|
|
8
|
+
export declare const WORKSPACE_SUMMARY_LOOKBACK_REASON: string;
|
|
9
|
+
export declare class WorkspaceSummaryNotSendableException extends BadDataException {
|
|
10
|
+
}
|
|
11
|
+
export declare const LOOKBACK_DAYS_COLUMN: string;
|
|
12
|
+
export default class WorkspaceSummarySetup {
|
|
13
|
+
static readChannelNames(value: unknown): Array<string>;
|
|
14
|
+
static readSummaryItems(value: unknown): Array<string>;
|
|
15
|
+
static readLookbackDays(value: unknown): number | null;
|
|
16
|
+
static getLookbackDays(value: unknown): number;
|
|
17
|
+
static getSendProblem(data: {
|
|
18
|
+
hasProject: boolean;
|
|
19
|
+
channelNames: Array<string>;
|
|
20
|
+
summaryItems: Array<string>;
|
|
21
|
+
}): string | null;
|
|
22
|
+
static normalizeWrite(write: Record<string, unknown>): string | null;
|
|
23
|
+
private static readNumber;
|
|
24
|
+
private static readTexts;
|
|
25
|
+
}
|