@oneuptime/common 14.0.99 → 14.0.101
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/ExceptionInstance.d.mts +2 -0
- package/Models/AnalyticsModels/ExceptionInstance.d.ts +2 -0
- package/Models/AnalyticsModels/ExceptionInstance.js +31 -0
- package/Models/AnalyticsModels/LogCountBaseline.d.mts +6 -0
- package/Models/AnalyticsModels/LogCountBaseline.d.ts +6 -0
- package/Models/AnalyticsModels/LogCountBaseline.js +7 -1
- package/Models/AnalyticsModels/MetricBaselineHourly.d.mts +11 -6
- package/Models/AnalyticsModels/MetricBaselineHourly.d.ts +11 -6
- package/Models/AnalyticsModels/MetricBaselineHourly.js +12 -7
- package/Models/AnalyticsModels/NetworkTrafficUsage.js +30 -10
- package/Models/AnalyticsModels/RumSessionChunk.js +1 -1
- package/Models/AnalyticsModels/SpanCountBaseline.d.mts +17 -9
- package/Models/AnalyticsModels/SpanCountBaseline.d.ts +17 -9
- package/Models/AnalyticsModels/SpanCountBaseline.js +18 -10
- package/Models/DatabaseModels/CloudApp.d.mts +27 -0
- package/Models/DatabaseModels/CloudApp.d.ts +27 -0
- package/Models/DatabaseModels/CloudApp.js +414 -0
- package/Models/DatabaseModels/CloudApp.mjs +2 -0
- package/Models/DatabaseModels/CloudAppRevision.d.mts +23 -0
- package/Models/DatabaseModels/CloudAppRevision.d.ts +23 -0
- package/Models/DatabaseModels/CloudAppRevision.js +351 -0
- package/Models/DatabaseModels/CloudAppRevision.mjs +2 -0
- package/Models/DatabaseModels/CloudResourceFeed.d.mts +4 -1
- package/Models/DatabaseModels/CloudResourceFeed.d.ts +4 -1
- package/Models/DatabaseModels/CloudResourceFeed.js +17 -1
- package/Models/DatabaseModels/CloudResourceFeed.mjs +1 -0
- package/Models/DatabaseModels/CloudResourceInstance.d.mts +4 -0
- package/Models/DatabaseModels/CloudResourceInstance.d.ts +4 -0
- package/Models/DatabaseModels/CloudResourceInstance.js +60 -1
- package/Models/DatabaseModels/CloudResourceLabelRule.d.mts +2 -0
- package/Models/DatabaseModels/CloudResourceLabelRule.d.ts +2 -0
- package/Models/DatabaseModels/CloudResourceLabelRule.js +44 -1
- package/Models/DatabaseModels/CloudResourceOwnerRule.d.mts +2 -0
- package/Models/DatabaseModels/CloudResourceOwnerRule.d.ts +2 -0
- package/Models/DatabaseModels/CloudResourceOwnerRule.js +44 -1
- package/Models/DatabaseModels/Dashboard.d.mts +2 -0
- package/Models/DatabaseModels/Dashboard.d.ts +2 -0
- package/Models/DatabaseModels/Dashboard.js +88 -0
- package/Models/DatabaseModels/DataSecurityIdentity.d.mts +29 -0
- package/Models/DatabaseModels/DataSecurityIdentity.d.ts +29 -0
- package/Models/DatabaseModels/DataSecurityIdentity.js +535 -0
- package/Models/DatabaseModels/DataSecurityIdentity.mjs +2 -0
- package/Models/DatabaseModels/DataStore.d.mts +1 -0
- package/Models/DatabaseModels/DataStore.d.ts +1 -0
- package/Models/DatabaseModels/DataStore.js +16 -0
- package/Models/DatabaseModels/DataStoreAccess.d.mts +1 -0
- package/Models/DatabaseModels/DataStoreAccess.d.ts +1 -0
- package/Models/DatabaseModels/DataStoreAccess.js +20 -0
- package/Models/DatabaseModels/DataStoreFinding.d.mts +3 -0
- package/Models/DatabaseModels/DataStoreFinding.d.ts +3 -0
- package/Models/DatabaseModels/DataStoreFinding.js +63 -1
- package/Models/DatabaseModels/DetectionRule.d.mts +1 -0
- package/Models/DatabaseModels/DetectionRule.d.ts +1 -0
- package/Models/DatabaseModels/DetectionRule.js +31 -0
- package/Models/DatabaseModels/ExceptionSavedView.d.mts +16 -0
- package/Models/DatabaseModels/ExceptionSavedView.d.ts +16 -0
- package/Models/DatabaseModels/ExceptionSavedView.js +413 -0
- package/Models/DatabaseModels/ExceptionSavedView.mjs +2 -0
- package/Models/DatabaseModels/FormDomain.d.mts +28 -0
- package/Models/DatabaseModels/FormDomain.d.ts +28 -0
- package/Models/DatabaseModels/FormDomain.js +598 -0
- package/Models/DatabaseModels/FormDomain.mjs +2 -0
- package/Models/DatabaseModels/IncidentEpisodeRoleMember.js +10 -1
- package/Models/DatabaseModels/Index.js +12 -0
- package/Models/DatabaseModels/KubernetesResource.d.mts +1 -0
- package/Models/DatabaseModels/KubernetesResource.d.ts +1 -0
- package/Models/DatabaseModels/KubernetesResource.js +36 -0
- package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.d.mts +2 -1
- package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.d.ts +2 -1
- package/Models/DatabaseModels/NetworkEndpoint.d.mts +2 -0
- package/Models/DatabaseModels/NetworkEndpoint.d.ts +2 -0
- package/Models/DatabaseModels/NetworkEndpoint.js +62 -1
- package/Models/DatabaseModels/ProxmoxCluster.d.mts +2 -0
- package/Models/DatabaseModels/ProxmoxCluster.d.ts +2 -0
- package/Models/DatabaseModels/ProxmoxCluster.js +66 -0
- package/Models/DatabaseModels/ProxmoxResource.d.mts +13 -0
- package/Models/DatabaseModels/ProxmoxResource.d.ts +13 -0
- package/Models/DatabaseModels/ProxmoxResource.js +292 -0
- package/Models/DatabaseModels/StatusPageSubscriber.d.mts +1 -0
- package/Models/DatabaseModels/StatusPageSubscriber.d.ts +1 -0
- package/Models/DatabaseModels/StatusPageSubscriber.js +52 -0
- package/Models/DatabaseModels/TelemetryException.d.mts +5 -0
- package/Models/DatabaseModels/TelemetryException.d.ts +5 -0
- package/Models/DatabaseModels/TelemetryException.js +183 -0
- package/Models/DatabaseModels/TelemetryExceptionActivity.d.mts +42 -0
- package/Models/DatabaseModels/TelemetryExceptionActivity.d.ts +42 -0
- package/Models/DatabaseModels/TelemetryExceptionActivity.js +527 -0
- package/Models/DatabaseModels/TelemetryExceptionActivity.mjs +3 -0
- package/Server/Services/DatabaseService.d.mts +10 -0
- package/Server/Services/DatabaseService.d.ts +10 -0
- package/Types/AI/AIResourceContext.d.mts +2 -0
- package/Types/AI/AIResourceContext.d.ts +2 -0
- package/Types/AI/AIResourceContext.js +5 -0
- package/Types/Analytics/CookieConsent.d.mts +1 -0
- package/Types/Analytics/CookieConsent.d.ts +1 -0
- package/Types/Analytics/CookieConsent.js +10 -0
- package/Types/Analytics/CookieConsent.mjs +2 -0
- package/Types/AutoRemediation/AiRemediationCommandPlan.d.mts +3 -0
- package/Types/AutoRemediation/AiRemediationCommandPlan.d.ts +3 -0
- package/Types/AutoRemediation/AiRemediationCommandPlan.js +11 -2
- package/Types/AutoRemediation/RemediationTrackRecord.d.mts +26 -0
- package/Types/AutoRemediation/RemediationTrackRecord.d.ts +26 -0
- package/Types/AutoRemediation/RemediationTrackRecord.js +137 -0
- package/Types/AutoRemediation/RemediationTrackRecord.mjs +8 -0
- package/Types/AutoRemediation/RemediationTrackRecordWords.d.mts +10 -0
- package/Types/AutoRemediation/RemediationTrackRecordWords.d.ts +10 -0
- package/Types/AutoRemediation/RemediationTrackRecordWords.js +86 -0
- package/Types/AutoRemediation/RemediationTrackRecordWords.mjs +9 -0
- package/Types/BaseDatabase/AggregateBy.d.mts +13 -0
- package/Types/BaseDatabase/AggregateBy.d.ts +13 -0
- package/Types/Billing/SubscriptionPlanPricing.d.mts +2 -0
- package/Types/Billing/SubscriptionPlanPricing.d.ts +2 -0
- package/Types/Billing/SubscriptionPlanPricing.js +30 -0
- package/Types/Billing/SubscriptionPlanPricing.mjs +2 -0
- package/Types/Cloud/CloudPlatform.d.mts +3 -0
- package/Types/Cloud/CloudPlatform.d.ts +3 -0
- package/Types/Cloud/CloudPlatform.js +50 -0
- package/Types/Cloud/CloudResourceKind.d.mts +11 -0
- package/Types/Cloud/CloudResourceKind.d.ts +11 -0
- package/Types/Cloud/CloudResourceKind.js +78 -9
- package/Types/Cloud/CloudResourceKind.mjs +5 -0
- package/Types/CloudConnection/CloudConnectionCatalog.js +10 -8
- package/Types/CloudConnection/CloudConnectionSetupCommands.js +32 -10
- package/Types/CustomField/CustomFieldFile.d.mts +69 -0
- package/Types/CustomField/CustomFieldFile.d.ts +69 -0
- package/Types/CustomField/CustomFieldFile.js +235 -0
- package/Types/CustomField/CustomFieldFile.mjs +16 -0
- package/Types/CustomField/CustomFieldRecordKinds.d.mts +25 -0
- package/Types/CustomField/CustomFieldRecordKinds.d.ts +25 -0
- package/Types/CustomField/CustomFieldRecordKinds.js +111 -0
- package/Types/CustomField/CustomFieldRecordKinds.mjs +6 -0
- package/Types/CustomField/CustomFieldType.d.mts +15 -1
- package/Types/CustomField/CustomFieldType.d.ts +15 -1
- package/Types/CustomField/CustomFieldType.js +14 -0
- package/Types/CustomField/CustomFieldValueFormat.d.mts +3 -2
- package/Types/CustomField/CustomFieldValueFormat.d.ts +3 -2
- package/Types/CustomField/CustomFieldValueFormat.js +8 -2
- package/Types/CustomField/CustomFieldValueMapping.js +31 -2
- package/Types/CustomField/CustomFieldValueValidator.js +41 -1
- package/Types/Dashboard/DashboardLanguage.d.mts +1 -0
- package/Types/Dashboard/DashboardLanguage.d.ts +1 -0
- package/Types/Dashboard/DashboardLanguage.js +7 -1
- package/Types/Dashboard/DashboardLanguage.mjs +1 -0
- package/Types/Dashboard/DashboardTemplateFallbackHints.d.mts +4 -0
- package/Types/Dashboard/DashboardTemplateFallbackHints.d.ts +4 -0
- package/Types/Dashboard/DashboardTemplateFallbackHints.js +42 -0
- package/Types/Dashboard/DashboardTemplateFallbackHints.mjs +4 -0
- package/Types/Dashboard/DashboardTemplates.js +34 -11
- package/Types/DataSecurity/ComplianceRequirementCatalog.js +4 -0
- package/Types/DataSecurity/DataSecurityCheckCatalog.d.mts +1 -0
- package/Types/DataSecurity/DataSecurityCheckCatalog.d.ts +1 -0
- package/Types/DataSecurity/DataSecurityCheckCatalog.js +53 -0
- package/Types/DataSecurity/DataSecurityIdentity.d.mts +27 -0
- package/Types/DataSecurity/DataSecurityIdentity.d.ts +27 -0
- package/Types/DataSecurity/DataSecurityIdentity.js +160 -0
- package/Types/DataSecurity/DataSecurityIdentity.mjs +14 -0
- package/Types/DataSecurity/DataSecurityResponseAction.d.mts +9 -1
- package/Types/DataSecurity/DataSecurityResponseAction.d.ts +9 -1
- package/Types/DataSecurity/DataSecurityResponseAction.js +113 -26
- package/Types/DataSecurity/DataSecurityResponseAction.mjs +2 -0
- package/Types/DataSecurity/DataStoreAccess.d.mts +7 -0
- package/Types/DataSecurity/DataStoreAccess.d.ts +7 -0
- package/Types/DataSecurity/DataStoreAccess.js +23 -1
- package/Types/DataSecurity/DataStoreAccess.mjs +2 -0
- package/Types/Date.d.mts +30 -1
- package/Types/Date.d.ts +30 -1
- package/Types/Date.js +173 -5
- package/Types/Email/EmailMessage.d.mts +1 -0
- package/Types/Email/EmailMessage.d.ts +1 -0
- package/Types/Episode/EpisodeMembersAdd.d.mts +2 -0
- package/Types/Episode/EpisodeMembersAdd.d.ts +2 -0
- package/Types/Episode/EpisodeMembersAdd.js +9 -1
- package/Types/Episode/EpisodeMembersAdd.mjs +2 -0
- package/Types/File/FileContentCheck.d.mts +13 -0
- package/Types/File/FileContentCheck.d.ts +13 -0
- package/Types/File/FileContentCheck.js +301 -0
- package/Types/File/FileContentCheck.mjs +4 -0
- package/Types/File/FileSize.d.mts +3 -0
- package/Types/File/FileSize.d.ts +3 -0
- package/Types/File/FileSize.js +30 -0
- package/Types/File/FileSize.mjs +3 -0
- package/Types/File/FileTypeIcon.d.mts +4 -0
- package/Types/File/FileTypeIcon.d.ts +4 -0
- package/Types/File/FileTypeIcon.js +26 -0
- package/Types/File/FileTypeIcon.mjs +3 -0
- package/Types/File/MimeTypeLabel.d.mts +3 -0
- package/Types/File/MimeTypeLabel.d.ts +3 -0
- package/Types/File/MimeTypeLabel.js +39 -0
- package/Types/File/MimeTypeLabel.mjs +3 -0
- package/Types/Form/FormCustomDomain.d.mts +19 -0
- package/Types/Form/FormCustomDomain.d.ts +19 -0
- package/Types/Form/FormCustomDomain.js +86 -0
- package/Types/Form/FormCustomDomain.mjs +13 -0
- package/Types/Form/FormField.js +6 -0
- package/Types/Form/FormFileAnswer.d.mts +34 -0
- package/Types/Form/FormFileAnswer.d.ts +34 -0
- package/Types/Form/FormFileAnswer.js +203 -0
- package/Types/Form/FormFileAnswer.mjs +10 -0
- package/Types/Form/FormPublic.d.mts +16 -1
- package/Types/Form/FormPublic.d.ts +16 -1
- package/Types/Form/FormPublic.js +184 -2
- package/Types/Form/FormPublic.mjs +5 -0
- package/Types/Form/FormSubmissionAnswer.js +29 -0
- package/Types/InstallScripts/InstallScripts.d.mts +28 -0
- package/Types/InstallScripts/InstallScripts.d.ts +28 -0
- package/Types/InstallScripts/InstallScripts.js +225 -0
- package/Types/InstallScripts/InstallScripts.mjs +11 -0
- package/Types/Kubernetes/KubernetesClusterProvider.d.mts +10 -0
- package/Types/Kubernetes/KubernetesClusterProvider.d.ts +10 -0
- package/Types/Kubernetes/KubernetesClusterProvider.js +95 -0
- package/Types/Kubernetes/KubernetesClusterProvider.mjs +8 -0
- package/Types/Kubernetes/KubernetesHealth.d.mts +92 -0
- package/Types/Kubernetes/KubernetesHealth.d.ts +92 -0
- package/Types/Kubernetes/KubernetesHealth.js +1273 -0
- package/Types/Kubernetes/KubernetesHealth.mjs +32 -0
- package/Types/Kubernetes/KubernetesInventoryExtractor.d.mts +2 -0
- package/Types/Kubernetes/KubernetesInventoryExtractor.d.ts +2 -0
- package/Types/Kubernetes/KubernetesInventoryExtractor.js +30 -16
- package/Types/Kubernetes/KubernetesObjectParser.d.mts +54 -0
- package/Types/Kubernetes/KubernetesObjectParser.d.ts +54 -0
- package/Types/Kubernetes/KubernetesObjectParser.js +228 -38
- package/Types/Kubernetes/KubernetesObjectParser.mjs +6 -0
- package/Types/Kubernetes/OpenShiftObjectAttributes.d.mts +20 -0
- package/Types/Kubernetes/OpenShiftObjectAttributes.d.ts +20 -0
- package/Types/Kubernetes/OpenShiftObjectAttributes.js +124 -0
- package/Types/Kubernetes/OpenShiftObjectAttributes.mjs +5 -0
- package/Types/Kubernetes/OpenShiftObjectParser.d.mts +140 -0
- package/Types/Kubernetes/OpenShiftObjectParser.d.ts +140 -0
- package/Types/Kubernetes/OpenShiftObjectParser.js +436 -0
- package/Types/Kubernetes/OpenShiftObjectParser.mjs +22 -0
- package/Types/Metrics/MetricQueryConfigData.d.mts +2 -0
- package/Types/Metrics/MetricQueryConfigData.d.ts +2 -0
- package/Types/Metrics/MetricQueryFallback.d.mts +10 -0
- package/Types/Metrics/MetricQueryFallback.d.ts +10 -0
- package/Types/Metrics/MetricQueryFallback.js +2 -0
- package/Types/Metrics/MetricQueryFallback.mjs +1 -0
- package/Types/Monitor/CephAlertTemplates.d.mts +2 -2
- package/Types/Monitor/CephAlertTemplates.d.ts +2 -2
- package/Types/Monitor/CephAlertTemplates.js +17 -14
- package/Types/Monitor/CephMetricCatalog.d.mts +2 -0
- package/Types/Monitor/CephMetricCatalog.d.ts +2 -0
- package/Types/Monitor/CephMetricCatalog.js +72 -29
- package/Types/Monitor/CephMetricCatalog.mjs +2 -0
- package/Types/Monitor/CriteriaFilter.d.mts +17 -0
- package/Types/Monitor/CriteriaFilter.d.ts +17 -0
- package/Types/Monitor/CriteriaFilter.js +23 -1
- package/Types/Monitor/CriteriaFilter.mjs +3 -0
- package/Types/Monitor/DockerAlertTemplates.d.mts +1 -0
- package/Types/Monitor/DockerAlertTemplates.d.ts +1 -0
- package/Types/Monitor/DockerAlertTemplates.js +63 -52
- package/Types/Monitor/DockerMetricCatalog.js +16 -0
- package/Types/Monitor/DockerSwarmAlertTemplates.d.mts +1 -0
- package/Types/Monitor/DockerSwarmAlertTemplates.d.ts +1 -0
- package/Types/Monitor/DockerSwarmAlertTemplates.js +13 -2
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.d.mts +34 -0
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.d.ts +34 -0
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.js +170 -0
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.mjs +12 -0
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorResponse.d.mts +17 -0
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorResponse.d.ts +17 -0
- package/Types/Monitor/HostMetricCatalog.d.mts +2 -0
- package/Types/Monitor/HostMetricCatalog.d.ts +2 -0
- package/Types/Monitor/HostMetricCatalog.js +20 -11
- package/Types/Monitor/IotAlertTemplates.d.mts +1 -0
- package/Types/Monitor/IotAlertTemplates.d.ts +1 -0
- package/Types/Monitor/IotAlertTemplates.js +11 -7
- package/Types/Monitor/KubernetesAlertTemplates.d.mts +15 -12
- package/Types/Monitor/KubernetesAlertTemplates.d.ts +15 -12
- package/Types/Monitor/KubernetesAlertTemplates.js +393 -73
- package/Types/Monitor/KubernetesMetricCatalog.d.mts +2 -1
- package/Types/Monitor/KubernetesMetricCatalog.d.ts +2 -1
- package/Types/Monitor/KubernetesMetricCatalog.js +119 -1
- package/Types/Monitor/LogMonitor/LogMonitorResponse.d.mts +1 -0
- package/Types/Monitor/LogMonitor/LogMonitorResponse.d.ts +1 -0
- package/Types/Monitor/MetricMonitor/MetricCriteriaContext.d.mts +24 -1
- package/Types/Monitor/MetricMonitor/MetricCriteriaContext.d.ts +24 -1
- package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.mts +1 -0
- package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.ts +1 -0
- package/Types/Monitor/MonitorStepCephMonitor.d.mts +1 -0
- package/Types/Monitor/MonitorStepCephMonitor.d.ts +1 -0
- package/Types/Monitor/MonitorStepDockerMonitor.d.mts +1 -0
- package/Types/Monitor/MonitorStepDockerMonitor.d.ts +1 -0
- package/Types/Monitor/MonitorStepDockerSwarmMonitor.d.mts +10 -0
- package/Types/Monitor/MonitorStepDockerSwarmMonitor.d.ts +10 -0
- package/Types/Monitor/MonitorStepDockerSwarmMonitor.js +3 -1
- package/Types/Monitor/MonitorStepDockerSwarmMonitor.mjs +1 -0
- package/Types/Monitor/MonitorStepExceptionMonitor.d.mts +1 -0
- package/Types/Monitor/MonitorStepExceptionMonitor.d.ts +1 -0
- package/Types/Monitor/MonitorStepExceptionMonitor.js +13 -2
- package/Types/Monitor/MonitorStepHostMonitor.d.mts +1 -0
- package/Types/Monitor/MonitorStepHostMonitor.d.ts +1 -0
- package/Types/Monitor/MonitorStepIoTMonitor.d.mts +9 -0
- package/Types/Monitor/MonitorStepIoTMonitor.d.ts +9 -0
- package/Types/Monitor/MonitorStepIoTMonitor.js +21 -0
- package/Types/Monitor/MonitorStepKubernetesMonitor.d.mts +11 -1
- package/Types/Monitor/MonitorStepKubernetesMonitor.d.ts +11 -1
- package/Types/Monitor/MonitorStepKubernetesMonitor.js +15 -4
- package/Types/Monitor/MonitorStepKubernetesMonitor.mjs +2 -0
- package/Types/Monitor/MonitorStepPodmanMonitor.d.mts +1 -0
- package/Types/Monitor/MonitorStepPodmanMonitor.d.ts +1 -0
- package/Types/Monitor/MonitorStepProxmoxMonitor.d.mts +5 -3
- package/Types/Monitor/MonitorStepProxmoxMonitor.d.ts +5 -3
- package/Types/Monitor/MonitorStepProxmoxMonitor.js +1 -1
- package/Types/Monitor/MonitorStepStorageArrayMonitor.d.mts +1 -0
- package/Types/Monitor/MonitorStepStorageArrayMonitor.d.ts +1 -0
- package/Types/Monitor/MonitorStepVMwareMonitor.d.mts +1 -0
- package/Types/Monitor/MonitorStepVMwareMonitor.d.ts +1 -0
- package/Types/Monitor/OpenShiftAlertTemplates.d.mts +29 -0
- package/Types/Monitor/OpenShiftAlertTemplates.d.ts +29 -0
- package/Types/Monitor/OpenShiftAlertTemplates.js +220 -0
- package/Types/Monitor/OpenShiftAlertTemplates.mjs +9 -0
- package/Types/Monitor/PodmanAlertTemplates.d.mts +1 -10
- package/Types/Monitor/PodmanAlertTemplates.d.ts +1 -10
- package/Types/Monitor/PodmanAlertTemplates.js +40 -85
- package/Types/Monitor/PodmanAlertTemplates.mjs +0 -1
- package/Types/Monitor/PodmanMetricCatalog.js +16 -0
- package/Types/Monitor/ProxmoxAlertTemplates.d.mts +1 -0
- package/Types/Monitor/ProxmoxAlertTemplates.d.ts +1 -0
- package/Types/Monitor/ProxmoxAlertTemplates.js +190 -4
- package/Types/Monitor/ProxmoxAlertTemplates.mjs +1 -0
- package/Types/Monitor/ProxmoxMetricCatalog.js +43 -22
- package/Types/Monitor/ProxmoxNotificationAlertTemplates.d.mts +24 -0
- package/Types/Monitor/ProxmoxNotificationAlertTemplates.d.ts +24 -0
- package/Types/Monitor/ProxmoxNotificationAlertTemplates.js +251 -0
- package/Types/Monitor/ProxmoxNotificationAlertTemplates.mjs +12 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.js +71 -3
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.mts +1 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.ts +1 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationUtil.js +23 -7
- package/Types/Monitor/ServiceAlertTemplates.js +111 -3
- package/Types/Monitor/SnmpMonitor/NetworkTopology.d.mts +9 -0
- package/Types/Monitor/SnmpMonitor/NetworkTopology.d.ts +9 -0
- package/Types/Monitor/SnmpMonitor/SnmpHardwareIdentity.d.mts +5 -0
- package/Types/Monitor/SnmpMonitor/SnmpHardwareIdentity.d.ts +5 -0
- package/Types/Monitor/SnmpMonitor/SnmpHardwareIdentity.js +2 -0
- package/Types/Monitor/SnmpMonitor/SnmpHardwareIdentity.mjs +1 -0
- package/Types/Monitor/SnmpMonitor/SnmpVendorIdentity.d.mts +27 -0
- package/Types/Monitor/SnmpMonitor/SnmpVendorIdentity.d.ts +27 -0
- package/Types/Monitor/SnmpMonitor/SnmpVendorIdentity.js +97 -0
- package/Types/Monitor/SnmpMonitor/SnmpVendorIdentity.mjs +4 -0
- package/Types/Monitor/StorageArrayAlertTemplates.d.mts +1 -0
- package/Types/Monitor/StorageArrayAlertTemplates.d.ts +1 -0
- package/Types/Monitor/StorageArrayAlertTemplates.js +8 -1
- package/Types/Monitor/StorageArrayMetricCatalog.js +10 -1
- package/Types/Monitor/TelemetryAlertRule.d.mts +8 -1
- package/Types/Monitor/TelemetryAlertRule.d.ts +8 -1
- package/Types/Monitor/TelemetryAlertRule.js +62 -35
- package/Types/Monitor/TraceMonitor/TraceMonitorResponse.d.mts +1 -0
- package/Types/Monitor/TraceMonitor/TraceMonitorResponse.d.ts +1 -0
- package/Types/Monitor/VMwareAlertTemplates.d.mts +1 -0
- package/Types/Monitor/VMwareAlertTemplates.d.ts +1 -0
- package/Types/Monitor/VMwareAlertTemplates.js +41 -19
- package/Types/NetFlow/NetworkTrafficUsage.d.mts +40 -1
- package/Types/NetFlow/NetworkTrafficUsage.d.ts +40 -1
- package/Types/NetFlow/NetworkTrafficUsage.js +58 -6
- package/Types/NetFlow/NetworkTrafficUsage.mjs +1 -0
- package/Types/NetworkController/NetworkControllerProvider.d.mts +1 -0
- package/Types/NetworkController/NetworkControllerProvider.d.ts +1 -0
- package/Types/NetworkController/NetworkControllerProvider.js +8 -0
- package/Types/NetworkController/NetworkControllerProvider.mjs +1 -0
- package/Types/NetworkController/NetworkControllerReadSummary.d.mts +3 -0
- package/Types/NetworkController/NetworkControllerReadSummary.d.ts +3 -0
- package/Types/NetworkController/NetworkControllerReadSummary.js +7 -1
- package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.d.mts +49 -2
- package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.d.ts +49 -2
- package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.js +252 -17
- package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.mjs +7 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.d.mts +1 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.d.ts +1 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.js +9 -0
- package/Types/NotificationSetting/NotificationSettingEventType.d.mts +1 -0
- package/Types/NotificationSetting/NotificationSettingEventType.d.ts +1 -0
- package/Types/NotificationSetting/NotificationSettingEventType.js +8 -0
- package/Types/Permission.d.mts +5 -0
- package/Types/Permission.d.ts +5 -0
- package/Types/Permission.js +59 -1
- package/Types/PrivateRecord/PrivateRecordHeld.d.mts +18 -0
- package/Types/PrivateRecord/PrivateRecordHeld.d.ts +18 -0
- package/Types/PrivateRecord/PrivateRecordHeld.js +101 -0
- package/Types/PrivateRecord/PrivateRecordHeld.mjs +2 -0
- package/Types/PrivateRecord/PrivateRecordParts.d.mts +14 -0
- package/Types/PrivateRecord/PrivateRecordParts.d.ts +14 -0
- package/Types/PrivateRecord/PrivateRecordParts.js +95 -0
- package/Types/PrivateRecord/PrivateRecordParts.mjs +4 -0
- package/Types/ReaderLanguage.d.mts +11 -0
- package/Types/ReaderLanguage.d.ts +11 -0
- package/Types/ReaderLanguage.js +173 -0
- package/Types/ReaderLanguage.mjs +12 -0
- package/Types/ReadingDirection.d.mts +4 -0
- package/Types/ReadingDirection.d.ts +4 -0
- package/Types/ReadingDirection.js +52 -1
- package/Types/ReadingDirection.mjs +4 -0
- package/Types/Rules/RuleCriteriaSubject.d.mts +3 -1
- package/Types/Rules/RuleCriteriaSubject.d.ts +3 -1
- package/Types/Rules/RuleCriteriaSubject.js +16 -1
- package/Types/Rules/RuleCriteriaSubject.mjs +1 -0
- package/Types/Rules/RuleRun.d.mts +5 -1
- package/Types/Rules/RuleRun.d.ts +5 -1
- package/Types/Rules/RuleRun.js +10 -2
- package/Types/Rum/SessionReplay.d.mts +1 -0
- package/Types/Rum/SessionReplay.d.ts +1 -0
- package/Types/Rum/SessionReplay.js +4 -2
- package/Types/Rum/SessionReplay.mjs +1 -0
- package/Types/Rum/UserFlow.d.mts +11 -0
- package/Types/Rum/UserFlow.d.ts +11 -0
- package/Types/Rum/UserFlow.js +27 -12
- package/Types/SecurityCase/SecurityCaseContext.d.mts +33 -1
- package/Types/SecurityCase/SecurityCaseContext.d.ts +33 -1
- package/Types/SecurityCase/SecurityCaseContext.js +6 -1
- package/Types/SecurityCase/SecurityCaseContext.mjs +2 -0
- package/Types/SecurityEvent/RealTimeDetection.d.mts +13 -0
- package/Types/SecurityEvent/RealTimeDetection.d.ts +13 -0
- package/Types/SecurityEvent/RealTimeDetection.js +60 -0
- package/Types/SecurityEvent/RealTimeDetection.mjs +8 -0
- package/Types/SecurityPlaybook/SecurityPlaybookAction.d.mts +7 -0
- package/Types/SecurityPlaybook/SecurityPlaybookAction.d.ts +7 -0
- package/Types/SecurityPlaybook/SecurityPlaybookAction.js +80 -3
- package/Types/SecurityPlaybook/SecurityPlaybookStep.d.mts +15 -1
- package/Types/SecurityPlaybook/SecurityPlaybookStep.d.ts +15 -1
- package/Types/SecurityPlaybook/SecurityPlaybookStep.js +112 -3
- package/Types/SecurityPlaybook/SecurityPlaybookStep.mjs +5 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.d.mts +44 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.d.ts +44 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.js +188 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.mjs +9 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStepResult.d.mts +1 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStepResult.d.ts +1 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStepResult.js +1 -0
- package/Types/SecurityPlaybook/SecurityPlaybookTemplates.d.mts +2 -0
- package/Types/SecurityPlaybook/SecurityPlaybookTemplates.d.ts +2 -0
- package/Types/SecurityPlaybook/SecurityPlaybookTemplates.js +67 -16
- package/Types/SecurityPlaybook/SecurityPlaybookTemplates.mjs +2 -0
- package/Types/StatusPage/DefaultStatusNames.d.mts +4 -0
- package/Types/StatusPage/DefaultStatusNames.d.ts +4 -0
- package/Types/StatusPage/DefaultStatusNames.js +50 -0
- package/Types/StatusPage/DefaultStatusNames.mjs +4 -0
- package/Types/StatusPage/StateChangeNoteMessage.d.mts +18 -1
- package/Types/StatusPage/StateChangeNoteMessage.d.ts +18 -1
- package/Types/StatusPage/StateChangeNoteMessage.js +60 -9
- package/Types/StatusPage/StateChangeNoteMessage.mjs +1 -0
- package/Types/StatusPage/StatusPageLanguage.d.mts +2 -0
- package/Types/StatusPage/StatusPageLanguage.d.ts +2 -0
- package/Types/StatusPage/StatusPageLanguage.js +10 -1
- package/Types/StatusPage/StatusPageLanguage.mjs +2 -0
- package/Types/Telemetry/ExceptionFingerprintLookup.d.mts +9 -0
- package/Types/Telemetry/ExceptionFingerprintLookup.d.ts +9 -0
- package/Types/Telemetry/ExceptionFingerprintLookup.js +55 -0
- package/Types/Telemetry/ExceptionFingerprintLookup.mjs +4 -0
- package/Types/Telemetry/ExceptionGroupFingerprints.d.mts +10 -0
- package/Types/Telemetry/ExceptionGroupFingerprints.d.ts +10 -0
- package/Types/Telemetry/ExceptionGroupFingerprints.js +114 -0
- package/Types/Telemetry/ExceptionGroupFingerprints.mjs +6 -0
- package/Types/Telemetry/ExceptionListStats.d.mts +19 -0
- package/Types/Telemetry/ExceptionListStats.d.ts +19 -0
- package/Types/Telemetry/ExceptionListStats.js +122 -0
- package/Types/Telemetry/ExceptionListStats.mjs +9 -0
- package/Types/Telemetry/ExceptionSpanScope.d.mts +3 -0
- package/Types/Telemetry/ExceptionSpanScope.d.ts +3 -0
- package/Types/Telemetry/ExceptionSpanScope.js +39 -3
- package/Types/Telemetry/ExceptionSpanScope.mjs +2 -0
- package/Types/Telemetry/SimilarExceptions.d.mts +33 -0
- package/Types/Telemetry/SimilarExceptions.d.ts +33 -0
- package/Types/Telemetry/SimilarExceptions.js +109 -0
- package/Types/Telemetry/SimilarExceptions.mjs +10 -0
- package/Types/Telemetry/TelemetrySavedViewState.d.mts +4 -0
- package/Types/Telemetry/TelemetrySavedViewState.d.ts +4 -0
- package/Types/Telemetry/TraceSpanType.d.mts +1 -0
- package/Types/Telemetry/TraceSpanType.d.ts +1 -0
- package/Types/Telemetry/TraceSpanType.js +17 -3
- package/Types/Telemetry/TraceSpanType.mjs +1 -0
- package/Types/Theme/ThemePreference.js +2 -1
- package/Types/Translator.d.mts +77 -0
- package/Types/Translator.d.ts +77 -0
- package/Types/Translator.js +582 -0
- package/Types/Translator.mjs +18 -0
- package/Types/VideoCall/VideoCallProvider.js +6 -3
- package/Types/Workflow/ComponentID.d.mts +5 -0
- package/Types/Workflow/ComponentID.d.ts +5 -0
- package/Types/Workflow/ComponentID.js +12 -0
- package/Types/Workflow/Components/API.js +91 -0
- package/Types/Workflow/Components/ApiGetById.d.mts +16 -0
- package/Types/Workflow/Components/ApiGetById.d.ts +16 -0
- package/Types/Workflow/Components/ApiGetById.js +69 -0
- package/Types/Workflow/Components/ApiGetById.mjs +4 -0
- package/Types/Workflow/Components/FromAnotherTool.d.mts +94 -0
- package/Types/Workflow/Components/FromAnotherTool.d.ts +94 -0
- package/Types/Workflow/Components/FromAnotherTool.js +541 -0
- package/Types/Workflow/Components/FromAnotherTool.mjs +23 -0
- package/Types/Workflow/Components/JavaScriptCheck.d.mts +16 -0
- package/Types/Workflow/Components/JavaScriptCheck.d.ts +16 -0
- package/Types/Workflow/Components/JavaScriptCheck.js +145 -0
- package/Types/Workflow/Components/JavaScriptCheck.mjs +5 -0
- package/Types/Workflow/Components/Zabbix.d.mts +62 -0
- package/Types/Workflow/Components/Zabbix.d.ts +62 -0
- package/Types/Workflow/Components/Zabbix.js +343 -0
- package/Types/Workflow/Components/Zabbix.mjs +17 -0
- package/Types/Workflow/Components.js +21 -0
- package/Types/Workflow/Documentation/APIDocumentation.d.mts +1 -0
- package/Types/Workflow/Documentation/APIDocumentation.d.ts +1 -0
- package/Types/Workflow/Documentation/APIDocumentation.js +48 -1
- package/Types/Workflow/Documentation/APIDocumentation.mjs +1 -0
- package/Types/Workflow/Documentation/DocumentationContext.js +2 -0
- package/Types/Workflow/Documentation/DocumentationLinks.d.mts +3 -0
- package/Types/Workflow/Documentation/DocumentationLinks.d.ts +3 -0
- package/Types/Workflow/Documentation/DocumentationLinks.js +3 -0
- package/Types/Workflow/Documentation/FromAnotherToolDocumentation.d.mts +5 -0
- package/Types/Workflow/Documentation/FromAnotherToolDocumentation.d.ts +5 -0
- package/Types/Workflow/Documentation/FromAnotherToolDocumentation.js +89 -0
- package/Types/Workflow/Documentation/FromAnotherToolDocumentation.mjs +3 -0
- package/Types/Workflow/Documentation/Index.js +7 -0
- package/Types/Workflow/Documentation/UtilityDocumentation.d.mts +1 -0
- package/Types/Workflow/Documentation/UtilityDocumentation.d.ts +1 -0
- package/Types/Workflow/Documentation/UtilityDocumentation.js +40 -1
- package/Types/Workflow/Documentation/UtilityDocumentation.mjs +1 -0
- package/Types/Workflow/Documentation/ZabbixDocumentation.d.mts +4 -0
- package/Types/Workflow/Documentation/ZabbixDocumentation.d.ts +4 -0
- package/Types/Workflow/Documentation/ZabbixDocumentation.js +67 -0
- package/Types/Workflow/Documentation/ZabbixDocumentation.mjs +2 -0
- package/Types/Workflow/TemplateLayout.d.mts +44 -0
- package/Types/Workflow/TemplateLayout.d.ts +44 -0
- package/Types/Workflow/TemplateLayout.js +125 -0
- package/Types/Workflow/TemplateLayout.mjs +7 -0
- package/Types/Workflow/Templates.d.mts +42 -12
- package/Types/Workflow/Templates.d.ts +42 -12
- package/Types/Workflow/Templates.js +2046 -6220
- package/Types/Workflow/Templates.mjs +1 -0
- package/Types/Workflow/UnhandledStepFailure.d.mts +15 -0
- package/Types/Workflow/UnhandledStepFailure.d.ts +15 -0
- package/Types/Workflow/UnhandledStepFailure.js +68 -0
- package/Types/Workflow/UnhandledStepFailure.mjs +5 -0
- package/Types/Workspace/MicrosoftTeamsCloud.d.mts +26 -0
- package/Types/Workspace/MicrosoftTeamsCloud.d.ts +26 -0
- package/Types/Workspace/MicrosoftTeamsCloud.js +214 -0
- package/Types/Workspace/MicrosoftTeamsCloud.mjs +4 -0
- package/Types/Workspace/WorkspaceChannelLink.d.mts +1 -0
- package/Types/Workspace/WorkspaceChannelLink.d.ts +1 -0
- package/Types/Workspace/WorkspaceChannelLink.js +45 -6
- package/UI/Utils/TranslateTemplate.d.mts +3 -68
- package/UI/Utils/TranslateTemplate.d.ts +3 -68
- package/Utils/AI/InvestigationReport.d.mts +9 -0
- package/Utils/AI/InvestigationReport.d.ts +9 -0
- package/Utils/AI/InvestigationReport.js +122 -10
- package/Utils/AI/InvestigationReport.mjs +3 -0
- package/Utils/AiRemediation/CloudChangeWords.d.mts +32 -0
- package/Utils/AiRemediation/CloudChangeWords.d.ts +32 -0
- package/Utils/AiRemediation/CloudChangeWords.js +242 -0
- package/Utils/AiRemediation/CloudChangeWords.mjs +8 -0
- package/Utils/AiRemediation/RemediationChangeKey.d.mts +2 -0
- package/Utils/AiRemediation/RemediationChangeKey.d.ts +2 -0
- package/Utils/AiRemediation/RemediationChangeKey.js +132 -0
- package/Utils/AiRemediation/RemediationChangeKey.mjs +2 -0
- package/Utils/Dashboard/DashboardBoardLayout.d.mts +46 -0
- package/Utils/Dashboard/DashboardBoardLayout.d.ts +46 -0
- package/Utils/Dashboard/DashboardBoardLayout.js +238 -0
- package/Utils/Dashboard/DashboardBoardLayout.mjs +11 -0
- package/Utils/Dashboard/ValueWidgetLayout.js +9 -1
- package/Utils/Dashboard/VariableInterpolation.d.mts +1 -0
- package/Utils/Dashboard/VariableInterpolation.d.ts +1 -0
- package/Utils/Dashboard/VariableInterpolation.js +19 -0
- package/Utils/DataSecurity/FieldClassifier.d.mts +2 -0
- package/Utils/DataSecurity/FieldClassifier.d.ts +2 -0
- package/Utils/DataSecurity/UnplacedFields.d.mts +35 -0
- package/Utils/DataSecurity/UnplacedFields.d.ts +35 -0
- package/Utils/DataSecurity/UnplacedFields.js +407 -0
- package/Utils/DataSecurity/UnplacedFields.mjs +19 -0
- package/Utils/Exceptions/ExceptionActivity.d.mts +22 -0
- package/Utils/Exceptions/ExceptionActivity.d.ts +22 -0
- package/Utils/Exceptions/ExceptionActivity.js +141 -0
- package/Utils/Exceptions/ExceptionActivity.mjs +6 -0
- package/Utils/Exceptions/ExceptionUserId.d.mts +8 -0
- package/Utils/Exceptions/ExceptionUserId.d.ts +8 -0
- package/Utils/Exceptions/ExceptionUserId.js +79 -0
- package/Utils/Exceptions/ExceptionUserId.mjs +6 -0
- package/Utils/Inventory/InventoryAssetDetails.d.mts +7 -0
- package/Utils/Inventory/InventoryAssetDetails.d.ts +7 -0
- package/Utils/Inventory/InventoryAssetDetails.js +70 -1
- package/Utils/Inventory/InventoryAssetDetails.mjs +1 -0
- package/Utils/Metrics/MetricQueryFallback.d.mts +24 -0
- package/Utils/Metrics/MetricQueryFallback.d.ts +24 -0
- package/Utils/Metrics/MetricQueryFallback.js +208 -0
- package/Utils/Metrics/MetricQueryFallback.mjs +2 -0
- package/Utils/Monitor/EndpointAttachmentUtil.d.mts +15 -2
- package/Utils/Monitor/EndpointAttachmentUtil.d.ts +15 -2
- package/Utils/Monitor/EndpointAttachmentUtil.js +83 -1
- package/Utils/Monitor/EndpointAttachmentUtil.mjs +1 -0
- package/Utils/Monitor/NeighborIdentityUtil.d.mts +15 -0
- package/Utils/Monitor/NeighborIdentityUtil.d.ts +15 -0
- package/Utils/Monitor/NeighborIdentityUtil.js +58 -0
- package/Utils/Monitor/NeighborIdentityUtil.mjs +3 -0
- package/Utils/Monitor/NetworkTopologyUtil.d.mts +13 -0
- package/Utils/Monitor/NetworkTopologyUtil.d.ts +13 -0
- package/Utils/Monitor/NetworkTopologyUtil.js +293 -70
- package/Utils/NetworkDevice/DeviceOwnMacUtil.d.mts +20 -0
- package/Utils/NetworkDevice/DeviceOwnMacUtil.d.ts +20 -0
- package/Utils/NetworkDevice/DeviceOwnMacUtil.js +81 -0
- package/Utils/NetworkDevice/DeviceOwnMacUtil.mjs +4 -0
- package/Utils/NetworkDevice/DeviceWebUiUtil.d.mts +20 -0
- package/Utils/NetworkDevice/DeviceWebUiUtil.d.ts +20 -0
- package/Utils/NetworkDevice/DeviceWebUiUtil.js +139 -0
- package/Utils/NetworkDevice/DeviceWebUiUtil.mjs +4 -0
- package/Utils/NetworkDevice/NetworkDeviceAssetFacts.d.mts +1 -0
- package/Utils/NetworkDevice/NetworkDeviceAssetFacts.d.ts +1 -0
- package/Utils/NetworkDevice/NetworkDeviceAssetFacts.js +64 -6
- package/Utils/NetworkDevice/SystemDescriptionUtil.d.mts +10 -0
- package/Utils/NetworkDevice/SystemDescriptionUtil.d.ts +10 -0
- package/Utils/NetworkDevice/SystemDescriptionUtil.js +69 -5
- package/Utils/NetworkDevice/SystemDescriptionUtil.mjs +2 -0
- package/Utils/NetworkDiscovery/DiscoveredDetailsPlan.d.mts +1 -0
- package/Utils/NetworkDiscovery/DiscoveredDetailsPlan.d.ts +1 -0
- package/Utils/NetworkDiscovery/DiscoveredDetailsPlan.js +19 -6
- package/Utils/NetworkDiscovery/DiscoveredHostUtil.d.mts +1 -1
- package/Utils/NetworkDiscovery/DiscoveredHostUtil.d.ts +1 -1
- package/Utils/NetworkDiscovery/DiscoveredHostUtil.js +18 -1
- package/Utils/Proxmox/ProxmoxNotifications.d.mts +62 -0
- package/Utils/Proxmox/ProxmoxNotifications.d.ts +62 -0
- package/Utils/Proxmox/ProxmoxNotifications.js +458 -0
- package/Utils/Proxmox/ProxmoxNotifications.mjs +20 -0
- package/Utils/Rules/RuleRunSummary.d.mts +6 -3
- package/Utils/Rules/RuleRunSummary.d.ts +6 -3
- package/Utils/Rules/RuleRunSummary.js +11 -7
- package/Utils/Rum/UserFlow.d.mts +20 -0
- package/Utils/Rum/UserFlow.d.ts +20 -0
- package/Utils/Rum/UserFlow.js +41 -3
- package/Utils/Rum/UserFlow.mjs +1 -0
- package/Utils/Schema/MonitorSchemas.js +2 -0
- package/Utils/Sms/Gsm7Text.d.mts +3 -0
- package/Utils/Sms/Gsm7Text.d.ts +3 -0
- package/Utils/Sms/Gsm7Text.js +109 -8
- package/Utils/Sms/Gsm7Text.mjs +3 -0
- package/Utils/Sms/SubscriberSms.js +9 -1
- package/Utils/Telemetry/ChangeEventFields.d.mts +11 -0
- package/Utils/Telemetry/ChangeEventFields.d.ts +11 -0
- package/Utils/Telemetry/ChangeEventFields.js +33 -3
- package/Utils/Telemetry/CloudAppRevisionName.d.mts +4 -0
- package/Utils/Telemetry/CloudAppRevisionName.d.ts +4 -0
- package/Utils/Telemetry/CloudAppRevisionName.js +27 -0
- package/Utils/Telemetry/CloudAppRevisionName.mjs +2 -0
- package/Utils/Telemetry/CloudInstanceIdentity.d.mts +1 -0
- package/Utils/Telemetry/CloudInstanceIdentity.d.ts +1 -0
- package/Utils/Telemetry/CloudInstanceIdentity.js +10 -0
- package/Utils/Telemetry/CloudInstanceIdentity.mjs +1 -0
- package/package.json +1 -1
|
@@ -33,9 +33,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
const EndpointAttachmentUtil_1 = require("./EndpointAttachmentUtil");
|
|
36
|
+
const EndpointAttachmentUtil_1 = __importStar(require("./EndpointAttachmentUtil"));
|
|
37
|
+
const NeighborIdentityUtil_1 = require("./NeighborIdentityUtil");
|
|
37
38
|
const NetworkDeviceRoleUtil_1 = require("./NetworkDeviceRoleUtil");
|
|
38
39
|
const NetworkDeviceRoleCatalog_1 = require("./NetworkDeviceRoleCatalog");
|
|
40
|
+
const DeviceMacLearningUtil_1 = require("./DeviceMacLearningUtil");
|
|
39
41
|
const DeviceReachabilityUtil_1 = __importStar(require("../NetworkDevice/DeviceReachabilityUtil"));
|
|
40
42
|
const MATCH_KEY_KINDS_STRONGEST_FIRST = [
|
|
41
43
|
"name",
|
|
@@ -69,6 +71,14 @@ const PEER_IDENTITY_KINDS = new Set([
|
|
|
69
71
|
* `wrap-regex` and Prettier cannot agree on.
|
|
70
72
|
*/
|
|
71
73
|
const IPV4_PATTERN = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;
|
|
74
|
+
/*
|
|
75
|
+
* A port's number, however a switch spells it: "Port 3", "port3", "3" or
|
|
76
|
+
* "port 03" are one port. Meraki's dashboard names a port by its number
|
|
77
|
+
* while its SNMP agent says "port3", and without this a link it reports
|
|
78
|
+
* cannot find the interface row that holds the port's state. Anything with
|
|
79
|
+
* more structure ("Gi0/3") stays what it is.
|
|
80
|
+
*/
|
|
81
|
+
const NUMBERED_PORT_PATTERN = /^(?:port)?\s?0*(\d{1,6})$/;
|
|
72
82
|
/*
|
|
73
83
|
* Whether a string really is a v4 address, octet bounds included.
|
|
74
84
|
*
|
|
@@ -172,6 +182,27 @@ class NetworkTopologyUtil {
|
|
|
172
182
|
interfaceByDeviceAndName.set(`${row.networkDeviceId}::${nameKey}`, row);
|
|
173
183
|
}
|
|
174
184
|
}
|
|
185
|
+
/*
|
|
186
|
+
* The same rows by port number, for an end that was named rather than
|
|
187
|
+
* indexed. A number two interfaces of one device answer to is nobody's:
|
|
188
|
+
* a port's state drawn on the wrong port is worse than none.
|
|
189
|
+
*/
|
|
190
|
+
const interfaceByDeviceAndPort = new Map();
|
|
191
|
+
const ambiguousPortKeys = new Set();
|
|
192
|
+
for (const row of interfaces) {
|
|
193
|
+
const portNumber = NetworkTopologyUtil.portNumberOf(row.name);
|
|
194
|
+
if (!portNumber) {
|
|
195
|
+
continue;
|
|
196
|
+
}
|
|
197
|
+
const portKey = `${row.networkDeviceId}::${portNumber}`;
|
|
198
|
+
if (interfaceByDeviceAndPort.has(portKey)) {
|
|
199
|
+
ambiguousPortKeys.add(portKey);
|
|
200
|
+
}
|
|
201
|
+
interfaceByDeviceAndPort.set(portKey, row);
|
|
202
|
+
}
|
|
203
|
+
for (const portKey of ambiguousPortKeys) {
|
|
204
|
+
interfaceByDeviceAndPort.delete(portKey);
|
|
205
|
+
}
|
|
175
206
|
// Kept aside so the diagnostics pass below can read it back per node.
|
|
176
207
|
const isNeighborDiscoveryEnabledById = new Map();
|
|
177
208
|
/*
|
|
@@ -221,6 +252,10 @@ class NetworkTopologyUtil {
|
|
|
221
252
|
deviceNodeById.set(device.id, deviceNode);
|
|
222
253
|
}
|
|
223
254
|
const edgeByKey = new Map();
|
|
255
|
+
const deviceById = new Map();
|
|
256
|
+
for (const device of devices) {
|
|
257
|
+
deviceById.set(device.id, device);
|
|
258
|
+
}
|
|
224
259
|
/*
|
|
225
260
|
* Resolve every neighbor report before drawing anything.
|
|
226
261
|
*
|
|
@@ -233,16 +268,19 @@ class NetworkTopologyUtil {
|
|
|
233
268
|
for (const device of devices) {
|
|
234
269
|
for (const claim of NetworkTopologyUtil.neighborClaimsForDevice(device)) {
|
|
235
270
|
const candidates = NetworkTopologyUtil.candidateKeysForClaim(claim);
|
|
236
|
-
|
|
271
|
+
// Whoever knows the far end for certain outranks any key.
|
|
272
|
+
let matched = claim.peerDeviceId
|
|
273
|
+
? deviceById.get(claim.peerDeviceId)
|
|
274
|
+
: undefined;
|
|
275
|
+
if (!matched && candidates.length === 0) {
|
|
237
276
|
continue;
|
|
238
277
|
}
|
|
239
278
|
// Candidates arrive strongest-first, so the first hit is the best one.
|
|
240
|
-
let matched = undefined;
|
|
241
279
|
for (const candidate of candidates) {
|
|
242
|
-
matched = deviceByMatchKey.get(NetworkTopologyUtil.matchKeyId(candidate));
|
|
243
280
|
if (matched) {
|
|
244
281
|
break;
|
|
245
282
|
}
|
|
283
|
+
matched = deviceByMatchKey.get(NetworkTopologyUtil.matchKeyId(candidate));
|
|
246
284
|
}
|
|
247
285
|
if (matched && matched.id === device.id) {
|
|
248
286
|
// Self-referential neighbor entry; skip.
|
|
@@ -295,6 +333,11 @@ class NetworkTopologyUtil {
|
|
|
295
333
|
localPortLabel =
|
|
296
334
|
(localInterface === null || localInterface === void 0 ? void 0 : localInterface.name) || `if${claim.localInterfaceIndex}`;
|
|
297
335
|
}
|
|
336
|
+
else if (claim.localPortName) {
|
|
337
|
+
// A controller's end: named, and a walk may know that port's state.
|
|
338
|
+
localEndpoint = NetworkTopologyUtil.endpointOfInterface(NetworkTopologyUtil.interfaceForPortLabel(device.id, claim.localPortName, interfaceByDeviceAndName, interfaceByDeviceAndPort));
|
|
339
|
+
localPortLabel = (localEndpoint === null || localEndpoint === void 0 ? void 0 : localEndpoint.interfaceName) || claim.localPortName;
|
|
340
|
+
}
|
|
298
341
|
/*
|
|
299
342
|
* The far end: best-effort — the advertised remote port id often
|
|
300
343
|
* matches the remote device's interface name (e.g. "GigabitEthernet
|
|
@@ -303,22 +346,7 @@ class NetworkTopologyUtil {
|
|
|
303
346
|
*/
|
|
304
347
|
let remoteEndpoint = undefined;
|
|
305
348
|
if (matchedId && claim.remotePortId) {
|
|
306
|
-
|
|
307
|
-
const remoteInterface = remotePortKey
|
|
308
|
-
? interfaceByDeviceAndName.get(`${matchedId}::${remotePortKey}`)
|
|
309
|
-
: undefined;
|
|
310
|
-
if (remoteInterface) {
|
|
311
|
-
remoteEndpoint = {
|
|
312
|
-
interfaceIndex: remoteInterface.interfaceIndex,
|
|
313
|
-
interfaceName: remoteInterface.name,
|
|
314
|
-
isOperationallyUp: remoteInterface.isOperationallyUp,
|
|
315
|
-
isAdministrativelyUp: remoteInterface.isAdministrativelyUp,
|
|
316
|
-
utilizationPercent: remoteInterface.utilizationPercent,
|
|
317
|
-
inRateMbps: remoteInterface.inRateMbps,
|
|
318
|
-
outRateMbps: remoteInterface.outRateMbps,
|
|
319
|
-
errorsPerSecond: remoteInterface.errorsPerSecond,
|
|
320
|
-
};
|
|
321
|
-
}
|
|
349
|
+
remoteEndpoint = NetworkTopologyUtil.endpointOfInterface(NetworkTopologyUtil.interfaceForPortLabel(matchedId, claim.remotePortId, interfaceByDeviceAndName, interfaceByDeviceAndPort));
|
|
322
350
|
}
|
|
323
351
|
// Undirected dedupe: canonicalize the endpoint pair.
|
|
324
352
|
const edgeKey = [device.id, toNodeId].sort().join("::");
|
|
@@ -329,9 +357,10 @@ class NetworkTopologyUtil {
|
|
|
329
357
|
toNodeId: toNodeId,
|
|
330
358
|
fromPort: localPortLabel,
|
|
331
359
|
toPort: claim.remotePortId,
|
|
332
|
-
protocols: [claim.
|
|
360
|
+
protocols: [...claim.protocols],
|
|
333
361
|
fromInterface: localEndpoint,
|
|
334
362
|
toInterface: remoteEndpoint,
|
|
363
|
+
reportedBy: claim.reportedBy,
|
|
335
364
|
});
|
|
336
365
|
continue;
|
|
337
366
|
}
|
|
@@ -340,9 +369,12 @@ class NetworkTopologyUtil {
|
|
|
340
369
|
* protocol. Merge instead of dropping so both ends keep the best
|
|
341
370
|
* data anyone reported about them.
|
|
342
371
|
*/
|
|
343
|
-
|
|
344
|
-
existing.protocols.
|
|
372
|
+
for (const protocol of claim.protocols) {
|
|
373
|
+
if (existing.protocols && !existing.protocols.includes(protocol)) {
|
|
374
|
+
existing.protocols.push(protocol);
|
|
375
|
+
}
|
|
345
376
|
}
|
|
377
|
+
existing.reportedBy = existing.reportedBy || claim.reportedBy;
|
|
346
378
|
if (existing.fromNodeId === device.id) {
|
|
347
379
|
existing.fromPort = existing.fromPort || localPortLabel;
|
|
348
380
|
existing.toPort = existing.toPort || claim.remotePortId;
|
|
@@ -476,14 +508,39 @@ class NetworkTopologyUtil {
|
|
|
476
508
|
unmatchedIdentifiersByDeviceId.set(deviceId, [identifier]);
|
|
477
509
|
}
|
|
478
510
|
}
|
|
511
|
+
/*
|
|
512
|
+
* What could have placed a device that reports nobody, site by site. An
|
|
513
|
+
* explanation has to be about the device's own site: a project-wide count
|
|
514
|
+
* would tell a store with no collector that everything is in order
|
|
515
|
+
* because a store across the country has one.
|
|
516
|
+
*/
|
|
517
|
+
const collectorCountBySite = new Map();
|
|
518
|
+
const controllerCountBySite = new Map();
|
|
519
|
+
for (const device of devices) {
|
|
520
|
+
const siteKey = (0, DeviceMacLearningUtil_1.siteKeyOf)(device.siteId);
|
|
521
|
+
if (device.isEndpointCollectionEnabled) {
|
|
522
|
+
collectorCountBySite.set(siteKey, (collectorCountBySite.get(siteKey) || 0) + 1);
|
|
523
|
+
}
|
|
524
|
+
if (device.isDescribedByController) {
|
|
525
|
+
controllerCountBySite.set(siteKey, (controllerCountBySite.get(siteKey) || 0) + 1);
|
|
526
|
+
}
|
|
527
|
+
}
|
|
479
528
|
for (const node of nodes) {
|
|
480
529
|
if (node.kind !== "device") {
|
|
481
530
|
continue;
|
|
482
531
|
}
|
|
532
|
+
const device = deviceById.get(node.id);
|
|
533
|
+
const siteKey = (0, DeviceMacLearningUtil_1.siteKeyOf)(device === null || device === void 0 ? void 0 : device.siteId);
|
|
483
534
|
node.diagnostics = {
|
|
484
535
|
isNeighborDiscoveryEnabled: isNeighborDiscoveryEnabledById.get(node.id),
|
|
485
536
|
reportedNeighborCount: reportedNeighborCountByDeviceId.get(node.id) || 0,
|
|
486
537
|
unmatchedNeighborIdentifiers: unmatchedIdentifiersByDeviceId.get(node.id) || [],
|
|
538
|
+
placement: {
|
|
539
|
+
hasMacAddress: Boolean((0, EndpointAttachmentUtil_1.normalizeMac)(device === null || device === void 0 ? void 0 : device.macAddress)),
|
|
540
|
+
hasAddressKey: isIpv4Address(NetworkTopologyUtil.normalizeKey(device === null || device === void 0 ? void 0 : device.hostname)),
|
|
541
|
+
siteEndpointCollectorCount: collectorCountBySite.get(siteKey) || 0,
|
|
542
|
+
siteControllerDeviceCount: controllerCountBySite.get(siteKey) || 0,
|
|
543
|
+
},
|
|
487
544
|
};
|
|
488
545
|
}
|
|
489
546
|
// --- Endpoint nodes + fdb edges ---
|
|
@@ -515,6 +572,16 @@ class NetworkTopologyUtil {
|
|
|
515
572
|
* instead of a stranger's.
|
|
516
573
|
*/
|
|
517
574
|
const adoption = NetworkTopologyUtil.planEndpointAdoption(devices, sortedEndpoints, deviceNodeIds, now);
|
|
575
|
+
/*
|
|
576
|
+
* --- Endpoints that ARE a peer already on the map ---
|
|
577
|
+
*
|
|
578
|
+
* A desk phone speaks LLDP, so its switch reports it as a neighbour; and
|
|
579
|
+
* it is a client on a port, so Meraki lists it too. Those two sources are
|
|
580
|
+
* one handset, and left alone the map draws it twice, on one port. The
|
|
581
|
+
* neighbour keeps its node - it says more about the link - and takes
|
|
582
|
+
* what the endpoint row knows.
|
|
583
|
+
*/
|
|
584
|
+
const peerNodeByMac = NetworkTopologyUtil.indexPeerNodesByMac(peerNodeIdByClaim, nodes);
|
|
518
585
|
for (const endpoint of sortedEndpoints) {
|
|
519
586
|
if (!endpoint.attachedNetworkDeviceId ||
|
|
520
587
|
!deviceNodeIds.has(endpoint.attachedNetworkDeviceId)) {
|
|
@@ -537,17 +604,31 @@ class NetworkTopologyUtil {
|
|
|
537
604
|
edgeByKey: edgeByKey,
|
|
538
605
|
edges: edges,
|
|
539
606
|
interfaceByDeviceAndIndex: interfaceByDeviceAndIndex,
|
|
607
|
+
interfaceByDeviceAndName: interfaceByDeviceAndName,
|
|
608
|
+
interfaceByDeviceAndPort: interfaceByDeviceAndPort,
|
|
540
609
|
});
|
|
541
610
|
}
|
|
542
611
|
continue;
|
|
543
612
|
}
|
|
613
|
+
const peerNode = peerNodeByMac.get((0, EndpointAttachmentUtil_1.normalizeMac)(endpoint.macAddress) || endpoint.macAddress);
|
|
614
|
+
if (peerNode) {
|
|
615
|
+
adoptedEndpointCount++;
|
|
616
|
+
NetworkTopologyUtil.stampPeerIdentity(peerNode, endpoint);
|
|
617
|
+
continue;
|
|
618
|
+
}
|
|
544
619
|
if (renderedEndpointCount >= ENDPOINT_RENDER_CAP) {
|
|
545
620
|
endpointsTruncated = true;
|
|
546
621
|
continue;
|
|
547
622
|
}
|
|
548
623
|
renderedEndpointCount++;
|
|
549
624
|
const nodeId = `endpoint:${endpoint.id}`;
|
|
625
|
+
/*
|
|
626
|
+
* What somebody called it, then what it can be told by: a person's
|
|
627
|
+
* classification, then the name it has in its controller, ahead of a
|
|
628
|
+
* maker's name, which every register in a store shares.
|
|
629
|
+
*/
|
|
550
630
|
const endpointName = endpoint.classification ||
|
|
631
|
+
endpoint.hostname ||
|
|
551
632
|
endpoint.vendor ||
|
|
552
633
|
endpoint.ipAddress ||
|
|
553
634
|
endpoint.macAddress;
|
|
@@ -562,12 +643,13 @@ class NetworkTopologyUtil {
|
|
|
562
643
|
isManaged: false,
|
|
563
644
|
kind: "endpoint",
|
|
564
645
|
role: endpointRole,
|
|
565
|
-
status: NetworkTopologyUtil.statusFromLastSeen(endpoint.lastSeenAt, now),
|
|
646
|
+
status: NetworkTopologyUtil.statusFromLastSeen(endpoint.lastSeenAt, now, endpoint.attachmentSource),
|
|
566
647
|
vendor: endpoint.vendor,
|
|
567
648
|
macAddress: endpoint.macAddress,
|
|
568
649
|
ipAddress: endpoint.ipAddress,
|
|
569
650
|
classification: endpoint.classification,
|
|
570
651
|
vlanId: endpoint.vlanId,
|
|
652
|
+
hostname: endpoint.hostname,
|
|
571
653
|
};
|
|
572
654
|
/*
|
|
573
655
|
* Endpoints are stamped too, so a project that renamed "IP phone" sees
|
|
@@ -579,12 +661,9 @@ class NetworkTopologyUtil {
|
|
|
579
661
|
(0, NetworkDeviceRoleCatalog_1.applyRoleStamp)(endpointNode, (0, NetworkDeviceRoleCatalog_1.stampForRoleKey)((0, NetworkDeviceRoleCatalog_1.roleKeyForNode)(undefined, endpointRole), roleIndex));
|
|
580
662
|
nodes.push(endpointNode);
|
|
581
663
|
// Port label + interface state on the switch end, when identifiable.
|
|
582
|
-
|
|
583
|
-
if (endpoint.attachedInterfaceIndex !== undefined) {
|
|
584
|
-
switchInterface = interfaceByDeviceAndIndex.get(`${endpoint.attachedNetworkDeviceId}::${endpoint.attachedInterfaceIndex}`);
|
|
585
|
-
}
|
|
664
|
+
const switchInterface = NetworkTopologyUtil.interfaceOfAttachment(endpoint, interfaceByDeviceAndIndex, interfaceByDeviceAndName, interfaceByDeviceAndPort);
|
|
586
665
|
let fromPort = endpoint.attachedPortName || (switchInterface === null || switchInterface === void 0 ? void 0 : switchInterface.name);
|
|
587
|
-
if (!fromPort && endpoint.attachedInterfaceIndex
|
|
666
|
+
if (!fromPort && typeof endpoint.attachedInterfaceIndex === "number") {
|
|
588
667
|
fromPort = `if${endpoint.attachedInterfaceIndex}`;
|
|
589
668
|
}
|
|
590
669
|
edges.push({
|
|
@@ -593,18 +672,8 @@ class NetworkTopologyUtil {
|
|
|
593
672
|
fromPort: fromPort,
|
|
594
673
|
protocols: ["fdb"],
|
|
595
674
|
learnedByNodeId: endpoint.attachedNetworkDeviceId,
|
|
596
|
-
fromInterface: switchInterface
|
|
597
|
-
|
|
598
|
-
interfaceIndex: switchInterface.interfaceIndex,
|
|
599
|
-
interfaceName: switchInterface.name,
|
|
600
|
-
isOperationallyUp: switchInterface.isOperationallyUp,
|
|
601
|
-
isAdministrativelyUp: switchInterface.isAdministrativelyUp,
|
|
602
|
-
utilizationPercent: switchInterface.utilizationPercent,
|
|
603
|
-
inRateMbps: switchInterface.inRateMbps,
|
|
604
|
-
outRateMbps: switchInterface.outRateMbps,
|
|
605
|
-
errorsPerSecond: switchInterface.errorsPerSecond,
|
|
606
|
-
}
|
|
607
|
-
: undefined,
|
|
675
|
+
fromInterface: NetworkTopologyUtil.endpointOfInterface(switchInterface),
|
|
676
|
+
reportedBy: endpoint.attachmentSource,
|
|
608
677
|
});
|
|
609
678
|
}
|
|
610
679
|
/*
|
|
@@ -723,7 +792,8 @@ class NetworkTopologyUtil {
|
|
|
723
792
|
return false;
|
|
724
793
|
}
|
|
725
794
|
const ageMs = now.getTime() - new Date(endpoint.lastSeenAt).getTime();
|
|
726
|
-
return ageMs <=
|
|
795
|
+
return (ageMs <=
|
|
796
|
+
EndpointAttachmentUtil_1.default.getSightingWindowMs(endpoint.attachmentSource, ENDPOINT_FRESH_WINDOW_MS));
|
|
727
797
|
}
|
|
728
798
|
/*
|
|
729
799
|
* Strictly fresher: later lastSeenAt, then a MAC match over an address
|
|
@@ -880,26 +950,13 @@ class NetworkTopologyUtil {
|
|
|
880
950
|
return;
|
|
881
951
|
}
|
|
882
952
|
// Port label + interface state on the switch end, when identifiable.
|
|
883
|
-
|
|
884
|
-
if (data.endpoint.attachedInterfaceIndex !== undefined) {
|
|
885
|
-
switchInterface = data.interfaceByDeviceAndIndex.get(`${switchId}::${data.endpoint.attachedInterfaceIndex}`);
|
|
886
|
-
}
|
|
953
|
+
const switchInterface = NetworkTopologyUtil.interfaceOfAttachment(data.endpoint, data.interfaceByDeviceAndIndex, data.interfaceByDeviceAndName, data.interfaceByDeviceAndPort);
|
|
887
954
|
let switchPort = data.endpoint.attachedPortName || (switchInterface === null || switchInterface === void 0 ? void 0 : switchInterface.name);
|
|
888
|
-
if (!switchPort &&
|
|
955
|
+
if (!switchPort &&
|
|
956
|
+
typeof data.endpoint.attachedInterfaceIndex === "number") {
|
|
889
957
|
switchPort = `if${data.endpoint.attachedInterfaceIndex}`;
|
|
890
958
|
}
|
|
891
|
-
const switchEndpoint = switchInterface
|
|
892
|
-
? {
|
|
893
|
-
interfaceIndex: switchInterface.interfaceIndex,
|
|
894
|
-
interfaceName: switchInterface.name,
|
|
895
|
-
isOperationallyUp: switchInterface.isOperationallyUp,
|
|
896
|
-
isAdministrativelyUp: switchInterface.isAdministrativelyUp,
|
|
897
|
-
utilizationPercent: switchInterface.utilizationPercent,
|
|
898
|
-
inRateMbps: switchInterface.inRateMbps,
|
|
899
|
-
outRateMbps: switchInterface.outRateMbps,
|
|
900
|
-
errorsPerSecond: switchInterface.errorsPerSecond,
|
|
901
|
-
}
|
|
902
|
-
: undefined;
|
|
959
|
+
const switchEndpoint = NetworkTopologyUtil.endpointOfInterface(switchInterface);
|
|
903
960
|
/*
|
|
904
961
|
* Which end is up. A forwarding table is not symmetric the way a
|
|
905
962
|
* neighbour protocol is: the switch LEARNED this MAC on an access
|
|
@@ -924,6 +981,7 @@ class NetworkTopologyUtil {
|
|
|
924
981
|
fromInterface: switchEndpoint,
|
|
925
982
|
parentNodeId: declaredParentId,
|
|
926
983
|
learnedByNodeId: switchId,
|
|
984
|
+
reportedBy: data.endpoint.attachmentSource,
|
|
927
985
|
};
|
|
928
986
|
data.edgeByKey.set(edgeKey, edge);
|
|
929
987
|
data.edges.push(edge);
|
|
@@ -943,6 +1001,7 @@ class NetworkTopologyUtil {
|
|
|
943
1001
|
* move it.
|
|
944
1002
|
*/
|
|
945
1003
|
existing.learnedByNodeId = existing.learnedByNodeId || switchId;
|
|
1004
|
+
existing.reportedBy = existing.reportedBy || data.endpoint.attachmentSource;
|
|
946
1005
|
/*
|
|
947
1006
|
* The switch-end port. Measured beats typed: against a hand-drawn
|
|
948
1007
|
* link the forwarding table's port replaces whatever was typed,
|
|
@@ -1035,6 +1094,104 @@ class NetworkTopologyUtil {
|
|
|
1035
1094
|
if (typeof endpoint.vlanId === "number" && node.vlanId === undefined) {
|
|
1036
1095
|
node.vlanId = endpoint.vlanId;
|
|
1037
1096
|
}
|
|
1097
|
+
if (endpoint.hostname &&
|
|
1098
|
+
!node.hostname &&
|
|
1099
|
+
endpoint.hostname !== node.name) {
|
|
1100
|
+
node.hostname = endpoint.hostname;
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
/*
|
|
1104
|
+
* A peer a neighbour protocol drew, by every MAC it is known by. Only the
|
|
1105
|
+
* peers that ended up as nodes: a claim that matched a device has none.
|
|
1106
|
+
*/
|
|
1107
|
+
static indexPeerNodesByMac(peerNodeIdByClaim, nodes) {
|
|
1108
|
+
const peerNodeByMac = new Map();
|
|
1109
|
+
if (peerNodeIdByClaim.size === 0) {
|
|
1110
|
+
return peerNodeByMac;
|
|
1111
|
+
}
|
|
1112
|
+
const nodeById = new Map();
|
|
1113
|
+
for (const node of nodes) {
|
|
1114
|
+
nodeById.set(node.id, node);
|
|
1115
|
+
}
|
|
1116
|
+
for (const [resolved, nodeId] of peerNodeIdByClaim) {
|
|
1117
|
+
const node = nodeById.get(nodeId);
|
|
1118
|
+
if (!node) {
|
|
1119
|
+
continue;
|
|
1120
|
+
}
|
|
1121
|
+
for (const alias of resolved.peerAliases) {
|
|
1122
|
+
if (alias.kind === "mac") {
|
|
1123
|
+
peerNodeByMac.set(alias.value, node);
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
return peerNodeByMac;
|
|
1128
|
+
}
|
|
1129
|
+
/*
|
|
1130
|
+
* What an endpoint row knows, onto the peer it turned out to be. A name a
|
|
1131
|
+
* controller has for it wins the label: it is the name its operators gave
|
|
1132
|
+
* it, where a phone's own is its MAC with SEP in front. What the peer
|
|
1133
|
+
* advertised stays, as its system name.
|
|
1134
|
+
*/
|
|
1135
|
+
static stampPeerIdentity(node, endpoint) {
|
|
1136
|
+
NetworkTopologyUtil.stampAdoptedIdentity(node, endpoint);
|
|
1137
|
+
if (endpoint.hostname && endpoint.hostname !== node.name) {
|
|
1138
|
+
node.sysName = node.sysName || node.name;
|
|
1139
|
+
node.name = endpoint.hostname;
|
|
1140
|
+
}
|
|
1141
|
+
if (endpoint.vendor && !node.vendor) {
|
|
1142
|
+
node.vendor = endpoint.vendor;
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
// The interface row a port label names on a device, when one does.
|
|
1146
|
+
static interfaceForPortLabel(deviceId, portLabel, interfaceByDeviceAndName, interfaceByDeviceAndPort) {
|
|
1147
|
+
const nameKey = NetworkTopologyUtil.normalizeKey(portLabel);
|
|
1148
|
+
if (!nameKey) {
|
|
1149
|
+
return undefined;
|
|
1150
|
+
}
|
|
1151
|
+
const named = interfaceByDeviceAndName.get(`${deviceId}::${nameKey}`);
|
|
1152
|
+
if (named) {
|
|
1153
|
+
return named;
|
|
1154
|
+
}
|
|
1155
|
+
const portNumber = NetworkTopologyUtil.portNumberOf(portLabel);
|
|
1156
|
+
return portNumber
|
|
1157
|
+
? interfaceByDeviceAndPort.get(`${deviceId}::${portNumber}`)
|
|
1158
|
+
: undefined;
|
|
1159
|
+
}
|
|
1160
|
+
/*
|
|
1161
|
+
* The interface row of the port an endpoint is attached to: by the ifIndex
|
|
1162
|
+
* a walk left on it, else by the port a controller named. An ifIndex that
|
|
1163
|
+
* finds no row is not then looked up by name: a walk that gave one was
|
|
1164
|
+
* specific, and its port label is that same interface's. A controller's
|
|
1165
|
+
* row has none, which the database hands back as NULL: not a number is
|
|
1166
|
+
* the test, not undefined.
|
|
1167
|
+
*/
|
|
1168
|
+
static interfaceOfAttachment(endpoint, interfaceByDeviceAndIndex, interfaceByDeviceAndName, interfaceByDeviceAndPort) {
|
|
1169
|
+
const deviceId = endpoint.attachedNetworkDeviceId || "";
|
|
1170
|
+
if (typeof endpoint.attachedInterfaceIndex === "number") {
|
|
1171
|
+
return interfaceByDeviceAndIndex.get(`${deviceId}::${endpoint.attachedInterfaceIndex}`);
|
|
1172
|
+
}
|
|
1173
|
+
return NetworkTopologyUtil.interfaceForPortLabel(deviceId, endpoint.attachedPortName, interfaceByDeviceAndName, interfaceByDeviceAndPort);
|
|
1174
|
+
}
|
|
1175
|
+
static endpointOfInterface(row) {
|
|
1176
|
+
if (!row) {
|
|
1177
|
+
return undefined;
|
|
1178
|
+
}
|
|
1179
|
+
return {
|
|
1180
|
+
interfaceIndex: row.interfaceIndex,
|
|
1181
|
+
interfaceName: row.name,
|
|
1182
|
+
isOperationallyUp: row.isOperationallyUp,
|
|
1183
|
+
isAdministrativelyUp: row.isAdministrativelyUp,
|
|
1184
|
+
utilizationPercent: row.utilizationPercent,
|
|
1185
|
+
inRateMbps: row.inRateMbps,
|
|
1186
|
+
outRateMbps: row.outRateMbps,
|
|
1187
|
+
errorsPerSecond: row.errorsPerSecond,
|
|
1188
|
+
};
|
|
1189
|
+
}
|
|
1190
|
+
// A port's number, however it is spelled. See NUMBERED_PORT_PATTERN.
|
|
1191
|
+
static portNumberOf(name) {
|
|
1192
|
+
var _a;
|
|
1193
|
+
const key = NetworkTopologyUtil.normalizeKey(name === null || name === void 0 ? void 0 : name.substring(0, 32));
|
|
1194
|
+
return key ? (_a = NUMBERED_PORT_PATTERN.exec(key)) === null || _a === void 0 ? void 0 : _a[1] : undefined;
|
|
1038
1195
|
}
|
|
1039
1196
|
/*
|
|
1040
1197
|
* Whether a switch that learned this device's MAC on an access port is
|
|
@@ -1074,34 +1231,90 @@ class NetworkTopologyUtil {
|
|
|
1074
1231
|
* right — a MAC or a serial — and the device it names is very often
|
|
1075
1232
|
* one we already manage.
|
|
1076
1233
|
*/
|
|
1234
|
+
const advertised = (0, NeighborIdentityUtil_1.parseMerakiAdvertisedName)(neighbor.remoteSysName);
|
|
1077
1235
|
const identifiers = [];
|
|
1078
1236
|
if (neighbor.remoteSysName) {
|
|
1079
1237
|
identifiers.push(neighbor.remoteSysName);
|
|
1080
1238
|
}
|
|
1239
|
+
if (advertised) {
|
|
1240
|
+
identifiers.push(advertised.name);
|
|
1241
|
+
}
|
|
1081
1242
|
if (neighbor.remoteChassisId) {
|
|
1082
1243
|
identifiers.push(neighbor.remoteChassisId);
|
|
1083
1244
|
}
|
|
1084
1245
|
claims.push({
|
|
1085
|
-
|
|
1246
|
+
protocols: ["lldp"],
|
|
1086
1247
|
identifiers: identifiers,
|
|
1087
|
-
displayName:
|
|
1248
|
+
displayName: (advertised === null || advertised === void 0 ? void 0 : advertised.name) ||
|
|
1249
|
+
neighbor.remoteSysName ||
|
|
1250
|
+
neighbor.remoteChassisId,
|
|
1088
1251
|
hasAdvertisedName: Boolean(neighbor.remoteSysName),
|
|
1252
|
+
advertisedName: neighbor.remoteSysName,
|
|
1089
1253
|
localInterfaceIndex: neighbor.localInterfaceIndex,
|
|
1254
|
+
localPortName: undefined,
|
|
1090
1255
|
remotePortId: neighbor.remotePortId,
|
|
1091
|
-
remotePlatform: undefined,
|
|
1256
|
+
remotePlatform: advertised ? `Meraki ${advertised.model}` : undefined,
|
|
1092
1257
|
remoteIpAddress: NetworkTopologyUtil.normalizeKey(neighbor.remoteIpAddress),
|
|
1258
|
+
peerDeviceId: undefined,
|
|
1259
|
+
reportedBy: undefined,
|
|
1093
1260
|
});
|
|
1094
1261
|
}
|
|
1095
1262
|
for (const neighbor of device.cdpNeighbors || []) {
|
|
1263
|
+
const advertised = (0, NeighborIdentityUtil_1.parseMerakiAdvertisedName)(neighbor.remoteDeviceId);
|
|
1264
|
+
const identifiers = [];
|
|
1265
|
+
if (neighbor.remoteDeviceId) {
|
|
1266
|
+
identifiers.push(neighbor.remoteDeviceId);
|
|
1267
|
+
}
|
|
1268
|
+
if (advertised) {
|
|
1269
|
+
identifiers.push(advertised.name);
|
|
1270
|
+
}
|
|
1096
1271
|
claims.push({
|
|
1097
|
-
|
|
1098
|
-
identifiers:
|
|
1099
|
-
displayName: neighbor.remoteDeviceId,
|
|
1272
|
+
protocols: ["cdp"],
|
|
1273
|
+
identifiers: identifiers,
|
|
1274
|
+
displayName: (advertised === null || advertised === void 0 ? void 0 : advertised.name) || neighbor.remoteDeviceId,
|
|
1100
1275
|
hasAdvertisedName: Boolean(neighbor.remoteDeviceId),
|
|
1276
|
+
advertisedName: neighbor.remoteDeviceId,
|
|
1101
1277
|
localInterfaceIndex: neighbor.localInterfaceIndex,
|
|
1278
|
+
localPortName: undefined,
|
|
1102
1279
|
remotePortId: neighbor.remotePortId,
|
|
1103
|
-
remotePlatform: neighbor.remotePlatform
|
|
1280
|
+
remotePlatform: neighbor.remotePlatform ||
|
|
1281
|
+
(advertised ? `Meraki ${advertised.model}` : undefined),
|
|
1104
1282
|
remoteIpAddress: NetworkTopologyUtil.normalizeKey(neighbor.remoteIpAddress),
|
|
1283
|
+
peerDeviceId: undefined,
|
|
1284
|
+
reportedBy: undefined,
|
|
1285
|
+
});
|
|
1286
|
+
}
|
|
1287
|
+
/*
|
|
1288
|
+
* Last, so what the device's own walk said fills every first-report slot
|
|
1289
|
+
* and the controller fills in what it left - a reading hours old should
|
|
1290
|
+
* not name a port over one read a minute ago.
|
|
1291
|
+
*/
|
|
1292
|
+
for (const link of device.controllerLinks || []) {
|
|
1293
|
+
const advertised = (0, NeighborIdentityUtil_1.parseMerakiAdvertisedName)(link.peerName);
|
|
1294
|
+
const identifiers = [];
|
|
1295
|
+
if (link.peerName) {
|
|
1296
|
+
identifiers.push(link.peerName);
|
|
1297
|
+
}
|
|
1298
|
+
if (advertised) {
|
|
1299
|
+
identifiers.push(advertised.name);
|
|
1300
|
+
}
|
|
1301
|
+
if (link.peerMac) {
|
|
1302
|
+
identifiers.push(link.peerMac);
|
|
1303
|
+
}
|
|
1304
|
+
claims.push({
|
|
1305
|
+
protocols: link.protocols,
|
|
1306
|
+
identifiers: identifiers,
|
|
1307
|
+
displayName: (advertised === null || advertised === void 0 ? void 0 : advertised.name) || link.peerName || link.peerMac,
|
|
1308
|
+
hasAdvertisedName: Boolean(link.peerName),
|
|
1309
|
+
advertisedName: link.peerName,
|
|
1310
|
+
localInterfaceIndex: undefined,
|
|
1311
|
+
localPortName: link.port,
|
|
1312
|
+
remotePortId: link.peerPort,
|
|
1313
|
+
remotePlatform: link.peerPlatform ||
|
|
1314
|
+
(advertised ? `Meraki ${advertised.model}` : undefined),
|
|
1315
|
+
remoteIpAddress: NetworkTopologyUtil.normalizeKey(link.peerIp),
|
|
1316
|
+
peerDeviceId: link.peerDeviceId,
|
|
1317
|
+
reportedBy: device.controllerProvider,
|
|
1105
1318
|
});
|
|
1106
1319
|
}
|
|
1107
1320
|
return claims;
|
|
@@ -1168,7 +1381,12 @@ class NetworkTopologyUtil {
|
|
|
1168
1381
|
{ kind: "name", value: normalized },
|
|
1169
1382
|
{ kind: "serial", value: normalized },
|
|
1170
1383
|
];
|
|
1171
|
-
|
|
1384
|
+
/*
|
|
1385
|
+
* A Cisco phone's name IS its MAC, so "SEP002F5C7BF3E4" is a MAC key as
|
|
1386
|
+
* much as a name: it is what recognises the phone from a device that
|
|
1387
|
+
* declares that MAC, and from an endpoint row a client list wrote.
|
|
1388
|
+
*/
|
|
1389
|
+
const mac = (0, EndpointAttachmentUtil_1.normalizeMac)(normalized) || (0, NeighborIdentityUtil_1.getCiscoPhoneMac)(normalized);
|
|
1172
1390
|
if (mac) {
|
|
1173
1391
|
keys.push({ kind: "mac", value: mac });
|
|
1174
1392
|
}
|
|
@@ -1411,6 +1629,7 @@ class NetworkTopologyUtil {
|
|
|
1411
1629
|
* itself beats a bare chassis id, whichever report arrived first.
|
|
1412
1630
|
*/
|
|
1413
1631
|
let displayName = undefined;
|
|
1632
|
+
let advertisedName = undefined;
|
|
1414
1633
|
let platform = undefined;
|
|
1415
1634
|
/*
|
|
1416
1635
|
* The peer's own management address, when any report carried one.
|
|
@@ -1422,6 +1641,7 @@ class NetworkTopologyUtil {
|
|
|
1422
1641
|
for (const resolved of groupClaims) {
|
|
1423
1642
|
if (!displayName && resolved.claim.hasAdvertisedName) {
|
|
1424
1643
|
displayName = resolved.claim.displayName;
|
|
1644
|
+
advertisedName = resolved.claim.advertisedName;
|
|
1425
1645
|
}
|
|
1426
1646
|
if (!platform && resolved.claim.remotePlatform) {
|
|
1427
1647
|
platform = resolved.claim.remotePlatform;
|
|
@@ -1453,7 +1673,7 @@ class NetworkTopologyUtil {
|
|
|
1453
1673
|
* that knew a sysName with one that knew only a chassis MAC still
|
|
1454
1674
|
* produces `unmanaged:ap-lobby` rather than an id made of hex.
|
|
1455
1675
|
*/
|
|
1456
|
-
const nodeId = NetworkTopologyUtil.uniqueNodeId(`unmanaged:${NetworkTopologyUtil.canonicalPeerValue(groupClaims, displayName)}`, usedNodeIds);
|
|
1676
|
+
const nodeId = NetworkTopologyUtil.uniqueNodeId(`unmanaged:${NetworkTopologyUtil.canonicalPeerValue(groupClaims, advertisedName || displayName)}`, usedNodeIds);
|
|
1457
1677
|
usedNodeIds.add(nodeId);
|
|
1458
1678
|
const unmanagedName = displayName || "Unknown device";
|
|
1459
1679
|
/*
|
|
@@ -1628,12 +1848,15 @@ class NetworkTopologyUtil {
|
|
|
1628
1848
|
* switch its probe polls slowly does not blink out of the map between
|
|
1629
1849
|
* walks.
|
|
1630
1850
|
*/
|
|
1631
|
-
static statusFromLastSeen(lastSeenAt, now) {
|
|
1851
|
+
static statusFromLastSeen(lastSeenAt, now, attachmentSource) {
|
|
1632
1852
|
if (!lastSeenAt) {
|
|
1633
1853
|
return "unknown";
|
|
1634
1854
|
}
|
|
1635
1855
|
const ageMs = now.getTime() - new Date(lastSeenAt).getTime();
|
|
1636
|
-
return ageMs >
|
|
1856
|
+
return ageMs >
|
|
1857
|
+
EndpointAttachmentUtil_1.default.getSightingWindowMs(attachmentSource, ENDPOINT_FRESH_WINDOW_MS)
|
|
1858
|
+
? "down"
|
|
1859
|
+
: "up";
|
|
1637
1860
|
}
|
|
1638
1861
|
/*
|
|
1639
1862
|
* The shared reachability rule (DeviceReachabilityUtil), mapped onto the
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface DeviceOwnMacCandidate {
|
|
2
|
+
interfaceIndex: number;
|
|
3
|
+
macAddress?: string | undefined;
|
|
4
|
+
interfaceType?: number | undefined;
|
|
5
|
+
}
|
|
6
|
+
export declare const MAC_BLOCK_SIZE: number;
|
|
7
|
+
/**
|
|
8
|
+
* The device's own MAC, in OneUptime's one MAC spelling, or undefined when
|
|
9
|
+
* none of its interfaces holds a usable one. See the header for which port.
|
|
10
|
+
*/
|
|
11
|
+
export declare function pickDeviceOwnMac(interfaces: ReadonlyArray<DeviceOwnMacCandidate> | undefined): string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* True when `mac` is one of the addresses numbered up from `baseMac`, as a
|
|
14
|
+
* Meraki box's ports are from the MAC its dashboard lists (see
|
|
15
|
+
* MAC_BLOCK_SIZE). Both are in OneUptime's one MAC spelling.
|
|
16
|
+
*/
|
|
17
|
+
export declare function isInMacBlock(data: {
|
|
18
|
+
baseMac: string;
|
|
19
|
+
mac: string;
|
|
20
|
+
}): boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface DeviceOwnMacCandidate {
|
|
2
|
+
interfaceIndex: number;
|
|
3
|
+
macAddress?: string | undefined;
|
|
4
|
+
interfaceType?: number | undefined;
|
|
5
|
+
}
|
|
6
|
+
export declare const MAC_BLOCK_SIZE: number;
|
|
7
|
+
/**
|
|
8
|
+
* The device's own MAC, in OneUptime's one MAC spelling, or undefined when
|
|
9
|
+
* none of its interfaces holds a usable one. See the header for which port.
|
|
10
|
+
*/
|
|
11
|
+
export declare function pickDeviceOwnMac(interfaces: ReadonlyArray<DeviceOwnMacCandidate> | undefined): string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* True when `mac` is one of the addresses numbered up from `baseMac`, as a
|
|
14
|
+
* Meraki box's ports are from the MAC its dashboard lists (see
|
|
15
|
+
* MAC_BLOCK_SIZE). Both are in OneUptime's one MAC spelling.
|
|
16
|
+
*/
|
|
17
|
+
export declare function isInMacBlock(data: {
|
|
18
|
+
baseMac: string;
|
|
19
|
+
mac: string;
|
|
20
|
+
}): boolean;
|