@oneuptime/common 14.0.109 → 14.1.0
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/SecurityEvent.js +1 -1
- package/Models/DatabaseModels/AIInsight.js +2 -2
- package/Models/DatabaseModels/AIRunRecording.d.mts +12 -0
- package/Models/DatabaseModels/AIRunRecording.d.ts +12 -0
- package/Models/DatabaseModels/AIRunRecording.js +181 -0
- package/Models/DatabaseModels/AIRunRecording.mjs +2 -0
- package/Models/DatabaseModels/Alert.js +20 -4
- 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/DataStore.js +9 -0
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.mts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.ts +2 -0
- package/Models/DatabaseModels/EmailLog.js +14 -14
- package/Models/DatabaseModels/Form.js +3 -3
- package/Models/DatabaseModels/FormSubmission.js +6 -6
- package/Models/DatabaseModels/GlobalConfig.d.mts +1 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +1 -0
- package/Models/DatabaseModels/GlobalConfig.js +74 -45
- package/Models/DatabaseModels/Incident.js +20 -4
- 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/IncidentSlaRule.js +2 -2
- package/Models/DatabaseModels/IncidentState.js +1 -1
- package/Models/DatabaseModels/IncidentTemplate.js +2 -2
- package/Models/DatabaseModels/Index.js +4 -0
- package/Models/DatabaseModels/InventoryItem.js +11 -0
- package/Models/DatabaseModels/Monitor.js +54 -20
- package/Models/DatabaseModels/MonitorNetworkDevice.d.mts +11 -0
- package/Models/DatabaseModels/MonitorNetworkDevice.d.ts +11 -0
- package/Models/DatabaseModels/MonitorNetworkDevice.js +189 -0
- package/Models/DatabaseModels/MonitorNetworkDevice.mjs +2 -0
- package/Models/DatabaseModels/MonitorProbe.js +22 -5
- package/Models/DatabaseModels/NetworkDevice.d.mts +1 -0
- package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
- package/Models/DatabaseModels/NetworkDevice.js +64 -7
- package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.js +39 -7
- package/Models/DatabaseModels/NetworkInterface.js +5 -5
- 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.js +28 -11
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +10 -7
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.mts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.ts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.js +16 -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/OnCallDutyPolicyUserOverride.js +35 -7
- package/Models/DatabaseModels/OpenStackCloudCheck.js +8 -1
- package/Models/DatabaseModels/Project.d.mts +3 -0
- package/Models/DatabaseModels/Project.d.ts +3 -0
- package/Models/DatabaseModels/Project.js +142 -5
- package/Models/DatabaseModels/ProjectCallSMSConfig.js +3 -1
- package/Models/DatabaseModels/ProjectSmtpConfig.js +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/PublicNoteApprovalRequest.js +3 -3
- package/Models/DatabaseModels/PublicNoteApprovalStep.js +1 -1
- package/Models/DatabaseModels/PushNotificationLog.js +12 -12
- package/Models/DatabaseModels/Reseller.js +8 -2
- package/Models/DatabaseModels/ResellerPlan.js +8 -2
- package/Models/DatabaseModels/RunbookExecution.js +2 -2
- package/Models/DatabaseModels/RunbookRule.js +6 -6
- package/Models/DatabaseModels/ScheduledMaintenance.js +9 -6
- package/Models/DatabaseModels/ScheduledMaintenanceCalendarFeed.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceInternalNote.js +7 -4
- package/Models/DatabaseModels/ScheduledMaintenanceLabelRule.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js +7 -7
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +3 -3
- package/Models/DatabaseModels/ScheduledMaintenanceOwnerRule.js +6 -6
- package/Models/DatabaseModels/ScheduledMaintenanceOwnerTeam.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenanceOwnerUser.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +10 -7
- package/Models/DatabaseModels/ScheduledMaintenanceReminderRule.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +5 -5
- 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/TeamMember.js +10 -1
- 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 +4 -0
- package/Models/DatabaseModels/User.d.ts +4 -0
- package/Models/DatabaseModels/User.js +100 -0
- package/Models/DatabaseModels/UserOnCallLog.js +6 -6
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +3 -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/WorkspaceNotificationRule.js +36 -1
- package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
- package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.js +3 -3
- package/Server/Services/DatabaseService.d.mts +4 -1
- package/Server/Services/DatabaseService.d.ts +4 -1
- package/Server/Types/Database/CountBy.d.mts +1 -0
- package/Server/Types/Database/CountBy.d.ts +1 -0
- package/Server/Types/Database/UpdateLimit.d.mts +6 -0
- package/Server/Types/Database/UpdateLimit.d.ts +6 -0
- package/Types/AI/AIActionWords.d.mts +25 -1
- package/Types/AI/AIActionWords.d.ts +25 -1
- package/Types/AI/AIActionWords.js +166 -3
- package/Types/AI/AIActionWords.mjs +6 -0
- package/Types/AI/AIChatTypes.d.mts +4 -2
- package/Types/AI/AIChatTypes.d.ts +4 -2
- package/Types/AI/AIChatTypes.js +5 -0
- package/Types/AI/AiOutcomes.d.mts +57 -0
- package/Types/AI/AiOutcomes.d.ts +57 -0
- package/Types/AI/AiOutcomes.js +67 -0
- package/Types/AI/AiOutcomes.mjs +10 -0
- package/Types/AI/AiRunRefusal.d.mts +45 -0
- package/Types/AI/AiRunRefusal.d.ts +45 -0
- package/Types/AI/AiRunRefusal.js +187 -0
- package/Types/AI/AiRunRefusal.mjs +12 -0
- package/Types/AI/InvestigationRecording.d.mts +46 -0
- package/Types/AI/InvestigationRecording.d.ts +46 -0
- package/Types/AI/InvestigationRecording.js +42 -0
- package/Types/AI/InvestigationRecording.mjs +7 -0
- package/Types/API/HTTPResponse.d.mts +3 -0
- package/Types/API/HTTPResponse.d.ts +3 -0
- package/Types/API/HTTPResponse.js +15 -0
- package/Types/Analytics/ProductEvent.d.mts +6 -1
- package/Types/Analytics/ProductEvent.d.ts +6 -1
- package/Types/Analytics/ProductEvent.js +41 -0
- package/Types/AuditLog/AuditLogCoverage.d.mts +1 -0
- package/Types/AuditLog/AuditLogCoverage.d.ts +1 -0
- package/Types/AuditLog/AuditLogCoverage.js +4 -2
- package/Types/BaseDatabase/AggregateBy.d.mts +16 -0
- package/Types/BaseDatabase/AggregateBy.d.ts +16 -0
- package/Types/BaseDatabase/AggregationIntervalUtil.d.mts +16 -1
- package/Types/BaseDatabase/AggregationIntervalUtil.d.ts +16 -1
- package/Types/BaseDatabase/AggregationIntervalUtil.js +92 -2
- package/Types/BaseDatabase/ListResult.d.mts +1 -0
- package/Types/BaseDatabase/ListResult.d.ts +1 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.d.mts +47 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.d.ts +47 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.js +282 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.mjs +7 -0
- 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/Dashboard/DashboardAutoRefresh.d.mts +1 -0
- package/Types/Dashboard/DashboardAutoRefresh.d.ts +1 -0
- package/Types/Dashboard/DashboardAutoRefresh.js +21 -0
- package/Types/Dashboard/DashboardAutoRefresh.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/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 +26 -2
- package/Types/Date.d.ts +26 -2
- package/Types/Date.js +81 -9
- package/Types/Date.mjs +1 -0
- package/Types/DateLanguage.d.mts +2 -0
- package/Types/DateLanguage.d.ts +2 -0
- package/Types/DateLanguage.js +44 -2
- package/Types/DateLanguage.mjs +2 -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/GlossaryTerm.d.mts +1 -0
- package/Types/Docs/GlossaryTerm.d.ts +1 -0
- package/Types/Docs/GlossaryTerm.js +2 -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/ServerEmailEnvironment.d.mts +85 -0
- package/Types/Email/ServerEmailEnvironment.d.ts +85 -0
- package/Types/Email/ServerEmailEnvironment.js +793 -0
- package/Types/Email/ServerEmailEnvironment.mjs +14 -0
- package/Types/Exception/AiRunRefusalException.d.mts +6 -0
- package/Types/Exception/AiRunRefusalException.d.ts +6 -0
- package/Types/Exception/AiRunRefusalException.js +23 -0
- package/Types/Exception/AiRunRefusalException.mjs +2 -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 +13 -0
- package/Types/Exception/UnexplainedError.d.ts +13 -0
- package/Types/Exception/UnexplainedError.js +53 -1
- package/Types/Exception/UnexplainedError.mjs +1 -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/Form/FormTargetCatalog.js +2 -2
- package/Types/Form/FormTargetType.js +2 -2
- 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/ListData.d.mts +2 -0
- package/Types/ListData.d.ts +2 -0
- package/Types/ListData.js +4 -0
- package/Types/Monitor/MonitorCriteria.js +2 -2
- package/Types/Monitor/MonitorCriteriaInstance.js +9 -0
- package/Types/Monitor/MonitorNotCheckedReason.d.mts +7 -0
- package/Types/Monitor/MonitorNotCheckedReason.d.ts +7 -0
- package/Types/Monitor/MonitorNotCheckedReason.js +36 -0
- package/Types/Monitor/MonitorNotCheckedReason.mjs +4 -0
- 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/SnmpMonitor/NetworkTopology.d.mts +6 -0
- package/Types/Monitor/SnmpMonitor/NetworkTopology.d.ts +6 -0
- package/Types/Monitor/UptimeHistoryLabels.js +2 -2
- package/Types/Monitor/WhoIsTold.d.mts +3 -1
- package/Types/Monitor/WhoIsTold.d.ts +3 -1
- package/Types/Monitor/WhoIsTold.js +2 -1
- 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/GlobalUserOverrideAccess.d.mts +1 -0
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.ts +1 -0
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.js +12 -9
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +3 -1
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +3 -1
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +24 -6
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +1 -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/OnCallPagePassOn.d.mts +1 -0
- package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.ts +1 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.mts +12 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.ts +12 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.js +38 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.mjs +3 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +44 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +44 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.js +96 -5
- package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +1 -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/ScheduleLayerDefaults.js +5 -2
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.mts +92 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.ts +92 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.js +512 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.mjs +7 -0
- package/Types/OnCallDutyPolicy/UserOverrideCoverRequest.js +9 -1
- package/Types/OnCallDutyPolicy/UserOverrideEdit.d.mts +23 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.d.ts +23 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.js +105 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.mjs +6 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.mts +64 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.ts +64 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.js +237 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.mjs +14 -0
- package/Types/Permission.d.mts +2 -2
- package/Types/Permission.d.ts +2 -2
- package/Types/Permission.js +196 -195
- package/Types/Probe/ProbeCapability.d.mts +2 -1
- package/Types/Probe/ProbeCapability.d.ts +2 -1
- package/Types/Probe/ProbeCapability.js +10 -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/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/ProjectProductsAnswer.d.mts +3 -0
- package/Types/Product/ProjectProductsAnswer.d.ts +3 -0
- package/Types/Product/ProjectProductsAnswer.js +35 -2
- package/Types/Product/ProjectProductsAnswer.mjs +1 -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/ProductFeedback.d.mts +3 -1
- package/Types/ProductFeedback/ProductFeedback.d.ts +3 -1
- package/Types/ProductFeedback/ProductFeedback.js +8 -0
- package/Types/ReaderLanguage.d.mts +1 -0
- package/Types/ReaderLanguage.d.ts +1 -0
- package/Types/ReaderLanguage.js +13 -1
- package/Types/ReaderLanguage.mjs +1 -0
- package/Types/Rules/RuleRun.js +2 -2
- 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/ScheduledMaintenance/MaintenanceCalendar.js +1 -1
- package/Types/ServerSending/ServerSendingStatus.d.mts +7 -0
- package/Types/ServerSending/ServerSendingStatus.d.ts +7 -0
- package/Types/ServerSending/ServerSendingStatus.js +49 -2
- package/Types/ServerSetup/ServerSetupChecklist.js +3 -3
- package/Types/StateTimeline/RowsKeptOnDelete.js +1 -1
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.mts +8 -0
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.ts +8 -0
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.js +50 -0
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.mjs +3 -0
- package/Types/StatusPage/PublicNoteSubscriberNotificationDefault.js +1 -1
- package/Types/Telemetry/CompatibleIngest.d.mts +20 -0
- package/Types/Telemetry/CompatibleIngest.d.ts +20 -0
- package/Types/Telemetry/CompatibleIngest.js +123 -0
- package/Types/Telemetry/CompatibleIngest.mjs +21 -0
- package/Types/Telemetry/TelemetryIngestSurface.d.mts +5 -0
- package/Types/Telemetry/TelemetryIngestSurface.d.ts +5 -0
- package/Types/Telemetry/TelemetryIngestSurface.js +54 -12
- package/Types/TimezoneAlias.d.mts +1 -0
- package/Types/TimezoneAlias.d.ts +1 -0
- package/Types/TimezoneAlias.js +13 -0
- package/Types/Translator.d.mts +1 -0
- package/Types/Translator.d.ts +1 -0
- package/Types/Translator.js +414 -50
- 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/WelcomeChecklist/WelcomeChecklist.d.mts +6 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +6 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.js +54 -2
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +1 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +1 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +3 -0
- package/Types/Workflow/PassedOnFields.js +2 -1
- package/Types/Workflow/RunRecord.js +1 -1
- package/Types/Workflow/Templates.js +3 -3
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +2 -0
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +2 -0
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +28 -1
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +28 -1
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +84 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +84 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +456 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.mjs +5 -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/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/ValueWidgetSeries.d.mts +2 -0
- package/Utils/Dashboard/ValueWidgetSeries.d.ts +2 -0
- package/Utils/Dashboard/ValueWidgetSeries.js +75 -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/ExampleBuilder.js +1 -1
- package/Utils/DeveloperDocs/ResourceProfiles.js +2 -2
- package/Utils/DeveloperDocs/TerraformSchema.js +3 -1
- package/Utils/GuidedSetup/StatusPageRecords.d.mts +5 -0
- package/Utils/GuidedSetup/StatusPageRecords.d.ts +5 -0
- package/Utils/GuidedSetup/StatusPageRecords.js +27 -2
- package/Utils/GuidedSetup/StatusPageRecords.mjs +1 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.js +6 -0
- package/Utils/HostAddressUtil.d.mts +1 -0
- package/Utils/HostAddressUtil.d.ts +1 -0
- package/Utils/HostAddressUtil.js +30 -0
- package/Utils/LinearRegExp/LinearRegExp.js +5 -1
- package/Utils/Markdown/LinkReferenceDefinitions.d.mts +8 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +8 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +1493 -131
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +1 -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/Milliseconds.d.mts +7 -0
- package/Utils/Milliseconds.d.ts +7 -0
- package/Utils/Milliseconds.js +60 -0
- package/Utils/Milliseconds.mjs +4 -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.d.mts +8 -0
- package/Utils/Monitor/EndpointAttachmentUtil.d.ts +8 -0
- package/Utils/Monitor/EndpointAttachmentUtil.js +97 -22
- package/Utils/Monitor/EndpointAttachmentUtil.mjs +4 -0
- package/Utils/Monitor/ExternalStatusPageReading.d.mts +3 -0
- package/Utils/Monitor/ExternalStatusPageReading.d.ts +3 -0
- package/Utils/Monitor/ExternalStatusPageReading.js +35 -1
- package/Utils/Monitor/ExternalStatusPageReading.mjs +2 -0
- package/Utils/Monitor/InterfaceInventoryUtil.d.mts +40 -0
- package/Utils/Monitor/InterfaceInventoryUtil.d.ts +40 -0
- package/Utils/Monitor/InterfaceInventoryUtil.js +217 -5
- package/Utils/Monitor/InterfaceInventoryUtil.mjs +8 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +63 -29
- package/Utils/Monitor/MonitorOverviewProbeUtil.js +13 -2
- package/Utils/Monitor/MonitorRootCauseWording.d.mts +2 -0
- package/Utils/Monitor/MonitorRootCauseWording.d.ts +2 -0
- package/Utils/Monitor/MonitorRootCauseWording.js +58 -4
- 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/MonitoringOff.d.mts +2 -0
- package/Utils/Monitor/MonitoringOff.d.ts +2 -0
- package/Utils/Monitor/MonitoringOff.js +21 -0
- package/Utils/Monitor/NetworkTopologyUtil.d.mts +2 -1
- package/Utils/Monitor/NetworkTopologyUtil.d.ts +2 -1
- package/Utils/Monitor/NetworkTopologyUtil.js +10 -0
- package/Utils/Monitor/NotOperationalMonitorQuery.d.mts +2 -1
- package/Utils/Monitor/NotOperationalMonitorQuery.d.ts +2 -1
- package/Utils/Monitor/NotOperationalMonitorQuery.js +23 -4
- package/Utils/Monitor/ProbeFailureReading.d.mts +14 -0
- package/Utils/Monitor/ProbeFailureReading.d.ts +14 -0
- package/Utils/Monitor/ProbeFailureReading.js +137 -0
- package/Utils/Monitor/ProbeFailureReading.mjs +7 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.d.mts +9 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.d.ts +9 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.js +15 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.mjs +2 -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/NextNumber.js +1 -1
- package/Utils/Project/NotificationChannels.js +5 -5
- package/Utils/Project/ProjectBalance.js +2 -2
- package/Utils/Project/TwilioAccount.js +2 -2
- package/Utils/PromQL/PromQLAst.d.mts +159 -0
- package/Utils/PromQL/PromQLAst.d.ts +159 -0
- package/Utils/PromQL/PromQLAst.js +118 -0
- package/Utils/PromQL/PromQLAst.mjs +12 -0
- package/Utils/PromQL/PromQLDuration.d.mts +2 -0
- package/Utils/PromQL/PromQLDuration.d.ts +2 -0
- package/Utils/PromQL/PromQLDuration.js +78 -0
- package/Utils/PromQL/PromQLDuration.mjs +3 -0
- package/Utils/PromQL/PromQLEngine.d.mts +15 -0
- package/Utils/PromQL/PromQLEngine.d.ts +15 -0
- package/Utils/PromQL/PromQLEngine.js +965 -0
- package/Utils/PromQL/PromQLEngine.mjs +7 -0
- package/Utils/PromQL/PromQLEngineTypes.d.mts +84 -0
- package/Utils/PromQL/PromQLEngineTypes.d.ts +84 -0
- package/Utils/PromQL/PromQLEngineTypes.js +10 -0
- package/Utils/PromQL/PromQLEngineTypes.mjs +2 -0
- package/Utils/PromQL/PromQLError.d.mts +11 -0
- package/Utils/PromQL/PromQLError.d.ts +11 -0
- package/Utils/PromQL/PromQLError.js +27 -0
- package/Utils/PromQL/PromQLError.mjs +3 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.d.mts +8 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.d.ts +8 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.js +773 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.mjs +3 -0
- package/Utils/PromQL/PromQLFunctions.d.mts +10 -0
- package/Utils/PromQL/PromQLFunctions.d.ts +10 -0
- package/Utils/PromQL/PromQLFunctions.js +127 -0
- package/Utils/PromQL/PromQLFunctions.mjs +4 -0
- package/Utils/PromQL/PromQLLabels.d.mts +11 -0
- package/Utils/PromQL/PromQLLabels.d.ts +11 -0
- package/Utils/PromQL/PromQLLabels.js +218 -0
- package/Utils/PromQL/PromQLLabels.mjs +9 -0
- package/Utils/PromQL/PromQLLexer.d.mts +39 -0
- package/Utils/PromQL/PromQLLexer.d.ts +39 -0
- package/Utils/PromQL/PromQLLexer.js +391 -0
- package/Utils/PromQL/PromQLLexer.mjs +3 -0
- package/Utils/PromQL/PromQLMath.d.mts +19 -0
- package/Utils/PromQL/PromQLMath.d.ts +19 -0
- package/Utils/PromQL/PromQLMath.js +200 -0
- package/Utils/PromQL/PromQLMath.mjs +9 -0
- package/Utils/PromQL/PromQLMetricNames.d.mts +21 -0
- package/Utils/PromQL/PromQLMetricNames.d.ts +21 -0
- package/Utils/PromQL/PromQLMetricNames.js +199 -0
- package/Utils/PromQL/PromQLMetricNames.mjs +8 -0
- package/Utils/PromQL/PromQLParser.d.mts +4 -0
- package/Utils/PromQL/PromQLParser.d.ts +4 -0
- package/Utils/PromQL/PromQLParser.js +831 -0
- package/Utils/PromQL/PromQLParser.mjs +4 -0
- package/Utils/PromQL/PromQLRegex.d.mts +9 -0
- package/Utils/PromQL/PromQLRegex.d.ts +9 -0
- package/Utils/PromQL/PromQLRegex.js +74 -0
- package/Utils/PromQL/PromQLRegex.mjs +2 -0
- package/Utils/PromQL/PrometheusResponse.d.mts +25 -0
- package/Utils/PromQL/PrometheusResponse.d.ts +25 -0
- package/Utils/PromQL/PrometheusResponse.js +90 -0
- package/Utils/PromQL/PrometheusResponse.mjs +3 -0
- package/Utils/Rum/PathInSentence.d.mts +5 -0
- package/Utils/Rum/PathInSentence.d.ts +5 -0
- package/Utils/Rum/PathInSentence.js +46 -0
- package/Utils/Rum/PathInSentence.mjs +6 -0
- package/Utils/Rum/UrlScrubber.d.mts +4 -0
- package/Utils/Rum/UrlScrubber.d.ts +4 -0
- package/Utils/Rum/UrlScrubber.js +143 -3
- package/Utils/Rum/UserFlow.d.mts +1 -1
- package/Utils/Rum/UserFlow.d.ts +1 -1
- package/Utils/Rum/UserFlow.js +180 -25
- package/Utils/Rum/UserFlow.mjs +1 -1
- package/Utils/Runbook/RunbookStepsSignature.d.mts +3 -0
- package/Utils/Runbook/RunbookStepsSignature.d.ts +3 -0
- package/Utils/Runbook/RunbookStepsSignature.js +30 -0
- package/Utils/Runbook/RunbookStepsSignature.mjs +3 -0
- 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/Schema/TypeSchemas.js +6 -0
- package/Utils/Slo/SloDuration.d.mts +5 -2
- package/Utils/Slo/SloDuration.d.ts +5 -2
- package/Utils/Slo/SloDuration.js +11 -6
- package/Utils/Slo/SloHealth.js +1 -1
- package/Utils/StateOrder.js +1 -4
- package/Utils/StateTimeline/StateTimelineRowDelete.js +1 -1
- package/Utils/Telemetry/HeartbeatAvailability.d.mts +4 -0
- package/Utils/Telemetry/HeartbeatAvailability.d.ts +4 -0
- package/Utils/Telemetry/HeartbeatAvailability.js +118 -26
- package/Utils/Uptime/DayUptimeGraphUtil.js +2 -2
- package/Utils/Uptime/UptimeMaintenanceUtil.js +2 -1
- package/Utils/ValueFormatter.d.mts +8 -6
- package/Utils/ValueFormatter.d.ts +8 -6
- package/Utils/ValueFormatter.js +145 -0
- package/package.json +1 -1
|
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
const FeedMarkdown_1 = __importStar(require("../Markdown/FeedMarkdown"));
|
|
37
37
|
const EvaluationSentence_1 = require("../../Types/Monitor/EvaluationSentence");
|
|
38
38
|
const Translator_1 = require("../../Types/Translator");
|
|
39
|
+
const ProbeFailureReading_1 = require("./ProbeFailureReading");
|
|
39
40
|
/*
|
|
40
41
|
* THE ROOT CAUSE A MONITOR WROTE, IN THE READER'S LANGUAGE (issue #6542).
|
|
41
42
|
*
|
|
@@ -61,6 +62,12 @@ const Translator_1 = require("../../Types/Translator");
|
|
|
61
62
|
* written. A root cause somebody edited reads as they wrote it, but for a
|
|
62
63
|
* line that is still OneUptime's own.
|
|
63
64
|
*
|
|
65
|
+
* Two of the check's values are OneUptime's own words too, and read in the
|
|
66
|
+
* reader's language when the whole value is exactly them: the probe's
|
|
67
|
+
* timeout sentence after **Cause** ("Request was tried 3 times and it
|
|
68
|
+
* timed out.", ProbeFailureReading), and the phase after "- Failed Phase:"
|
|
69
|
+
* (DNS Resolution, TLS Handshake).
|
|
70
|
+
*
|
|
64
71
|
* Line by line, and only a whole line, or a label at a line's start, is
|
|
65
72
|
* ever replaced: nothing else in the text is read as one of OneUptime's.
|
|
66
73
|
* A line that is replaced is written with mdText, as the engine wrote it:
|
|
@@ -129,6 +136,10 @@ const FACT_LABEL_SET = new Set(FACT_LABELS);
|
|
|
129
136
|
// What an All criteria's root cause says before its findings.
|
|
130
137
|
const ALL_FILTERS_MET = (0, Translator_1.translationKey)("All filters met.");
|
|
131
138
|
const FILTER_CONDITIONS_MET = "Filter Conditions Met";
|
|
139
|
+
// "**Cause**: <why the check failed>" - the probe's failure cause.
|
|
140
|
+
const CAUSE = "Cause";
|
|
141
|
+
// "- Failed Phase: <the phase a request broke in>".
|
|
142
|
+
const FAILED_PHASE = "Failed Phase";
|
|
132
143
|
/*
|
|
133
144
|
* "**Label**" or "**Label**: rest" - a label of at most 80 characters with
|
|
134
145
|
* no asterisk or line break in it, so the match is linear in the line.
|
|
@@ -177,6 +188,13 @@ class MonitorRootCauseWording {
|
|
|
177
188
|
const stored = boldLabel[3] || "";
|
|
178
189
|
// What follows the label: as stored, unless this language words it.
|
|
179
190
|
let rest = FeedMarkdown_1.default.asMarkdown(stored);
|
|
191
|
+
// "**Cause**: <the probe's timeout sentence>", worded with its count.
|
|
192
|
+
if (label === CAUSE && stored.startsWith(" ")) {
|
|
193
|
+
const worded = MonitorRootCauseWording.wordProbeTimeout(stored.slice(1), translator);
|
|
194
|
+
if (worded !== null) {
|
|
195
|
+
rest = (0, FeedMarkdown_1.mdText) ` ${worded}`;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
180
198
|
// "**Filter Conditions Met**: <the finding, or All filters met.>"
|
|
181
199
|
if (label === FILTER_CONDITIONS_MET && stored.startsWith(" ")) {
|
|
182
200
|
const said = stored.slice(1);
|
|
@@ -199,10 +217,18 @@ class MonitorRootCauseWording {
|
|
|
199
217
|
if (fact && FACT_LABEL_SET.has(fact[1])) {
|
|
200
218
|
const label = fact[1];
|
|
201
219
|
const stored = fact[2] || "";
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
220
|
+
/*
|
|
221
|
+
* OneUptime's own yes or no, and the phase a request broke in, are
|
|
222
|
+
* worded; any other value is as stored.
|
|
223
|
+
*/
|
|
224
|
+
let value = FeedMarkdown_1.default.asMarkdown(stored);
|
|
225
|
+
if (YES_NO_FACTS.has(label) &&
|
|
226
|
+
(stored === "Yes" || stored === "No")) {
|
|
227
|
+
value = MonitorRootCauseWording.word(stored, translator);
|
|
228
|
+
}
|
|
229
|
+
else if (label === FAILED_PHASE) {
|
|
230
|
+
value = MonitorRootCauseWording.wordFailedPhase(stored, translator);
|
|
231
|
+
}
|
|
206
232
|
return (0, FeedMarkdown_1.mdText) `- ${MonitorRootCauseWording.word(label, translator)}: ${value}`.toString();
|
|
207
233
|
}
|
|
208
234
|
// "- <a finding>", under All filters met.
|
|
@@ -223,6 +249,34 @@ class MonitorRootCauseWording {
|
|
|
223
249
|
static word(text, translator) {
|
|
224
250
|
return translator.translateText(text) || text;
|
|
225
251
|
}
|
|
252
|
+
/*
|
|
253
|
+
* The probe's timeout sentence, as the engine placed it after **Cause**
|
|
254
|
+
* (written with mdText, so compared written the same way), in the
|
|
255
|
+
* reader's language with its count in the reader's digits. Null for any
|
|
256
|
+
* other cause, and when the reader's language does not word it.
|
|
257
|
+
*/
|
|
258
|
+
static wordProbeTimeout(stored, translator) {
|
|
259
|
+
const triedCount = (0, ProbeFailureReading_1.readProbeTimeoutFailureCause)(stored);
|
|
260
|
+
if (triedCount === null ||
|
|
261
|
+
asMarkdownText((0, ProbeFailureReading_1.writeProbeTimeoutFailureCause)(triedCount)).toString() !==
|
|
262
|
+
stored ||
|
|
263
|
+
!translator.hasTranslation(ProbeFailureReading_1.PROBE_TIMEOUT_FAILURE_CAUSE.other)) {
|
|
264
|
+
return null;
|
|
265
|
+
}
|
|
266
|
+
return translator.translatePlural(ProbeFailureReading_1.PROBE_TIMEOUT_FAILURE_CAUSE, triedCount);
|
|
267
|
+
}
|
|
268
|
+
/*
|
|
269
|
+
* The phase a request broke in: a phase the probe names, in the reader's
|
|
270
|
+
* word; any other value as stored.
|
|
271
|
+
*/
|
|
272
|
+
static wordFailedPhase(stored, translator) {
|
|
273
|
+
const phase = stored.trim();
|
|
274
|
+
const worded = (0, ProbeFailureReading_1.getRequestFailedPhaseText)({
|
|
275
|
+
translator: translator,
|
|
276
|
+
failedPhase: phase,
|
|
277
|
+
});
|
|
278
|
+
return phase && worded !== phase ? worded : FeedMarkdown_1.default.asMarkdown(stored);
|
|
279
|
+
}
|
|
226
280
|
// Each finding with a sentence its reader's language words.
|
|
227
281
|
static getWordedFindings(data) {
|
|
228
282
|
const worded = [];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RefusalWithValues } from "../../Types/Exception/RefusalWithValues.mjs";
|
|
2
|
+
export declare const MONITOR_NOT_FOUND_REFUSAL: string;
|
|
3
|
+
export declare const MONITOR_IN_ANOTHER_PROJECT_REFUSAL: string;
|
|
4
|
+
export declare const MONITOR_NOT_LINKED_REFUSAL: string;
|
|
5
|
+
export declare const MONITOR_TYPE_MISMATCH_REFUSAL: RefusalWithValues;
|
|
6
|
+
export declare const getMonitorTypeMismatchRefusal: (data: {
|
|
7
|
+
monitorType: string;
|
|
8
|
+
templateType: string;
|
|
9
|
+
}) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RefusalWithValues } from "../../Types/Exception/RefusalWithValues";
|
|
2
|
+
export declare const MONITOR_NOT_FOUND_REFUSAL: string;
|
|
3
|
+
export declare const MONITOR_IN_ANOTHER_PROJECT_REFUSAL: string;
|
|
4
|
+
export declare const MONITOR_NOT_LINKED_REFUSAL: string;
|
|
5
|
+
export declare const MONITOR_TYPE_MISMATCH_REFUSAL: RefusalWithValues;
|
|
6
|
+
export declare const getMonitorTypeMismatchRefusal: (data: {
|
|
7
|
+
monitorType: string;
|
|
8
|
+
templateType: string;
|
|
9
|
+
}) => string;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMonitorTypeMismatchRefusal = exports.MONITOR_TYPE_MISMATCH_REFUSAL = exports.MONITOR_NOT_LINKED_REFUSAL = exports.MONITOR_IN_ANOTHER_PROJECT_REFUSAL = exports.MONITOR_NOT_FOUND_REFUSAL = void 0;
|
|
4
|
+
const RefusalWithValues_1 = require("../../Types/Exception/RefusalWithValues");
|
|
5
|
+
const Translator_1 = require("../../Types/Translator");
|
|
6
|
+
/*
|
|
7
|
+
* WHY A MONITOR CANNOT BE LINKED TO A TEMPLATE, SYNCED FROM IT OR UNLINKED
|
|
8
|
+
* (#7678).
|
|
9
|
+
*
|
|
10
|
+
* MonitorTemplateService refuses with these, and the template's page shows
|
|
11
|
+
* them: Link Existing Monitors says why each monitor it could not link was
|
|
12
|
+
* refused, and Sync from Template and Unlink from Template say why they did
|
|
13
|
+
* not finish. They were fragments ("Monitor not found", "Monitor and
|
|
14
|
+
* template belong to different projects") and a sentence with the two types
|
|
15
|
+
* inside it ("Monitor type "Ping" does not match template type "API""), so
|
|
16
|
+
* the page said them in English in every language. Each is a whole sentence
|
|
17
|
+
* now, and a key of the Dashboard's locales (this directory is a source of
|
|
18
|
+
* its string extractor). The type mismatch keeps its two types as
|
|
19
|
+
* placeholders (RefusalWithValues): the Dashboard reads them back out of
|
|
20
|
+
* the English and says the sentence with the reader's words for them.
|
|
21
|
+
*
|
|
22
|
+
* React-free and server-safe: the server throws these, the Dashboard reads
|
|
23
|
+
* them.
|
|
24
|
+
*/
|
|
25
|
+
// The monitor is gone, or the caller may not see it.
|
|
26
|
+
exports.MONITOR_NOT_FOUND_REFUSAL = (0, Translator_1.translationKey)("This monitor does not exist in this project, or you do not have access to it.");
|
|
27
|
+
exports.MONITOR_IN_ANOTHER_PROJECT_REFUSAL = (0, Translator_1.translationKey)("This monitor and this template are in different projects.");
|
|
28
|
+
// Sync from Template and Unlink from Template reach only the template's own monitors.
|
|
29
|
+
exports.MONITOR_NOT_LINKED_REFUSAL = (0, Translator_1.translationKey)("This monitor is not linked to this template.");
|
|
30
|
+
/*
|
|
31
|
+
* A template links only monitors of its own type: its criteria are written
|
|
32
|
+
* for that type.
|
|
33
|
+
*/
|
|
34
|
+
exports.MONITOR_TYPE_MISMATCH_REFUSAL = {
|
|
35
|
+
template: (0, Translator_1.translationKey)("This monitor's type is {{monitorType}}, and this template's type is {{templateType}}. Only monitors of the template's type can be linked to it."),
|
|
36
|
+
terms: ["monitorType", "templateType"],
|
|
37
|
+
};
|
|
38
|
+
// The type mismatch as the server answers it: in English, with the two types.
|
|
39
|
+
const getMonitorTypeMismatchRefusal = (data) => {
|
|
40
|
+
return (0, RefusalWithValues_1.getRefusalText)(exports.MONITOR_TYPE_MISMATCH_REFUSAL, {
|
|
41
|
+
monitorType: data.monitorType,
|
|
42
|
+
templateType: data.templateType,
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
exports.getMonitorTypeMismatchRefusal = getMonitorTypeMismatchRefusal;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import commonJsModule from "./MonitorTemplateLinkRefusal.js";
|
|
2
|
+
export const MONITOR_IN_ANOTHER_PROJECT_REFUSAL = commonJsModule.MONITOR_IN_ANOTHER_PROJECT_REFUSAL;
|
|
3
|
+
export const MONITOR_NOT_FOUND_REFUSAL = commonJsModule.MONITOR_NOT_FOUND_REFUSAL;
|
|
4
|
+
export const MONITOR_NOT_LINKED_REFUSAL = commonJsModule.MONITOR_NOT_LINKED_REFUSAL;
|
|
5
|
+
export const MONITOR_TYPE_MISMATCH_REFUSAL = commonJsModule.MONITOR_TYPE_MISMATCH_REFUSAL;
|
|
6
|
+
export const getMonitorTypeMismatchRefusal = commonJsModule.getMonitorTypeMismatchRefusal;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Monitor from "../../Models/DatabaseModels/Monitor.mjs";
|
|
2
2
|
import Query from "../../Types/BaseDatabase/Query.mjs";
|
|
3
|
+
import MonitorNotCheckedReason from "../../Types/Monitor/MonitorNotCheckedReason.mjs";
|
|
3
4
|
export declare const MONITORING_OFF_SELECT: {
|
|
4
5
|
disableActiveMonitoring: true;
|
|
5
6
|
};
|
|
@@ -17,4 +18,5 @@ export default class MonitoringOff {
|
|
|
17
18
|
static isOff(monitor: MonitoringOffFlags | null | undefined): boolean;
|
|
18
19
|
static getMonitoredQuery(): Query<Monitor>;
|
|
19
20
|
static isMonitored(monitor: MonitoredFlags | null | undefined): boolean;
|
|
21
|
+
static getNotCheckedReason(monitor: MonitoredFlags | null | undefined): MonitorNotCheckedReason | null;
|
|
20
22
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Monitor from "../../Models/DatabaseModels/Monitor";
|
|
2
2
|
import Query from "../../Types/BaseDatabase/Query";
|
|
3
|
+
import MonitorNotCheckedReason from "../../Types/Monitor/MonitorNotCheckedReason";
|
|
3
4
|
export declare const MONITORING_OFF_SELECT: {
|
|
4
5
|
disableActiveMonitoring: true;
|
|
5
6
|
};
|
|
@@ -17,4 +18,5 @@ export default class MonitoringOff {
|
|
|
17
18
|
static isOff(monitor: MonitoringOffFlags | null | undefined): boolean;
|
|
18
19
|
static getMonitoredQuery(): Query<Monitor>;
|
|
19
20
|
static isMonitored(monitor: MonitoredFlags | null | undefined): boolean;
|
|
21
|
+
static getNotCheckedReason(monitor: MonitoredFlags | null | undefined): MonitorNotCheckedReason | null;
|
|
20
22
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.MONITORED_SELECT = exports.MONITORING_OFF_SELECT = void 0;
|
|
7
|
+
const MonitorNotCheckedReason_1 = __importDefault(require("../../Types/Monitor/MonitorNotCheckedReason"));
|
|
4
8
|
/*
|
|
5
9
|
* A MONITOR WHOSE MONITORING IS TURNED OFF.
|
|
6
10
|
*
|
|
@@ -77,5 +81,22 @@ class MonitoringOff {
|
|
|
77
81
|
static isMonitored(monitor) {
|
|
78
82
|
return (monitor === null || monitor === void 0 ? void 0 : monitor.isArchived) !== true && !MonitoringOff.isOff(monitor);
|
|
79
83
|
}
|
|
84
|
+
/*
|
|
85
|
+
* Why nothing checks the monitor (read with MONITORED_SELECT), or null
|
|
86
|
+
* when it is checked - exactly when isMonitored is false, so the two never
|
|
87
|
+
* disagree. Archived wins when both are set: unarchiving is what puts the
|
|
88
|
+
* monitor back, and its switch only matters after that. The device pages'
|
|
89
|
+
* "Monitor archived" and "Monitoring off" qualifiers and the Network Map's
|
|
90
|
+
* device nodes say this reason (issue #7346).
|
|
91
|
+
*/
|
|
92
|
+
static getNotCheckedReason(monitor) {
|
|
93
|
+
if ((monitor === null || monitor === void 0 ? void 0 : monitor.isArchived) === true) {
|
|
94
|
+
return MonitorNotCheckedReason_1.default.MonitorArchived;
|
|
95
|
+
}
|
|
96
|
+
if (MonitoringOff.isOff(monitor)) {
|
|
97
|
+
return MonitorNotCheckedReason_1.default.MonitoringOff;
|
|
98
|
+
}
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
80
101
|
}
|
|
81
102
|
exports.default = MonitoringOff;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import NetworkTopology, { NetworkTopologyNodeStatus } from "../../Types/Monitor/SnmpMonitor/NetworkTopology.mjs";
|
|
1
|
+
import NetworkTopology, { NetworkTopologyMonitorNotChecked, NetworkTopologyNodeStatus } from "../../Types/Monitor/SnmpMonitor/NetworkTopology.mjs";
|
|
2
2
|
import LldpNeighbor from "../../Types/Monitor/SnmpMonitor/LldpNeighbor.mjs";
|
|
3
3
|
import CdpNeighbor from "../../Types/Monitor/SnmpMonitor/CdpNeighbor.mjs";
|
|
4
4
|
import { TopologyDeviceRoleInput } from "./NetworkDeviceRoleCatalog.mjs";
|
|
@@ -32,6 +32,7 @@ export interface TopologyDeviceInput {
|
|
|
32
32
|
controllerProvider?: string | undefined;
|
|
33
33
|
isEndpointCollectionEnabled?: boolean | undefined;
|
|
34
34
|
isDescribedByController?: boolean | undefined;
|
|
35
|
+
monitorNotChecked?: NetworkTopologyMonitorNotChecked | undefined;
|
|
35
36
|
}
|
|
36
37
|
export interface TopologyInterfaceInput {
|
|
37
38
|
networkDeviceId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import NetworkTopology, { NetworkTopologyNodeStatus } from "../../Types/Monitor/SnmpMonitor/NetworkTopology";
|
|
1
|
+
import NetworkTopology, { NetworkTopologyMonitorNotChecked, NetworkTopologyNodeStatus } from "../../Types/Monitor/SnmpMonitor/NetworkTopology";
|
|
2
2
|
import LldpNeighbor from "../../Types/Monitor/SnmpMonitor/LldpNeighbor";
|
|
3
3
|
import CdpNeighbor from "../../Types/Monitor/SnmpMonitor/CdpNeighbor";
|
|
4
4
|
import { TopologyDeviceRoleInput } from "./NetworkDeviceRoleCatalog";
|
|
@@ -32,6 +32,7 @@ export interface TopologyDeviceInput {
|
|
|
32
32
|
controllerProvider?: string | undefined;
|
|
33
33
|
isEndpointCollectionEnabled?: boolean | undefined;
|
|
34
34
|
isDescribedByController?: boolean | undefined;
|
|
35
|
+
monitorNotChecked?: NetworkTopologyMonitorNotChecked | undefined;
|
|
35
36
|
}
|
|
36
37
|
export interface TopologyInterfaceInput {
|
|
37
38
|
networkDeviceId: string;
|
|
@@ -253,6 +253,16 @@ class NetworkTopologyUtil {
|
|
|
253
253
|
*/
|
|
254
254
|
macAddress: (0, EndpointAttachmentUtil_1.normalizeMac)(device.macAddress),
|
|
255
255
|
};
|
|
256
|
+
/*
|
|
257
|
+
* Only when there is one, so a node whose monitor is checked - and
|
|
258
|
+
* every node of an older caller - carries no such field at all.
|
|
259
|
+
*/
|
|
260
|
+
if (device.monitorNotChecked) {
|
|
261
|
+
deviceNode.monitorNotChecked = {
|
|
262
|
+
monitorId: device.monitorNotChecked.monitorId,
|
|
263
|
+
reason: device.monitorNotChecked.reason,
|
|
264
|
+
};
|
|
265
|
+
}
|
|
256
266
|
/*
|
|
257
267
|
* The address it is polled at, when that is an IP: drawn under its
|
|
258
268
|
* name and searched by (issue #5775). A device registered by a DNS
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Monitor from "../../Models/DatabaseModels/Monitor.mjs";
|
|
2
2
|
import Query from "../../Types/BaseDatabase/Query.mjs";
|
|
3
|
+
import ObjectID from "../../Types/ObjectID.mjs";
|
|
3
4
|
export default class NotOperationalMonitorQuery {
|
|
4
|
-
static getQuery(): Query<Monitor>;
|
|
5
|
+
static getQuery(projectId?: ObjectID | string | null | undefined): Query<Monitor>;
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Monitor from "../../Models/DatabaseModels/Monitor";
|
|
2
2
|
import Query from "../../Types/BaseDatabase/Query";
|
|
3
|
+
import ObjectID from "../../Types/ObjectID";
|
|
3
4
|
export default class NotOperationalMonitorQuery {
|
|
4
|
-
static getQuery(): Query<Monitor>;
|
|
5
|
+
static getQuery(projectId?: ObjectID | string | null | undefined): Query<Monitor>;
|
|
5
6
|
}
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const ObjectID_1 = __importDefault(require("../../Types/ObjectID"));
|
|
6
7
|
const MonitoringOff_1 = __importDefault(require("./MonitoringOff"));
|
|
7
8
|
/*
|
|
8
9
|
* WHICH MONITORS ARE NOT OPERATIONAL.
|
|
@@ -30,10 +31,28 @@ const MonitoringOff_1 = __importDefault(require("./MonitoringOff"));
|
|
|
30
31
|
* problemsOnly. The checked monitors are MonitoringOff's.
|
|
31
32
|
*/
|
|
32
33
|
class NotOperationalMonitorQuery {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
/*
|
|
35
|
+
* Given the project the monitors are read in, the status is asked of that
|
|
36
|
+
* project too (issue #8096). A monitor's statuses are its project's own,
|
|
37
|
+
* so the answer is the same, but Postgres can then start from the
|
|
38
|
+
* project's few statuses that are not operational and read only the
|
|
39
|
+
* monitors that hold one (the index on currentMonitorStatusId), where it
|
|
40
|
+
* otherwise reads every monitor of the project and joins each to its
|
|
41
|
+
* status: 1,915 buffers instead of 8,585 for a count in a project of
|
|
42
|
+
* 20,000 monitors. Every Not Operational count and list that knows its
|
|
43
|
+
* project passes it; a list also counts what it lists.
|
|
44
|
+
*/
|
|
45
|
+
static getQuery(projectId) {
|
|
46
|
+
return Object.assign(Object.assign({}, MonitoringOff_1.default.getMonitoredQuery()), { currentMonitorStatus: projectId
|
|
47
|
+
? {
|
|
48
|
+
isOperationalState: false,
|
|
49
|
+
projectId: projectId instanceof ObjectID_1.default
|
|
50
|
+
? projectId
|
|
51
|
+
: new ObjectID_1.default(projectId),
|
|
52
|
+
}
|
|
53
|
+
: {
|
|
54
|
+
isOperationalState: false,
|
|
55
|
+
} });
|
|
37
56
|
}
|
|
38
57
|
}
|
|
39
58
|
exports.default = NotOperationalMonitorQuery;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RequestFailedPhase } from "../../Types/Probe/RequestFailedDetails.mjs";
|
|
2
|
+
import { PluralTemplate, Translator } from "../../Types/Translator.mjs";
|
|
3
|
+
export declare const PROBE_TIMEOUT_FAILURE_CAUSE: PluralTemplate;
|
|
4
|
+
export declare const writeProbeTimeoutFailureCause: (triedCount: number | undefined) => string;
|
|
5
|
+
export declare const readProbeTimeoutFailureCause: (failureCause: string | null | undefined) => number | null;
|
|
6
|
+
export declare const getProbeFailureCauseText: (data: {
|
|
7
|
+
translator: Translator;
|
|
8
|
+
failureCause: string | null | undefined;
|
|
9
|
+
}) => string;
|
|
10
|
+
export declare const REQUEST_FAILED_PHASE_WORDS: Readonly<Record<RequestFailedPhase, string>>;
|
|
11
|
+
export declare const getRequestFailedPhaseText: (data: {
|
|
12
|
+
translator: Translator;
|
|
13
|
+
failedPhase: string | null | undefined;
|
|
14
|
+
}) => string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RequestFailedPhase } from "../../Types/Probe/RequestFailedDetails";
|
|
2
|
+
import { PluralTemplate, Translator } from "../../Types/Translator";
|
|
3
|
+
export declare const PROBE_TIMEOUT_FAILURE_CAUSE: PluralTemplate;
|
|
4
|
+
export declare const writeProbeTimeoutFailureCause: (triedCount: number | undefined) => string;
|
|
5
|
+
export declare const readProbeTimeoutFailureCause: (failureCause: string | null | undefined) => number | null;
|
|
6
|
+
export declare const getProbeFailureCauseText: (data: {
|
|
7
|
+
translator: Translator;
|
|
8
|
+
failureCause: string | null | undefined;
|
|
9
|
+
}) => string;
|
|
10
|
+
export declare const REQUEST_FAILED_PHASE_WORDS: Readonly<Record<RequestFailedPhase, string>>;
|
|
11
|
+
export declare const getRequestFailedPhaseText: (data: {
|
|
12
|
+
translator: Translator;
|
|
13
|
+
failedPhase: string | null | undefined;
|
|
14
|
+
}) => string;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRequestFailedPhaseText = exports.REQUEST_FAILED_PHASE_WORDS = exports.getProbeFailureCauseText = exports.readProbeTimeoutFailureCause = exports.writeProbeTimeoutFailureCause = exports.PROBE_TIMEOUT_FAILURE_CAUSE = void 0;
|
|
4
|
+
const RequestFailedDetails_1 = require("../../Types/Probe/RequestFailedDetails");
|
|
5
|
+
const Translator_1 = require("../../Types/Translator");
|
|
6
|
+
/*
|
|
7
|
+
* WHY A PROBE'S CHECK FAILED, READ IN THE READER'S LANGUAGE.
|
|
8
|
+
*
|
|
9
|
+
* A failed check stores why in the probe's English: its failure cause (the
|
|
10
|
+
* summary's Error) and, for a request, the phase it broke in (Failed
|
|
11
|
+
* Phase).
|
|
12
|
+
* Monitor criteria, incident root causes and logs compare that English, so
|
|
13
|
+
* it is stored as it always was. The monitor summaries read it back here
|
|
14
|
+
* and draw OneUptime's own words in the reader's language; anything else -
|
|
15
|
+
* the network's, the runtime's or a server's own message - stays as
|
|
16
|
+
* written (and is drawn in its own direction on an Arabic or Persian page).
|
|
17
|
+
*
|
|
18
|
+
* The words are translation keys: the Dashboard's npm run i18n:extract
|
|
19
|
+
* reads this directory.
|
|
20
|
+
*/
|
|
21
|
+
/*
|
|
22
|
+
* THE PROBE'S TIMEOUT SENTENCE.
|
|
23
|
+
*
|
|
24
|
+
* When every attempt of a check timed out, the probe of each monitor type
|
|
25
|
+
* that retries - Website, API, Ping, SSL Certificate, DNS, Domain, SNMP
|
|
26
|
+
* and External Status Page - writes one sentence as the check's failure
|
|
27
|
+
* cause: "Request was tried 3 times and it timed out." The probe writes it
|
|
28
|
+
* with writeProbeTimeoutFailureCause, always in the general form with the
|
|
29
|
+
* count in digits ("1 times" too), exactly as it did before the sentence
|
|
30
|
+
* became a key: an "Error contains" criterion, a root cause or a log line
|
|
31
|
+
* written against that English still finds it.
|
|
32
|
+
*
|
|
33
|
+
* Drawn for a reader, it is a count-dependent sentence: "once" for one
|
|
34
|
+
* try, and each language's own plural forms, with the count in the
|
|
35
|
+
* reader's digits (getProbeFailureCauseText).
|
|
36
|
+
*/
|
|
37
|
+
exports.PROBE_TIMEOUT_FAILURE_CAUSE = {
|
|
38
|
+
// Stored under the general sentence's key plus "_one", never on its own.
|
|
39
|
+
one: "Request was tried once and it timed out.",
|
|
40
|
+
other: (0, Translator_1.translationKey)("Request was tried {{count}} times and it timed out."),
|
|
41
|
+
};
|
|
42
|
+
// The stored sentence's words before and after its count.
|
|
43
|
+
const TIMEOUT_COUNT_PLACEHOLDER = "{{count}}";
|
|
44
|
+
const TIMEOUT_BEFORE_COUNT = exports.PROBE_TIMEOUT_FAILURE_CAUSE.other.slice(0, exports.PROBE_TIMEOUT_FAILURE_CAUSE.other.indexOf(TIMEOUT_COUNT_PLACEHOLDER));
|
|
45
|
+
const TIMEOUT_AFTER_COUNT = exports.PROBE_TIMEOUT_FAILURE_CAUSE.other.slice(exports.PROBE_TIMEOUT_FAILURE_CAUSE.other.indexOf(TIMEOUT_COUNT_PLACEHOLDER) +
|
|
46
|
+
TIMEOUT_COUNT_PLACEHOLDER.length);
|
|
47
|
+
/*
|
|
48
|
+
* A count the probe writes: Latin digits only, as String(number) writes a
|
|
49
|
+
* whole number, and no longer than any count of tries could be. Anchored
|
|
50
|
+
* and with no repeat beside another, so it reads any text in time that
|
|
51
|
+
* grows with its length.
|
|
52
|
+
*/
|
|
53
|
+
const STORED_COUNT_PATTERN = /^[0-9]{1,9}$/;
|
|
54
|
+
/*
|
|
55
|
+
* The failure cause the probe stores when every one of `triedCount`
|
|
56
|
+
* attempts timed out - word for word the English it always wrote with
|
|
57
|
+
* "Request was tried " + count + " times and it timed out.", the count
|
|
58
|
+
* written by String() as that concatenation did.
|
|
59
|
+
*/
|
|
60
|
+
const writeProbeTimeoutFailureCause = (triedCount) => {
|
|
61
|
+
return (0, Translator_1.fillTemplate)(exports.PROBE_TIMEOUT_FAILURE_CAUSE.other, {
|
|
62
|
+
count: String(triedCount),
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
exports.writeProbeTimeoutFailureCause = writeProbeTimeoutFailureCause;
|
|
66
|
+
/*
|
|
67
|
+
* The count of tries a stored failure cause names, when the cause is
|
|
68
|
+
* exactly the probe's timeout sentence (space round it aside); null for any
|
|
69
|
+
* other cause - a sentence close to it but not the same, the sentence
|
|
70
|
+
* inside a longer message, the network's or a server's own words - which
|
|
71
|
+
* stays as written.
|
|
72
|
+
*/
|
|
73
|
+
const readProbeTimeoutFailureCause = (failureCause) => {
|
|
74
|
+
const text = typeof failureCause === "string" ? failureCause.trim() : "";
|
|
75
|
+
if (text.length <= TIMEOUT_BEFORE_COUNT.length + TIMEOUT_AFTER_COUNT.length ||
|
|
76
|
+
!text.startsWith(TIMEOUT_BEFORE_COUNT) ||
|
|
77
|
+
!text.endsWith(TIMEOUT_AFTER_COUNT)) {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
const count = text.slice(TIMEOUT_BEFORE_COUNT.length, text.length - TIMEOUT_AFTER_COUNT.length);
|
|
81
|
+
if (!STORED_COUNT_PATTERN.test(count)) {
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
return Number.parseInt(count, 10);
|
|
85
|
+
};
|
|
86
|
+
exports.readProbeTimeoutFailureCause = readProbeTimeoutFailureCause;
|
|
87
|
+
/*
|
|
88
|
+
* A check's failure cause - or any message of the probe's - as a summary
|
|
89
|
+
* draws it: the probe's timeout sentence in the reader's language, with
|
|
90
|
+
* the count in the reader's digits; anything else as written, trimmed.
|
|
91
|
+
*/
|
|
92
|
+
const getProbeFailureCauseText = (data) => {
|
|
93
|
+
const text = typeof data.failureCause === "string" ? data.failureCause.trim() : "";
|
|
94
|
+
const triedCount = (0, exports.readProbeTimeoutFailureCause)(text);
|
|
95
|
+
if (triedCount === null) {
|
|
96
|
+
return text;
|
|
97
|
+
}
|
|
98
|
+
return data.translator.translatePlural(exports.PROBE_TIMEOUT_FAILURE_CAUSE, triedCount);
|
|
99
|
+
};
|
|
100
|
+
exports.getProbeFailureCauseText = getProbeFailureCauseText;
|
|
101
|
+
/*
|
|
102
|
+
* WHERE A REQUEST BROKE.
|
|
103
|
+
*
|
|
104
|
+
* Each phase a request can fail in (RequestFailedDetails' failedPhase, the
|
|
105
|
+
* summary's Failed Phase) by its English words, a translation key. The probe
|
|
106
|
+
* stores the enum's value, which is these words; criteria may compare it,
|
|
107
|
+
* so it never changes.
|
|
108
|
+
*/
|
|
109
|
+
exports.REQUEST_FAILED_PHASE_WORDS = {
|
|
110
|
+
[RequestFailedDetails_1.RequestFailedPhase.DNSResolution]: (0, Translator_1.translationKey)("DNS Resolution"),
|
|
111
|
+
[RequestFailedDetails_1.RequestFailedPhase.TCPConnection]: (0, Translator_1.translationKey)("TCP Connection"),
|
|
112
|
+
[RequestFailedDetails_1.RequestFailedPhase.TLSHandshake]: (0, Translator_1.translationKey)("TLS Handshake"),
|
|
113
|
+
[RequestFailedDetails_1.RequestFailedPhase.RequestTimeout]: (0, Translator_1.translationKey)("Request Timeout"),
|
|
114
|
+
[RequestFailedDetails_1.RequestFailedPhase.ServerResponse]: (0, Translator_1.translationKey)("Server Response"),
|
|
115
|
+
[RequestFailedDetails_1.RequestFailedPhase.RequestAborted]: (0, Translator_1.translationKey)("Request Aborted"),
|
|
116
|
+
[RequestFailedDetails_1.RequestFailedPhase.NetworkError]: (0, Translator_1.translationKey)("Network Error"),
|
|
117
|
+
[RequestFailedDetails_1.RequestFailedPhase.CertificateError]: (0, Translator_1.translationKey)("Certificate Error"),
|
|
118
|
+
[RequestFailedDetails_1.RequestFailedPhase.TargetResolution]: (0, Translator_1.translationKey)("Target Resolution"),
|
|
119
|
+
[RequestFailedDetails_1.RequestFailedPhase.Unknown]: (0, Translator_1.translationKey)("Unknown"),
|
|
120
|
+
};
|
|
121
|
+
const isRequestFailedPhase = (value) => {
|
|
122
|
+
return Object.prototype.hasOwnProperty.call(exports.REQUEST_FAILED_PHASE_WORDS, value);
|
|
123
|
+
};
|
|
124
|
+
/*
|
|
125
|
+
* The phase a request failed in, as the summary's Failed Phase draws it: the
|
|
126
|
+
* reader's word for a phase the probe names; a value no probe writes today
|
|
127
|
+
* (a newer probe's) as written, trimmed; "" for none.
|
|
128
|
+
*/
|
|
129
|
+
const getRequestFailedPhaseText = (data) => {
|
|
130
|
+
const phase = typeof data.failedPhase === "string" ? data.failedPhase.trim() : "";
|
|
131
|
+
if (!phase || !isRequestFailedPhase(phase)) {
|
|
132
|
+
return phase;
|
|
133
|
+
}
|
|
134
|
+
const words = exports.REQUEST_FAILED_PHASE_WORDS[phase];
|
|
135
|
+
return data.translator.translateText(words) || words;
|
|
136
|
+
};
|
|
137
|
+
exports.getRequestFailedPhaseText = getRequestFailedPhaseText;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import commonJsModule from "./ProbeFailureReading.js";
|
|
2
|
+
export const PROBE_TIMEOUT_FAILURE_CAUSE = commonJsModule.PROBE_TIMEOUT_FAILURE_CAUSE;
|
|
3
|
+
export const REQUEST_FAILED_PHASE_WORDS = commonJsModule.REQUEST_FAILED_PHASE_WORDS;
|
|
4
|
+
export const getProbeFailureCauseText = commonJsModule.getProbeFailureCauseText;
|
|
5
|
+
export const getRequestFailedPhaseText = commonJsModule.getRequestFailedPhaseText;
|
|
6
|
+
export const readProbeTimeoutFailureCause = commonJsModule.readProbeTimeoutFailureCause;
|
|
7
|
+
export const writeProbeTimeoutFailureCause = commonJsModule.writeProbeTimeoutFailureCause;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import ObjectID from "../../Types/ObjectID.mjs";
|
|
2
|
+
import MonitorNotCheckedReason from "../../Types/Monitor/MonitorNotCheckedReason.mjs";
|
|
3
|
+
import { MonitoredFlags } from "../Monitor/MonitoringOff.mjs";
|
|
4
|
+
export interface BoundMonitorDeviceRow {
|
|
5
|
+
monitoringMethod?: string | null | undefined;
|
|
6
|
+
monitorId?: ObjectID | string | null | undefined;
|
|
7
|
+
monitor?: MonitoredFlags | null | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare function getBoundMonitorNotCheckedReason(device: BoundMonitorDeviceRow): MonitorNotCheckedReason | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import ObjectID from "../../Types/ObjectID";
|
|
2
|
+
import MonitorNotCheckedReason from "../../Types/Monitor/MonitorNotCheckedReason";
|
|
3
|
+
import { MonitoredFlags } from "../Monitor/MonitoringOff";
|
|
4
|
+
export interface BoundMonitorDeviceRow {
|
|
5
|
+
monitoringMethod?: string | null | undefined;
|
|
6
|
+
monitorId?: ObjectID | string | null | undefined;
|
|
7
|
+
monitor?: MonitoredFlags | null | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare function getBoundMonitorNotCheckedReason(device: BoundMonitorDeviceRow): MonitorNotCheckedReason | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
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.getBoundMonitorNotCheckedReason = getBoundMonitorNotCheckedReason;
|
|
7
|
+
const NetworkDeviceMonitoringMethod_1 = require("../../Types/NetworkDevice/NetworkDeviceMonitoringMethod");
|
|
8
|
+
const MonitoringOff_1 = __importDefault(require("../Monitor/MonitoringOff"));
|
|
9
|
+
function getBoundMonitorNotCheckedReason(device) {
|
|
10
|
+
if (!NetworkDeviceMonitoringMethod_1.NetworkDeviceMonitoringMethodUtil.isMonitorBacked(device.monitoringMethod) ||
|
|
11
|
+
!device.monitorId) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
return MonitoringOff_1.default.getNotCheckedReason(device.monitor);
|
|
15
|
+
}
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
* part server, volume, sg or fip, so a volume with a server's name is not the check's
|
|
18
18
|
*
|
|
19
19
|
* Read with loops and fixed lengths, never a regular expression: names come from a cloud's API,
|
|
20
|
-
* where anyone with a project can write one (
|
|
20
|
+
* where anyone with a project can write one (Docs/notifications/README.md, "Megabyte-long
|
|
21
|
+
* values").
|
|
21
22
|
*
|
|
22
23
|
* Pure, for the probe that makes and deletes them and for the guide and tests that describe them.
|
|
23
24
|
*/
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* loop, never a regular expression with a quantifier, and never reads a stretch twice:
|
|
24
24
|
* the search for a word goes on from where its value stopped, so a thousand opening quotes
|
|
25
25
|
* cost what one does, and the time this takes is in line with the line, whatever the line
|
|
26
|
-
* holds (
|
|
26
|
+
* holds (Docs/notifications/README.md, "Megabyte-long values").
|
|
27
27
|
*/
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.OPENSTACK_SCRUBBED_VALUE = void 0;
|
|
@@ -38,8 +38,9 @@ const OpenStackLogScrub_1 = require("./OpenStackLogScrub");
|
|
|
38
38
|
*
|
|
39
39
|
* Logs are text anyone can write into. Nothing here runs a regular expression with a
|
|
40
40
|
* quantifier: lines are read with indexOf and loops, so the time this takes is in line
|
|
41
|
-
* with the record however long it is and whatever it holds
|
|
42
|
-
*
|
|
41
|
+
* with the record however long it is and whatever it holds
|
|
42
|
+
* (Docs/notifications/README.md, "Megabyte-long values", and the hostile shapes in
|
|
43
|
+
* OpenStackLogs.test.ts). The most this reads of one record is
|
|
43
44
|
* MAX_OPENSTACK_LOG_BODY_LENGTH, and what is past it is not stored: an unread stretch
|
|
44
45
|
* could hold what the scrub is there to take out.
|
|
45
46
|
*
|
|
@@ -68,7 +68,8 @@ const OpenStackLogScrub_1 = require("./OpenStackLogScrub");
|
|
|
68
68
|
* Common/Tests/Fixtures/OpenStack/traces/<release>, and OpenStackTracesRecordings.test.ts.
|
|
69
69
|
*
|
|
70
70
|
* Spans are text anyone holding the key can write into, so a value is read with indexOf and
|
|
71
|
-
* loops, never a regular expression with a quantifier (
|
|
71
|
+
* loops, never a regular expression with a quantifier (Docs/notifications/README.md,
|
|
72
|
+
* "Megabyte-long values").
|
|
72
73
|
*
|
|
73
74
|
* These attribute keys are stored in customers' traces: never rename one.
|
|
74
75
|
*/
|
|
@@ -79,7 +79,7 @@ exports.NUMBERED_RECORD_KINDS = [
|
|
|
79
79
|
startsAtColumn: "scheduledMaintenanceNumbersStartAt",
|
|
80
80
|
prefixColumn: "scheduledMaintenanceNumberPrefix",
|
|
81
81
|
title: "Scheduled Maintenance Numbers Start At",
|
|
82
|
-
recordName: "
|
|
82
|
+
recordName: "maintenance event",
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
kind: NumberedRecordKind.SecurityCase,
|