@oneuptime/common 14.0.106 → 14.0.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/AnalyticsModels/AuditLog.js +1 -1
- package/Models/AnalyticsModels/Index.js +3 -0
- package/Models/AnalyticsModels/RumProductAnalyticsEvent.d.mts +5 -0
- package/Models/AnalyticsModels/RumProductAnalyticsEvent.d.ts +5 -0
- package/Models/AnalyticsModels/RumProductAnalyticsEvent.js +300 -0
- package/Models/AnalyticsModels/RumProductAnalyticsEvent.mjs +3 -0
- package/Models/DatabaseModels/CallLog.d.mts +4 -0
- package/Models/DatabaseModels/CallLog.d.ts +4 -0
- package/Models/DatabaseModels/CallLog.js +85 -0
- package/Models/DatabaseModels/DataBiConnection.d.mts +7 -0
- package/Models/DatabaseModels/DataBiConnection.d.ts +7 -0
- package/Models/DatabaseModels/DataBiConnection.js +105 -2
- package/Models/DatabaseModels/DataDashboard.d.mts +10 -0
- package/Models/DatabaseModels/DataDashboard.d.ts +10 -0
- package/Models/DatabaseModels/DataDashboard.js +129 -2
- package/Models/DatabaseModels/Index.js +8 -0
- package/Models/DatabaseModels/NetworkDevice.d.mts +1 -0
- package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
- package/Models/DatabaseModels/NetworkDevice.js +55 -0
- package/Models/DatabaseModels/NetworkDeviceNamingRule.d.mts +26 -0
- package/Models/DatabaseModels/NetworkDeviceNamingRule.d.ts +26 -0
- package/Models/DatabaseModels/NetworkDeviceNamingRule.js +536 -0
- package/Models/DatabaseModels/NetworkDeviceNamingRule.mjs +2 -0
- package/Models/DatabaseModels/NetworkSite.d.mts +1 -0
- package/Models/DatabaseModels/NetworkSite.d.ts +1 -0
- package/Models/DatabaseModels/NetworkSite.js +51 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.d.mts +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.d.ts +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +41 -0
- package/Models/DatabaseModels/ProjectCallSMSConfig.d.mts +2 -0
- package/Models/DatabaseModels/ProjectCallSMSConfig.d.ts +2 -0
- package/Models/DatabaseModels/ProjectCallSMSConfig.js +80 -1
- package/Models/DatabaseModels/RumApplication.d.mts +2 -0
- package/Models/DatabaseModels/RumApplication.d.ts +2 -0
- package/Models/DatabaseModels/RumApplication.js +108 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.d.mts +20 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.d.ts +20 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.js +353 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.mjs +2 -0
- package/Models/DatabaseModels/Team.js +10 -2
- package/Models/DatabaseModels/TeamComplianceSetting.js +8 -1
- package/Models/DatabaseModels/TeamCustomRole.js +9 -1
- package/Models/DatabaseModels/TeamMember.js +15 -1
- package/Models/DatabaseModels/TeamOwnerTeam.d.mts +17 -0
- package/Models/DatabaseModels/TeamOwnerTeam.d.ts +17 -0
- package/Models/DatabaseModels/TeamOwnerTeam.js +325 -0
- package/Models/DatabaseModels/TeamOwnerTeam.mjs +2 -0
- package/Models/DatabaseModels/TeamOwnerUser.d.mts +17 -0
- package/Models/DatabaseModels/TeamOwnerUser.d.ts +17 -0
- package/Models/DatabaseModels/TeamOwnerUser.js +331 -0
- package/Models/DatabaseModels/TeamOwnerUser.mjs +2 -0
- package/Models/DatabaseModels/TeamPermission.js +12 -1
- package/Models/DatabaseModels/TelemetryUsageBilling.d.mts +1 -0
- package/Models/DatabaseModels/TelemetryUsageBilling.d.ts +1 -0
- package/Models/DatabaseModels/TelemetryUsageBilling.js +34 -0
- package/Models/DatabaseModels/WhatsAppLog.d.mts +3 -0
- package/Models/DatabaseModels/WhatsAppLog.d.ts +3 -0
- package/Models/DatabaseModels/WhatsAppLog.js +62 -0
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.mts +11 -0
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.ts +11 -0
- package/Models/DatabaseModels/WorkspaceUserGroup.js +1 -1
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.mts +212 -0
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.ts +212 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.mts +3 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.ts +3 -0
- package/Types/AI/AIActionWords.d.mts +1 -0
- package/Types/AI/AIActionWords.d.ts +1 -0
- package/Types/AI/AIActionWords.js +15 -4
- package/Types/AI/AIChatRecordSeen.d.mts +3 -0
- package/Types/AI/AIChatRecordSeen.d.ts +3 -0
- package/Types/AI/AIChatRecordSeen.js +28 -3
- package/Types/AI/AIChatRecordSeen.mjs +1 -0
- package/Types/AI/AIChatTypes.d.mts +2 -1
- package/Types/AI/AIChatTypes.d.ts +2 -1
- package/Types/AI/AIChatTypes.js +2 -0
- package/Types/AI/InvestigationNotStartedReason.d.mts +7 -0
- package/Types/AI/InvestigationNotStartedReason.d.ts +7 -0
- package/Types/AnalyticsDatabase/AnalyticsTableName.d.mts +2 -1
- package/Types/AnalyticsDatabase/AnalyticsTableName.d.ts +2 -1
- package/Types/AnalyticsDatabase/AnalyticsTableName.js +7 -0
- package/Types/AuditLog/AuditLogRetention.d.mts +10 -0
- package/Types/AuditLog/AuditLogRetention.d.ts +10 -0
- package/Types/AuditLog/AuditLogRetention.js +91 -0
- package/Types/AuditLog/AuditLogRetention.mjs +8 -0
- package/Types/CallAndSMS/TwilioConfigDefaults.d.mts +37 -0
- package/Types/CallAndSMS/TwilioConfigDefaults.d.ts +37 -0
- package/Types/CallAndSMS/TwilioConfigDefaults.js +224 -0
- package/Types/CallAndSMS/TwilioConfigDefaults.mjs +3 -0
- package/Types/CodeInSentence.d.mts +8 -0
- package/Types/CodeInSentence.d.ts +8 -0
- package/Types/CodeInSentence.js +875 -0
- package/Types/CodeInSentence.mjs +4 -0
- package/Types/CodeRepository/CodeFileSeen.d.mts +3 -0
- package/Types/CodeRepository/CodeFileSeen.d.ts +3 -0
- package/Types/CodeRepository/CodeFileSeen.js +61 -3
- package/Types/Dashboard/DashboardComponentType.d.mts +2 -0
- package/Types/Dashboard/DashboardComponentType.d.ts +2 -0
- package/Types/Dashboard/DashboardComponentType.js +7 -0
- package/Types/Dashboard/DashboardComponents/ComponentArgument.d.mts +3 -1
- package/Types/Dashboard/DashboardComponents/ComponentArgument.d.ts +3 -1
- package/Types/Dashboard/DashboardComponents/ComponentArgument.js +3 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.d.mts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.d.ts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.js +2 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.mjs +1 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.d.mts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.d.ts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.js +2 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.mjs +1 -0
- package/Types/Dashboard/PublicDashboardServedSettings.js +15 -7
- package/Types/DataObservability/DataBiRefreshAlert.d.mts +44 -0
- package/Types/DataObservability/DataBiRefreshAlert.d.ts +44 -0
- package/Types/DataObservability/DataBiRefreshAlert.js +206 -0
- package/Types/DataObservability/DataBiRefreshAlert.mjs +12 -0
- package/Types/DataObservability/DataDashboardActivity.d.mts +40 -0
- package/Types/DataObservability/DataDashboardActivity.d.ts +40 -0
- package/Types/DataObservability/DataDashboardActivity.js +119 -0
- package/Types/DataObservability/DataDashboardActivity.mjs +12 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.mts +14 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.ts +14 -0
- package/Types/DataObservability/DataObservabilityApiTypes.js +14 -0
- package/Types/DataObservability/DataTableLineage.d.mts +108 -0
- package/Types/DataObservability/DataTableLineage.d.ts +108 -0
- package/Types/DataObservability/DataTableLineage.js +119 -0
- package/Types/DataObservability/DataTableLineage.mjs +21 -0
- package/Types/DataSecurity/DataStoreKind.d.mts +1 -0
- package/Types/DataSecurity/DataStoreKind.d.ts +1 -0
- package/Types/DataSecurity/DataStoreKind.js +3 -0
- package/Types/Database/AccessControl/PermissionScopeNarrowing.js +6 -0
- package/Types/DatabaseServer/DatabaseServerMetricCatalog.js +71 -82
- package/Types/Date.d.mts +4 -0
- package/Types/Date.d.ts +4 -0
- package/Types/Date.js +47 -2
- package/Types/Date.mjs +2 -0
- package/Types/DateLanguage.d.mts +9 -0
- package/Types/DateLanguage.d.ts +9 -0
- package/Types/DateLanguage.js +79 -1
- package/Types/DateLanguage.mjs +4 -0
- package/Types/HashedString.js +9 -2
- package/Types/MessageQueue/MessageQueueMetricCatalog.js +61 -61
- package/Types/Monitor/CriteriaFilterTerms.d.mts +4 -0
- package/Types/Monitor/CriteriaFilterTerms.d.ts +4 -0
- package/Types/Monitor/CriteriaFilterTerms.js +166 -0
- package/Types/Monitor/CriteriaFilterTerms.mjs +4 -0
- package/Types/Monitor/CriteriaFilterValues.d.mts +16 -0
- package/Types/Monitor/CriteriaFilterValues.d.ts +16 -0
- package/Types/Monitor/CriteriaFilterValues.js +324 -0
- package/Types/Monitor/CriteriaFilterValues.mjs +2 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.d.mts +13 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.d.ts +13 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.js +108 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.mjs +3 -0
- package/Types/Monitor/EvaluationSentence.d.mts +37 -0
- package/Types/Monitor/EvaluationSentence.d.ts +37 -0
- package/Types/Monitor/EvaluationSentence.js +298 -0
- package/Types/Monitor/EvaluationSentence.mjs +12 -0
- package/Types/Monitor/IncomingEmailMonitor/IncomingEmailMonitorRequest.d.mts +1 -0
- package/Types/Monitor/IncomingEmailMonitor/IncomingEmailMonitorRequest.d.ts +1 -0
- package/Types/Monitor/MonitorCriteria.d.mts +2 -0
- package/Types/Monitor/MonitorCriteria.d.ts +2 -0
- package/Types/Monitor/MonitorCriteria.js +8 -0
- package/Types/Monitor/MonitorCriteriaInstance.d.mts +5 -0
- package/Types/Monitor/MonitorCriteriaInstance.d.ts +5 -0
- package/Types/Monitor/MonitorCriteriaInstance.js +265 -196
- package/Types/Monitor/MonitorEvaluationDetails.d.mts +2 -0
- package/Types/Monitor/MonitorEvaluationDetails.d.ts +2 -0
- package/Types/Monitor/MonitorEvaluationSummary.d.mts +4 -0
- package/Types/Monitor/MonitorEvaluationSummary.d.ts +4 -0
- package/Types/Monitor/MonitorStep.d.mts +2 -0
- package/Types/Monitor/MonitorStep.d.ts +2 -0
- package/Types/Monitor/MonitorStep.js +28 -11
- package/Types/Monitor/MonitorStepMetricMonitor.js +6 -1
- package/Types/Monitor/MonitorStepRollingTime.d.mts +12 -0
- package/Types/Monitor/MonitorStepRollingTime.d.ts +12 -0
- package/Types/Monitor/MonitorStepRollingTime.js +117 -0
- package/Types/Monitor/MonitorStepRollingTime.mjs +2 -0
- package/Types/Monitor/MonitorSteps.d.mts +2 -0
- package/Types/Monitor/MonitorSteps.d.ts +2 -0
- package/Types/Monitor/MonitorType.d.mts +1 -0
- package/Types/Monitor/MonitorType.d.ts +1 -0
- package/Types/Monitor/MonitorType.js +12 -0
- package/Types/Monitor/SeriesContext/SeriesLabelDisplay.js +11 -0
- package/Types/Monitor/ServerMonitor/ServerMonitorResponse.d.mts +1 -0
- package/Types/Monitor/ServerMonitor/ServerMonitorResponse.d.ts +1 -0
- package/Types/Monitor/TelemetryAlertRule.js +7 -2
- package/Types/Monitor/TelemetryObservation.d.mts +15 -0
- package/Types/Monitor/TelemetryObservation.d.ts +15 -0
- package/Types/Monitor/TelemetryObservation.js +28 -0
- package/Types/Monitor/TelemetryObservation.mjs +2 -0
- package/Types/NetworkDevice/DeviceNaming.d.mts +87 -0
- package/Types/NetworkDevice/DeviceNaming.d.ts +87 -0
- package/Types/NetworkDevice/DeviceNaming.js +279 -0
- package/Types/NetworkDevice/DeviceNaming.mjs +24 -0
- package/Types/NetworkDevice/DiscoveredDevice.d.mts +1 -0
- package/Types/NetworkDevice/DiscoveredDevice.d.ts +1 -0
- package/Types/NetworkDevice/DiscoveredDevice.js +4 -0
- package/Types/NotificationRule/NotificationRepeat.d.mts +10 -0
- package/Types/NotificationRule/NotificationRepeat.d.ts +10 -0
- package/Types/NotificationRule/NotificationRepeat.js +51 -0
- package/Types/NotificationRule/NotificationRepeat.mjs +2 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +70 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +70 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +276 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +12 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.d.mts +9 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.d.ts +9 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.js +44 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.mjs +5 -0
- package/Types/OnCallDutyPolicy/OnCallPageChannel.d.mts +68 -0
- package/Types/OnCallDutyPolicy/OnCallPageChannel.d.ts +68 -0
- package/Types/OnCallDutyPolicy/OnCallPageChannel.js +351 -0
- package/Types/OnCallDutyPolicy/OnCallPageChannel.mjs +15 -0
- package/Types/Permission.d.mts +5 -0
- package/Types/Permission.d.ts +5 -0
- package/Types/Permission.js +61 -5
- package/Types/Probe/ProbeMonitorResponse.d.mts +1 -0
- package/Types/Probe/ProbeMonitorResponse.d.ts +1 -0
- package/Types/ReadingDirection.d.mts +2 -0
- package/Types/ReadingDirection.d.ts +2 -0
- package/Types/ReadingDirection.js +221 -25
- package/Types/ReadingDirection.mjs +2 -0
- package/Types/RollingTime/RollingTimeUtil.d.mts +7 -0
- package/Types/RollingTime/RollingTimeUtil.d.ts +7 -0
- package/Types/RollingTime/RollingTimeUtil.js +240 -71
- package/Types/Rules/RuleCriteriaFieldRegistry.js +12 -0
- package/Types/Rules/RuleCriteriaSubject.js +1 -0
- package/Types/Rum/ProductAnalyticsEventReads.d.mts +115 -0
- package/Types/Rum/ProductAnalyticsEventReads.d.ts +115 -0
- package/Types/Rum/ProductAnalyticsEventReads.js +166 -0
- package/Types/Rum/ProductAnalyticsEventReads.mjs +27 -0
- package/Types/Rum/ProductAnalyticsEvents.d.mts +121 -0
- package/Types/Rum/ProductAnalyticsEvents.d.ts +121 -0
- package/Types/Rum/ProductAnalyticsEvents.js +477 -0
- package/Types/Rum/ProductAnalyticsEvents.mjs +40 -0
- package/Types/Rum/ProductAnalyticsSavedViews.d.mts +56 -0
- package/Types/Rum/ProductAnalyticsSavedViews.d.ts +56 -0
- package/Types/Rum/ProductAnalyticsSavedViews.js +219 -0
- package/Types/Rum/ProductAnalyticsSavedViews.mjs +14 -0
- package/Types/Rum/SessionReplay.d.mts +4 -0
- package/Types/Rum/SessionReplay.d.ts +4 -0
- package/Types/Rum/SessionReplayHealth.js +1 -1
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +8 -7
- package/Types/ServiceLevelObjective/SloErrorBudgetPolicyChange.d.mts +10 -0
- package/Types/ServiceLevelObjective/SloErrorBudgetPolicyChange.d.ts +10 -0
- package/Types/ServiceLevelObjective/SloErrorBudgetPolicyChange.js +51 -0
- package/Types/ServiceLevelObjective/SloErrorBudgetPolicyChange.mjs +4 -0
- package/Types/Team/BuiltInTeam.d.mts +1 -0
- package/Types/Team/BuiltInTeam.d.ts +1 -0
- package/Types/Team/BuiltInTeam.js +14 -1
- package/Types/Team/BuiltInTeam.mjs +1 -0
- package/Types/Telemetry/ServiceType.d.mts +1 -0
- package/Types/Telemetry/ServiceType.d.ts +1 -0
- package/Types/Telemetry/ServiceType.js +6 -0
- package/Types/Telemetry/TelemetryUsage.d.mts +7 -2
- package/Types/Telemetry/TelemetryUsage.d.ts +7 -2
- package/Types/Telemetry/TelemetryUsage.js +24 -5
- package/Types/Telemetry/TelemetryUsage.mjs +3 -0
- package/Types/UserNotification/UserNotificationStatus.d.mts +2 -1
- package/Types/UserNotification/UserNotificationStatus.d.ts +2 -1
- package/Types/UserNotification/UserNotificationStatus.js +8 -0
- package/Types/Workspace/NotificationRules/EventType.d.mts +2 -1
- package/Types/Workspace/NotificationRules/EventType.d.ts +2 -1
- package/Types/Workspace/NotificationRules/EventType.js +8 -0
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +7 -1
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +7 -1
- package/Types/Workspace/NotificationRules/NotificationRuleInvites.js +5 -1
- package/Types/Workspace/NotificationRules/NotificationRuleTypes/ServiceLevelObjectiveNotificationRule.d.mts +4 -0
- package/Types/Workspace/NotificationRules/NotificationRuleTypes/ServiceLevelObjectiveNotificationRule.d.ts +4 -0
- package/Types/Workspace/NotificationRules/NotificationRuleTypes/ServiceLevelObjectiveNotificationRule.js +2 -0
- package/Types/Workspace/NotificationRules/NotificationRuleTypes/ServiceLevelObjectiveNotificationRule.mjs +1 -0
- package/Utils/AI/InvestigationReport.js +93 -21
- package/Utils/AI/InvestigationReportLanguages.d.mts +25 -0
- package/Utils/AI/InvestigationReportLanguages.d.ts +25 -0
- package/Utils/AI/InvestigationReportLanguages.js +603 -0
- package/Utils/AI/InvestigationReportLanguages.mjs +11 -0
- package/Utils/Crypto.js +10 -3
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.d.mts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.d.ts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.js +67 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.mjs +2 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.d.mts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.d.ts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.js +68 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.mjs +2 -0
- package/Utils/Dashboard/DashboardWidgetIds.js +6 -1
- package/Utils/Dashboard/TableThresholds.js +5 -2
- package/Utils/Metrics/MetricQueryCloudAggregation.js +2 -4
- package/Utils/Monitor/MonitorLogSummaryUtil.d.mts +8 -0
- package/Utils/Monitor/MonitorLogSummaryUtil.d.ts +8 -0
- package/Utils/Monitor/MonitorLogSummaryUtil.js +170 -0
- package/Utils/Monitor/MonitorRootCauseWording.d.mts +17 -0
- package/Utils/Monitor/MonitorRootCauseWording.d.ts +17 -0
- package/Utils/Monitor/MonitorRootCauseWording.js +246 -0
- package/Utils/Monitor/MonitorRootCauseWording.mjs +2 -0
- package/Utils/Monitor/MonitorStepMetricQueries.js +2 -1
- package/Utils/Monitor/MonitorStepsValuesUtil.d.mts +13 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.d.ts +13 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.js +80 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.mjs +2 -0
- package/Utils/Monitor/MonitorSummarySnapshotUtil.d.mts +3 -0
- package/Utils/Monitor/MonitorSummarySnapshotUtil.d.ts +3 -0
- package/Utils/Monitor/MonitorSummarySnapshotUtil.js +5 -2
- package/Utils/NetworkDevice/Naming/DeviceNamingPlanner.d.mts +75 -0
- package/Utils/NetworkDevice/Naming/DeviceNamingPlanner.d.ts +75 -0
- package/Utils/NetworkDevice/Naming/DeviceNamingPlanner.js +303 -0
- package/Utils/NetworkDevice/Naming/DeviceNamingPlanner.mjs +8 -0
- package/Utils/NetworkDevice/Naming/NamePattern.d.mts +122 -0
- package/Utils/NetworkDevice/Naming/NamePattern.d.ts +122 -0
- package/Utils/NetworkDevice/Naming/NamePattern.js +649 -0
- package/Utils/NetworkDevice/Naming/NamePattern.mjs +22 -0
- package/Utils/NetworkDevice/Naming/NamingLookup.d.mts +77 -0
- package/Utils/NetworkDevice/Naming/NamingLookup.d.ts +77 -0
- package/Utils/NetworkDevice/Naming/NamingLookup.js +467 -0
- package/Utils/NetworkDevice/Naming/NamingLookup.mjs +14 -0
- package/Utils/NetworkDevice/Naming/NamingRuleMatcher.d.mts +26 -0
- package/Utils/NetworkDevice/Naming/NamingRuleMatcher.d.ts +26 -0
- package/Utils/NetworkDevice/Naming/NamingRuleMatcher.js +327 -0
- package/Utils/NetworkDevice/Naming/NamingRuleMatcher.mjs +7 -0
- package/Utils/NetworkDiscovery/DiscoveredNameUpgrade.d.mts +1 -0
- package/Utils/NetworkDiscovery/DiscoveredNameUpgrade.d.ts +1 -0
- package/Utils/NetworkDiscovery/DiscoveredNameUpgrade.js +8 -0
- package/Utils/NetworkDiscovery/PingMonitorBuilder.d.mts +2 -0
- package/Utils/NetworkDiscovery/PingMonitorBuilder.d.ts +2 -0
- package/Utils/NetworkDiscovery/PingMonitorBuilder.js +1 -0
- package/Utils/{Rum → SessionReplay}/SessionReplayHealth.d.mts +7 -6
- package/Utils/{Rum → SessionReplay}/SessionReplayHealth.d.ts +7 -6
- package/Utils/SessionReplay/SessionReplayHealth.js +703 -0
- package/Utils/Slo/SloErrorBudgetPolicy.d.mts +7 -0
- package/Utils/Slo/SloErrorBudgetPolicy.d.ts +7 -0
- package/Utils/Slo/SloErrorBudgetPolicy.js +39 -0
- package/Utils/Slo/SloErrorBudgetPolicy.mjs +1 -0
- package/Utils/Slo/SloFeedMarkdown.d.mts +19 -4
- package/Utils/Slo/SloFeedMarkdown.d.ts +19 -4
- package/Utils/Slo/SloFeedMarkdown.js +64 -17
- package/Utils/Slo/SloFeedMarkdown.mjs +4 -0
- package/Utils/Slo/SloProjection.d.mts +18 -0
- package/Utils/Slo/SloProjection.d.ts +18 -0
- package/Utils/Slo/SloProjection.js +53 -12
- package/Utils/Slo/SloProjection.mjs +2 -0
- package/Utils/StatusPage/ResourceExplorer.d.mts +0 -10
- package/Utils/StatusPage/ResourceExplorer.d.ts +0 -10
- package/Utils/StatusPage/ResourceExplorer.js +5 -32
- package/Utils/TotpSetupKey.d.mts +3 -0
- package/Utils/TotpSetupKey.d.ts +3 -0
- package/Utils/TotpSetupKey.js +72 -0
- package/Utils/TotpSetupKey.mjs +4 -0
- package/Utils/Workspace/WorkspaceChannelName.js +5 -1
- package/package.json +1 -1
- package/Utils/Rum/SessionReplayHealth.js +0 -558
- /package/Utils/{Rum → SessionReplay}/SessionReplayHealth.mjs +0 -0
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
const FeedMarkdown_1 = __importStar(require("../Markdown/FeedMarkdown"));
|
|
37
|
+
const EvaluationSentence_1 = require("../../Types/Monitor/EvaluationSentence");
|
|
38
|
+
const Translator_1 = require("../../Types/Translator");
|
|
39
|
+
/*
|
|
40
|
+
* THE ROOT CAUSE A MONITOR WROTE, IN THE READER'S LANGUAGE (issue #6542).
|
|
41
|
+
*
|
|
42
|
+
* When a monitor's criteria opens an incident or an alert, the engine
|
|
43
|
+
* writes its root cause once, in English Markdown, for everyone who reads
|
|
44
|
+
* it - on the Dashboard, in email, in Slack and Teams:
|
|
45
|
+
*
|
|
46
|
+
* **Created because the following criteria was met**:
|
|
47
|
+
*
|
|
48
|
+
* **Criteria Name**: Website is down
|
|
49
|
+
*
|
|
50
|
+
* **Filter Conditions Met**: Response Status Code was 503, at or above
|
|
51
|
+
* the 500 threshold.
|
|
52
|
+
*
|
|
53
|
+
* **Request Details**
|
|
54
|
+
* - Request Method: GET
|
|
55
|
+
*
|
|
56
|
+
* The Dashboard shows it in the reader's language as far as it can: the
|
|
57
|
+
* labels OneUptime writes - its own words, each a key the locale files word
|
|
58
|
+
* - and each finding the incident's evaluation details hold as a sentence
|
|
59
|
+
* (EvaluationSentence), worded as the evaluation log words it. The rest is
|
|
60
|
+
* what the check found - a URL, a probe's error, a name - and reads as
|
|
61
|
+
* written. A root cause somebody edited reads as they wrote it, but for a
|
|
62
|
+
* line that is still OneUptime's own.
|
|
63
|
+
*
|
|
64
|
+
* Line by line, and only a whole line, or a label at a line's start, is
|
|
65
|
+
* ever replaced: nothing else in the text is read as one of OneUptime's.
|
|
66
|
+
* A line that is replaced is written with mdText, as the engine wrote it:
|
|
67
|
+
* OneUptime's words placed as text, the rest of the line as it was stored
|
|
68
|
+
* (FeedAndChatPlainTextEscapedGuard holds the file to it).
|
|
69
|
+
*/
|
|
70
|
+
// A section heading or a label OneUptime writes in bold, at a line's start.
|
|
71
|
+
const BOLD_LABELS = [
|
|
72
|
+
(0, Translator_1.translationKey)("Created because the following criteria was met"),
|
|
73
|
+
(0, Translator_1.translationKey)("Criteria Name"),
|
|
74
|
+
(0, Translator_1.translationKey)("Filter Conditions Met"),
|
|
75
|
+
(0, Translator_1.translationKey)("Series"),
|
|
76
|
+
(0, Translator_1.translationKey)("Cause"),
|
|
77
|
+
(0, Translator_1.translationKey)("Request Details"),
|
|
78
|
+
(0, Translator_1.translationKey)("Response Snapshot"),
|
|
79
|
+
(0, Translator_1.translationKey)("Request Failed Details"),
|
|
80
|
+
(0, Translator_1.translationKey)("Metric Details"),
|
|
81
|
+
(0, Translator_1.translationKey)("Metric Summary"),
|
|
82
|
+
(0, Translator_1.translationKey)("Breaching Samples"),
|
|
83
|
+
(0, Translator_1.translationKey)("Forecast"),
|
|
84
|
+
(0, Translator_1.translationKey)("Root Cause Analysis"),
|
|
85
|
+
(0, Translator_1.translationKey)("Kubernetes Cluster Details"),
|
|
86
|
+
(0, Translator_1.translationKey)("Docker Swarm Cluster Details"),
|
|
87
|
+
(0, Translator_1.translationKey)("Proxmox Cluster Details"),
|
|
88
|
+
(0, Translator_1.translationKey)("Ceph Cluster Details"),
|
|
89
|
+
(0, Translator_1.translationKey)("OpenStack Cloud Details"),
|
|
90
|
+
(0, Translator_1.translationKey)("Storage Array Details"),
|
|
91
|
+
];
|
|
92
|
+
// A fact OneUptime lists under a section: "- Request Method: GET".
|
|
93
|
+
const FACT_LABELS = [
|
|
94
|
+
(0, Translator_1.translationKey)("Destination"),
|
|
95
|
+
(0, Translator_1.translationKey)("Destination Port"),
|
|
96
|
+
(0, Translator_1.translationKey)("Request Method"),
|
|
97
|
+
(0, Translator_1.translationKey)("Response Status Code"),
|
|
98
|
+
(0, Translator_1.translationKey)("Response Time"),
|
|
99
|
+
(0, Translator_1.translationKey)("Timed Out"),
|
|
100
|
+
(0, Translator_1.translationKey)("Attempts"),
|
|
101
|
+
(0, Translator_1.translationKey)("Failed Phase"),
|
|
102
|
+
(0, Translator_1.translationKey)("Error Code"),
|
|
103
|
+
(0, Translator_1.translationKey)("Error Description"),
|
|
104
|
+
(0, Translator_1.translationKey)("Raw Error Message"),
|
|
105
|
+
(0, Translator_1.translationKey)("Synchronized"),
|
|
106
|
+
(0, Translator_1.translationKey)("Stratum"),
|
|
107
|
+
(0, Translator_1.translationKey)("Clock Offset"),
|
|
108
|
+
(0, Translator_1.translationKey)("Leap Indicator"),
|
|
109
|
+
(0, Translator_1.translationKey)("Reference"),
|
|
110
|
+
(0, Translator_1.translationKey)("Root Dispersion"),
|
|
111
|
+
(0, Translator_1.translationKey)("Server Address"),
|
|
112
|
+
(0, Translator_1.translationKey)("Metric"),
|
|
113
|
+
(0, Translator_1.translationKey)("Unit"),
|
|
114
|
+
(0, Translator_1.translationKey)("Aggregation"),
|
|
115
|
+
(0, Translator_1.translationKey)("Time Window"),
|
|
116
|
+
(0, Translator_1.translationKey)("Filters"),
|
|
117
|
+
(0, Translator_1.translationKey)("Grouped By"),
|
|
118
|
+
(0, Translator_1.translationKey)("Formula"),
|
|
119
|
+
(0, Translator_1.translationKey)("Alias"),
|
|
120
|
+
(0, Translator_1.translationKey)("Trend"),
|
|
121
|
+
];
|
|
122
|
+
// A fact whose value is OneUptime's own yes or no.
|
|
123
|
+
const YES_NO_FACTS = new Set([
|
|
124
|
+
"Timed Out",
|
|
125
|
+
"Synchronized",
|
|
126
|
+
]);
|
|
127
|
+
const BOLD_LABEL_SET = new Set(BOLD_LABELS);
|
|
128
|
+
const FACT_LABEL_SET = new Set(FACT_LABELS);
|
|
129
|
+
// What an All criteria's root cause says before its findings.
|
|
130
|
+
const ALL_FILTERS_MET = (0, Translator_1.translationKey)("All filters met.");
|
|
131
|
+
const FILTER_CONDITIONS_MET = "Filter Conditions Met";
|
|
132
|
+
/*
|
|
133
|
+
* "**Label**" or "**Label**: rest" - a label of at most 80 characters with
|
|
134
|
+
* no asterisk or line break in it, so the match is linear in the line.
|
|
135
|
+
*/
|
|
136
|
+
const BOLD_LABEL_LINE = /^\*\*([^*\n]{1,80})\*\*(:?)(.*)$/;
|
|
137
|
+
// "- Label: value", with a label of letters and spaces.
|
|
138
|
+
const FACT_LINE = /^- ([A-Z][A-Za-z ]{0,40}): (.*)$/;
|
|
139
|
+
// A finding as an Any criteria's root cause writes it after its label.
|
|
140
|
+
const asMarkdownText = (text) => {
|
|
141
|
+
return (0, FeedMarkdown_1.mdText) `${text}`;
|
|
142
|
+
};
|
|
143
|
+
// A finding's whole line in an All criteria's list: "- finding".
|
|
144
|
+
const asListItem = (text) => {
|
|
145
|
+
return (0, FeedMarkdown_1.mdText) `- ${text}`;
|
|
146
|
+
};
|
|
147
|
+
class MonitorRootCauseWording {
|
|
148
|
+
static wordRootCause(data) {
|
|
149
|
+
const translator = data.translator;
|
|
150
|
+
if (!data.rootCause || translator.language === "en") {
|
|
151
|
+
return data.rootCause;
|
|
152
|
+
}
|
|
153
|
+
const findings = MonitorRootCauseWording.getWordedFindings({
|
|
154
|
+
findings: data.findings || [],
|
|
155
|
+
translator: translator,
|
|
156
|
+
options: data.options,
|
|
157
|
+
});
|
|
158
|
+
/*
|
|
159
|
+
* The worded finding the text is, written as `write` writes it: the
|
|
160
|
+
* text is a finding when the English finding, written the same way, is
|
|
161
|
+
* the text.
|
|
162
|
+
*/
|
|
163
|
+
const findingAt = (text, write) => {
|
|
164
|
+
for (const finding of findings) {
|
|
165
|
+
if (write(finding.english).toString() === text) {
|
|
166
|
+
return write(finding.worded);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
return null;
|
|
170
|
+
};
|
|
171
|
+
return data.rootCause
|
|
172
|
+
.split("\n")
|
|
173
|
+
.map((line) => {
|
|
174
|
+
const boldLabel = BOLD_LABEL_LINE.exec(line);
|
|
175
|
+
if (boldLabel && BOLD_LABEL_SET.has(boldLabel[1])) {
|
|
176
|
+
const label = boldLabel[1];
|
|
177
|
+
const stored = boldLabel[3] || "";
|
|
178
|
+
// What follows the label: as stored, unless this language words it.
|
|
179
|
+
let rest = FeedMarkdown_1.default.asMarkdown(stored);
|
|
180
|
+
// "**Filter Conditions Met**: <the finding, or All filters met.>"
|
|
181
|
+
if (label === FILTER_CONDITIONS_MET && stored.startsWith(" ")) {
|
|
182
|
+
const said = stored.slice(1);
|
|
183
|
+
if (said === ALL_FILTERS_MET) {
|
|
184
|
+
rest = (0, FeedMarkdown_1.mdText) ` ${MonitorRootCauseWording.word(ALL_FILTERS_MET, translator)}`;
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
const worded = findingAt(said, asMarkdownText);
|
|
188
|
+
if (worded !== null) {
|
|
189
|
+
rest = (0, FeedMarkdown_1.mdText) ` ${worded}`;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
const wordedLabel = MonitorRootCauseWording.boldLabel(label, translator);
|
|
194
|
+
return (boldLabel[2]
|
|
195
|
+
? (0, FeedMarkdown_1.mdText) `${wordedLabel}:${rest}`
|
|
196
|
+
: (0, FeedMarkdown_1.mdText) `${wordedLabel}${rest}`).toString();
|
|
197
|
+
}
|
|
198
|
+
const fact = FACT_LINE.exec(line);
|
|
199
|
+
if (fact && FACT_LABEL_SET.has(fact[1])) {
|
|
200
|
+
const label = fact[1];
|
|
201
|
+
const stored = fact[2] || "";
|
|
202
|
+
// OneUptime's own yes or no is worded; any other value is as stored.
|
|
203
|
+
const value = YES_NO_FACTS.has(label) && (stored === "Yes" || stored === "No")
|
|
204
|
+
? MonitorRootCauseWording.word(stored, translator)
|
|
205
|
+
: FeedMarkdown_1.default.asMarkdown(stored);
|
|
206
|
+
return (0, FeedMarkdown_1.mdText) `- ${MonitorRootCauseWording.word(label, translator)}: ${value}`.toString();
|
|
207
|
+
}
|
|
208
|
+
// "- <a finding>", under All filters met.
|
|
209
|
+
if (line.startsWith("- ")) {
|
|
210
|
+
const worded = findingAt(line, asListItem);
|
|
211
|
+
if (worded !== null) {
|
|
212
|
+
return worded.toString();
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return line;
|
|
216
|
+
})
|
|
217
|
+
.join("\n");
|
|
218
|
+
}
|
|
219
|
+
static boldLabel(label, translator) {
|
|
220
|
+
return (0, FeedMarkdown_1.mdText) `**${MonitorRootCauseWording.word(label, translator)}**`;
|
|
221
|
+
}
|
|
222
|
+
// One of OneUptime's words, in the reader's language when it words it.
|
|
223
|
+
static word(text, translator) {
|
|
224
|
+
return translator.translateText(text) || text;
|
|
225
|
+
}
|
|
226
|
+
// Each finding with a sentence its reader's language words.
|
|
227
|
+
static getWordedFindings(data) {
|
|
228
|
+
const worded = [];
|
|
229
|
+
for (const finding of data.findings) {
|
|
230
|
+
if (!finding.message || finding.messageSentence === undefined) {
|
|
231
|
+
continue;
|
|
232
|
+
}
|
|
233
|
+
const text = (0, EvaluationSentence_1.wordStoredEvaluationText)({
|
|
234
|
+
english: finding.message,
|
|
235
|
+
sentence: finding.messageSentence,
|
|
236
|
+
translator: data.translator,
|
|
237
|
+
options: data.options,
|
|
238
|
+
});
|
|
239
|
+
if (text !== finding.message) {
|
|
240
|
+
worded.push({ english: finding.message, worded: text });
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
return worded;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
exports.default = MonitorRootCauseWording;
|
|
@@ -571,7 +571,8 @@ class MonitorStepMetricQueries {
|
|
|
571
571
|
formulaConfigs: metricViewConfig.formulaConfigs.filter((formulaConfig) => {
|
|
572
572
|
return Boolean(formulaConfig && typeof formulaConfig === "object");
|
|
573
573
|
}),
|
|
574
|
-
|
|
574
|
+
// Written another way ("15 minutes") or not at all, as the worker reads it.
|
|
575
|
+
rollingTime: RollingTimeUtil_1.default.fromValueOrDefault(settings.rollingTime),
|
|
575
576
|
aggregatesWholeWindow: MonitorStepMetricMonitor_1.MonitorStepMetricMonitorUtil.aggregatesWholeWindow(metricMonitor),
|
|
576
577
|
telemetryServiceIds: MonitorStepMetricQueries.getReadServiceIds({
|
|
577
578
|
monitorType: input.monitorType,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { JSONObject } from "../../Types/JSON.mjs";
|
|
2
|
+
import MonitorSteps from "../../Types/Monitor/MonitorSteps.mjs";
|
|
3
|
+
import MonitorType from "../../Types/Monitor/MonitorType.mjs";
|
|
4
|
+
export default class MonitorStepsValuesUtil {
|
|
5
|
+
static getUnreadableValueError(data: {
|
|
6
|
+
monitorType: MonitorType | undefined | null;
|
|
7
|
+
monitorSteps: MonitorSteps | JSONObject | null | undefined;
|
|
8
|
+
}): string | null;
|
|
9
|
+
static assertValuesReadable(data: {
|
|
10
|
+
monitorType: MonitorType | undefined | null;
|
|
11
|
+
monitorSteps: MonitorSteps | JSONObject | null | undefined;
|
|
12
|
+
}): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { JSONObject } from "../../Types/JSON";
|
|
2
|
+
import MonitorSteps from "../../Types/Monitor/MonitorSteps";
|
|
3
|
+
import MonitorType from "../../Types/Monitor/MonitorType";
|
|
4
|
+
export default class MonitorStepsValuesUtil {
|
|
5
|
+
static getUnreadableValueError(data: {
|
|
6
|
+
monitorType: MonitorType | undefined | null;
|
|
7
|
+
monitorSteps: MonitorSteps | JSONObject | null | undefined;
|
|
8
|
+
}): string | null;
|
|
9
|
+
static assertValuesReadable(data: {
|
|
10
|
+
monitorType: MonitorType | undefined | null;
|
|
11
|
+
monitorSteps: MonitorSteps | JSONObject | null | undefined;
|
|
12
|
+
}): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const BadDataException_1 = __importDefault(require("../../Types/Exception/BadDataException"));
|
|
7
|
+
const CriteriaFilterValues_1 = __importDefault(require("../../Types/Monitor/CriteriaFilterValues"));
|
|
8
|
+
const MonitorStepRollingTime_1 = __importDefault(require("../../Types/Monitor/MonitorStepRollingTime"));
|
|
9
|
+
const MonitorSteps_1 = __importDefault(require("../../Types/Monitor/MonitorSteps"));
|
|
10
|
+
/*
|
|
11
|
+
* A monitor's (or template's) steps written with a value its checks cannot
|
|
12
|
+
* read are refused, whoever writes them: the API, a workflow, or an AI
|
|
13
|
+
* through the MCP server (the Terraform provider takes only the values
|
|
14
|
+
* OneUptime writes for a criteria, but not for a rolling time).
|
|
15
|
+
*
|
|
16
|
+
* A Metrics monitor an AI created through the MCP server was stored with
|
|
17
|
+
* its rolling time as "15 minutes" and its conditions as "GreaterThan" and
|
|
18
|
+
* "LessThanOrEqual". Every check read a window of no length, found no
|
|
19
|
+
* data, and its no-data rule opened an alert on every run - and its
|
|
20
|
+
* conditions, matching nothing, could never have fired on a value.
|
|
21
|
+
*
|
|
22
|
+
* A value written another way that means one ("15 minutes", "PT15M",
|
|
23
|
+
* "GreaterThan", ">") is not refused: reading the steps
|
|
24
|
+
* (MonitorStep.fromJSON, MonitorCriteriaInstance.fromJSON) stores it as
|
|
25
|
+
* the one it means. One that means none is refused, with the values it
|
|
26
|
+
* can take (MonitorStepRollingTime, CriteriaFilterValues).
|
|
27
|
+
*/
|
|
28
|
+
class MonitorStepsValuesUtil {
|
|
29
|
+
/*
|
|
30
|
+
* Why these steps cannot be read - the first value, step by step, that
|
|
31
|
+
* means none of the values its field takes - or null when every one can.
|
|
32
|
+
* A rolling time is read only under the monitor's own type: it is the
|
|
33
|
+
* one its checks use. Steps that cannot be read at all say nothing here:
|
|
34
|
+
* their shape is refused where they are parsed.
|
|
35
|
+
*/
|
|
36
|
+
static getUnreadableValueError(data) {
|
|
37
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
38
|
+
if (!data.monitorSteps) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
let steps = [];
|
|
42
|
+
try {
|
|
43
|
+
steps =
|
|
44
|
+
((_a = MonitorSteps_1.default.fromJSON(data.monitorSteps)
|
|
45
|
+
.data) === null || _a === void 0 ? void 0 : _a.monitorStepsInstanceArray) || [];
|
|
46
|
+
}
|
|
47
|
+
catch (_h) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
for (const step of steps) {
|
|
51
|
+
const rollingTimeError = MonitorStepRollingTime_1.default.getUnreadableError({
|
|
52
|
+
monitorType: data.monitorType,
|
|
53
|
+
stepData: step === null || step === void 0 ? void 0 : step.data,
|
|
54
|
+
});
|
|
55
|
+
if (rollingTimeError) {
|
|
56
|
+
return rollingTimeError;
|
|
57
|
+
}
|
|
58
|
+
const criteriaInstances = ((_d = (_c = (_b = step === null || step === void 0 ? void 0 : step.data) === null || _b === void 0 ? void 0 : _b.monitorCriteria) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.monitorCriteriaInstanceArray) || [];
|
|
59
|
+
for (const criteriaInstance of criteriaInstances) {
|
|
60
|
+
const errors = CriteriaFilterValues_1.default.getUnreadableErrors({
|
|
61
|
+
criteriaName: ((_e = criteriaInstance === null || criteriaInstance === void 0 ? void 0 : criteriaInstance.data) === null || _e === void 0 ? void 0 : _e.name) || "",
|
|
62
|
+
filterCondition: (_f = criteriaInstance === null || criteriaInstance === void 0 ? void 0 : criteriaInstance.data) === null || _f === void 0 ? void 0 : _f.filterCondition,
|
|
63
|
+
filters: (_g = criteriaInstance === null || criteriaInstance === void 0 ? void 0 : criteriaInstance.data) === null || _g === void 0 ? void 0 : _g.filters,
|
|
64
|
+
});
|
|
65
|
+
if (errors.length > 0) {
|
|
66
|
+
return errors[0];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
// Refuses steps written with a value their checks cannot read (above).
|
|
73
|
+
static assertValuesReadable(data) {
|
|
74
|
+
const error = MonitorStepsValuesUtil.getUnreadableValueError(data);
|
|
75
|
+
if (error) {
|
|
76
|
+
throw new BadDataException_1.default(error);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.default = MonitorStepsValuesUtil;
|
|
@@ -12,6 +12,7 @@ import ServerMonitorResponse from "../../Types/Monitor/ServerMonitor/ServerMonit
|
|
|
12
12
|
import TraceMonitorResponse from "../../Types/Monitor/TraceMonitor/TraceMonitorResponse.mjs";
|
|
13
13
|
import ProbeMonitorResponse from "../../Types/Probe/ProbeMonitorResponse.mjs";
|
|
14
14
|
import ProbeStatusMonitorResponse from "../../Types/Monitor/ProbeStatusMonitor/ProbeStatusMonitorResponse.mjs";
|
|
15
|
+
import TelemetryObservation from "../../Types/Monitor/TelemetryObservation.mjs";
|
|
15
16
|
export type MonitorSummaryDataToProcess = ProbeMonitorResponse | IncomingMonitorRequest | IncomingEmailMonitorRequest | ServerMonitorResponse | LogMonitorResponse | TraceMonitorResponse | MetricMonitorResponse | ExceptionMonitorResponse | ProfileMonitorResponse | ProbeStatusMonitorResponse;
|
|
16
17
|
export interface MonitorSummaryInfoProps {
|
|
17
18
|
monitorType: MonitorType;
|
|
@@ -25,6 +26,8 @@ export interface MonitorSummaryInfoProps {
|
|
|
25
26
|
telemetryMonitorSummary?: {
|
|
26
27
|
lastCheckedAt?: Date | undefined;
|
|
27
28
|
nextCheckAt?: Date | undefined;
|
|
29
|
+
isPastCheck?: boolean | undefined;
|
|
30
|
+
observation?: TelemetryObservation | undefined;
|
|
28
31
|
} | undefined;
|
|
29
32
|
evaluationSummary?: MonitorEvaluationSummary | undefined;
|
|
30
33
|
probeStatusMonitorResponse?: ProbeStatusMonitorResponse | undefined;
|
|
@@ -12,6 +12,7 @@ import ServerMonitorResponse from "../../Types/Monitor/ServerMonitor/ServerMonit
|
|
|
12
12
|
import TraceMonitorResponse from "../../Types/Monitor/TraceMonitor/TraceMonitorResponse";
|
|
13
13
|
import ProbeMonitorResponse from "../../Types/Probe/ProbeMonitorResponse";
|
|
14
14
|
import ProbeStatusMonitorResponse from "../../Types/Monitor/ProbeStatusMonitor/ProbeStatusMonitorResponse";
|
|
15
|
+
import TelemetryObservation from "../../Types/Monitor/TelemetryObservation";
|
|
15
16
|
export type MonitorSummaryDataToProcess = ProbeMonitorResponse | IncomingMonitorRequest | IncomingEmailMonitorRequest | ServerMonitorResponse | LogMonitorResponse | TraceMonitorResponse | MetricMonitorResponse | ExceptionMonitorResponse | ProfileMonitorResponse | ProbeStatusMonitorResponse;
|
|
16
17
|
export interface MonitorSummaryInfoProps {
|
|
17
18
|
monitorType: MonitorType;
|
|
@@ -25,6 +26,8 @@ export interface MonitorSummaryInfoProps {
|
|
|
25
26
|
telemetryMonitorSummary?: {
|
|
26
27
|
lastCheckedAt?: Date | undefined;
|
|
27
28
|
nextCheckAt?: Date | undefined;
|
|
29
|
+
isPastCheck?: boolean | undefined;
|
|
30
|
+
observation?: TelemetryObservation | undefined;
|
|
28
31
|
} | undefined;
|
|
29
32
|
evaluationSummary?: MonitorEvaluationSummary | undefined;
|
|
30
33
|
probeStatusMonitorResponse?: ProbeStatusMonitorResponse | undefined;
|
|
@@ -381,11 +381,14 @@ class MonitorSummarySnapshotUtil {
|
|
|
381
381
|
if (snapshot.telemetryMonitorSummary) {
|
|
382
382
|
/*
|
|
383
383
|
* Only "monitored at". The live card's companion field is "next
|
|
384
|
-
* check at", which has no meaning on a frozen capture
|
|
385
|
-
*
|
|
384
|
+
* check at", which has no meaning on a frozen capture: an incident's
|
|
385
|
+
* or alert's check, or a Monitoring Logs row, has run, so it is a
|
|
386
|
+
* past check and TelemetryMonitorView leaves "Next Check At" out
|
|
387
|
+
* rather than drawing it as "-".
|
|
386
388
|
*/
|
|
387
389
|
props.telemetryMonitorSummary = {
|
|
388
390
|
lastCheckedAt: snapshot.telemetryMonitorSummary.monitoredAt,
|
|
391
|
+
isPastCheck: true,
|
|
389
392
|
};
|
|
390
393
|
}
|
|
391
394
|
if (snapshot.probeStatusMonitorResponse) {
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { DeviceNamingResult } from "../../../Types/NetworkDevice/DeviceNaming.mjs";
|
|
2
|
+
import { NamePatternValues, ParsedNamePattern } from "./NamePattern.mjs";
|
|
3
|
+
import { NamingLookupTable } from "./NamingLookup.mjs";
|
|
4
|
+
import { DeviceNamingFacts, NamingRuleConditionColumns } from "./NamingRuleMatcher.mjs";
|
|
5
|
+
export interface NamingRuleCandidate extends NamingRuleConditionColumns {
|
|
6
|
+
_id?: unknown;
|
|
7
|
+
id?: unknown;
|
|
8
|
+
name?: string | null | undefined;
|
|
9
|
+
priority?: number | null | undefined;
|
|
10
|
+
createdAt?: Date | string | null | undefined;
|
|
11
|
+
isEnabled?: boolean | null | undefined;
|
|
12
|
+
namePattern?: string | null | undefined;
|
|
13
|
+
lookupKey?: string | null | undefined;
|
|
14
|
+
lookupEntries?: unknown;
|
|
15
|
+
}
|
|
16
|
+
export interface PreparedNamingRule {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
rule: NamingRuleCandidate;
|
|
20
|
+
pattern: ParsedNamePattern;
|
|
21
|
+
lookup: NamingLookupTable | null;
|
|
22
|
+
}
|
|
23
|
+
export declare function compareNamingRules(left: NamingRuleCandidate, right: NamingRuleCandidate): number;
|
|
24
|
+
/**
|
|
25
|
+
* The rules a plan tries, in order: the enabled ones, each with a pattern
|
|
26
|
+
* that can be read. A rule whose stored pattern cannot be read names
|
|
27
|
+
* nothing - the service refuses such a pattern at save, so it is one
|
|
28
|
+
* written around it.
|
|
29
|
+
*/
|
|
30
|
+
export declare function prepareNamingRules(rules: ReadonlyArray<NamingRuleCandidate>): Array<PreparedNamingRule>;
|
|
31
|
+
export declare class DeviceNameRegistry {
|
|
32
|
+
private readonly holders;
|
|
33
|
+
constructor(entries?: Iterable<{
|
|
34
|
+
name?: string | null | undefined;
|
|
35
|
+
deviceId?: string | null | undefined;
|
|
36
|
+
}>);
|
|
37
|
+
private static keyOf;
|
|
38
|
+
add(name: string, deviceId?: string | undefined): void;
|
|
39
|
+
isTaken(name: string, exceptDeviceId?: string | undefined): boolean;
|
|
40
|
+
getHeldName(name: string): string | undefined;
|
|
41
|
+
get size(): number;
|
|
42
|
+
}
|
|
43
|
+
export interface DeviceNamingSubject {
|
|
44
|
+
key: string;
|
|
45
|
+
facts: DeviceNamingFacts;
|
|
46
|
+
deviceId?: string | undefined;
|
|
47
|
+
currentName?: string | undefined;
|
|
48
|
+
}
|
|
49
|
+
export declare const MAX_NAME_COUNTER: number;
|
|
50
|
+
export declare function getNamePatternValues(facts: DeviceNamingFacts, lookup: NamingLookupTable | null): NamePatternValues;
|
|
51
|
+
/**
|
|
52
|
+
* What the rules call each device, by the subject's key. The registry holds
|
|
53
|
+
* the names the project's devices have, and is given every name the plan
|
|
54
|
+
* gives, so a caller that plans in several calls - an import's devices one
|
|
55
|
+
* at a time - hands the same registry to each.
|
|
56
|
+
*/
|
|
57
|
+
export declare function planDeviceNames(data: {
|
|
58
|
+
rules: ReadonlyArray<PreparedNamingRule>;
|
|
59
|
+
subjects: ReadonlyArray<DeviceNamingSubject>;
|
|
60
|
+
registry: DeviceNameRegistry;
|
|
61
|
+
nextCounters?: Map<string, number> | undefined;
|
|
62
|
+
}): Map<string, DeviceNamingResult>;
|
|
63
|
+
export declare class DeviceNamingSession {
|
|
64
|
+
private readonly rules;
|
|
65
|
+
private readonly registry;
|
|
66
|
+
private readonly nextCounters;
|
|
67
|
+
constructor(data: {
|
|
68
|
+
rules: ReadonlyArray<PreparedNamingRule>;
|
|
69
|
+
registry: DeviceNameRegistry;
|
|
70
|
+
});
|
|
71
|
+
get hasRules(): boolean;
|
|
72
|
+
name(subject: DeviceNamingSubject): DeviceNamingResult;
|
|
73
|
+
hold(name: string, deviceId?: string | undefined): void;
|
|
74
|
+
isTaken(name: string, exceptDeviceId?: string | undefined): boolean;
|
|
75
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { DeviceNamingResult } from "../../../Types/NetworkDevice/DeviceNaming";
|
|
2
|
+
import { NamePatternValues, ParsedNamePattern } from "./NamePattern";
|
|
3
|
+
import { NamingLookupTable } from "./NamingLookup";
|
|
4
|
+
import { DeviceNamingFacts, NamingRuleConditionColumns } from "./NamingRuleMatcher";
|
|
5
|
+
export interface NamingRuleCandidate extends NamingRuleConditionColumns {
|
|
6
|
+
_id?: unknown;
|
|
7
|
+
id?: unknown;
|
|
8
|
+
name?: string | null | undefined;
|
|
9
|
+
priority?: number | null | undefined;
|
|
10
|
+
createdAt?: Date | string | null | undefined;
|
|
11
|
+
isEnabled?: boolean | null | undefined;
|
|
12
|
+
namePattern?: string | null | undefined;
|
|
13
|
+
lookupKey?: string | null | undefined;
|
|
14
|
+
lookupEntries?: unknown;
|
|
15
|
+
}
|
|
16
|
+
export interface PreparedNamingRule {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
rule: NamingRuleCandidate;
|
|
20
|
+
pattern: ParsedNamePattern;
|
|
21
|
+
lookup: NamingLookupTable | null;
|
|
22
|
+
}
|
|
23
|
+
export declare function compareNamingRules(left: NamingRuleCandidate, right: NamingRuleCandidate): number;
|
|
24
|
+
/**
|
|
25
|
+
* The rules a plan tries, in order: the enabled ones, each with a pattern
|
|
26
|
+
* that can be read. A rule whose stored pattern cannot be read names
|
|
27
|
+
* nothing - the service refuses such a pattern at save, so it is one
|
|
28
|
+
* written around it.
|
|
29
|
+
*/
|
|
30
|
+
export declare function prepareNamingRules(rules: ReadonlyArray<NamingRuleCandidate>): Array<PreparedNamingRule>;
|
|
31
|
+
export declare class DeviceNameRegistry {
|
|
32
|
+
private readonly holders;
|
|
33
|
+
constructor(entries?: Iterable<{
|
|
34
|
+
name?: string | null | undefined;
|
|
35
|
+
deviceId?: string | null | undefined;
|
|
36
|
+
}>);
|
|
37
|
+
private static keyOf;
|
|
38
|
+
add(name: string, deviceId?: string | undefined): void;
|
|
39
|
+
isTaken(name: string, exceptDeviceId?: string | undefined): boolean;
|
|
40
|
+
getHeldName(name: string): string | undefined;
|
|
41
|
+
get size(): number;
|
|
42
|
+
}
|
|
43
|
+
export interface DeviceNamingSubject {
|
|
44
|
+
key: string;
|
|
45
|
+
facts: DeviceNamingFacts;
|
|
46
|
+
deviceId?: string | undefined;
|
|
47
|
+
currentName?: string | undefined;
|
|
48
|
+
}
|
|
49
|
+
export declare const MAX_NAME_COUNTER: number;
|
|
50
|
+
export declare function getNamePatternValues(facts: DeviceNamingFacts, lookup: NamingLookupTable | null): NamePatternValues;
|
|
51
|
+
/**
|
|
52
|
+
* What the rules call each device, by the subject's key. The registry holds
|
|
53
|
+
* the names the project's devices have, and is given every name the plan
|
|
54
|
+
* gives, so a caller that plans in several calls - an import's devices one
|
|
55
|
+
* at a time - hands the same registry to each.
|
|
56
|
+
*/
|
|
57
|
+
export declare function planDeviceNames(data: {
|
|
58
|
+
rules: ReadonlyArray<PreparedNamingRule>;
|
|
59
|
+
subjects: ReadonlyArray<DeviceNamingSubject>;
|
|
60
|
+
registry: DeviceNameRegistry;
|
|
61
|
+
nextCounters?: Map<string, number> | undefined;
|
|
62
|
+
}): Map<string, DeviceNamingResult>;
|
|
63
|
+
export declare class DeviceNamingSession {
|
|
64
|
+
private readonly rules;
|
|
65
|
+
private readonly registry;
|
|
66
|
+
private readonly nextCounters;
|
|
67
|
+
constructor(data: {
|
|
68
|
+
rules: ReadonlyArray<PreparedNamingRule>;
|
|
69
|
+
registry: DeviceNameRegistry;
|
|
70
|
+
});
|
|
71
|
+
get hasRules(): boolean;
|
|
72
|
+
name(subject: DeviceNamingSubject): DeviceNamingResult;
|
|
73
|
+
hold(name: string, deviceId?: string | undefined): void;
|
|
74
|
+
isTaken(name: string, exceptDeviceId?: string | undefined): boolean;
|
|
75
|
+
}
|