@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,41 @@
|
|
|
1
|
+
import Color from "../../Types/Color.mjs";
|
|
2
|
+
import Dictionary from "../../Types/Dictionary.mjs";
|
|
3
|
+
export interface ResourceWithMonitor {
|
|
4
|
+
monitorId?: unknown;
|
|
5
|
+
monitor?: {
|
|
6
|
+
isArchived?: boolean | undefined;
|
|
7
|
+
disableActiveMonitoring?: boolean | null | undefined;
|
|
8
|
+
} | undefined;
|
|
9
|
+
}
|
|
10
|
+
export interface StatusPageResourceWithMonitor extends ResourceWithMonitor {
|
|
11
|
+
_id?: unknown;
|
|
12
|
+
monitorGroupId?: unknown;
|
|
13
|
+
}
|
|
14
|
+
export declare const NOT_MONITORED_STATUS_COLOR: Color;
|
|
15
|
+
export declare const NOT_MONITORED_STATUS_NAME: string;
|
|
16
|
+
export type NotMonitoredResourceIds = ReadonlyArray<string> | ReadonlySet<string>;
|
|
17
|
+
export default class FrozenMonitorResources {
|
|
18
|
+
static isMonitorArchived(resource: ResourceWithMonitor): boolean;
|
|
19
|
+
static isMonitoringOff(resource: ResourceWithMonitor): boolean;
|
|
20
|
+
static isStatusFrozen(resource: ResourceWithMonitor): boolean;
|
|
21
|
+
static withoutArchivedMonitors<T extends ResourceWithMonitor>(resources: Array<T>): Array<T>;
|
|
22
|
+
static withoutFrozenMonitors<T extends ResourceWithMonitor>(resources: Array<T>): Array<T>;
|
|
23
|
+
static isMonitoringOffForEveryMonitor(members: Array<ResourceWithMonitor>): boolean;
|
|
24
|
+
static withoutNotMonitoredMonitorGroups<T>(data: {
|
|
25
|
+
monitorGroupStatuses: Dictionary<T>;
|
|
26
|
+
monitorGroupResources: Dictionary<Array<ResourceWithMonitor>>;
|
|
27
|
+
}): Dictionary<T>;
|
|
28
|
+
static getNotMonitoredResourceIds(data: {
|
|
29
|
+
statusPageResources: Array<StatusPageResourceWithMonitor>;
|
|
30
|
+
monitorGroupResources: Dictionary<Array<ResourceWithMonitor>>;
|
|
31
|
+
}): Array<string>;
|
|
32
|
+
static isNotMonitored(resource: {
|
|
33
|
+
_id?: unknown;
|
|
34
|
+
}, notMonitoredResourceIds: NotMonitoredResourceIds): boolean;
|
|
35
|
+
static isEveryResourceNotMonitored(resources: Array<{
|
|
36
|
+
_id?: unknown;
|
|
37
|
+
}>, notMonitoredResourceIds: NotMonitoredResourceIds): boolean;
|
|
38
|
+
static isSomeResourceNotMonitored(resources: Array<{
|
|
39
|
+
_id?: unknown;
|
|
40
|
+
}>, notMonitoredResourceIds: NotMonitoredResourceIds): boolean;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import Color from "../../Types/Color";
|
|
2
|
+
import Dictionary from "../../Types/Dictionary";
|
|
3
|
+
export interface ResourceWithMonitor {
|
|
4
|
+
monitorId?: unknown;
|
|
5
|
+
monitor?: {
|
|
6
|
+
isArchived?: boolean | undefined;
|
|
7
|
+
disableActiveMonitoring?: boolean | null | undefined;
|
|
8
|
+
} | undefined;
|
|
9
|
+
}
|
|
10
|
+
export interface StatusPageResourceWithMonitor extends ResourceWithMonitor {
|
|
11
|
+
_id?: unknown;
|
|
12
|
+
monitorGroupId?: unknown;
|
|
13
|
+
}
|
|
14
|
+
export declare const NOT_MONITORED_STATUS_COLOR: Color;
|
|
15
|
+
export declare const NOT_MONITORED_STATUS_NAME: string;
|
|
16
|
+
export type NotMonitoredResourceIds = ReadonlyArray<string> | ReadonlySet<string>;
|
|
17
|
+
export default class FrozenMonitorResources {
|
|
18
|
+
static isMonitorArchived(resource: ResourceWithMonitor): boolean;
|
|
19
|
+
static isMonitoringOff(resource: ResourceWithMonitor): boolean;
|
|
20
|
+
static isStatusFrozen(resource: ResourceWithMonitor): boolean;
|
|
21
|
+
static withoutArchivedMonitors<T extends ResourceWithMonitor>(resources: Array<T>): Array<T>;
|
|
22
|
+
static withoutFrozenMonitors<T extends ResourceWithMonitor>(resources: Array<T>): Array<T>;
|
|
23
|
+
static isMonitoringOffForEveryMonitor(members: Array<ResourceWithMonitor>): boolean;
|
|
24
|
+
static withoutNotMonitoredMonitorGroups<T>(data: {
|
|
25
|
+
monitorGroupStatuses: Dictionary<T>;
|
|
26
|
+
monitorGroupResources: Dictionary<Array<ResourceWithMonitor>>;
|
|
27
|
+
}): Dictionary<T>;
|
|
28
|
+
static getNotMonitoredResourceIds(data: {
|
|
29
|
+
statusPageResources: Array<StatusPageResourceWithMonitor>;
|
|
30
|
+
monitorGroupResources: Dictionary<Array<ResourceWithMonitor>>;
|
|
31
|
+
}): Array<string>;
|
|
32
|
+
static isNotMonitored(resource: {
|
|
33
|
+
_id?: unknown;
|
|
34
|
+
}, notMonitoredResourceIds: NotMonitoredResourceIds): boolean;
|
|
35
|
+
static isEveryResourceNotMonitored(resources: Array<{
|
|
36
|
+
_id?: unknown;
|
|
37
|
+
}>, notMonitoredResourceIds: NotMonitoredResourceIds): boolean;
|
|
38
|
+
static isSomeResourceNotMonitored(resources: Array<{
|
|
39
|
+
_id?: unknown;
|
|
40
|
+
}>, notMonitoredResourceIds: NotMonitoredResourceIds): boolean;
|
|
41
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
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
|
+
exports.NOT_MONITORED_STATUS_NAME = exports.NOT_MONITORED_STATUS_COLOR = void 0;
|
|
7
|
+
const BrandColors_1 = require("../../Types/BrandColors");
|
|
8
|
+
const MonitorGroupMonitoring_1 = __importDefault(require("../Monitor/MonitorGroupMonitoring"));
|
|
9
|
+
const MonitoringOff_1 = __importDefault(require("../Monitor/MonitoringOff"));
|
|
10
|
+
/*
|
|
11
|
+
* The gray a status page draws Not monitored in: neither a status's color
|
|
12
|
+
* nor the green of Operational, and the gray the Dashboard draws a monitor
|
|
13
|
+
* whose monitoring is off in (Utils/Dashboard/MonitorListWidgetFormat).
|
|
14
|
+
*/
|
|
15
|
+
exports.NOT_MONITORED_STATUS_COLOR = BrandColors_1.Gray500;
|
|
16
|
+
/*
|
|
17
|
+
* The words, in English, where a page has no language of its own: the
|
|
18
|
+
* embedded status badge. The status page itself says them in its visitor's
|
|
19
|
+
* language (overview.notMonitored).
|
|
20
|
+
*/
|
|
21
|
+
exports.NOT_MONITORED_STATUS_NAME = "Not monitored";
|
|
22
|
+
// A record's id as text: its _id, or "" when it has none.
|
|
23
|
+
const idOf = (record) => {
|
|
24
|
+
return record._id ? String(record._id).trim() : "";
|
|
25
|
+
};
|
|
26
|
+
const holds = (ids, id) => {
|
|
27
|
+
if (ids instanceof Set) {
|
|
28
|
+
return ids.has(id);
|
|
29
|
+
}
|
|
30
|
+
return ids.includes(id);
|
|
31
|
+
};
|
|
32
|
+
class FrozenMonitorResources {
|
|
33
|
+
// True when the row points at a monitor that is archived.
|
|
34
|
+
static isMonitorArchived(resource) {
|
|
35
|
+
var _a;
|
|
36
|
+
return ((_a = resource.monitor) === null || _a === void 0 ? void 0 : _a.isArchived) === true;
|
|
37
|
+
}
|
|
38
|
+
// True when the row points at a monitor whose monitoring is turned off.
|
|
39
|
+
static isMonitoringOff(resource) {
|
|
40
|
+
return MonitoringOff_1.default.isOff(resource.monitor);
|
|
41
|
+
}
|
|
42
|
+
// True when nothing checks the row's monitor: it is archived, or its monitoring is off.
|
|
43
|
+
static isStatusFrozen(resource) {
|
|
44
|
+
return (FrozenMonitorResources.isMonitorArchived(resource) ||
|
|
45
|
+
FrozenMonitorResources.isMonitoringOff(resource));
|
|
46
|
+
}
|
|
47
|
+
// The rows whose monitor is not archived, in their original order: what a page lists.
|
|
48
|
+
static withoutArchivedMonitors(resources) {
|
|
49
|
+
return resources.filter((resource) => {
|
|
50
|
+
return !FrozenMonitorResources.isMonitorArchived(resource);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/*
|
|
54
|
+
* The rows whose monitor is checked - neither archived nor turned off - in
|
|
55
|
+
* their original order: what a status is worked out from.
|
|
56
|
+
*/
|
|
57
|
+
static withoutFrozenMonitors(resources) {
|
|
58
|
+
return resources.filter((resource) => {
|
|
59
|
+
return !FrozenMonitorResources.isStatusFrozen(resource);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/*
|
|
63
|
+
* Whether monitoring is off for every monitor of a monitor group: the
|
|
64
|
+
* group's members that are not archived, all of them turned off. It is
|
|
65
|
+
* the rule the Dashboard draws such a group as Disabled by
|
|
66
|
+
* (MonitorGroupMonitoring), so a status page draws the same group as Not
|
|
67
|
+
* monitored. A group with no member that is not archived is empty, not
|
|
68
|
+
* off.
|
|
69
|
+
*/
|
|
70
|
+
static isMonitoringOffForEveryMonitor(members) {
|
|
71
|
+
return MonitorGroupMonitoring_1.default.isMonitoringOffForEveryMonitor(MonitorGroupMonitoring_1.default.getSummary(FrozenMonitorResources.withoutArchivedMonitors(members).map((member) => {
|
|
72
|
+
return member.monitor || {};
|
|
73
|
+
})));
|
|
74
|
+
}
|
|
75
|
+
/*
|
|
76
|
+
* The monitor group statuses a status page shows, by monitor group id:
|
|
77
|
+
* the ones given, less each group whose monitors all have monitoring off.
|
|
78
|
+
* Nothing checks such a group, so the status it is left at says nothing:
|
|
79
|
+
* the page draws it as Not monitored, and it decides no other status. A
|
|
80
|
+
* group whose members were not read keeps its status.
|
|
81
|
+
*/
|
|
82
|
+
static withoutNotMonitoredMonitorGroups(data) {
|
|
83
|
+
const statuses = {};
|
|
84
|
+
for (const monitorGroupId of Object.keys(data.monitorGroupStatuses)) {
|
|
85
|
+
const status = data.monitorGroupStatuses[monitorGroupId];
|
|
86
|
+
if (status === undefined ||
|
|
87
|
+
FrozenMonitorResources.isMonitoringOffForEveryMonitor(data.monitorGroupResources[monitorGroupId] || [])) {
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
statuses[monitorGroupId] = status;
|
|
91
|
+
}
|
|
92
|
+
return statuses;
|
|
93
|
+
}
|
|
94
|
+
/*
|
|
95
|
+
* The ids of the resources a status page draws as Not monitored: each
|
|
96
|
+
* monitor whose monitoring is off, and each monitor group whose monitors
|
|
97
|
+
* all have it off (isMonitoringOffForEveryMonitor). Those resources stay
|
|
98
|
+
* on the page, and decide no status - not a group's, not the page's.
|
|
99
|
+
*
|
|
100
|
+
* monitorGroupResources holds each monitor group's members by its id, as
|
|
101
|
+
* MonitorGroupService.getMonitorGroupResourcesByGroupIds reads them (with
|
|
102
|
+
* monitor.disableActiveMonitoring). A group missing from it has no
|
|
103
|
+
* members that were read, and counts as monitored.
|
|
104
|
+
*/
|
|
105
|
+
static getNotMonitoredResourceIds(data) {
|
|
106
|
+
const ids = new Set();
|
|
107
|
+
for (const resource of data.statusPageResources) {
|
|
108
|
+
const id = idOf(resource);
|
|
109
|
+
if (!id || ids.has(id)) {
|
|
110
|
+
continue;
|
|
111
|
+
}
|
|
112
|
+
if (resource.monitor || resource.monitorId) {
|
|
113
|
+
if (FrozenMonitorResources.isMonitoringOff(resource)) {
|
|
114
|
+
ids.add(id);
|
|
115
|
+
}
|
|
116
|
+
continue;
|
|
117
|
+
}
|
|
118
|
+
if (resource.monitorGroupId) {
|
|
119
|
+
const members = data.monitorGroupResources[String(resource.monitorGroupId)] || [];
|
|
120
|
+
if (FrozenMonitorResources.isMonitoringOffForEveryMonitor(members)) {
|
|
121
|
+
ids.add(id);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return Array.from(ids);
|
|
126
|
+
}
|
|
127
|
+
// Whether the page draws this resource as Not monitored (getNotMonitoredResourceIds).
|
|
128
|
+
static isNotMonitored(resource, notMonitoredResourceIds) {
|
|
129
|
+
const id = idOf(resource);
|
|
130
|
+
return Boolean(id) && holds(notMonitoredResourceIds, id);
|
|
131
|
+
}
|
|
132
|
+
/*
|
|
133
|
+
* Whether every one of these resources is drawn as Not monitored: a page,
|
|
134
|
+
* a status page group or a grid cell that holds resources, none of them
|
|
135
|
+
* checked, has no status to show but that. False for none at all.
|
|
136
|
+
*/
|
|
137
|
+
static isEveryResourceNotMonitored(resources, notMonitoredResourceIds) {
|
|
138
|
+
return (resources.length > 0 &&
|
|
139
|
+
resources.every((resource) => {
|
|
140
|
+
return FrozenMonitorResources.isNotMonitored(resource, notMonitoredResourceIds);
|
|
141
|
+
}));
|
|
142
|
+
}
|
|
143
|
+
/*
|
|
144
|
+
* Whether at least one of these resources is drawn as Not monitored. A
|
|
145
|
+
* page whose checked resources are all operational then says all the
|
|
146
|
+
* monitored ones are, never that all of them are: nothing knows the
|
|
147
|
+
* status of the one drawn as Not monitored below. False for none at all.
|
|
148
|
+
*/
|
|
149
|
+
static isSomeResourceNotMonitored(resources, notMonitoredResourceIds) {
|
|
150
|
+
return resources.some((resource) => {
|
|
151
|
+
return FrozenMonitorResources.isNotMonitored(resource, notMonitoredResourceIds);
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
exports.default = FrozenMonitorResources;
|
|
@@ -3,6 +3,7 @@ import StatusPageResource from "../../Models/DatabaseModels/StatusPageResource.m
|
|
|
3
3
|
export declare enum StatusPageGroupRollupKind {
|
|
4
4
|
UptimePercent = "UptimePercent",
|
|
5
5
|
CurrentStatus = "CurrentStatus",
|
|
6
|
+
NotMonitored = "NotMonitored",
|
|
6
7
|
None = "None"
|
|
7
8
|
}
|
|
8
9
|
export default class StatusPageGroupNestingLayoutUtil {
|
|
@@ -74,5 +75,6 @@ export default class StatusPageGroupNestingLayoutUtil {
|
|
|
74
75
|
isCurrentlyDown: boolean;
|
|
75
76
|
uptimePercent: number | null;
|
|
76
77
|
resourceCountInSubtree: number;
|
|
78
|
+
isNotMonitored?: boolean | undefined;
|
|
77
79
|
}): StatusPageGroupRollupKind;
|
|
78
80
|
}
|
|
@@ -3,6 +3,7 @@ import StatusPageResource from "../../Models/DatabaseModels/StatusPageResource";
|
|
|
3
3
|
export declare enum StatusPageGroupRollupKind {
|
|
4
4
|
UptimePercent = "UptimePercent",
|
|
5
5
|
CurrentStatus = "CurrentStatus",
|
|
6
|
+
NotMonitored = "NotMonitored",
|
|
6
7
|
None = "None"
|
|
7
8
|
}
|
|
8
9
|
export default class StatusPageGroupNestingLayoutUtil {
|
|
@@ -74,5 +75,6 @@ export default class StatusPageGroupNestingLayoutUtil {
|
|
|
74
75
|
isCurrentlyDown: boolean;
|
|
75
76
|
uptimePercent: number | null;
|
|
76
77
|
resourceCountInSubtree: number;
|
|
78
|
+
isNotMonitored?: boolean | undefined;
|
|
77
79
|
}): StatusPageGroupRollupKind;
|
|
78
80
|
}
|
|
@@ -25,6 +25,8 @@ var StatusPageGroupRollupKind;
|
|
|
25
25
|
(function (StatusPageGroupRollupKind) {
|
|
26
26
|
StatusPageGroupRollupKind["UptimePercent"] = "UptimePercent";
|
|
27
27
|
StatusPageGroupRollupKind["CurrentStatus"] = "CurrentStatus";
|
|
28
|
+
// Nothing beneath the group is checked: it reads Not monitored, in gray.
|
|
29
|
+
StatusPageGroupRollupKind["NotMonitored"] = "NotMonitored";
|
|
28
30
|
StatusPageGroupRollupKind["None"] = "None";
|
|
29
31
|
})(StatusPageGroupRollupKind || (exports.StatusPageGroupRollupKind = StatusPageGroupRollupKind = {}));
|
|
30
32
|
class StatusPageGroupNestingLayoutUtil {
|
|
@@ -297,6 +299,11 @@ class StatusPageGroupNestingLayoutUtil {
|
|
|
297
299
|
* percent - "99.9% uptime" next to a red group is not the thing a visitor came
|
|
298
300
|
* to read - and a group whose uptime cannot be worked out (no resources under
|
|
299
301
|
* it at all) shows nothing rather than a zero.
|
|
302
|
+
*
|
|
303
|
+
* A group none of whose resources is checked - each one drawn as Not
|
|
304
|
+
* monitored (FrozenMonitorResources) - says Not monitored wherever it
|
|
305
|
+
* would show a reading: its status, or an uptime percent that would speak
|
|
306
|
+
* for a time nothing is checking.
|
|
300
307
|
*/
|
|
301
308
|
static getRollupKind(data) {
|
|
302
309
|
/*
|
|
@@ -311,6 +318,11 @@ class StatusPageGroupNestingLayoutUtil {
|
|
|
311
318
|
if (data.resourceCountInSubtree <= 0) {
|
|
312
319
|
return StatusPageGroupRollupKind.None;
|
|
313
320
|
}
|
|
321
|
+
if (data.isNotMonitored) {
|
|
322
|
+
return data.showUptimePercent || data.showCurrentStatus
|
|
323
|
+
? StatusPageGroupRollupKind.NotMonitored
|
|
324
|
+
: StatusPageGroupRollupKind.None;
|
|
325
|
+
}
|
|
314
326
|
if (data.showUptimePercent && !data.isCurrentlyDown) {
|
|
315
327
|
return data.uptimePercent === null
|
|
316
328
|
? StatusPageGroupRollupKind.None
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import MonitorStatus from "../../Models/DatabaseModels/MonitorStatus.mjs";
|
|
2
|
+
import { JSONObject } from "../../Types/JSON.mjs";
|
|
3
|
+
import ObjectID from "../../Types/ObjectID.mjs";
|
|
4
|
+
import { MonitorGroupUptimeDailyAggregate, UptimeDayBucket } from "../../Types/StatusPage/UptimeDailyAggregate.mjs";
|
|
5
|
+
export default class MonitorGroupUptimeDailyAggregateUtil {
|
|
6
|
+
/**
|
|
7
|
+
* The project's statuses in the order a monitor group's day is merged by,
|
|
8
|
+
* the worst LAST: every status that does not count as downtime on the
|
|
9
|
+
* page, then every one that does, each part in the project's order of
|
|
10
|
+
* statuses (priority), and by id where two share a priority.
|
|
11
|
+
*
|
|
12
|
+
* So at an instant two monitors disagree, the group takes the worse of
|
|
13
|
+
* their statuses - the docs' "one monitor going Offline makes the whole
|
|
14
|
+
* group Offline" - and a monitor in a downtime status always makes the
|
|
15
|
+
* group down. With the page's downtime statuses at the top of the
|
|
16
|
+
* project's order, which is how pages count Offline and Degraded, this is
|
|
17
|
+
* the project's order unchanged. Otherwise a status above them that is not
|
|
18
|
+
* down - a custom "Maintenance" - would hide another monitor's outage, and
|
|
19
|
+
* the group's days would add up to less downtime than its uptime
|
|
20
|
+
* percentage counts (MonitorStatusTimelineService.getMergedDowntimeSeconds).
|
|
21
|
+
*/
|
|
22
|
+
static getRankedMonitorStatusIds(data: {
|
|
23
|
+
monitorStatuses: Array<MonitorStatus>;
|
|
24
|
+
downtimeMonitorStatusIds: Array<ObjectID | string>;
|
|
25
|
+
}): Array<string>;
|
|
26
|
+
static toJSON(aggregate: MonitorGroupUptimeDailyAggregate): JSONObject;
|
|
27
|
+
/**
|
|
28
|
+
* Parse the wire format.
|
|
29
|
+
*
|
|
30
|
+
* Total by design, like UptimeDailyAggregateUtil.fromJSON: a missing or
|
|
31
|
+
* malformed field comes back empty, and an entry without a group id is
|
|
32
|
+
* skipped. Empty is also what a server that predates the field sends, and
|
|
33
|
+
* a group then keeps the bars it is painted from its rows.
|
|
34
|
+
*/
|
|
35
|
+
static fromJSON(json: JSONObject | undefined | null): MonitorGroupUptimeDailyAggregate;
|
|
36
|
+
/**
|
|
37
|
+
* One monitor group's buckets, or undefined when the aggregate has none
|
|
38
|
+
* for it - a server that predates them, or a group whose resource shows
|
|
39
|
+
* neither its history nor its uptime. Undefined rather than empty, so a
|
|
40
|
+
* caller can tell "no reading" (paint from the rows) from a reading of
|
|
41
|
+
* days nothing was recorded on (no data).
|
|
42
|
+
*/
|
|
43
|
+
static getBucketsForMonitorGroup(aggregate: MonitorGroupUptimeDailyAggregate | undefined | null, monitorGroupId: ObjectID | string): Array<UptimeDayBucket> | undefined;
|
|
44
|
+
static getWindow(aggregate: MonitorGroupUptimeDailyAggregate | undefined | null): {
|
|
45
|
+
startDate: Date;
|
|
46
|
+
endDate: Date;
|
|
47
|
+
} | null;
|
|
48
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import MonitorStatus from "../../Models/DatabaseModels/MonitorStatus";
|
|
2
|
+
import { JSONObject } from "../../Types/JSON";
|
|
3
|
+
import ObjectID from "../../Types/ObjectID";
|
|
4
|
+
import { MonitorGroupUptimeDailyAggregate, UptimeDayBucket } from "../../Types/StatusPage/UptimeDailyAggregate";
|
|
5
|
+
export default class MonitorGroupUptimeDailyAggregateUtil {
|
|
6
|
+
/**
|
|
7
|
+
* The project's statuses in the order a monitor group's day is merged by,
|
|
8
|
+
* the worst LAST: every status that does not count as downtime on the
|
|
9
|
+
* page, then every one that does, each part in the project's order of
|
|
10
|
+
* statuses (priority), and by id where two share a priority.
|
|
11
|
+
*
|
|
12
|
+
* So at an instant two monitors disagree, the group takes the worse of
|
|
13
|
+
* their statuses - the docs' "one monitor going Offline makes the whole
|
|
14
|
+
* group Offline" - and a monitor in a downtime status always makes the
|
|
15
|
+
* group down. With the page's downtime statuses at the top of the
|
|
16
|
+
* project's order, which is how pages count Offline and Degraded, this is
|
|
17
|
+
* the project's order unchanged. Otherwise a status above them that is not
|
|
18
|
+
* down - a custom "Maintenance" - would hide another monitor's outage, and
|
|
19
|
+
* the group's days would add up to less downtime than its uptime
|
|
20
|
+
* percentage counts (MonitorStatusTimelineService.getMergedDowntimeSeconds).
|
|
21
|
+
*/
|
|
22
|
+
static getRankedMonitorStatusIds(data: {
|
|
23
|
+
monitorStatuses: Array<MonitorStatus>;
|
|
24
|
+
downtimeMonitorStatusIds: Array<ObjectID | string>;
|
|
25
|
+
}): Array<string>;
|
|
26
|
+
static toJSON(aggregate: MonitorGroupUptimeDailyAggregate): JSONObject;
|
|
27
|
+
/**
|
|
28
|
+
* Parse the wire format.
|
|
29
|
+
*
|
|
30
|
+
* Total by design, like UptimeDailyAggregateUtil.fromJSON: a missing or
|
|
31
|
+
* malformed field comes back empty, and an entry without a group id is
|
|
32
|
+
* skipped. Empty is also what a server that predates the field sends, and
|
|
33
|
+
* a group then keeps the bars it is painted from its rows.
|
|
34
|
+
*/
|
|
35
|
+
static fromJSON(json: JSONObject | undefined | null): MonitorGroupUptimeDailyAggregate;
|
|
36
|
+
/**
|
|
37
|
+
* One monitor group's buckets, or undefined when the aggregate has none
|
|
38
|
+
* for it - a server that predates them, or a group whose resource shows
|
|
39
|
+
* neither its history nor its uptime. Undefined rather than empty, so a
|
|
40
|
+
* caller can tell "no reading" (paint from the rows) from a reading of
|
|
41
|
+
* days nothing was recorded on (no data).
|
|
42
|
+
*/
|
|
43
|
+
static getBucketsForMonitorGroup(aggregate: MonitorGroupUptimeDailyAggregate | undefined | null, monitorGroupId: ObjectID | string): Array<UptimeDayBucket> | undefined;
|
|
44
|
+
static getWindow(aggregate: MonitorGroupUptimeDailyAggregate | undefined | null): {
|
|
45
|
+
startDate: Date;
|
|
46
|
+
endDate: Date;
|
|
47
|
+
} | null;
|
|
48
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
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 ObjectID_1 = __importDefault(require("../../Types/ObjectID"));
|
|
7
|
+
const UptimeDailyAggregateUtil_1 = __importDefault(require("./UptimeDailyAggregateUtil"));
|
|
8
|
+
/*
|
|
9
|
+
* Each monitor group's day buckets on a status page: the overview payload's
|
|
10
|
+
* `monitorGroupUptimeDailyAggregate`.
|
|
11
|
+
*
|
|
12
|
+
* {
|
|
13
|
+
* "monitorGroups": [
|
|
14
|
+
* { "monitorGroupId": "...", "buckets": [ ...as uptimeDailyAggregate's... ] }
|
|
15
|
+
* ],
|
|
16
|
+
* "timezone": "Asia/Shanghai"
|
|
17
|
+
* }
|
|
18
|
+
*
|
|
19
|
+
* A group's bucket says how long the GROUP spent in each status that day -
|
|
20
|
+
* the worst status among its monitors at each instant - so its durations add
|
|
21
|
+
* up to the time at least one of its monitors was recorded that day, and
|
|
22
|
+
* never to more than the day (issue #6697). The buckets are cut on the same
|
|
23
|
+
* grid, in the same zone, as the monitors' uptimeDailyAggregate.
|
|
24
|
+
*
|
|
25
|
+
* PLAIN on purpose, like UptimeDailyAggregateUtil's format (whose bucket
|
|
26
|
+
* encoding this shares): ISO strings, numbers and id strings, none of the
|
|
27
|
+
* typed JSON envelopes. Both directions live here so the encoding is defined
|
|
28
|
+
* once.
|
|
29
|
+
*/
|
|
30
|
+
class MonitorGroupUptimeDailyAggregateUtil {
|
|
31
|
+
/**
|
|
32
|
+
* The project's statuses in the order a monitor group's day is merged by,
|
|
33
|
+
* the worst LAST: every status that does not count as downtime on the
|
|
34
|
+
* page, then every one that does, each part in the project's order of
|
|
35
|
+
* statuses (priority), and by id where two share a priority.
|
|
36
|
+
*
|
|
37
|
+
* So at an instant two monitors disagree, the group takes the worse of
|
|
38
|
+
* their statuses - the docs' "one monitor going Offline makes the whole
|
|
39
|
+
* group Offline" - and a monitor in a downtime status always makes the
|
|
40
|
+
* group down. With the page's downtime statuses at the top of the
|
|
41
|
+
* project's order, which is how pages count Offline and Degraded, this is
|
|
42
|
+
* the project's order unchanged. Otherwise a status above them that is not
|
|
43
|
+
* down - a custom "Maintenance" - would hide another monitor's outage, and
|
|
44
|
+
* the group's days would add up to less downtime than its uptime
|
|
45
|
+
* percentage counts (MonitorStatusTimelineService.getMergedDowntimeSeconds).
|
|
46
|
+
*/
|
|
47
|
+
static getRankedMonitorStatusIds(data) {
|
|
48
|
+
const downtimeIds = new Set(data.downtimeMonitorStatusIds.map((id) => {
|
|
49
|
+
return id.toString();
|
|
50
|
+
}));
|
|
51
|
+
const seen = new Set();
|
|
52
|
+
const statuses = [];
|
|
53
|
+
for (const status of data.monitorStatuses) {
|
|
54
|
+
const id = (status.id || status._id || "").toString();
|
|
55
|
+
if (!id || seen.has(id)) {
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
seen.add(id);
|
|
59
|
+
statuses.push({
|
|
60
|
+
id: id,
|
|
61
|
+
isDowntime: downtimeIds.has(id),
|
|
62
|
+
priority: typeof status.priority === "number" &&
|
|
63
|
+
Number.isFinite(status.priority)
|
|
64
|
+
? status.priority
|
|
65
|
+
: 0,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
statuses.sort((a, b) => {
|
|
69
|
+
if (a.isDowntime !== b.isDowntime) {
|
|
70
|
+
return a.isDowntime ? 1 : -1;
|
|
71
|
+
}
|
|
72
|
+
if (a.priority !== b.priority) {
|
|
73
|
+
return a.priority - b.priority;
|
|
74
|
+
}
|
|
75
|
+
return a.id < b.id ? -1 : a.id > b.id ? 1 : 0;
|
|
76
|
+
});
|
|
77
|
+
return statuses.map((status) => {
|
|
78
|
+
return status.id;
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
static toJSON(aggregate) {
|
|
82
|
+
return {
|
|
83
|
+
monitorGroups: aggregate.monitorGroups.map((monitorGroup) => {
|
|
84
|
+
return {
|
|
85
|
+
monitorGroupId: monitorGroup.monitorGroupId.toString(),
|
|
86
|
+
buckets: UptimeDailyAggregateUtil_1.default.bucketsToJSON(monitorGroup.buckets),
|
|
87
|
+
};
|
|
88
|
+
}),
|
|
89
|
+
timezone: UptimeDailyAggregateUtil_1.default.getTimezone({
|
|
90
|
+
monitors: [],
|
|
91
|
+
isComplete: true,
|
|
92
|
+
completeFrom: null,
|
|
93
|
+
timezone: aggregate.timezone,
|
|
94
|
+
}),
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Parse the wire format.
|
|
99
|
+
*
|
|
100
|
+
* Total by design, like UptimeDailyAggregateUtil.fromJSON: a missing or
|
|
101
|
+
* malformed field comes back empty, and an entry without a group id is
|
|
102
|
+
* skipped. Empty is also what a server that predates the field sends, and
|
|
103
|
+
* a group then keeps the bars it is painted from its rows.
|
|
104
|
+
*/
|
|
105
|
+
static fromJSON(json) {
|
|
106
|
+
const timezone = UptimeDailyAggregateUtil_1.default.getTimezone({
|
|
107
|
+
monitors: [],
|
|
108
|
+
isComplete: true,
|
|
109
|
+
completeFrom: null,
|
|
110
|
+
timezone: json && typeof json === "object" && typeof json["timezone"] === "string"
|
|
111
|
+
? json["timezone"]
|
|
112
|
+
: undefined,
|
|
113
|
+
});
|
|
114
|
+
const empty = {
|
|
115
|
+
monitorGroups: [],
|
|
116
|
+
timezone: timezone,
|
|
117
|
+
};
|
|
118
|
+
if (!json || typeof json !== "object") {
|
|
119
|
+
return empty;
|
|
120
|
+
}
|
|
121
|
+
const rawMonitorGroups = json["monitorGroups"];
|
|
122
|
+
if (!Array.isArray(rawMonitorGroups)) {
|
|
123
|
+
return empty;
|
|
124
|
+
}
|
|
125
|
+
const monitorGroups = [];
|
|
126
|
+
for (const rawMonitorGroup of rawMonitorGroups) {
|
|
127
|
+
if (!rawMonitorGroup || typeof rawMonitorGroup !== "object") {
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
const monitorGroup = rawMonitorGroup;
|
|
131
|
+
const monitorGroupId = monitorGroup["monitorGroupId"];
|
|
132
|
+
if (typeof monitorGroupId !== "string" || !monitorGroupId) {
|
|
133
|
+
continue;
|
|
134
|
+
}
|
|
135
|
+
monitorGroups.push({
|
|
136
|
+
monitorGroupId: new ObjectID_1.default(monitorGroupId),
|
|
137
|
+
buckets: UptimeDailyAggregateUtil_1.default.bucketsFromJSON(monitorGroup["buckets"]),
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
return {
|
|
141
|
+
monitorGroups: monitorGroups,
|
|
142
|
+
timezone: timezone,
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* One monitor group's buckets, or undefined when the aggregate has none
|
|
147
|
+
* for it - a server that predates them, or a group whose resource shows
|
|
148
|
+
* neither its history nor its uptime. Undefined rather than empty, so a
|
|
149
|
+
* caller can tell "no reading" (paint from the rows) from a reading of
|
|
150
|
+
* days nothing was recorded on (no data).
|
|
151
|
+
*/
|
|
152
|
+
static getBucketsForMonitorGroup(aggregate, monitorGroupId) {
|
|
153
|
+
var _a;
|
|
154
|
+
if (!aggregate) {
|
|
155
|
+
return undefined;
|
|
156
|
+
}
|
|
157
|
+
const wanted = monitorGroupId.toString();
|
|
158
|
+
return (_a = aggregate.monitorGroups.find((monitorGroup) => {
|
|
159
|
+
return monitorGroup.monitorGroupId.toString() === wanted;
|
|
160
|
+
})) === null || _a === void 0 ? void 0 : _a.buckets;
|
|
161
|
+
}
|
|
162
|
+
/*
|
|
163
|
+
* The window every group's buckets cover together, as
|
|
164
|
+
* UptimeDailyAggregateUtil.getWindow reads the monitors': null when there
|
|
165
|
+
* are no buckets at all.
|
|
166
|
+
*/
|
|
167
|
+
static getWindow(aggregate) {
|
|
168
|
+
return UptimeDailyAggregateUtil_1.default.getWindow({
|
|
169
|
+
monitors: ((aggregate === null || aggregate === void 0 ? void 0 : aggregate.monitorGroups) || []).map((monitorGroup) => {
|
|
170
|
+
return {
|
|
171
|
+
monitorId: monitorGroup.monitorGroupId,
|
|
172
|
+
buckets: monitorGroup.buckets,
|
|
173
|
+
};
|
|
174
|
+
}),
|
|
175
|
+
isComplete: true,
|
|
176
|
+
completeFrom: null,
|
|
177
|
+
timezone: aggregate === null || aggregate === void 0 ? void 0 : aggregate.timezone,
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
exports.default = MonitorGroupUptimeDailyAggregateUtil;
|
|
@@ -105,6 +105,7 @@ export default class StatusPageResourceExplorerUtil {
|
|
|
105
105
|
countIndex: StatusPageResourceCountIndex;
|
|
106
106
|
}): StatusPageResourceSelection;
|
|
107
107
|
static getResourceName(resource: StatusPageResource): string;
|
|
108
|
+
static getKnownResourceName(resource: StatusPageResource): string | undefined;
|
|
108
109
|
static filterResources(data: {
|
|
109
110
|
statusPageResources: Array<StatusPageResource>;
|
|
110
111
|
searchText?: string | undefined;
|
|
@@ -105,6 +105,7 @@ export default class StatusPageResourceExplorerUtil {
|
|
|
105
105
|
countIndex: StatusPageResourceCountIndex;
|
|
106
106
|
}): StatusPageResourceSelection;
|
|
107
107
|
static getResourceName(resource: StatusPageResource): string;
|
|
108
|
+
static getKnownResourceName(resource: StatusPageResource): string | undefined;
|
|
108
109
|
static filterResources(data: {
|
|
109
110
|
statusPageResources: Array<StatusPageResource>;
|
|
110
111
|
searchText?: string | undefined;
|
|
@@ -313,11 +313,21 @@ class StatusPageResourceExplorerUtil {
|
|
|
313
313
|
* is a row nobody can clean up.
|
|
314
314
|
*/
|
|
315
315
|
static getResourceName(resource) {
|
|
316
|
+
return (StatusPageResourceExplorerUtil.getKnownResourceName(resource) ||
|
|
317
|
+
"Unknown resource");
|
|
318
|
+
}
|
|
319
|
+
/*
|
|
320
|
+
* The same name, or none at all for a resource left with no name: the
|
|
321
|
+
* hover title of a name cut short to fit its row (ResourceList,
|
|
322
|
+
* ResourceGrid), which says nothing rather than an untranslated
|
|
323
|
+
* "Unknown resource".
|
|
324
|
+
*/
|
|
325
|
+
static getKnownResourceName(resource) {
|
|
316
326
|
var _a, _b;
|
|
317
327
|
return (((_a = resource.monitor) === null || _a === void 0 ? void 0 : _a.name) ||
|
|
318
328
|
((_b = resource.monitorGroup) === null || _b === void 0 ? void 0 : _b.name) ||
|
|
319
329
|
resource.displayName ||
|
|
320
|
-
|
|
330
|
+
undefined);
|
|
321
331
|
}
|
|
322
332
|
/*
|
|
323
333
|
* Free text over the two names a resource has. Client side, over the group's
|