@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
|
@@ -26,7 +26,7 @@ import { DiscoveredNetworkDevice } from "../../Models/DatabaseModels/NetworkDevi
|
|
|
26
26
|
* here for the same reason: one reading of the payload for every reader.
|
|
27
27
|
* A fifth, `netbiosName` (issue #3677), is untrusted for the same reason and
|
|
28
28
|
* more so — the scanned host reports it about itself — and gets the same
|
|
29
|
-
* treatment.
|
|
29
|
+
* treatment, as does what a host says about its hardware.
|
|
30
30
|
*
|
|
31
31
|
* All of them are fixed here rather than at each call site, so the row the
|
|
32
32
|
* operator sees, the badge above it, the list Import walks, and the hosts an
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.normalizeDiscoveredHosts = normalizeDiscoveredHosts;
|
|
4
4
|
const DiscoveredHostNamingStatus_1 = require("../../Types/NetworkDevice/DiscoveredHostNamingStatus");
|
|
5
|
+
const NetworkDeviceDiscoveredDetails_1 = require("../../Types/NetworkDevice/NetworkDeviceDiscoveredDetails");
|
|
5
6
|
const NetbiosNameUtil_1 = require("./NetbiosNameUtil");
|
|
6
7
|
const ReverseDnsNameUtil_1 = require("./ReverseDnsNameUtil");
|
|
7
8
|
/*
|
|
@@ -46,7 +47,7 @@ function isDiscoveredHostObject(host) {
|
|
|
46
47
|
* here for the same reason: one reading of the payload for every reader.
|
|
47
48
|
* A fifth, `netbiosName` (issue #3677), is untrusted for the same reason and
|
|
48
49
|
* more so — the scanned host reports it about itself — and gets the same
|
|
49
|
-
* treatment.
|
|
50
|
+
* treatment, as does what a host says about its hardware.
|
|
50
51
|
*
|
|
51
52
|
* All of them are fixed here rather than at each call site, so the row the
|
|
52
53
|
* operator sees, the badge above it, the list Import walks, and the hosts an
|
|
@@ -147,6 +148,22 @@ function normalizeDiscoveredHosts(hosts) {
|
|
|
147
148
|
else {
|
|
148
149
|
delete normalized.netbiosNameStatus;
|
|
149
150
|
}
|
|
151
|
+
/*
|
|
152
|
+
* What the host said about its hardware (SnmpHardwareIdentity): a MAC
|
|
153
|
+
* through the one MAC normaliser, the rest cleaned and bounded. Self-
|
|
154
|
+
* reported like the NetBIOS name and read out of the same jsonb, so what
|
|
155
|
+
* fails is DELETED the same way.
|
|
156
|
+
*/
|
|
157
|
+
for (const field of NetworkDeviceDiscoveredDetails_1.NETWORK_DEVICE_DISCOVERED_HARDWARE_FIELDS) {
|
|
158
|
+
const row = normalized;
|
|
159
|
+
const value = (0, NetworkDeviceDiscoveredDetails_1.normalizeDiscoveredValue)(field, row[field]);
|
|
160
|
+
if (value) {
|
|
161
|
+
row[field] = value;
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
delete row[field];
|
|
165
|
+
}
|
|
166
|
+
}
|
|
150
167
|
cleaned.push(normalized);
|
|
151
168
|
}
|
|
152
169
|
// An address the scan reports as registered is registered on every row.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const PROXMOX_NOTIFICATION_TARGET_NAME: string;
|
|
2
|
+
export declare const PROXMOX_NOTIFICATION_SCOPE_NAME: string;
|
|
3
|
+
export declare enum ProxmoxNotificationAttribute {
|
|
4
|
+
Type = "pve.notification.type",
|
|
5
|
+
Severity = "pve.notification.severity",
|
|
6
|
+
Title = "pve.notification.title",
|
|
7
|
+
JobId = "pve.notification.job_id"
|
|
8
|
+
}
|
|
9
|
+
export declare const PROXMOX_NOTIFICATION_NODE_ATTRIBUTE: string;
|
|
10
|
+
export declare enum ProxmoxNotificationType {
|
|
11
|
+
Backup = "vzdump",
|
|
12
|
+
Replication = "replication",
|
|
13
|
+
Fencing = "fencing",
|
|
14
|
+
PackageUpdates = "package-updates",
|
|
15
|
+
SystemMail = "system-mail"
|
|
16
|
+
}
|
|
17
|
+
export declare enum ProxmoxNotificationSeverity {
|
|
18
|
+
Info = "info",
|
|
19
|
+
Notice = "notice",
|
|
20
|
+
Warning = "warning",
|
|
21
|
+
Error = "error",
|
|
22
|
+
Unknown = "unknown"
|
|
23
|
+
}
|
|
24
|
+
export declare function getProxmoxNotificationSeverityNumber(severity: string | null | undefined): number;
|
|
25
|
+
export declare const PROXMOX_NOTIFICATION_WEBHOOK_BODY: string;
|
|
26
|
+
export declare const PROXMOX_NOTIFICATION_WEBHOOK_HEADERS: ReadonlyArray<{
|
|
27
|
+
name: string;
|
|
28
|
+
value: string;
|
|
29
|
+
}>;
|
|
30
|
+
export declare function encodeProxmoxBase64(text: string): string;
|
|
31
|
+
export declare function getProxmoxNotificationLogsUrl(oneUptimeUrl: string): string;
|
|
32
|
+
export declare function buildProxmoxNotificationSetupCommands(data: {
|
|
33
|
+
oneUptimeUrl: string;
|
|
34
|
+
clusterName: string;
|
|
35
|
+
ingestionKey: string;
|
|
36
|
+
}): string;
|
|
37
|
+
export declare function buildProxmoxNotificationRemoveCommands(): string;
|
|
38
|
+
export interface ProxmoxBackupGuestResult {
|
|
39
|
+
vmid: number;
|
|
40
|
+
name: string;
|
|
41
|
+
status: "ok" | "failed";
|
|
42
|
+
durationSeconds: number | null;
|
|
43
|
+
bytes: number | null;
|
|
44
|
+
filename: string | null;
|
|
45
|
+
}
|
|
46
|
+
export declare const MAX_PROXMOX_BACKUP_ROWS: number;
|
|
47
|
+
export declare function parseProxmoxDuration(text: string): number | null;
|
|
48
|
+
export declare function parseProxmoxBytes(text: string): number | null;
|
|
49
|
+
export declare function parseProxmoxBackupDetails(message: string | null | undefined): Array<ProxmoxBackupGuestResult>;
|
|
50
|
+
export interface ProxmoxNotificationStamp {
|
|
51
|
+
type: string;
|
|
52
|
+
severity: string;
|
|
53
|
+
severityNumber: number;
|
|
54
|
+
jobId: string | null;
|
|
55
|
+
nodeName: string | null;
|
|
56
|
+
backupResults: Array<ProxmoxBackupGuestResult>;
|
|
57
|
+
}
|
|
58
|
+
export declare function isProxmoxNotificationLogRecord(attributes: Record<string, unknown> | null | undefined): boolean;
|
|
59
|
+
export declare function stampProxmoxNotification(data: {
|
|
60
|
+
attributes: Record<string, unknown>;
|
|
61
|
+
body: string | null | undefined;
|
|
62
|
+
}): ProxmoxNotificationStamp | null;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const PROXMOX_NOTIFICATION_TARGET_NAME: string;
|
|
2
|
+
export declare const PROXMOX_NOTIFICATION_SCOPE_NAME: string;
|
|
3
|
+
export declare enum ProxmoxNotificationAttribute {
|
|
4
|
+
Type = "pve.notification.type",
|
|
5
|
+
Severity = "pve.notification.severity",
|
|
6
|
+
Title = "pve.notification.title",
|
|
7
|
+
JobId = "pve.notification.job_id"
|
|
8
|
+
}
|
|
9
|
+
export declare const PROXMOX_NOTIFICATION_NODE_ATTRIBUTE: string;
|
|
10
|
+
export declare enum ProxmoxNotificationType {
|
|
11
|
+
Backup = "vzdump",
|
|
12
|
+
Replication = "replication",
|
|
13
|
+
Fencing = "fencing",
|
|
14
|
+
PackageUpdates = "package-updates",
|
|
15
|
+
SystemMail = "system-mail"
|
|
16
|
+
}
|
|
17
|
+
export declare enum ProxmoxNotificationSeverity {
|
|
18
|
+
Info = "info",
|
|
19
|
+
Notice = "notice",
|
|
20
|
+
Warning = "warning",
|
|
21
|
+
Error = "error",
|
|
22
|
+
Unknown = "unknown"
|
|
23
|
+
}
|
|
24
|
+
export declare function getProxmoxNotificationSeverityNumber(severity: string | null | undefined): number;
|
|
25
|
+
export declare const PROXMOX_NOTIFICATION_WEBHOOK_BODY: string;
|
|
26
|
+
export declare const PROXMOX_NOTIFICATION_WEBHOOK_HEADERS: ReadonlyArray<{
|
|
27
|
+
name: string;
|
|
28
|
+
value: string;
|
|
29
|
+
}>;
|
|
30
|
+
export declare function encodeProxmoxBase64(text: string): string;
|
|
31
|
+
export declare function getProxmoxNotificationLogsUrl(oneUptimeUrl: string): string;
|
|
32
|
+
export declare function buildProxmoxNotificationSetupCommands(data: {
|
|
33
|
+
oneUptimeUrl: string;
|
|
34
|
+
clusterName: string;
|
|
35
|
+
ingestionKey: string;
|
|
36
|
+
}): string;
|
|
37
|
+
export declare function buildProxmoxNotificationRemoveCommands(): string;
|
|
38
|
+
export interface ProxmoxBackupGuestResult {
|
|
39
|
+
vmid: number;
|
|
40
|
+
name: string;
|
|
41
|
+
status: "ok" | "failed";
|
|
42
|
+
durationSeconds: number | null;
|
|
43
|
+
bytes: number | null;
|
|
44
|
+
filename: string | null;
|
|
45
|
+
}
|
|
46
|
+
export declare const MAX_PROXMOX_BACKUP_ROWS: number;
|
|
47
|
+
export declare function parseProxmoxDuration(text: string): number | null;
|
|
48
|
+
export declare function parseProxmoxBytes(text: string): number | null;
|
|
49
|
+
export declare function parseProxmoxBackupDetails(message: string | null | undefined): Array<ProxmoxBackupGuestResult>;
|
|
50
|
+
export interface ProxmoxNotificationStamp {
|
|
51
|
+
type: string;
|
|
52
|
+
severity: string;
|
|
53
|
+
severityNumber: number;
|
|
54
|
+
jobId: string | null;
|
|
55
|
+
nodeName: string | null;
|
|
56
|
+
backupResults: Array<ProxmoxBackupGuestResult>;
|
|
57
|
+
}
|
|
58
|
+
export declare function isProxmoxNotificationLogRecord(attributes: Record<string, unknown> | null | undefined): boolean;
|
|
59
|
+
export declare function stampProxmoxNotification(data: {
|
|
60
|
+
attributes: Record<string, unknown>;
|
|
61
|
+
body: string | null | undefined;
|
|
62
|
+
}): ProxmoxNotificationStamp | null;
|
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* PROXMOX VE'S OWN NOTIFICATIONS, SENT TO ONEUPTIME.
|
|
4
|
+
*
|
|
5
|
+
* Proxmox VE tells its administrators what happened through its notification
|
|
6
|
+
* system (Datacenter -> Notifications): a backup job that succeeded or
|
|
7
|
+
* failed, a replication job that failed, a node that was fenced, updates
|
|
8
|
+
* waiting to be installed, mail for root. Its agent-less way to send them
|
|
9
|
+
* anywhere is a webhook target (Proxmox VE 8.3 and later), whose body is a
|
|
10
|
+
* Handlebars template over the notification's title, message, severity,
|
|
11
|
+
* timestamp, metadata fields and the target's own secrets.
|
|
12
|
+
*
|
|
13
|
+
* This module writes that target so it sends each notification to
|
|
14
|
+
* OneUptime's OpenTelemetry logs endpoint as one log record of the cluster:
|
|
15
|
+
* no agent, no new endpoint, and every log tool OneUptime has - the cluster's
|
|
16
|
+
* Logs page, log monitors, pipelines, retention - works on it. It is shared by
|
|
17
|
+
* the Dashboard, which shows the two commands that create the target on any
|
|
18
|
+
* node, and the logs ingest, which recognises the records, gives them their
|
|
19
|
+
* severity and reads each guest's backup result out of a backup job's
|
|
20
|
+
* message (stampProxmoxNotification).
|
|
21
|
+
*
|
|
22
|
+
* The body is one fixed template. What differs per cluster - its name in
|
|
23
|
+
* OneUptime and the ingestion key - lives in the target's secrets, which
|
|
24
|
+
* Proxmox VE keeps in a root-only file and the template reads with
|
|
25
|
+
* `{{ json secrets.cluster }}`: nothing anybody types ever becomes template
|
|
26
|
+
* text. `json` writes a value as JSON (a string in quotes, escaped), so the
|
|
27
|
+
* message, which holds the whole backup log, can never break the request.
|
|
28
|
+
* A space stands beside every mustache, because `}}}` and `{{{` are
|
|
29
|
+
* Handlebars' own triple-stash.
|
|
30
|
+
*
|
|
31
|
+
* These attribute keys are stored in customers' logs and monitors: never
|
|
32
|
+
* rename one.
|
|
33
|
+
*/
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
exports.MAX_PROXMOX_BACKUP_ROWS = exports.PROXMOX_NOTIFICATION_WEBHOOK_HEADERS = exports.PROXMOX_NOTIFICATION_WEBHOOK_BODY = exports.ProxmoxNotificationSeverity = exports.ProxmoxNotificationType = exports.PROXMOX_NOTIFICATION_NODE_ATTRIBUTE = exports.ProxmoxNotificationAttribute = exports.PROXMOX_NOTIFICATION_SCOPE_NAME = exports.PROXMOX_NOTIFICATION_TARGET_NAME = void 0;
|
|
36
|
+
exports.getProxmoxNotificationSeverityNumber = getProxmoxNotificationSeverityNumber;
|
|
37
|
+
exports.encodeProxmoxBase64 = encodeProxmoxBase64;
|
|
38
|
+
exports.getProxmoxNotificationLogsUrl = getProxmoxNotificationLogsUrl;
|
|
39
|
+
exports.buildProxmoxNotificationSetupCommands = buildProxmoxNotificationSetupCommands;
|
|
40
|
+
exports.buildProxmoxNotificationRemoveCommands = buildProxmoxNotificationRemoveCommands;
|
|
41
|
+
exports.parseProxmoxDuration = parseProxmoxDuration;
|
|
42
|
+
exports.parseProxmoxBytes = parseProxmoxBytes;
|
|
43
|
+
exports.parseProxmoxBackupDetails = parseProxmoxBackupDetails;
|
|
44
|
+
exports.isProxmoxNotificationLogRecord = isProxmoxNotificationLogRecord;
|
|
45
|
+
exports.stampProxmoxNotification = stampProxmoxNotification;
|
|
46
|
+
// The name of the webhook target and of its matcher, on the cluster.
|
|
47
|
+
exports.PROXMOX_NOTIFICATION_TARGET_NAME = "oneuptime";
|
|
48
|
+
// The instrumentation scope every notification record is sent under.
|
|
49
|
+
exports.PROXMOX_NOTIFICATION_SCOPE_NAME = "proxmox-ve-notifications";
|
|
50
|
+
// Record attributes the template writes.
|
|
51
|
+
var ProxmoxNotificationAttribute;
|
|
52
|
+
(function (ProxmoxNotificationAttribute) {
|
|
53
|
+
// vzdump, replication, fencing, package-updates, system-mail.
|
|
54
|
+
ProxmoxNotificationAttribute["Type"] = "pve.notification.type";
|
|
55
|
+
// info, notice, warning, error, unknown.
|
|
56
|
+
ProxmoxNotificationAttribute["Severity"] = "pve.notification.severity";
|
|
57
|
+
ProxmoxNotificationAttribute["Title"] = "pve.notification.title";
|
|
58
|
+
// A scheduled backup job's id (absent for "Run now").
|
|
59
|
+
ProxmoxNotificationAttribute["JobId"] = "pve.notification.job_id";
|
|
60
|
+
})(ProxmoxNotificationAttribute || (exports.ProxmoxNotificationAttribute = ProxmoxNotificationAttribute = {}));
|
|
61
|
+
/*
|
|
62
|
+
* The node that sent it, as a resource attribute. Read back through the
|
|
63
|
+
* logs' `resource.` prefix.
|
|
64
|
+
*/
|
|
65
|
+
exports.PROXMOX_NOTIFICATION_NODE_ATTRIBUTE = "proxmox.node.name";
|
|
66
|
+
var ProxmoxNotificationType;
|
|
67
|
+
(function (ProxmoxNotificationType) {
|
|
68
|
+
ProxmoxNotificationType["Backup"] = "vzdump";
|
|
69
|
+
ProxmoxNotificationType["Replication"] = "replication";
|
|
70
|
+
ProxmoxNotificationType["Fencing"] = "fencing";
|
|
71
|
+
ProxmoxNotificationType["PackageUpdates"] = "package-updates";
|
|
72
|
+
ProxmoxNotificationType["SystemMail"] = "system-mail";
|
|
73
|
+
})(ProxmoxNotificationType || (exports.ProxmoxNotificationType = ProxmoxNotificationType = {}));
|
|
74
|
+
var ProxmoxNotificationSeverity;
|
|
75
|
+
(function (ProxmoxNotificationSeverity) {
|
|
76
|
+
ProxmoxNotificationSeverity["Info"] = "info";
|
|
77
|
+
ProxmoxNotificationSeverity["Notice"] = "notice";
|
|
78
|
+
ProxmoxNotificationSeverity["Warning"] = "warning";
|
|
79
|
+
ProxmoxNotificationSeverity["Error"] = "error";
|
|
80
|
+
ProxmoxNotificationSeverity["Unknown"] = "unknown";
|
|
81
|
+
})(ProxmoxNotificationSeverity || (exports.ProxmoxNotificationSeverity = ProxmoxNotificationSeverity = {}));
|
|
82
|
+
/*
|
|
83
|
+
* The OpenTelemetry severity number for a Proxmox VE severity: INFO (9),
|
|
84
|
+
* INFO2 (10) for a notice, WARN (13), ERROR (17), and UNSPECIFIED (0) for
|
|
85
|
+
* "unknown" (root's mail) and anything else.
|
|
86
|
+
*/
|
|
87
|
+
function getProxmoxNotificationSeverityNumber(severity) {
|
|
88
|
+
switch ((severity || "").trim().toLowerCase()) {
|
|
89
|
+
case ProxmoxNotificationSeverity.Info:
|
|
90
|
+
return 9;
|
|
91
|
+
case ProxmoxNotificationSeverity.Notice:
|
|
92
|
+
return 10;
|
|
93
|
+
case ProxmoxNotificationSeverity.Warning:
|
|
94
|
+
return 13;
|
|
95
|
+
case ProxmoxNotificationSeverity.Error:
|
|
96
|
+
return 17;
|
|
97
|
+
default:
|
|
98
|
+
return 0;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
/*
|
|
102
|
+
* The webhook target's body: one OpenTelemetry (OTLP/JSON) logs request
|
|
103
|
+
* holding one record. Proxmox VE renders it per notification; see the top
|
|
104
|
+
* of this file for why every value goes through `json`.
|
|
105
|
+
*/
|
|
106
|
+
exports.PROXMOX_NOTIFICATION_WEBHOOK_BODY = [
|
|
107
|
+
'{"resourceLogs": [{"resource": {"attributes": [',
|
|
108
|
+
'{"key": "proxmox.cluster.name", "value": {"stringValue": {{ json secrets.cluster }} } }',
|
|
109
|
+
'{{#if fields.hostname}}, {"key": "proxmox.node.name", "value": {"stringValue": {{ json fields.hostname }} } }{{/if}}',
|
|
110
|
+
']}, "scopeLogs": [{"scope": {"name": "proxmox-ve-notifications"}, "logRecords": [{',
|
|
111
|
+
'"timeUnixNano": "{{ timestamp }}000000000", ',
|
|
112
|
+
'"body": {"stringValue": {{ json message }} }, ',
|
|
113
|
+
'"attributes": [',
|
|
114
|
+
'{"key": "pve.notification.type", "value": {"stringValue": {{ json fields.type }} } }, ',
|
|
115
|
+
'{"key": "pve.notification.severity", "value": {"stringValue": {{ json severity }} } }, ',
|
|
116
|
+
'{"key": "pve.notification.title", "value": {"stringValue": {{ json title }} } }',
|
|
117
|
+
'{{#if fields.[job-id]}}, {"key": "pve.notification.job_id", "value": {"stringValue": {{ json fields.[job-id] }} } }{{/if}}',
|
|
118
|
+
"]}]}]}]}",
|
|
119
|
+
].join("");
|
|
120
|
+
// The headers the target sends; the key is read from the target's secret.
|
|
121
|
+
exports.PROXMOX_NOTIFICATION_WEBHOOK_HEADERS = [
|
|
122
|
+
{ name: "Content-Type", value: "application/json" },
|
|
123
|
+
{ name: "x-oneuptime-token", value: "{{ secrets.token }}" },
|
|
124
|
+
];
|
|
125
|
+
/*
|
|
126
|
+
* Standard base64 of a string's UTF-8 bytes - what Proxmox VE's API wants
|
|
127
|
+
* for a webhook's body, header values and secret values. Written out so it
|
|
128
|
+
* runs the same in a browser, in Node and in a test, with no Buffer, btoa or
|
|
129
|
+
* TextEncoder.
|
|
130
|
+
*/
|
|
131
|
+
const BASE64_ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
132
|
+
function utf8Bytes(text) {
|
|
133
|
+
const bytes = [];
|
|
134
|
+
for (const character of text) {
|
|
135
|
+
const codePoint = character.codePointAt(0);
|
|
136
|
+
if (codePoint < 0x80) {
|
|
137
|
+
bytes.push(codePoint);
|
|
138
|
+
}
|
|
139
|
+
else if (codePoint < 0x800) {
|
|
140
|
+
bytes.push(0xc0 | (codePoint >> 6), 0x80 | (codePoint & 0x3f));
|
|
141
|
+
}
|
|
142
|
+
else if (codePoint < 0x10000) {
|
|
143
|
+
bytes.push(0xe0 | (codePoint >> 12), 0x80 | ((codePoint >> 6) & 0x3f), 0x80 | (codePoint & 0x3f));
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
bytes.push(0xf0 | (codePoint >> 18), 0x80 | ((codePoint >> 12) & 0x3f), 0x80 | ((codePoint >> 6) & 0x3f), 0x80 | (codePoint & 0x3f));
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return bytes;
|
|
150
|
+
}
|
|
151
|
+
function encodeProxmoxBase64(text) {
|
|
152
|
+
const bytes = utf8Bytes(text);
|
|
153
|
+
let out = "";
|
|
154
|
+
for (let index = 0; index < bytes.length; index += 3) {
|
|
155
|
+
const first = bytes[index];
|
|
156
|
+
const second = bytes[index + 1];
|
|
157
|
+
const third = bytes[index + 2];
|
|
158
|
+
const triple = (first << 16) | ((second !== null && second !== void 0 ? second : 0) << 8) | (third !== null && third !== void 0 ? third : 0);
|
|
159
|
+
out += BASE64_ALPHABET[(triple >> 18) & 0x3f];
|
|
160
|
+
out += BASE64_ALPHABET[(triple >> 12) & 0x3f];
|
|
161
|
+
out += second === undefined ? "=" : BASE64_ALPHABET[(triple >> 6) & 0x3f];
|
|
162
|
+
out += third === undefined ? "=" : BASE64_ALPHABET[triple & 0x3f];
|
|
163
|
+
}
|
|
164
|
+
return out;
|
|
165
|
+
}
|
|
166
|
+
// Single quotes for a shell, with any single quote in the value kept.
|
|
167
|
+
function shellQuote(value) {
|
|
168
|
+
return `'${value.split("'").join("'\\''")}'`;
|
|
169
|
+
}
|
|
170
|
+
/*
|
|
171
|
+
* One `name=<name>,value=<base64>` property string, as the API takes a
|
|
172
|
+
* header or a secret, written so the shell does the base64: the value stays
|
|
173
|
+
* readable in the command - a key to check, a cluster's name to correct, a
|
|
174
|
+
* placeholder to replace - and the API gets exactly what it wants.
|
|
175
|
+
*/
|
|
176
|
+
function shellPropertyString(name, value) {
|
|
177
|
+
return `"name=${name},value=$(printf %s ${shellQuote(value)} | base64 -w0)"`;
|
|
178
|
+
}
|
|
179
|
+
// The OTLP logs endpoint of a OneUptime, without a trailing slash.
|
|
180
|
+
function getProxmoxNotificationLogsUrl(oneUptimeUrl) {
|
|
181
|
+
let base = oneUptimeUrl.trim();
|
|
182
|
+
while (base.endsWith("/")) {
|
|
183
|
+
base = base.substring(0, base.length - 1);
|
|
184
|
+
}
|
|
185
|
+
return `${base}/otlp/v1/logs`;
|
|
186
|
+
}
|
|
187
|
+
/*
|
|
188
|
+
* The two commands that send a cluster's notifications to OneUptime, run as
|
|
189
|
+
* root on any node (the configuration is the cluster's, in /etc/pve): the
|
|
190
|
+
* webhook target, then a matcher with no rules - which Proxmox VE reads as
|
|
191
|
+
* "every notification" - that sends to it. Every value is single-quoted for
|
|
192
|
+
* the shell and travels base64 to the API, so no shell or property-string
|
|
193
|
+
* character in a cluster's name, a key or a URL can change the command.
|
|
194
|
+
*/
|
|
195
|
+
function buildProxmoxNotificationSetupCommands(data) {
|
|
196
|
+
const target = exports.PROXMOX_NOTIFICATION_TARGET_NAME;
|
|
197
|
+
const lines = [
|
|
198
|
+
`pvesh create /cluster/notifications/endpoints/webhook --name ${target} \\`,
|
|
199
|
+
` --method post --url ${shellQuote(getProxmoxNotificationLogsUrl(data.oneUptimeUrl))} \\`,
|
|
200
|
+
];
|
|
201
|
+
for (const header of exports.PROXMOX_NOTIFICATION_WEBHOOK_HEADERS) {
|
|
202
|
+
lines.push(` --header ${shellPropertyString(header.name, header.value)} \\`);
|
|
203
|
+
}
|
|
204
|
+
lines.push(` --secret ${shellPropertyString("token", data.ingestionKey)} \\`, ` --secret ${shellPropertyString("cluster", data.clusterName)} \\`, ` --body ${encodeProxmoxBase64(exports.PROXMOX_NOTIFICATION_WEBHOOK_BODY)} \\`, ` --comment ${shellQuote("Sends this cluster's notifications to OneUptime")}`, `pvesh create /cluster/notifications/matchers --name ${target} --target ${target} \\`, ` --comment ${shellQuote("Every notification, to OneUptime")}`);
|
|
205
|
+
return lines.join("\n");
|
|
206
|
+
}
|
|
207
|
+
// The commands that take the target and its matcher away again.
|
|
208
|
+
function buildProxmoxNotificationRemoveCommands() {
|
|
209
|
+
const target = exports.PROXMOX_NOTIFICATION_TARGET_NAME;
|
|
210
|
+
return [
|
|
211
|
+
`pvesh delete /cluster/notifications/matchers/${target}`,
|
|
212
|
+
`pvesh delete /cluster/notifications/endpoints/webhook/${target}`,
|
|
213
|
+
].join("\n");
|
|
214
|
+
}
|
|
215
|
+
// More rows than any cluster has guests: a bound on what one message holds.
|
|
216
|
+
exports.MAX_PROXMOX_BACKUP_ROWS = 10000;
|
|
217
|
+
const DURATION_UNITS = {
|
|
218
|
+
y: 365 * 24 * 3600,
|
|
219
|
+
M: 30 * 24 * 3600,
|
|
220
|
+
w: 7 * 24 * 3600,
|
|
221
|
+
d: 24 * 3600,
|
|
222
|
+
h: 3600,
|
|
223
|
+
m: 60,
|
|
224
|
+
s: 1,
|
|
225
|
+
};
|
|
226
|
+
const BYTE_UNITS = {
|
|
227
|
+
B: 1,
|
|
228
|
+
KiB: 1024,
|
|
229
|
+
MiB: 1024 ** 2,
|
|
230
|
+
GiB: 1024 ** 3,
|
|
231
|
+
TiB: 1024 ** 4,
|
|
232
|
+
PiB: 1024 ** 5,
|
|
233
|
+
EiB: 1024 ** 6,
|
|
234
|
+
KB: 1000,
|
|
235
|
+
MB: 1000 ** 2,
|
|
236
|
+
GB: 1000 ** 3,
|
|
237
|
+
TB: 1000 ** 4,
|
|
238
|
+
PB: 1000 ** 5,
|
|
239
|
+
};
|
|
240
|
+
function isDigits(text) {
|
|
241
|
+
if (text.length === 0) {
|
|
242
|
+
return false;
|
|
243
|
+
}
|
|
244
|
+
for (const character of text) {
|
|
245
|
+
if (character < "0" || character > "9") {
|
|
246
|
+
return false;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
return true;
|
|
250
|
+
}
|
|
251
|
+
// A plain decimal number ("18", "18.4"), or null.
|
|
252
|
+
function readDecimal(text) {
|
|
253
|
+
if (text.length === 0) {
|
|
254
|
+
return null;
|
|
255
|
+
}
|
|
256
|
+
const parts = text.split(".");
|
|
257
|
+
if (parts.length > 2 || !isDigits(parts[0])) {
|
|
258
|
+
return null;
|
|
259
|
+
}
|
|
260
|
+
if (parts.length === 2 && !isDigits(parts[1])) {
|
|
261
|
+
return null;
|
|
262
|
+
}
|
|
263
|
+
const value = Number(text);
|
|
264
|
+
return Number.isFinite(value) ? value : null;
|
|
265
|
+
}
|
|
266
|
+
// One part of a duration ("3m", "32s", "0.5s", "<0.1s"), in seconds.
|
|
267
|
+
function readDurationPart(token) {
|
|
268
|
+
const body = token.startsWith("<") ? token.substring(1) : token;
|
|
269
|
+
if (body.length < 2) {
|
|
270
|
+
return null;
|
|
271
|
+
}
|
|
272
|
+
const unit = body.substring(body.length - 1);
|
|
273
|
+
const multiplier = DURATION_UNITS[unit];
|
|
274
|
+
if (multiplier === undefined) {
|
|
275
|
+
return null;
|
|
276
|
+
}
|
|
277
|
+
const amount = readDecimal(body.substring(0, body.length - 1));
|
|
278
|
+
return amount === null ? null : amount * multiplier;
|
|
279
|
+
}
|
|
280
|
+
// "1h 1m 40s" -> 3700; null when it is not a duration.
|
|
281
|
+
function parseProxmoxDuration(text) {
|
|
282
|
+
const tokens = text.trim().split(" ").filter(Boolean);
|
|
283
|
+
if (tokens.length === 0) {
|
|
284
|
+
return null;
|
|
285
|
+
}
|
|
286
|
+
let total = 0;
|
|
287
|
+
for (const token of tokens) {
|
|
288
|
+
const seconds = readDurationPart(token);
|
|
289
|
+
if (seconds === null) {
|
|
290
|
+
return null;
|
|
291
|
+
}
|
|
292
|
+
total += seconds;
|
|
293
|
+
}
|
|
294
|
+
return total;
|
|
295
|
+
}
|
|
296
|
+
// "18.4 GiB" -> bytes; null when it is not a size.
|
|
297
|
+
function parseProxmoxBytes(text) {
|
|
298
|
+
const tokens = text.trim().split(" ").filter(Boolean);
|
|
299
|
+
if (tokens.length !== 2) {
|
|
300
|
+
return null;
|
|
301
|
+
}
|
|
302
|
+
const amount = readDecimal(tokens[0]);
|
|
303
|
+
const multiplier = BYTE_UNITS[tokens[1]];
|
|
304
|
+
if (amount === null || multiplier === undefined) {
|
|
305
|
+
return null;
|
|
306
|
+
}
|
|
307
|
+
return Math.round(amount * multiplier);
|
|
308
|
+
}
|
|
309
|
+
function readStatus(token) {
|
|
310
|
+
if (token === "ok") {
|
|
311
|
+
return "ok";
|
|
312
|
+
}
|
|
313
|
+
if (token === "err" || token === "todo") {
|
|
314
|
+
return "failed";
|
|
315
|
+
}
|
|
316
|
+
return null;
|
|
317
|
+
}
|
|
318
|
+
// One row of the Details table, or null when it is not one.
|
|
319
|
+
function readBackupRow(line) {
|
|
320
|
+
const tokens = line.split(" ").filter(Boolean);
|
|
321
|
+
if (tokens.length < 2 || !isDigits(tokens[0])) {
|
|
322
|
+
return null;
|
|
323
|
+
}
|
|
324
|
+
const vmid = Number(tokens[0]);
|
|
325
|
+
if (!Number.isSafeInteger(vmid) || vmid <= 0) {
|
|
326
|
+
return null;
|
|
327
|
+
}
|
|
328
|
+
// The status is the first status word after the name.
|
|
329
|
+
let statusIndex = -1;
|
|
330
|
+
for (let index = 1; index < tokens.length; index++) {
|
|
331
|
+
if (readStatus(tokens[index]) !== null && index >= 2) {
|
|
332
|
+
statusIndex = index;
|
|
333
|
+
break;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
if (statusIndex < 0) {
|
|
337
|
+
return null;
|
|
338
|
+
}
|
|
339
|
+
const rest = tokens.slice(statusIndex + 1);
|
|
340
|
+
// The size: a number followed by a byte unit.
|
|
341
|
+
let sizeIndex = -1;
|
|
342
|
+
for (let index = 0; index + 1 < rest.length; index++) {
|
|
343
|
+
if (readDecimal(rest[index]) !== null &&
|
|
344
|
+
BYTE_UNITS[rest[index + 1]] !== undefined) {
|
|
345
|
+
sizeIndex = index;
|
|
346
|
+
break;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
const durationTokens = sizeIndex >= 0 ? rest.slice(0, sizeIndex) : rest.slice(0, 1);
|
|
350
|
+
const durationSeconds = durationTokens.length > 0
|
|
351
|
+
? parseProxmoxDuration(durationTokens.join(" "))
|
|
352
|
+
: null;
|
|
353
|
+
const bytes = sizeIndex >= 0
|
|
354
|
+
? parseProxmoxBytes(`${rest[sizeIndex]} ${rest[sizeIndex + 1]}`)
|
|
355
|
+
: null;
|
|
356
|
+
const filenameTokens = sizeIndex >= 0 ? rest.slice(sizeIndex + 2) : [];
|
|
357
|
+
// A failed guest has no file: the renderer writes its empty cell "null".
|
|
358
|
+
const filename = filenameTokens.join(" ");
|
|
359
|
+
return {
|
|
360
|
+
vmid: vmid,
|
|
361
|
+
name: tokens.slice(1, statusIndex).join(" "),
|
|
362
|
+
status: readStatus(tokens[statusIndex]),
|
|
363
|
+
durationSeconds: durationSeconds,
|
|
364
|
+
bytes: bytes,
|
|
365
|
+
filename: filename.length > 0 && filename !== "null" ? filename : null,
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
/*
|
|
369
|
+
* Every guest of a backup job's message, in the table's order. Empty when
|
|
370
|
+
* the message has no Details table (another kind of notification, or a
|
|
371
|
+
* job-level failure before any guest ran).
|
|
372
|
+
*/
|
|
373
|
+
function parseProxmoxBackupDetails(message) {
|
|
374
|
+
if (!message) {
|
|
375
|
+
return [];
|
|
376
|
+
}
|
|
377
|
+
const lines = message.split("\n");
|
|
378
|
+
const results = [];
|
|
379
|
+
let state = "before";
|
|
380
|
+
for (const rawLine of lines) {
|
|
381
|
+
const line = rawLine.endsWith("\r")
|
|
382
|
+
? rawLine.substring(0, rawLine.length - 1)
|
|
383
|
+
: rawLine;
|
|
384
|
+
const trimmed = line.trim();
|
|
385
|
+
if (state === "before") {
|
|
386
|
+
if (trimmed === "Details") {
|
|
387
|
+
state = "underline";
|
|
388
|
+
}
|
|
389
|
+
continue;
|
|
390
|
+
}
|
|
391
|
+
if (state === "underline") {
|
|
392
|
+
// The ===== under "Details"; anything else means this was not it.
|
|
393
|
+
state =
|
|
394
|
+
trimmed.length > 0 && trimmed.split("=").join("") === ""
|
|
395
|
+
? "header"
|
|
396
|
+
: "before";
|
|
397
|
+
continue;
|
|
398
|
+
}
|
|
399
|
+
if (state === "header") {
|
|
400
|
+
if (trimmed.length === 0) {
|
|
401
|
+
continue;
|
|
402
|
+
}
|
|
403
|
+
if (!trimmed.startsWith("VMID")) {
|
|
404
|
+
return results;
|
|
405
|
+
}
|
|
406
|
+
state = "rows";
|
|
407
|
+
continue;
|
|
408
|
+
}
|
|
409
|
+
// Rows run until the blank line before "Total running time".
|
|
410
|
+
if (trimmed.length === 0 || trimmed.startsWith("Total ")) {
|
|
411
|
+
break;
|
|
412
|
+
}
|
|
413
|
+
const row = readBackupRow(trimmed);
|
|
414
|
+
if (row) {
|
|
415
|
+
results.push(row);
|
|
416
|
+
if (results.length >= exports.MAX_PROXMOX_BACKUP_ROWS) {
|
|
417
|
+
break;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
return results;
|
|
422
|
+
}
|
|
423
|
+
function readString(attributes, key) {
|
|
424
|
+
const value = attributes[key];
|
|
425
|
+
if (typeof value === "string" && value.trim().length > 0) {
|
|
426
|
+
return value.trim();
|
|
427
|
+
}
|
|
428
|
+
return null;
|
|
429
|
+
}
|
|
430
|
+
// A record the notification template wrote: it carries its type.
|
|
431
|
+
function isProxmoxNotificationLogRecord(attributes) {
|
|
432
|
+
return Boolean(attributes && readString(attributes, ProxmoxNotificationAttribute.Type));
|
|
433
|
+
}
|
|
434
|
+
/*
|
|
435
|
+
* What a notification record says: its type and severity (the number the
|
|
436
|
+
* record is stored with), the node and backup job it came from, and - for a
|
|
437
|
+
* backup job - each guest's result. `attributes` is the record's merged
|
|
438
|
+
* attribute map as the logs ingest builds it (resource attributes with
|
|
439
|
+
* their `resource.` prefix). Null for any other record.
|
|
440
|
+
*/
|
|
441
|
+
function stampProxmoxNotification(data) {
|
|
442
|
+
const type = readString(data.attributes, ProxmoxNotificationAttribute.Type);
|
|
443
|
+
if (!type) {
|
|
444
|
+
return null;
|
|
445
|
+
}
|
|
446
|
+
const severity = readString(data.attributes, ProxmoxNotificationAttribute.Severity) ||
|
|
447
|
+
ProxmoxNotificationSeverity.Unknown;
|
|
448
|
+
return {
|
|
449
|
+
type: type,
|
|
450
|
+
severity: severity,
|
|
451
|
+
severityNumber: getProxmoxNotificationSeverityNumber(severity),
|
|
452
|
+
jobId: readString(data.attributes, ProxmoxNotificationAttribute.JobId),
|
|
453
|
+
nodeName: readString(data.attributes, `resource.${exports.PROXMOX_NOTIFICATION_NODE_ATTRIBUTE}`) || readString(data.attributes, exports.PROXMOX_NOTIFICATION_NODE_ATTRIBUTE),
|
|
454
|
+
backupResults: type === ProxmoxNotificationType.Backup
|
|
455
|
+
? parseProxmoxBackupDetails(data.body)
|
|
456
|
+
: [],
|
|
457
|
+
};
|
|
458
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import commonJsModule from "./ProxmoxNotifications.js";
|
|
2
|
+
export const MAX_PROXMOX_BACKUP_ROWS = commonJsModule.MAX_PROXMOX_BACKUP_ROWS;
|
|
3
|
+
export const PROXMOX_NOTIFICATION_NODE_ATTRIBUTE = commonJsModule.PROXMOX_NOTIFICATION_NODE_ATTRIBUTE;
|
|
4
|
+
export const PROXMOX_NOTIFICATION_SCOPE_NAME = commonJsModule.PROXMOX_NOTIFICATION_SCOPE_NAME;
|
|
5
|
+
export const PROXMOX_NOTIFICATION_TARGET_NAME = commonJsModule.PROXMOX_NOTIFICATION_TARGET_NAME;
|
|
6
|
+
export const PROXMOX_NOTIFICATION_WEBHOOK_BODY = commonJsModule.PROXMOX_NOTIFICATION_WEBHOOK_BODY;
|
|
7
|
+
export const PROXMOX_NOTIFICATION_WEBHOOK_HEADERS = commonJsModule.PROXMOX_NOTIFICATION_WEBHOOK_HEADERS;
|
|
8
|
+
export const ProxmoxNotificationAttribute = commonJsModule.ProxmoxNotificationAttribute;
|
|
9
|
+
export const ProxmoxNotificationSeverity = commonJsModule.ProxmoxNotificationSeverity;
|
|
10
|
+
export const ProxmoxNotificationType = commonJsModule.ProxmoxNotificationType;
|
|
11
|
+
export const buildProxmoxNotificationRemoveCommands = commonJsModule.buildProxmoxNotificationRemoveCommands;
|
|
12
|
+
export const buildProxmoxNotificationSetupCommands = commonJsModule.buildProxmoxNotificationSetupCommands;
|
|
13
|
+
export const encodeProxmoxBase64 = commonJsModule.encodeProxmoxBase64;
|
|
14
|
+
export const getProxmoxNotificationLogsUrl = commonJsModule.getProxmoxNotificationLogsUrl;
|
|
15
|
+
export const getProxmoxNotificationSeverityNumber = commonJsModule.getProxmoxNotificationSeverityNumber;
|
|
16
|
+
export const isProxmoxNotificationLogRecord = commonJsModule.isProxmoxNotificationLogRecord;
|
|
17
|
+
export const parseProxmoxBackupDetails = commonJsModule.parseProxmoxBackupDetails;
|
|
18
|
+
export const parseProxmoxBytes = commonJsModule.parseProxmoxBytes;
|
|
19
|
+
export const parseProxmoxDuration = commonJsModule.parseProxmoxDuration;
|
|
20
|
+
export const stampProxmoxNotification = commonJsModule.stampProxmoxNotification;
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import { RuleRunResult, RuleRunType } from "../../Types/Rules/RuleRun.mjs";
|
|
1
|
+
import { RuleRunResourceNouns, RuleRunResult, RuleRunType } from "../../Types/Rules/RuleRun.mjs";
|
|
2
2
|
export declare function withIndefiniteArticle(noun: string): string;
|
|
3
3
|
export default class RuleRunSummary {
|
|
4
|
-
static describeConfirmation(ruleType: RuleRunType): string;
|
|
5
|
-
static describeRunNowCard(ruleType: RuleRunType): string;
|
|
4
|
+
static describeConfirmation(ruleType: RuleRunType, nouns?: RuleRunResourceNouns | undefined): string;
|
|
5
|
+
static describeRunNowCard(ruleType: RuleRunType, nouns?: RuleRunResourceNouns | undefined): string;
|
|
6
6
|
static describeBulkConfirmation(data: {
|
|
7
7
|
ruleType: RuleRunType;
|
|
8
8
|
ruleCount: number;
|
|
9
|
+
nouns?: RuleRunResourceNouns | undefined;
|
|
9
10
|
}): string;
|
|
10
11
|
static describeProgress(data: {
|
|
11
12
|
ruleType: RuleRunType;
|
|
12
13
|
result: RuleRunResult;
|
|
14
|
+
nouns?: RuleRunResourceNouns | undefined;
|
|
13
15
|
}): string;
|
|
14
16
|
static describe(data: {
|
|
15
17
|
ruleType: RuleRunType;
|
|
16
18
|
result: RuleRunResult;
|
|
19
|
+
nouns?: RuleRunResourceNouns | undefined;
|
|
17
20
|
}): string;
|
|
18
21
|
private static describeStatusPageSync;
|
|
19
22
|
private static describeSloSync;
|