@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
|
@@ -279,6 +279,7 @@ const MonitorGroupResource_1 = __importDefault(require("./MonitorGroupResource")
|
|
|
279
279
|
const MonitorOwnerTeam_1 = __importDefault(require("./MonitorOwnerTeam"));
|
|
280
280
|
const MonitorOwnerUser_1 = __importDefault(require("./MonitorOwnerUser"));
|
|
281
281
|
const MonitorProbe_1 = __importDefault(require("./MonitorProbe"));
|
|
282
|
+
const MonitorNetworkDevice_1 = __importDefault(require("./MonitorNetworkDevice"));
|
|
282
283
|
const MonitorSecret_1 = __importDefault(require("./MonitorSecret"));
|
|
283
284
|
const MonitorStatus_1 = __importDefault(require("./MonitorStatus"));
|
|
284
285
|
const MonitorStatusTimeline_1 = __importDefault(require("./MonitorStatusTimeline"));
|
|
@@ -341,6 +342,7 @@ const AIConversation_1 = __importDefault(require("./AIConversation"));
|
|
|
341
342
|
const AIConversationMessage_1 = __importDefault(require("./AIConversationMessage"));
|
|
342
343
|
const AIRun_1 = __importDefault(require("./AIRun"));
|
|
343
344
|
const AIRunEvent_1 = __importDefault(require("./AIRunEvent"));
|
|
345
|
+
const AIRunRecording_1 = __importDefault(require("./AIRunRecording"));
|
|
344
346
|
const AIInsight_1 = __importDefault(require("./AIInsight"));
|
|
345
347
|
const LlmProvider_1 = __importDefault(require("./LlmProvider"));
|
|
346
348
|
const LlmLog_1 = __importDefault(require("./LlmLog"));
|
|
@@ -964,6 +966,7 @@ const AllModelTypes = [
|
|
|
964
966
|
StatusPageOidc_1.default,
|
|
965
967
|
StatusPageSCIM_1.default,
|
|
966
968
|
MonitorProbe_1.default,
|
|
969
|
+
MonitorNetworkDevice_1.default,
|
|
967
970
|
MonitorOwnerTeam_1.default,
|
|
968
971
|
MonitorOwnerUser_1.default,
|
|
969
972
|
ScheduledMaintenanceOwnerTeam_1.default,
|
|
@@ -1066,6 +1069,7 @@ const AllModelTypes = [
|
|
|
1066
1069
|
AIConversationMessage_1.default,
|
|
1067
1070
|
AIRun_1.default,
|
|
1068
1071
|
AIRunEvent_1.default,
|
|
1072
|
+
AIRunRecording_1.default,
|
|
1069
1073
|
AIInsight_1.default,
|
|
1070
1074
|
LlmProvider_1.default,
|
|
1071
1075
|
LlmLog_1.default,
|
|
@@ -632,6 +632,17 @@ InventoryItem = __decorate([
|
|
|
632
632
|
*/
|
|
633
633
|
,
|
|
634
634
|
(0, typeorm_1.Index)(["projectId", "isArchived"])
|
|
635
|
+
/*
|
|
636
|
+
* The inventory mirror's reverse pass (InventoryEntityRegistry) reads one
|
|
637
|
+
* type's mirrored rows in keyset pages - `entityType = $1 AND source =
|
|
638
|
+
* 'inventory' AND _id > $cursor ORDER BY _id LIMIT 1000` - and each page is
|
|
639
|
+
* a range of this, however many entities telemetry has discovered. Without
|
|
640
|
+
* it a page walked the primary key through every type's rows, or sorted all
|
|
641
|
+
* of its type's. Partial: the entities telemetry discovers - most of the
|
|
642
|
+
* table, and its busiest writes - carry none of it.
|
|
643
|
+
*/
|
|
644
|
+
,
|
|
645
|
+
(0, typeorm_1.Index)(["entityType", "_id"], { where: `"source" = 'inventory'` })
|
|
635
646
|
/*
|
|
636
647
|
* Lookup by entity key alone. Relationships name their ends by key, never by
|
|
637
648
|
* type, so every "what is at the other end" join (the Topology API's callee,
|
|
@@ -242,7 +242,6 @@ __decorate([
|
|
|
242
242
|
],
|
|
243
243
|
update: [],
|
|
244
244
|
}),
|
|
245
|
-
(0, typeorm_1.Index)(),
|
|
246
245
|
(0, TableColumn_1.default)({
|
|
247
246
|
type: TableColumnType_1.default.ObjectID,
|
|
248
247
|
required: true,
|
|
@@ -346,7 +345,6 @@ __decorate([
|
|
|
346
345
|
__metadata("design:type", String)
|
|
347
346
|
], Monitor.prototype, "description", void 0);
|
|
348
347
|
__decorate([
|
|
349
|
-
(0, typeorm_1.Index)(),
|
|
350
348
|
(0, ColumnAccessControl_1.default)({
|
|
351
349
|
create: [],
|
|
352
350
|
read: [
|
|
@@ -1778,7 +1776,6 @@ __decorate([
|
|
|
1778
1776
|
example: "API",
|
|
1779
1777
|
canReadOnRelationQuery: true,
|
|
1780
1778
|
}),
|
|
1781
|
-
(0, typeorm_1.Index)(),
|
|
1782
1779
|
(0, typeorm_1.Column)({
|
|
1783
1780
|
nullable: false,
|
|
1784
1781
|
type: ColumnType_1.default.ShortText,
|
|
@@ -1911,7 +1908,7 @@ __decorate([
|
|
|
1911
1908
|
type: TableColumnType_1.default.MonitorSteps,
|
|
1912
1909
|
required: false,
|
|
1913
1910
|
title: "Monitor Steps",
|
|
1914
|
-
description: "What
|
|
1911
|
+
description: "What the monitor checks, and the criteria that judge each result. The Dashboard shows a step's criteria on the monitor's Criteria page.",
|
|
1915
1912
|
canReadOnRelationQuery: true,
|
|
1916
1913
|
}),
|
|
1917
1914
|
(0, typeorm_1.Column)({
|
|
@@ -1950,7 +1947,6 @@ __decorate([
|
|
|
1950
1947
|
Permission_1.default.EditProjectMonitor,
|
|
1951
1948
|
],
|
|
1952
1949
|
}),
|
|
1953
|
-
(0, typeorm_1.Index)(),
|
|
1954
1950
|
(0, TableColumn_1.default)({
|
|
1955
1951
|
required: false,
|
|
1956
1952
|
type: TableColumnType_1.default.ShortText,
|
|
@@ -2073,7 +2069,6 @@ __decorate([
|
|
|
2073
2069
|
Permission_1.default.EditProjectMonitor,
|
|
2074
2070
|
],
|
|
2075
2071
|
}),
|
|
2076
|
-
(0, typeorm_1.Index)(),
|
|
2077
2072
|
(0, TableColumn_1.default)({
|
|
2078
2073
|
type: TableColumnType_1.default.Boolean,
|
|
2079
2074
|
required: true,
|
|
@@ -2164,7 +2159,6 @@ __decorate([
|
|
|
2164
2159
|
],
|
|
2165
2160
|
update: [],
|
|
2166
2161
|
}),
|
|
2167
|
-
(0, typeorm_1.Index)(),
|
|
2168
2162
|
(0, TableColumn_1.default)({
|
|
2169
2163
|
type: TableColumnType_1.default.Date,
|
|
2170
2164
|
required: false,
|
|
@@ -2200,7 +2194,6 @@ __decorate([
|
|
|
2200
2194
|
],
|
|
2201
2195
|
update: [],
|
|
2202
2196
|
}),
|
|
2203
|
-
(0, typeorm_1.Index)(),
|
|
2204
2197
|
(0, TableColumn_1.default)({
|
|
2205
2198
|
type: TableColumnType_1.default.Date,
|
|
2206
2199
|
required: false,
|
|
@@ -2236,7 +2229,6 @@ __decorate([
|
|
|
2236
2229
|
],
|
|
2237
2230
|
update: [],
|
|
2238
2231
|
}),
|
|
2239
|
-
(0, typeorm_1.Index)(),
|
|
2240
2232
|
(0, TableColumn_1.default)({
|
|
2241
2233
|
type: TableColumnType_1.default.Date,
|
|
2242
2234
|
required: false,
|
|
@@ -2265,13 +2257,12 @@ __decorate([
|
|
|
2265
2257
|
],
|
|
2266
2258
|
update: [],
|
|
2267
2259
|
}),
|
|
2268
|
-
(0, typeorm_1.Index)(),
|
|
2269
2260
|
(0, TableColumn_1.default)({
|
|
2270
2261
|
type: TableColumnType_1.default.Boolean,
|
|
2271
2262
|
required: true,
|
|
2272
2263
|
isDefaultValueColumn: true,
|
|
2273
|
-
title: "Disable Monitoring because of Ongoing
|
|
2274
|
-
description: "Disable Monitoring because of Ongoing
|
|
2264
|
+
title: "Disable Monitoring because of Ongoing Maintenance Event",
|
|
2265
|
+
description: "Disable Monitoring because of Ongoing Maintenance Event",
|
|
2275
2266
|
defaultValue: false,
|
|
2276
2267
|
}),
|
|
2277
2268
|
(0, typeorm_1.Column)({
|
|
@@ -2296,7 +2287,6 @@ __decorate([
|
|
|
2296
2287
|
],
|
|
2297
2288
|
update: [],
|
|
2298
2289
|
}),
|
|
2299
|
-
(0, typeorm_1.Index)(),
|
|
2300
2290
|
(0, TableColumn_1.default)({
|
|
2301
2291
|
type: TableColumnType_1.default.Boolean,
|
|
2302
2292
|
required: true,
|
|
@@ -2334,7 +2324,6 @@ __decorate([
|
|
|
2334
2324
|
],
|
|
2335
2325
|
update: [],
|
|
2336
2326
|
}),
|
|
2337
|
-
(0, typeorm_1.Index)(),
|
|
2338
2327
|
(0, TableColumn_1.default)({
|
|
2339
2328
|
type: TableColumnType_1.default.Date,
|
|
2340
2329
|
required: false,
|
|
@@ -2618,7 +2607,6 @@ __decorate([
|
|
|
2618
2607
|
],
|
|
2619
2608
|
update: [],
|
|
2620
2609
|
}),
|
|
2621
|
-
(0, typeorm_1.Index)(),
|
|
2622
2610
|
(0, TableColumn_1.default)({
|
|
2623
2611
|
type: TableColumnType_1.default.Date,
|
|
2624
2612
|
required: false,
|
|
@@ -2674,7 +2662,6 @@ __decorate([
|
|
|
2674
2662
|
],
|
|
2675
2663
|
update: [],
|
|
2676
2664
|
}),
|
|
2677
|
-
(0, typeorm_1.Index)(),
|
|
2678
2665
|
(0, TableColumn_1.default)({
|
|
2679
2666
|
type: TableColumnType_1.default.Date,
|
|
2680
2667
|
required: false,
|
|
@@ -2907,12 +2894,59 @@ Monitor = __decorate([
|
|
|
2907
2894
|
where: '"deletedAt" IS NULL AND "autoProvisionedNetworkDeviceId" IS NOT NULL AND "monitorTemplateId" IS NOT NULL',
|
|
2908
2895
|
})
|
|
2909
2896
|
/*
|
|
2910
|
-
*
|
|
2911
|
-
*
|
|
2912
|
-
*
|
|
2897
|
+
* INDEXES. Heartbeats, telemetry sweeps, server reports and status changes
|
|
2898
|
+
* rewrite rows here all the time, and an update can only be HOT (no index
|
|
2899
|
+
* entry at all) when it changes no column an index names, in its key or its
|
|
2900
|
+
* WHERE. So an index is here because a read needs it, and a column that a
|
|
2901
|
+
* frequent write moves is named by none: telemetryMonitorLastMonitorAt and
|
|
2902
|
+
* NextMonitorAt (every minute), the incoming request and email heartbeat
|
|
2903
|
+
* stamps (every 30 seconds), serverMonitorRequestReceivedAt (every report).
|
|
2904
|
+
* Their sweeps find their monitors by type, below. A partial index holds,
|
|
2905
|
+
* and costs a write, only for the rows its WHERE matches.
|
|
2906
|
+
*
|
|
2907
|
+
* Every list of this resource pins `isArchived` inside a project (the main
|
|
2908
|
+
* list hides archived rows, the Archived page shows only them), so the pair
|
|
2909
|
+
* leads, like every other archivable resource. createdAt follows: a list
|
|
2910
|
+
* nobody sorted comes newest first (DatabaseService.getReadSort), and this
|
|
2911
|
+
* hands it the first page without sorting the whole project. It also serves
|
|
2912
|
+
* every other read by project, and the project's foreign key.
|
|
2913
2913
|
*/
|
|
2914
2914
|
,
|
|
2915
|
-
(0, typeorm_1.Index)(["projectId", "isArchived"])
|
|
2915
|
+
(0, typeorm_1.Index)(["projectId", "isArchived", "createdAt"])
|
|
2916
|
+
/*
|
|
2917
|
+
* The monitors made for a network device: the device's pages, the alert
|
|
2918
|
+
* policy engine, and the device delete - its count of them and its foreign
|
|
2919
|
+
* key (ON DELETE RESTRICT), which looks for them with no deletedAt and no
|
|
2920
|
+
* template. The unique index above requires a template, which none of these
|
|
2921
|
+
* imply. (A device poll and trap find their monitors through
|
|
2922
|
+
* MonitorNetworkDevice.)
|
|
2923
|
+
*/
|
|
2924
|
+
,
|
|
2925
|
+
(0, typeorm_1.Index)(["autoProvisionedNetworkDeviceId"], {
|
|
2926
|
+
where: '"autoProvisionedNetworkDeviceId" IS NOT NULL',
|
|
2927
|
+
})
|
|
2928
|
+
/*
|
|
2929
|
+
* A type's monitors in id order: the heartbeat and server sweeps
|
|
2930
|
+
* (Workers/Utils/MonitorSweep) page through one type by id, and the
|
|
2931
|
+
* telemetry sweep reads its types.
|
|
2932
|
+
*/
|
|
2933
|
+
,
|
|
2934
|
+
(0, typeorm_1.Index)(["monitorType", "_id"])
|
|
2935
|
+
/*
|
|
2936
|
+
* The Monitors menu's Probe Disconnected, Probe Disabled and Disabled
|
|
2937
|
+
* counts (Pages/Monitor/SideMenu.tsx), counted again on every change to a
|
|
2938
|
+
* monitor, and their pages: each holds only the monitors it counts.
|
|
2939
|
+
*/
|
|
2940
|
+
,
|
|
2941
|
+
(0, typeorm_1.Index)(["projectId"], {
|
|
2942
|
+
where: '"isAllProbesDisconnectedFromThisMonitor" = true AND "isArchived" = false AND "deletedAt" IS NULL',
|
|
2943
|
+
}),
|
|
2944
|
+
(0, typeorm_1.Index)(["projectId"], {
|
|
2945
|
+
where: '"isNoProbeEnabledOnThisMonitor" = true AND "isArchived" = false AND "deletedAt" IS NULL',
|
|
2946
|
+
}),
|
|
2947
|
+
(0, typeorm_1.Index)(["projectId"], {
|
|
2948
|
+
where: '"disableActiveMonitoring" = true AND "isArchived" = false AND "deletedAt" IS NULL',
|
|
2949
|
+
}),
|
|
2916
2950
|
(0, typeorm_1.Entity)({
|
|
2917
2951
|
name: "Monitor",
|
|
2918
2952
|
}),
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Monitor from "./Monitor.mjs";
|
|
2
|
+
import Project from "./Project.mjs";
|
|
3
|
+
import BaseModel from "./DatabaseBaseModel/DatabaseBaseModel.mjs";
|
|
4
|
+
import ObjectID from "../../Types/ObjectID.mjs";
|
|
5
|
+
export default class MonitorNetworkDevice extends BaseModel {
|
|
6
|
+
project?: Project;
|
|
7
|
+
projectId?: ObjectID;
|
|
8
|
+
monitor?: Monitor;
|
|
9
|
+
monitorId?: ObjectID;
|
|
10
|
+
networkDeviceId?: ObjectID;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import Monitor from "./Monitor";
|
|
2
|
+
import Project from "./Project";
|
|
3
|
+
import BaseModel from "./DatabaseBaseModel/DatabaseBaseModel";
|
|
4
|
+
import ObjectID from "../../Types/ObjectID";
|
|
5
|
+
export default class MonitorNetworkDevice extends BaseModel {
|
|
6
|
+
project?: Project;
|
|
7
|
+
projectId?: ObjectID;
|
|
8
|
+
monitor?: Monitor;
|
|
9
|
+
monitorId?: ObjectID;
|
|
10
|
+
networkDeviceId?: ObjectID;
|
|
11
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const Monitor_1 = __importDefault(require("./Monitor"));
|
|
16
|
+
const Project_1 = __importDefault(require("./Project"));
|
|
17
|
+
const DatabaseBaseModel_1 = __importDefault(require("./DatabaseBaseModel/DatabaseBaseModel"));
|
|
18
|
+
const ColumnAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/ColumnAccessControl"));
|
|
19
|
+
const TableAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/TableAccessControl"));
|
|
20
|
+
const ColumnType_1 = __importDefault(require("../../Types/Database/ColumnType"));
|
|
21
|
+
const TableColumn_1 = __importDefault(require("../../Types/Database/TableColumn"));
|
|
22
|
+
const TableColumnType_1 = __importDefault(require("../../Types/Database/TableColumnType"));
|
|
23
|
+
const TableMetadata_1 = __importDefault(require("../../Types/Database/TableMetadata"));
|
|
24
|
+
const TenantColumn_1 = __importDefault(require("../../Types/Database/TenantColumn"));
|
|
25
|
+
const IconProp_1 = __importDefault(require("../../Types/Icon/IconProp"));
|
|
26
|
+
const ObjectID_1 = __importDefault(require("../../Types/ObjectID"));
|
|
27
|
+
const typeorm_1 = require("typeorm");
|
|
28
|
+
/*
|
|
29
|
+
* WHICH NETWORK DEVICES A NETWORK DEVICE MONITOR WATCHES.
|
|
30
|
+
*
|
|
31
|
+
* One row for each device a Network Device monitor's steps name
|
|
32
|
+
* (`monitorSteps...networkDeviceMonitor.networkDeviceId`), so a device's poll
|
|
33
|
+
* and its traps find the monitors to evaluate by the device
|
|
34
|
+
* (NetworkDeviceWalkUtil.findMonitorsWatchingDevices) instead of reading the
|
|
35
|
+
* steps of every Network Device monitor in the project, as they did on every
|
|
36
|
+
* poll and every trap.
|
|
37
|
+
*
|
|
38
|
+
* Postgres keeps it, not the app: triggers on "Monitor" rewrite a monitor's
|
|
39
|
+
* rows whenever its steps, type or project change, and the foreign key
|
|
40
|
+
* removes them with the monitor (migration AddMonitorNetworkDevice). So every
|
|
41
|
+
* write keeps it right - a hooked or a hook-free one, a data migration, a
|
|
42
|
+
* server of the previous release during a rolling upgrade - in the same
|
|
43
|
+
* transaction as the write. Nothing in the app writes it.
|
|
44
|
+
*
|
|
45
|
+
* `networkDeviceId` has no foreign key on purpose: a step may name a device
|
|
46
|
+
* that was deleted, or never existed, and the monitor must still save. Such a
|
|
47
|
+
* row stays until the monitor's steps change, which is what lets the stale
|
|
48
|
+
* poll check find monitors that watch a device that no longer exists.
|
|
49
|
+
*
|
|
50
|
+
* Internal: no API, no permission reads it. Root reads only.
|
|
51
|
+
*/
|
|
52
|
+
let MonitorNetworkDevice = class MonitorNetworkDevice extends DatabaseBaseModel_1.default {
|
|
53
|
+
constructor() {
|
|
54
|
+
super(...arguments);
|
|
55
|
+
this.project = undefined;
|
|
56
|
+
this.projectId = undefined;
|
|
57
|
+
this.monitor = undefined;
|
|
58
|
+
this.monitorId = undefined;
|
|
59
|
+
this.networkDeviceId = undefined;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, ColumnAccessControl_1.default)({
|
|
64
|
+
create: [],
|
|
65
|
+
read: [],
|
|
66
|
+
update: [],
|
|
67
|
+
}),
|
|
68
|
+
(0, TableColumn_1.default)({
|
|
69
|
+
manyToOneRelationColumn: "projectId",
|
|
70
|
+
type: TableColumnType_1.default.Entity,
|
|
71
|
+
modelType: Project_1.default,
|
|
72
|
+
title: "Project",
|
|
73
|
+
description: "Relation to Project Resource in which this object belongs",
|
|
74
|
+
}),
|
|
75
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
76
|
+
return Project_1.default;
|
|
77
|
+
}, {
|
|
78
|
+
eager: false,
|
|
79
|
+
nullable: true,
|
|
80
|
+
onDelete: "CASCADE",
|
|
81
|
+
orphanedRowAction: "nullify",
|
|
82
|
+
}),
|
|
83
|
+
(0, typeorm_1.JoinColumn)({ name: "projectId" }),
|
|
84
|
+
__metadata("design:type", Project_1.default)
|
|
85
|
+
], MonitorNetworkDevice.prototype, "project", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, ColumnAccessControl_1.default)({
|
|
88
|
+
create: [],
|
|
89
|
+
read: [],
|
|
90
|
+
update: [],
|
|
91
|
+
}),
|
|
92
|
+
(0, typeorm_1.Index)(),
|
|
93
|
+
(0, TableColumn_1.default)({
|
|
94
|
+
type: TableColumnType_1.default.ObjectID,
|
|
95
|
+
required: true,
|
|
96
|
+
title: "Project ID",
|
|
97
|
+
description: "ID of the project of the monitor, which is the project the device must be in.",
|
|
98
|
+
}),
|
|
99
|
+
(0, typeorm_1.Column)({
|
|
100
|
+
type: ColumnType_1.default.ObjectID,
|
|
101
|
+
nullable: false,
|
|
102
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
103
|
+
}),
|
|
104
|
+
__metadata("design:type", ObjectID_1.default)
|
|
105
|
+
], MonitorNetworkDevice.prototype, "projectId", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, ColumnAccessControl_1.default)({
|
|
108
|
+
create: [],
|
|
109
|
+
read: [],
|
|
110
|
+
update: [],
|
|
111
|
+
}),
|
|
112
|
+
(0, TableColumn_1.default)({
|
|
113
|
+
manyToOneRelationColumn: "monitorId",
|
|
114
|
+
type: TableColumnType_1.default.Entity,
|
|
115
|
+
modelType: Monitor_1.default,
|
|
116
|
+
title: "Monitor",
|
|
117
|
+
description: "The Network Device monitor whose steps name the device.",
|
|
118
|
+
}),
|
|
119
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
120
|
+
return Monitor_1.default;
|
|
121
|
+
}, {
|
|
122
|
+
eager: false,
|
|
123
|
+
nullable: true,
|
|
124
|
+
onDelete: "CASCADE",
|
|
125
|
+
orphanedRowAction: "nullify",
|
|
126
|
+
}),
|
|
127
|
+
(0, typeorm_1.JoinColumn)({ name: "monitorId" }),
|
|
128
|
+
__metadata("design:type", Monitor_1.default)
|
|
129
|
+
], MonitorNetworkDevice.prototype, "monitor", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, ColumnAccessControl_1.default)({
|
|
132
|
+
create: [],
|
|
133
|
+
read: [],
|
|
134
|
+
update: [],
|
|
135
|
+
}),
|
|
136
|
+
(0, TableColumn_1.default)({
|
|
137
|
+
type: TableColumnType_1.default.ObjectID,
|
|
138
|
+
required: true,
|
|
139
|
+
title: "Monitor ID",
|
|
140
|
+
description: "ID of the Network Device monitor whose steps name the device.",
|
|
141
|
+
}),
|
|
142
|
+
(0, typeorm_1.Column)({
|
|
143
|
+
type: ColumnType_1.default.ObjectID,
|
|
144
|
+
nullable: false,
|
|
145
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
146
|
+
}),
|
|
147
|
+
__metadata("design:type", ObjectID_1.default)
|
|
148
|
+
], MonitorNetworkDevice.prototype, "monitorId", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, ColumnAccessControl_1.default)({
|
|
151
|
+
create: [],
|
|
152
|
+
read: [],
|
|
153
|
+
update: [],
|
|
154
|
+
}),
|
|
155
|
+
(0, typeorm_1.Index)(),
|
|
156
|
+
(0, TableColumn_1.default)({
|
|
157
|
+
type: TableColumnType_1.default.ObjectID,
|
|
158
|
+
required: true,
|
|
159
|
+
title: "Network Device ID",
|
|
160
|
+
description: "ID of the network device a step of the monitor names. Not a foreign key: the device may have been deleted.",
|
|
161
|
+
}),
|
|
162
|
+
(0, typeorm_1.Column)({
|
|
163
|
+
type: ColumnType_1.default.ObjectID,
|
|
164
|
+
nullable: false,
|
|
165
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
166
|
+
}),
|
|
167
|
+
__metadata("design:type", ObjectID_1.default)
|
|
168
|
+
], MonitorNetworkDevice.prototype, "networkDeviceId", void 0);
|
|
169
|
+
MonitorNetworkDevice = __decorate([
|
|
170
|
+
(0, TenantColumn_1.default)("projectId"),
|
|
171
|
+
(0, typeorm_1.Index)(["monitorId", "networkDeviceId"], { unique: true }),
|
|
172
|
+
(0, TableAccessControl_1.default)({
|
|
173
|
+
create: [],
|
|
174
|
+
read: [],
|
|
175
|
+
delete: [],
|
|
176
|
+
update: [],
|
|
177
|
+
}),
|
|
178
|
+
(0, TableMetadata_1.default)({
|
|
179
|
+
tableName: "MonitorNetworkDevice",
|
|
180
|
+
singularName: "Monitor Network Device",
|
|
181
|
+
pluralName: "Monitor Network Devices",
|
|
182
|
+
icon: IconProp_1.default.Signal,
|
|
183
|
+
tableDescription: "The network devices each Network Device monitor watches, kept by the database from the monitor's steps.",
|
|
184
|
+
}),
|
|
185
|
+
(0, typeorm_1.Entity)({
|
|
186
|
+
name: "MonitorNetworkDevice",
|
|
187
|
+
})
|
|
188
|
+
], MonitorNetworkDevice);
|
|
189
|
+
exports.default = MonitorNetworkDevice;
|
|
@@ -181,8 +181,12 @@ __decorate([
|
|
|
181
181
|
Permission_1.default.ReadMonitorProbe,
|
|
182
182
|
],
|
|
183
183
|
update: [],
|
|
184
|
-
})
|
|
185
|
-
|
|
184
|
+
})
|
|
185
|
+
/*
|
|
186
|
+
* No bare @Index() here on purpose: ("probeId", "isEnabled", "nextPingAt")
|
|
187
|
+
* declared on the class leads with this column.
|
|
188
|
+
*/
|
|
189
|
+
,
|
|
186
190
|
(0, TableColumn_1.default)({
|
|
187
191
|
type: TableColumnType_1.default.ObjectID,
|
|
188
192
|
required: true,
|
|
@@ -254,8 +258,12 @@ __decorate([
|
|
|
254
258
|
Permission_1.default.ReadMonitorProbe,
|
|
255
259
|
],
|
|
256
260
|
update: [],
|
|
257
|
-
})
|
|
258
|
-
|
|
261
|
+
})
|
|
262
|
+
/*
|
|
263
|
+
* No bare @Index() here on purpose: ("monitorId", "probeId") and
|
|
264
|
+
* ("monitorId", "projectId") declared on the class lead with this column.
|
|
265
|
+
*/
|
|
266
|
+
,
|
|
259
267
|
(0, TableColumn_1.default)({
|
|
260
268
|
type: TableColumnType_1.default.ObjectID,
|
|
261
269
|
required: true,
|
|
@@ -551,7 +559,16 @@ __decorate([
|
|
|
551
559
|
MonitorProbe = __decorate([
|
|
552
560
|
(0, EnableDocumentation_1.default)(),
|
|
553
561
|
(0, CanAccessIfCanReadOn_1.default)("monitor"),
|
|
554
|
-
(0, TenantColumn_1.default)("projectId")
|
|
562
|
+
(0, TenantColumn_1.default)("projectId")
|
|
563
|
+
/*
|
|
564
|
+
* Every probe claim moves `nextPingAt`, which is indexed, so no claim is a
|
|
565
|
+
* HOT update: each one writes an entry into every index on this table. So
|
|
566
|
+
* no index here repeats the leading columns of another. These composites
|
|
567
|
+
* also serve every read by `monitorId` or `probeId` alone, and the ON
|
|
568
|
+
* DELETE CASCADE of a monitor or a probe; the bare `monitorId` and
|
|
569
|
+
* `probeId` indexes went for that reason (OneUptime issue #7921).
|
|
570
|
+
*/
|
|
571
|
+
,
|
|
555
572
|
(0, typeorm_1.Index)(["monitorId", "probeId"]) // Composite index for efficient monitor-probe relationship queries
|
|
556
573
|
,
|
|
557
574
|
(0, typeorm_1.Index)(["monitorId", "projectId"]) // Alternative index for monitor queries within project
|
|
@@ -83,6 +83,7 @@ export default class NetworkDevice extends BaseModel {
|
|
|
83
83
|
transceiverSnapshot?: Array<NetworkDeviceTransceiver>;
|
|
84
84
|
lastSeenAt?: Date;
|
|
85
85
|
lastPolledAt?: Date;
|
|
86
|
+
lastPollReceivedAt?: Date;
|
|
86
87
|
isReachable?: boolean;
|
|
87
88
|
isSnmpReachable?: boolean;
|
|
88
89
|
lastSnmpSeenAt?: Date;
|
|
@@ -83,6 +83,7 @@ export default class NetworkDevice extends BaseModel {
|
|
|
83
83
|
transceiverSnapshot?: Array<NetworkDeviceTransceiver>;
|
|
84
84
|
lastSeenAt?: Date;
|
|
85
85
|
lastPolledAt?: Date;
|
|
86
|
+
lastPollReceivedAt?: Date;
|
|
86
87
|
isReachable?: boolean;
|
|
87
88
|
isSnmpReachable?: boolean;
|
|
88
89
|
lastSnmpSeenAt?: Date;
|
|
@@ -274,6 +274,20 @@ let NetworkDevice = class NetworkDevice extends DatabaseBaseModel_1.default {
|
|
|
274
274
|
this.transceiverSnapshot = undefined;
|
|
275
275
|
this.lastSeenAt = undefined;
|
|
276
276
|
this.lastPolledAt = undefined;
|
|
277
|
+
/*
|
|
278
|
+
* The receipt time of the poll whose verdict the row holds, which is what
|
|
279
|
+
* keeps an older poll from overwriting a newer one (OneUptime issue #7389).
|
|
280
|
+
* Written with the verdict, in one statement that only writes a poll
|
|
281
|
+
* received after this time (NetworkDeviceService.writePollVerdict).
|
|
282
|
+
*
|
|
283
|
+
* lastPolledAt cannot do this job. It is stamped when OneUptime processed
|
|
284
|
+
* the poll, because the stale-poll check, the topology and the stale pill
|
|
285
|
+
* all read it to tell whether polls are still coming through, and a queue
|
|
286
|
+
* backlog does not stop them.
|
|
287
|
+
*
|
|
288
|
+
* Read-only for everyone: only the poll pipeline writes it.
|
|
289
|
+
*/
|
|
290
|
+
this.lastPollReceivedAt = undefined;
|
|
277
291
|
this.isReachable = undefined;
|
|
278
292
|
this.isSnmpReachable = undefined;
|
|
279
293
|
this.lastSnmpSeenAt = undefined;
|
|
@@ -363,8 +377,15 @@ __decorate([
|
|
|
363
377
|
Permission_1.default.ReadNetworkDevice,
|
|
364
378
|
],
|
|
365
379
|
update: [],
|
|
366
|
-
})
|
|
367
|
-
|
|
380
|
+
})
|
|
381
|
+
/*
|
|
382
|
+
* No bare @Index() here on purpose: five composites declared on the class
|
|
383
|
+
* lead with this column, and serve every read by it and the ON DELETE
|
|
384
|
+
* CASCADE of a project. Another would cost every update this table cannot
|
|
385
|
+
* make HOT - every poll's claim - one more index write for nothing
|
|
386
|
+
* (OneUptime issue #7921).
|
|
387
|
+
*/
|
|
388
|
+
,
|
|
368
389
|
(0, TableColumn_1.default)({
|
|
369
390
|
type: TableColumnType_1.default.ObjectID,
|
|
370
391
|
required: true,
|
|
@@ -2994,6 +3015,33 @@ __decorate([
|
|
|
2994
3015
|
}),
|
|
2995
3016
|
__metadata("design:type", Date)
|
|
2996
3017
|
], NetworkDevice.prototype, "lastPolledAt", void 0);
|
|
3018
|
+
__decorate([
|
|
3019
|
+
(0, ColumnAccessControl_1.default)({
|
|
3020
|
+
create: [],
|
|
3021
|
+
read: [
|
|
3022
|
+
Permission_1.default.ProjectOwner,
|
|
3023
|
+
Permission_1.default.ProjectAdmin,
|
|
3024
|
+
Permission_1.default.ProjectMember,
|
|
3025
|
+
Permission_1.default.Viewer,
|
|
3026
|
+
Permission_1.default.SettingsAdmin,
|
|
3027
|
+
Permission_1.default.SettingsMember,
|
|
3028
|
+
Permission_1.default.SettingsViewer,
|
|
3029
|
+
Permission_1.default.ReadNetworkDevice,
|
|
3030
|
+
],
|
|
3031
|
+
update: [],
|
|
3032
|
+
}),
|
|
3033
|
+
(0, TableColumn_1.default)({
|
|
3034
|
+
required: false,
|
|
3035
|
+
type: TableColumnType_1.default.Date,
|
|
3036
|
+
title: "Last Poll Received At",
|
|
3037
|
+
description: "When OneUptime received the poll whose result this device shows (isReachable, isSnmpReachable and the interface counts). A poll received earlier never overwrites that result: a retried poll, or one that waited longer in the queue than the poll after it. Managed by OneUptime.",
|
|
3038
|
+
}),
|
|
3039
|
+
(0, typeorm_1.Column)({
|
|
3040
|
+
nullable: true,
|
|
3041
|
+
type: ColumnType_1.default.Date,
|
|
3042
|
+
}),
|
|
3043
|
+
__metadata("design:type", Date)
|
|
3044
|
+
], NetworkDevice.prototype, "lastPollReceivedAt", void 0);
|
|
2997
3045
|
__decorate([
|
|
2998
3046
|
(0, ColumnAccessControl_1.default)({
|
|
2999
3047
|
create: [],
|
|
@@ -3595,13 +3643,22 @@ NetworkDevice = __decorate([
|
|
|
3595
3643
|
* polled, and it only changes when a device actually changes state, so it is
|
|
3596
3644
|
* cheap to keep sorted.
|
|
3597
3645
|
*
|
|
3598
|
-
* `lastSeenAt
|
|
3599
|
-
*
|
|
3600
|
-
*
|
|
3601
|
-
*
|
|
3646
|
+
* Not `lastSeenAt`, though the Overview's "devices needing attention" list
|
|
3647
|
+
* asks for the unreachable devices longest out of contact (OneUptime issue
|
|
3648
|
+
* #7921). Every poll that reaches a device moves its `lastSeenAt`, and an
|
|
3649
|
+
* update that changes a column any index names cannot be HOT: it writes an
|
|
3650
|
+
* entry into every index on this table and leaves a dead one in each for
|
|
3651
|
+
* vacuum to find. With `lastSeenAt` here, every reachable poll's verdict did
|
|
3652
|
+
* that. Without it, the verdict of a device whose state did not change can
|
|
3653
|
+
* be HOT, and the list sorts the project's down devices to return eight. On
|
|
3654
|
+
* 80,000 devices that read 5,700 buffers with 5,700 down and 7,100 with
|
|
3655
|
+
* 22,600 down, where the index read 10: about one pass over the table, as
|
|
3656
|
+
* the fleet tally on the same page already makes. Nor a partial index on
|
|
3657
|
+
* the unreachable devices: a partial index's columns block HOT like any
|
|
3658
|
+
* other's, whichever rows it holds.
|
|
3602
3659
|
*/
|
|
3603
3660
|
,
|
|
3604
|
-
(0, typeorm_1.Index)(["projectId", "isArchived", "isReachable"
|
|
3661
|
+
(0, typeorm_1.Index)(["projectId", "isArchived", "isReachable"])
|
|
3605
3662
|
/*
|
|
3606
3663
|
* Every per-site rollup, the hierarchy drill-down, and the "unassigned
|
|
3607
3664
|
* devices" count. A device's site almost never changes, so this is close to
|