@oneuptime/common 14.0.110 → 14.2.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/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.d.mts +1 -0
- package/Models/DatabaseModels/Alert.d.ts +1 -0
- package/Models/DatabaseModels/Alert.js +52 -2
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.mts +2 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.ts +2 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.js +62 -0
- package/Models/DatabaseModels/DataStore.js +9 -0
- package/Models/DatabaseModels/EmailLog.js +2 -2
- package/Models/DatabaseModels/Form.js +3 -3
- package/Models/DatabaseModels/FormSubmission.js +4 -4
- package/Models/DatabaseModels/GlobalConfig.js +46 -45
- package/Models/DatabaseModels/Incident.d.mts +1 -0
- package/Models/DatabaseModels/Incident.d.ts +1 -0
- package/Models/DatabaseModels/Incident.js +53 -2
- package/Models/DatabaseModels/IncidentPostmortemActionItem.d.mts +31 -0
- package/Models/DatabaseModels/IncidentPostmortemActionItem.d.ts +31 -0
- package/Models/DatabaseModels/IncidentPostmortemActionItem.js +591 -0
- package/Models/DatabaseModels/IncidentPostmortemActionItem.mjs +3 -0
- package/Models/DatabaseModels/IncidentSlaRule.js +2 -2
- package/Models/DatabaseModels/Index.js +6 -0
- package/Models/DatabaseModels/InventoryItem.js +11 -0
- package/Models/DatabaseModels/Monitor.js +51 -17
- 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.js +23 -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/OnCallDutyPolicyExecutionLog.js +19 -5
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.mts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.ts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.js +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyUserOverride.js +35 -7
- package/Models/DatabaseModels/OpenStackCloudCheck.js +8 -1
- package/Models/DatabaseModels/Project.d.mts +1 -0
- package/Models/DatabaseModels/Project.d.ts +1 -0
- package/Models/DatabaseModels/Project.js +46 -3
- package/Models/DatabaseModels/ProjectCallSMSConfig.js +3 -1
- package/Models/DatabaseModels/ProjectSmtpConfig.js +2 -0
- package/Models/DatabaseModels/PublicNoteApprovalRequest.js +3 -3
- package/Models/DatabaseModels/PublicNoteApprovalStep.js +1 -1
- package/Models/DatabaseModels/RunbookExecution.js +2 -2
- package/Models/DatabaseModels/RunbookRule.js +6 -6
- package/Models/DatabaseModels/ScheduledMaintenance.js +3 -3
- package/Models/DatabaseModels/ScheduledMaintenanceCalendarFeed.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceLabelRule.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js +7 -7
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +1 -1
- 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 +3 -3
- package/Models/DatabaseModels/ScheduledMaintenanceReminderRule.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +3 -3
- package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +5 -5
- package/Models/DatabaseModels/TeamMember.js +10 -1
- package/Models/DatabaseModels/TelemetryIngestionKey.js +1 -1
- 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 +28 -2
- package/Types/AI/AIActionWords.d.ts +28 -2
- package/Types/AI/AIActionWords.js +235 -3
- package/Types/AI/AIActionWords.mjs +8 -0
- package/Types/AI/AIChatTypes.d.mts +3 -1
- package/Types/AI/AIChatTypes.d.ts +3 -1
- package/Types/AI/AIReadTableWords.d.mts +192 -0
- package/Types/AI/AIReadTableWords.d.ts +192 -0
- package/Types/AI/AIReadTableWords.js +368 -0
- package/Types/AI/AIReadTableWords.mjs +18 -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 +48 -0
- package/Types/AI/AiRunRefusal.d.ts +48 -0
- package/Types/AI/AiRunRefusal.js +208 -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/AI/ResourceAiAccessPermissions.js +7 -18
- 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/AuditLog/AuditLogActionLabel.js +19 -9
- package/Types/BaseDatabase/AggregateBy.d.mts +16 -0
- package/Types/BaseDatabase/AggregateBy.d.ts +16 -0
- package/Types/BaseDatabase/AggregationIntervalUtil.d.mts +32 -1
- package/Types/BaseDatabase/AggregationIntervalUtil.d.ts +32 -1
- package/Types/BaseDatabase/AggregationIntervalUtil.js +199 -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/CloudResourceHealth.d.mts +30 -1
- package/Types/Cloud/CloudResourceHealth.d.ts +30 -1
- package/Types/Cloud/CloudResourceHealth.js +405 -13
- package/Types/Cloud/CloudResourceHealth.mjs +28 -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/DataCheckRefusals.d.mts +32 -0
- package/Types/DataObservability/DataCheckRefusals.d.ts +32 -0
- package/Types/DataObservability/DataCheckRefusals.js +77 -0
- package/Types/DataObservability/DataCheckRefusals.mjs +8 -0
- package/Types/Database/AccessControl/PermissionScopeNarrowing.js +4 -0
- package/Types/Date.d.mts +8 -1
- package/Types/Date.d.ts +8 -1
- package/Types/Date.js +61 -7
- package/Types/Date.mjs +1 -0
- package/Types/DateLanguage.d.mts +2 -0
- package/Types/DateLanguage.d.ts +2 -0
- package/Types/DateLanguage.js +8 -5
- package/Types/Email/EmailTemplateType.d.mts +1 -0
- package/Types/Email/EmailTemplateType.d.ts +1 -0
- package/Types/Email/EmailTemplateType.js +2 -0
- package/Types/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/EgressGuardException.js +1 -1
- package/Types/Exception/ErrorMessageRule.d.mts +1 -0
- package/Types/Exception/ErrorMessageRule.d.ts +1 -0
- package/Types/Exception/ErrorMessageRule.js +67 -13
- package/Types/Exception/ErrorMessageRule.mjs +1 -0
- package/Types/Exception/ExceptionMessages.d.mts +2 -0
- package/Types/Exception/ExceptionMessages.d.ts +2 -0
- package/Types/Exception/ExceptionMessages.js +2 -0
- package/Types/Form/FormTargetCatalog.js +2 -2
- package/Types/Form/FormTargetType.js +2 -2
- package/Types/Incident/PostmortemActionItemStatus.d.mts +17 -0
- package/Types/Incident/PostmortemActionItemStatus.d.ts +17 -0
- package/Types/Incident/PostmortemActionItemStatus.js +74 -0
- package/Types/Incident/PostmortemActionItemStatus.mjs +5 -0
- package/Types/JSONFunctions.js +10 -3
- package/Types/Link.d.mts +1 -0
- package/Types/Link.d.ts +1 -0
- package/Types/ListData.d.mts +2 -0
- package/Types/ListData.d.ts +2 -0
- package/Types/ListData.js +4 -0
- package/Types/MeaningKeys.d.mts +4 -0
- package/Types/MeaningKeys.d.ts +4 -0
- package/Types/MeaningKeys.js +74 -0
- package/Types/MeaningKeys.mjs +5 -0
- 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/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 -0
- package/Types/Monitor/WhoIsTold.d.ts +3 -0
- package/Types/Monitor/WhoIsTold.js +63 -13
- package/Types/NoBreakSpaces.d.mts +16 -0
- package/Types/NoBreakSpaces.d.ts +16 -0
- package/Types/NoBreakSpaces.js +419 -0
- package/Types/NoBreakSpaces.mjs +9 -0
- package/Types/NotificationRule/PagingLadder.d.mts +12 -0
- package/Types/NotificationRule/PagingLadder.d.ts +12 -0
- package/Types/NotificationRule/PagingLadder.js +159 -11
- package/Types/NotificationRule/PagingLadder.mjs +3 -0
- 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/OnCallPagePassOn.d.mts +1 -0
- package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.ts +1 -0
- package/Types/OnCallDutyPolicy/OnCallPageRecordGone.d.mts +3 -0
- package/Types/OnCallDutyPolicy/OnCallPageRecordGone.d.ts +3 -0
- package/Types/OnCallDutyPolicy/OnCallPageRecordGone.js +42 -0
- package/Types/OnCallDutyPolicy/OnCallPageRecordGone.mjs +4 -0
- package/Types/OnCallDutyPolicy/OnCallPageWords.d.mts +6 -2
- package/Types/OnCallDutyPolicy/OnCallPageWords.d.ts +6 -2
- package/Types/OnCallDutyPolicy/OnCallPageWords.js +21 -20
- package/Types/OnCallDutyPolicy/OnCallPersonPage.d.mts +4 -0
- package/Types/OnCallDutyPolicy/OnCallPersonPage.d.ts +4 -0
- package/Types/OnCallDutyPolicy/OnCallPersonPage.js +125 -1
- package/Types/OnCallDutyPolicy/OnCallPersonPage.mjs +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 +2 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +2 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.js +12 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +1 -0
- 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/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/OpenStack/OpenStackCapacity.js +12 -5
- package/Types/Permission.d.mts +4 -0
- package/Types/Permission.d.ts +4 -0
- package/Types/Permission.js +66 -10
- 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/ProductUsage.js +2 -1
- package/Types/Product/ProjectProductsAnswer.js +2 -1
- 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/ResourceAiAgent/AiResourceType.d.mts +1 -0
- package/Types/ResourceAiAgent/AiResourceType.d.ts +1 -0
- package/Types/ResourceAiAgent/AiResourceType.js +12 -0
- package/Types/Rules/RuleRun.js +2 -2
- package/Types/Rum/ProductAnalyticsEventReads.js +10 -1
- package/Types/Rum/ProductAnalyticsEvents.js +13 -1
- package/Types/Rum/SessionReplayCustomEvents.d.mts +4 -1
- package/Types/Rum/SessionReplayCustomEvents.d.ts +4 -1
- package/Types/Rum/SessionReplayCustomEvents.js +12 -0
- package/Types/Rum/SessionReplayCustomEvents.mjs +1 -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/SetupHealth/SetupHealth.d.mts +1 -0
- package/Types/SetupHealth/SetupHealth.d.ts +1 -0
- package/Types/SetupHealth/SetupHealth.js +13 -5
- package/Types/StateTimeline/RowsKeptOnDelete.js +1 -1
- package/Types/StatusPage/DefaultStatusNames.d.mts +11 -3
- package/Types/StatusPage/DefaultStatusNames.d.ts +11 -3
- package/Types/StatusPage/DefaultStatusNames.js +74 -28
- package/Types/StatusPage/DefaultStatusNames.mjs +9 -2
- 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/StatusPage/StateChangeNoteMessage.d.mts +3 -2
- package/Types/StatusPage/StateChangeNoteMessage.d.ts +3 -2
- package/Types/StatusPage/StateChangeNoteMessage.js +16 -13
- 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 +48 -7
- package/Types/Telemetry/TelemetryIngestionKeyType.js +7 -6
- 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 +470 -63
- package/Types/Translator.mjs +1 -0
- package/Types/UserSession/SessionLength.d.mts +33 -0
- package/Types/UserSession/SessionLength.d.ts +33 -0
- package/Types/UserSession/SessionLength.js +134 -5
- package/Types/UserSession/SessionLength.mjs +5 -0
- package/Types/Workflow/RunRecord.js +1 -1
- package/Types/Workflow/Templates.js +2 -2
- package/Types/Workflow/WorkflowStatus.js +21 -10
- 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 +26 -1
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +26 -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/InvestigationReport.js +2 -2
- package/Utils/API.d.mts +0 -11
- package/Utils/API.d.ts +0 -11
- package/Utils/API.js +0 -432
- package/Utils/AiRemediation/Resource/ResourceCommandPolicy.js +2 -2
- package/Utils/AiRemediation/VerifiedFixRunbook.d.mts +39 -0
- package/Utils/AiRemediation/VerifiedFixRunbook.d.ts +39 -0
- package/Utils/AiRemediation/VerifiedFixRunbook.js +231 -0
- package/Utils/AiRemediation/VerifiedFixRunbook.mjs +10 -0
- package/Utils/Dashboard/DashboardWidgetSorts.js +11 -2
- package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +2 -1
- package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +2 -1
- package/Utils/Dashboard/MonitorListWidgetFormat.js +5 -3
- 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/DefaultRecordNames.d.mts +6 -0
- package/Utils/DefaultRecordNames.d.ts +6 -0
- package/Utils/DefaultRecordNames.js +122 -0
- package/Utils/DefaultRecordNames.mjs +6 -0
- package/Utils/DeveloperDocs/ExampleBuilder.js +1 -1
- package/Utils/DeveloperDocs/ResourceProfiles.js +2 -2
- package/Utils/Grok/Grok.js +7 -4
- 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/Incident/PostmortemActionItemCodeTask.d.mts +20 -0
- package/Utils/Incident/PostmortemActionItemCodeTask.d.ts +20 -0
- package/Utils/Incident/PostmortemActionItemCodeTask.js +107 -0
- package/Utils/Incident/PostmortemActionItemCodeTask.mjs +10 -0
- package/Utils/Incident/PostmortemActionItemMarkdown.d.mts +39 -0
- package/Utils/Incident/PostmortemActionItemMarkdown.d.ts +39 -0
- package/Utils/Incident/PostmortemActionItemMarkdown.js +118 -0
- package/Utils/Incident/PostmortemActionItemMarkdown.mjs +12 -0
- package/Utils/Incident/PostmortemNoteActionItems.d.mts +29 -0
- package/Utils/Incident/PostmortemNoteActionItems.d.ts +29 -0
- package/Utils/Incident/PostmortemNoteActionItems.js +544 -0
- package/Utils/Incident/PostmortemNoteActionItems.mjs +7 -0
- package/Utils/LinearRegExp/LinearRegExp.js +5 -1
- package/Utils/LookupTable.d.mts +3 -0
- package/Utils/LookupTable.d.ts +3 -0
- package/Utils/LookupTable.js +61 -0
- package/Utils/LookupTable.mjs +3 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.mts +2 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +2 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +101 -1
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +2 -0
- package/Utils/Markdown/OverLongText.js +296 -2
- package/Utils/Markdown/SlowMarkdown.d.mts +1 -0
- package/Utils/Markdown/SlowMarkdown.d.ts +1 -0
- package/Utils/Markdown/SlowMarkdown.js +354 -4
- package/Utils/Markdown/SlowMarkdown.mjs +1 -0
- package/Utils/Metrics/MetricFormulaEvaluator.js +10 -4
- package/Utils/Metrics/MetricSeriesFingerprint.js +13 -4
- package/Utils/Metrics/MetricSeriesScope.d.mts +5 -0
- package/Utils/Metrics/MetricSeriesScope.d.ts +5 -0
- package/Utils/Metrics/MetricSeriesScope.js +5 -1
- 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/Monitor/EndpointAttachmentUtil.d.mts +8 -0
- package/Utils/Monitor/EndpointAttachmentUtil.d.ts +8 -0
- package/Utils/Monitor/EndpointAttachmentUtil.js +91 -21
- package/Utils/Monitor/EndpointAttachmentUtil.mjs +4 -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 +5 -0
- package/Utils/Monitor/MonitorRootCauseWording.d.ts +5 -0
- package/Utils/Monitor/MonitorRootCauseWording.js +148 -5
- 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/ProbeAgreementRule.d.mts +10 -0
- package/Utils/Monitor/ProbeAgreementRule.d.ts +10 -0
- package/Utils/Monitor/ProbeAgreementRule.js +58 -0
- package/Utils/Monitor/ProbeAgreementRule.mjs +3 -0
- package/Utils/Monitor/ProbeFailureReading.d.mts +18 -0
- package/Utils/Monitor/ProbeFailureReading.d.ts +18 -0
- package/Utils/Monitor/ProbeFailureReading.js +166 -0
- package/Utils/Monitor/ProbeFailureReading.mjs +8 -0
- package/Utils/Monitor/RequestFailureDescriptions.d.mts +61 -0
- package/Utils/Monitor/RequestFailureDescriptions.d.ts +61 -0
- package/Utils/Monitor/RequestFailureDescriptions.js +252 -0
- package/Utils/Monitor/RequestFailureDescriptions.mjs +6 -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/Project/NextNumber.js +1 -1
- 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 +974 -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 +829 -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/PromQLLabelOrder.d.mts +8 -0
- package/Utils/PromQL/PromQLLabelOrder.d.ts +8 -0
- package/Utils/PromQL/PromQLLabelOrder.js +212 -0
- package/Utils/PromQL/PromQLLabelOrder.mjs +6 -0
- package/Utils/PromQL/PromQLLabels.d.mts +11 -0
- package/Utils/PromQL/PromQLLabels.d.ts +11 -0
- package/Utils/PromQL/PromQLLabels.js +219 -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 +205 -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 +836 -0
- package/Utils/PromQL/PromQLParser.mjs +4 -0
- package/Utils/PromQL/PromQLRegex.d.mts +20 -0
- package/Utils/PromQL/PromQLRegex.d.ts +20 -0
- package/Utils/PromQL/PromQLRegex.js +1014 -0
- package/Utils/PromQL/PromQLRegex.mjs +5 -0
- package/Utils/PromQL/PrometheusResponse.d.mts +25 -0
- package/Utils/PromQL/PrometheusResponse.d.ts +25 -0
- package/Utils/PromQL/PrometheusResponse.js +92 -0
- package/Utils/PromQL/PrometheusResponse.mjs +3 -0
- package/Utils/PromQL/RE2CharacterClass.d.mts +24 -0
- package/Utils/PromQL/RE2CharacterClass.d.ts +24 -0
- package/Utils/PromQL/RE2CharacterClass.js +532 -0
- package/Utils/PromQL/RE2CharacterClass.mjs +16 -0
- package/Utils/RequestFailedDetailsUtil.d.mts +15 -0
- package/Utils/RequestFailedDetailsUtil.d.ts +15 -0
- package/Utils/RequestFailedDetailsUtil.js +452 -0
- package/Utils/RequestFailedDetailsUtil.mjs +2 -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 +5 -1
- package/Utils/Rum/UrlScrubber.d.ts +5 -1
- package/Utils/Rum/UrlScrubber.js +153 -7
- package/Utils/Rum/UserFlow.d.mts +1 -1
- package/Utils/Rum/UserFlow.d.ts +1 -1
- package/Utils/Rum/UserFlow.js +202 -29
- 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/Schema/TypeSchemas.js +6 -0
- package/Utils/SecurityCase/SecurityOverviewMetrics.d.mts +11 -1
- package/Utils/SecurityCase/SecurityOverviewMetrics.d.ts +11 -1
- package/Utils/SecurityCase/SecurityOverviewMetrics.js +99 -17
- package/Utils/SecurityCase/SecurityOverviewMetrics.mjs +3 -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/Sms/OnCallPageSms.d.mts +2 -0
- package/Utils/Sms/OnCallPageSms.d.ts +2 -0
- package/Utils/Sms/OnCallPageSms.js +3 -1
- package/Utils/StateListType.d.mts +11 -0
- package/Utils/StateListType.d.ts +11 -0
- package/Utils/StateListType.js +21 -0
- package/Utils/StateListType.mjs +2 -0
- package/Utils/StateOrder.d.mts +8 -11
- package/Utils/StateOrder.d.ts +8 -11
- package/Utils/StateOrder.js +50 -88
- package/Utils/StateOrder.mjs +2 -0
- package/Utils/StateTimeline/StateTimelineRowDelete.js +1 -1
- package/Utils/Suggestions/ActionItemCodeTaskSuggestion.d.mts +9 -0
- package/Utils/Suggestions/ActionItemCodeTaskSuggestion.d.ts +9 -0
- package/Utils/Suggestions/ActionItemCodeTaskSuggestion.js +25 -0
- package/Utils/Suggestions/ActionItemCodeTaskSuggestion.mjs +2 -0
- package/Utils/Suggestions/VerifiedFixRunbookSuggestion.d.mts +5 -0
- package/Utils/Suggestions/VerifiedFixRunbookSuggestion.d.ts +5 -0
- package/Utils/Suggestions/VerifiedFixRunbookSuggestion.js +39 -0
- package/Utils/Suggestions/VerifiedFixRunbookSuggestion.mjs +2 -0
- package/Utils/Syslog/SyslogMessageParser.js +16 -6
- package/Utils/Telemetry/HeartbeatAvailability.d.mts +4 -0
- package/Utils/Telemetry/HeartbeatAvailability.d.ts +4 -0
- package/Utils/Telemetry/HeartbeatAvailability.js +113 -26
- package/Utils/Uptime/DayUptimeGraphUtil.js +2 -2
- package/Utils/ValueFormatter.d.mts +1 -0
- package/Utils/ValueFormatter.d.ts +1 -0
- package/Utils/ValueFormatter.js +258 -18
- package/package.json +1 -1
|
@@ -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,
|
|
@@ -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,7 +2257,6 @@ __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,
|
|
@@ -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
|
|
@@ -377,8 +377,15 @@ __decorate([
|
|
|
377
377
|
Permission_1.default.ReadNetworkDevice,
|
|
378
378
|
],
|
|
379
379
|
update: [],
|
|
380
|
-
})
|
|
381
|
-
|
|
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
|
+
,
|
|
382
389
|
(0, TableColumn_1.default)({
|
|
383
390
|
type: TableColumnType_1.default.ObjectID,
|
|
384
391
|
required: true,
|
|
@@ -3636,13 +3643,22 @@ NetworkDevice = __decorate([
|
|
|
3636
3643
|
* polled, and it only changes when a device actually changes state, so it is
|
|
3637
3644
|
* cheap to keep sorted.
|
|
3638
3645
|
*
|
|
3639
|
-
* `lastSeenAt
|
|
3640
|
-
*
|
|
3641
|
-
*
|
|
3642
|
-
*
|
|
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.
|
|
3643
3659
|
*/
|
|
3644
3660
|
,
|
|
3645
|
-
(0, typeorm_1.Index)(["projectId", "isArchived", "isReachable"
|
|
3661
|
+
(0, typeorm_1.Index)(["projectId", "isArchived", "isReachable"])
|
|
3646
3662
|
/*
|
|
3647
3663
|
* Every per-site rollup, the hierarchy drill-down, and the "unassigned
|
|
3648
3664
|
* devices" count. A device's site almost never changes, so this is close to
|
|
@@ -53,6 +53,18 @@ let NetworkEndpoint = class NetworkEndpoint extends DatabaseBaseModel_1.default
|
|
|
53
53
|
this.siteId = undefined;
|
|
54
54
|
this.firstSeenAt = undefined;
|
|
55
55
|
this.lastSeenAt = undefined;
|
|
56
|
+
/*
|
|
57
|
+
* lastSeenAt, a day at a time: it takes lastSeenAt's value only once
|
|
58
|
+
* lastSeenAt is a day or more past it (NetworkEndpointService), so it is
|
|
59
|
+
* never later than lastSeenAt and never a day behind it. The age-out
|
|
60
|
+
* (DiscoveredDeviceAgeOut) finds its candidates by this column's index and
|
|
61
|
+
* checks lastSeenAt on the row. lastSeenAt itself is in no index, so the
|
|
62
|
+
* walk's refresh of it changes no indexed column and can be a HOT update;
|
|
63
|
+
* this column changes about once a day an endpoint.
|
|
64
|
+
*
|
|
65
|
+
* The server's alone: nobody reads or writes it through the API.
|
|
66
|
+
*/
|
|
67
|
+
this.coarseLastSeenAt = undefined;
|
|
56
68
|
/*
|
|
57
69
|
* When a person last added this device or changed its vendor, address or
|
|
58
70
|
* site - through the Dashboard, the API, Terraform or a workflow, never the
|
|
@@ -641,13 +653,12 @@ __decorate([
|
|
|
641
653
|
],
|
|
642
654
|
update: [],
|
|
643
655
|
}),
|
|
644
|
-
(0, typeorm_1.Index)(),
|
|
645
656
|
(0, TableColumn_1.default)({
|
|
646
657
|
required: false,
|
|
647
658
|
type: TableColumnType_1.default.Date,
|
|
648
659
|
canReadOnRelationQuery: true,
|
|
649
660
|
title: "Last Seen At",
|
|
650
|
-
description: "When this endpoint was last seen in an ARP or FDB walk",
|
|
661
|
+
description: "When this endpoint was last seen in an ARP or FDB walk, or in a network controller's client list. While a walk keeps seeing it unchanged, this is refreshed every 15 minutes, so it is accurate to within 15 minutes and one poll.",
|
|
651
662
|
}),
|
|
652
663
|
(0, typeorm_1.Column)({
|
|
653
664
|
nullable: true,
|
|
@@ -655,6 +666,25 @@ __decorate([
|
|
|
655
666
|
}),
|
|
656
667
|
__metadata("design:type", Date)
|
|
657
668
|
], NetworkEndpoint.prototype, "lastSeenAt", void 0);
|
|
669
|
+
__decorate([
|
|
670
|
+
(0, ColumnAccessControl_1.default)({
|
|
671
|
+
create: [],
|
|
672
|
+
read: [],
|
|
673
|
+
update: [],
|
|
674
|
+
}),
|
|
675
|
+
(0, TableColumn_1.default)({
|
|
676
|
+
required: false,
|
|
677
|
+
type: TableColumnType_1.default.Date,
|
|
678
|
+
title: "Coarse Last Seen At",
|
|
679
|
+
description: "When this endpoint was last seen, to within a day. Managed by the server, for removing devices no longer seen.",
|
|
680
|
+
hideColumnInDocumentation: true,
|
|
681
|
+
}),
|
|
682
|
+
(0, typeorm_1.Column)({
|
|
683
|
+
nullable: true,
|
|
684
|
+
type: ColumnType_1.default.Date,
|
|
685
|
+
}),
|
|
686
|
+
__metadata("design:type", Date)
|
|
687
|
+
], NetworkEndpoint.prototype, "coarseLastSeenAt", void 0);
|
|
658
688
|
__decorate([
|
|
659
689
|
(0, ColumnAccessControl_1.default)({
|
|
660
690
|
create: [],
|
|
@@ -869,13 +899,15 @@ NetworkEndpoint = __decorate([
|
|
|
869
899
|
where: '"deletedAt" IS NULL',
|
|
870
900
|
})
|
|
871
901
|
/*
|
|
872
|
-
* A project's live endpoints by when they were last seen
|
|
873
|
-
* removes devices no longer seen (DiscoveredDeviceAgeOut, issue
|
|
874
|
-
* - whether a project has any due, the oldest first, and the
|
|
875
|
-
* saw anything lately - without reading every row of the
|
|
902
|
+
* A project's live endpoints by when they were last seen, to the day: what
|
|
903
|
+
* the job that removes devices no longer seen (DiscoveredDeviceAgeOut, issue
|
|
904
|
+
* #6389) reads - whether a project has any due, the oldest first, and the
|
|
905
|
+
* devices that saw anything lately - without reading every row of the
|
|
906
|
+
* project. It holds coarseLastSeenAt, not lastSeenAt, so the walk's refresh
|
|
907
|
+
* of lastSeenAt changes no indexed column and can be a HOT update.
|
|
876
908
|
*/
|
|
877
909
|
,
|
|
878
|
-
(0, typeorm_1.Index)(["projectId", "
|
|
910
|
+
(0, typeorm_1.Index)(["projectId", "coarseLastSeenAt"], {
|
|
879
911
|
where: '"deletedAt" IS NULL',
|
|
880
912
|
}),
|
|
881
913
|
(0, TableMetadata_1.default)({
|
|
@@ -490,7 +490,7 @@ __decorate([
|
|
|
490
490
|
type: TableColumnType_1.default.Number,
|
|
491
491
|
canReadOnRelationQuery: true,
|
|
492
492
|
title: "In Rate (Mbps)",
|
|
493
|
-
description: "
|
|
493
|
+
description: "Inbound throughput in Mbps, computed from SNMP counters between two polls. Written again when it moves by a tenth or more (and by more than 1% of the link speed), and at least every 15 minutes.",
|
|
494
494
|
}),
|
|
495
495
|
(0, typeorm_1.Column)({
|
|
496
496
|
nullable: true,
|
|
@@ -519,7 +519,7 @@ __decorate([
|
|
|
519
519
|
type: TableColumnType_1.default.Number,
|
|
520
520
|
canReadOnRelationQuery: true,
|
|
521
521
|
title: "Out Rate (Mbps)",
|
|
522
|
-
description: "
|
|
522
|
+
description: "Outbound throughput in Mbps, computed from SNMP counters between two polls. Written again when it moves by a tenth or more (and by more than 1% of the link speed), and at least every 15 minutes.",
|
|
523
523
|
}),
|
|
524
524
|
(0, typeorm_1.Column)({
|
|
525
525
|
nullable: true,
|
|
@@ -548,7 +548,7 @@ __decorate([
|
|
|
548
548
|
type: TableColumnType_1.default.Number,
|
|
549
549
|
canReadOnRelationQuery: true,
|
|
550
550
|
title: "Utilization Percent",
|
|
551
|
-
description: "
|
|
551
|
+
description: "Utilization as a percent of interface speed (max of in/out) between two polls. Written again when it moves by a tenth or more (and by more than a point), crosses 80%, and at least every 15 minutes.",
|
|
552
552
|
}),
|
|
553
553
|
(0, typeorm_1.Column)({
|
|
554
554
|
nullable: true,
|
|
@@ -577,7 +577,7 @@ __decorate([
|
|
|
577
577
|
type: TableColumnType_1.default.Number,
|
|
578
578
|
canReadOnRelationQuery: true,
|
|
579
579
|
title: "Errors Per Second",
|
|
580
|
-
description: "
|
|
580
|
+
description: "Error rate (in + out errors per second) computed from SNMP counters between two polls. Written again when errors start or stop, when it moves by a tenth or more, and at least every 15 minutes.",
|
|
581
581
|
}),
|
|
582
582
|
(0, typeorm_1.Column)({
|
|
583
583
|
nullable: true,
|
|
@@ -606,7 +606,7 @@ __decorate([
|
|
|
606
606
|
type: TableColumnType_1.default.Date,
|
|
607
607
|
canReadOnRelationQuery: true,
|
|
608
608
|
title: "Last Seen At",
|
|
609
|
-
description: "When this interface
|
|
609
|
+
description: "When an SNMP walk last saw this interface, to within 15 minutes: a walk that finds an interface unchanged writes it again only every 15 minutes.",
|
|
610
610
|
}),
|
|
611
611
|
(0, typeorm_1.Column)({
|
|
612
612
|
nullable: true,
|
|
@@ -277,8 +277,9 @@ __decorate([
|
|
|
277
277
|
Permission_1.default.ReadProjectOnCallDutyPolicyExecutionLog,
|
|
278
278
|
],
|
|
279
279
|
update: [],
|
|
280
|
-
})
|
|
281
|
-
(
|
|
280
|
+
})
|
|
281
|
+
// Indexed with createdAt (see the class): the list's order.
|
|
282
|
+
,
|
|
282
283
|
(0, TableColumn_1.default)({
|
|
283
284
|
type: TableColumnType_1.default.ObjectID,
|
|
284
285
|
required: true,
|
|
@@ -361,10 +362,10 @@ __decorate([
|
|
|
361
362
|
* Empty for a direct page, which no on-call policy is behind. Not
|
|
362
363
|
* `required`, so OneUptime's own create of one passes DatabaseService
|
|
363
364
|
* .checkRequiredFields; every other create still has to name the policy
|
|
364
|
-
* it runs (OnCallDutyPolicyExecutionLogService.onBeforeCreate).
|
|
365
|
+
* it runs (OnCallDutyPolicyExecutionLogService.onBeforeCreate). Indexed
|
|
366
|
+
* with createdAt (see the class): the policy's list of runs.
|
|
365
367
|
*/
|
|
366
368
|
,
|
|
367
|
-
(0, typeorm_1.Index)(),
|
|
368
369
|
(0, TableColumn_1.default)({
|
|
369
370
|
type: TableColumnType_1.default.ObjectID,
|
|
370
371
|
canReadOnRelationQuery: true,
|
|
@@ -1880,7 +1881,20 @@ OnCallDutyPolicyExecutionLog = __decorate([
|
|
|
1880
1881
|
,
|
|
1881
1882
|
(0, typeorm_1.Index)(["acknowledgementTimeoutStartedAt"], {
|
|
1882
1883
|
where: '"acknowledgementTimeoutStartedAt" IS NOT NULL AND "deletedAt" IS NULL',
|
|
1883
|
-
})
|
|
1884
|
+
})
|
|
1885
|
+
/*
|
|
1886
|
+
* The On-Call Policy Logs list (ExecutionLogsTable): a project's runs, or a
|
|
1887
|
+
* policy's, newest first. Without these the list read every run of the
|
|
1888
|
+
* project or policy and sorted them for each page. Each also serves every
|
|
1889
|
+
* read by its leading column alone - a project's or a policy's runs, and
|
|
1890
|
+
* the ON DELETE CASCADE of either - which bare indexes on projectId and
|
|
1891
|
+
* onCallDutyPolicyId used to. A policy's list filters on its project too;
|
|
1892
|
+
* statistics that say a policy's runs are all in its project let the
|
|
1893
|
+
* planner read it in order (AddOnCallExecutionLogListIndexes1809165100000).
|
|
1894
|
+
*/
|
|
1895
|
+
,
|
|
1896
|
+
(0, typeorm_1.Index)(["projectId", "createdAt"]),
|
|
1897
|
+
(0, typeorm_1.Index)(["onCallDutyPolicyId", "createdAt"]),
|
|
1884
1898
|
(0, TableMetadata_1.default)({
|
|
1885
1899
|
tableName: "OnCallDutyPolicyExecutionLog",
|
|
1886
1900
|
singularName: "On-Call Policy Execution Log",
|