@oneuptime/common 14.0.98 → 14.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/DatabaseModels/CloudAccount.d.mts +8 -0
- package/Models/DatabaseModels/CloudAccount.d.ts +8 -0
- package/Models/DatabaseModels/CloudAccount.js +167 -0
- package/Models/DatabaseModels/CloudAccountFeed.d.mts +27 -0
- package/Models/DatabaseModels/CloudAccountFeed.d.ts +27 -0
- package/Models/DatabaseModels/CloudAccountFeed.js +557 -0
- package/Models/DatabaseModels/CloudAccountFeed.mjs +3 -0
- package/Models/DatabaseModels/DataSecurityCheckSetting.d.mts +17 -0
- package/Models/DatabaseModels/DataSecurityCheckSetting.d.ts +17 -0
- package/Models/DatabaseModels/DataSecurityCheckSetting.js +304 -0
- package/Models/DatabaseModels/DataSecurityCheckSetting.mjs +2 -0
- package/Models/DatabaseModels/DataSecurityCustomDataType.d.mts +25 -0
- package/Models/DatabaseModels/DataSecurityCustomDataType.d.ts +25 -0
- package/Models/DatabaseModels/DataSecurityCustomDataType.js +431 -0
- package/Models/DatabaseModels/DataSecurityCustomDataType.mjs +2 -0
- package/Models/DatabaseModels/DataSecurityFlow.d.mts +26 -0
- package/Models/DatabaseModels/DataSecurityFlow.d.ts +26 -0
- package/Models/DatabaseModels/DataSecurityFlow.js +456 -0
- package/Models/DatabaseModels/DataSecurityFlow.mjs +2 -0
- package/Models/DatabaseModels/DataSecurityIssue.d.mts +49 -0
- package/Models/DatabaseModels/DataSecurityIssue.d.ts +49 -0
- package/Models/DatabaseModels/DataSecurityIssue.js +797 -0
- package/Models/DatabaseModels/DataSecurityIssue.mjs +2 -0
- package/Models/DatabaseModels/DataSecurityIssueFeed.d.mts +43 -0
- package/Models/DatabaseModels/DataSecurityIssueFeed.d.ts +43 -0
- package/Models/DatabaseModels/DataSecurityIssueFeed.js +382 -0
- package/Models/DatabaseModels/DataSecurityIssueFeed.mjs +3 -0
- package/Models/DatabaseModels/DataSecurityResidencyRule.d.mts +18 -0
- package/Models/DatabaseModels/DataSecurityResidencyRule.d.ts +18 -0
- package/Models/DatabaseModels/DataSecurityResidencyRule.js +331 -0
- package/Models/DatabaseModels/DataSecurityResidencyRule.mjs +2 -0
- package/Models/DatabaseModels/DataSecurityScan.d.mts +29 -0
- package/Models/DatabaseModels/DataSecurityScan.d.ts +29 -0
- package/Models/DatabaseModels/DataSecurityScan.js +520 -0
- package/Models/DatabaseModels/DataSecurityScan.mjs +2 -0
- package/Models/DatabaseModels/DataSecuritySetting.d.mts +35 -0
- package/Models/DatabaseModels/DataSecuritySetting.d.ts +35 -0
- package/Models/DatabaseModels/DataSecuritySetting.js +631 -0
- package/Models/DatabaseModels/DataSecuritySetting.mjs +2 -0
- package/Models/DatabaseModels/DataStore.d.mts +83 -0
- package/Models/DatabaseModels/DataStore.d.ts +83 -0
- package/Models/DatabaseModels/DataStore.js +1343 -0
- package/Models/DatabaseModels/DataStore.mjs +2 -0
- package/Models/DatabaseModels/DataStoreAccess.d.mts +22 -0
- package/Models/DatabaseModels/DataStoreAccess.d.ts +22 -0
- package/Models/DatabaseModels/DataStoreAccess.js +407 -0
- package/Models/DatabaseModels/DataStoreAccess.mjs +2 -0
- package/Models/DatabaseModels/DataStoreFeed.d.mts +36 -0
- package/Models/DatabaseModels/DataStoreFeed.d.ts +36 -0
- package/Models/DatabaseModels/DataStoreFeed.js +613 -0
- package/Models/DatabaseModels/DataStoreFeed.mjs +3 -0
- package/Models/DatabaseModels/DataStoreFinding.d.mts +38 -0
- package/Models/DatabaseModels/DataStoreFinding.d.ts +38 -0
- package/Models/DatabaseModels/DataStoreFinding.js +683 -0
- package/Models/DatabaseModels/DataStoreFinding.mjs +2 -0
- package/Models/DatabaseModels/DataStoreLabelRule.d.mts +21 -0
- package/Models/DatabaseModels/DataStoreLabelRule.d.ts +21 -0
- package/Models/DatabaseModels/DataStoreLabelRule.js +623 -0
- package/Models/DatabaseModels/DataStoreLabelRule.mjs +2 -0
- package/Models/DatabaseModels/DataStoreOwnerRule.d.mts +24 -0
- package/Models/DatabaseModels/DataStoreOwnerRule.d.ts +24 -0
- package/Models/DatabaseModels/DataStoreOwnerRule.js +714 -0
- package/Models/DatabaseModels/DataStoreOwnerRule.mjs +2 -0
- package/Models/DatabaseModels/DataStoreOwnerTeam.d.mts +19 -0
- package/Models/DatabaseModels/DataStoreOwnerTeam.d.ts +19 -0
- package/Models/DatabaseModels/DataStoreOwnerTeam.js +477 -0
- package/Models/DatabaseModels/DataStoreOwnerTeam.mjs +2 -0
- package/Models/DatabaseModels/DataStoreOwnerUser.d.mts +18 -0
- package/Models/DatabaseModels/DataStoreOwnerUser.d.ts +18 -0
- package/Models/DatabaseModels/DataStoreOwnerUser.js +476 -0
- package/Models/DatabaseModels/DataStoreOwnerUser.mjs +2 -0
- package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
- package/Models/DatabaseModels/GlobalConfig.js +110 -0
- package/Models/DatabaseModels/Index.js +35 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +43 -0
- package/Models/DatabaseModels/ResourceAiAgent.js +3 -1
- package/Models/DatabaseModels/SecurityEntityCriticality.js +7 -6
- package/Models/DatabaseModels/SecurityEntityRisk.js +2 -2
- package/Models/DatabaseModels/TelemetryException.d.mts +5 -0
- package/Models/DatabaseModels/TelemetryException.d.ts +5 -0
- package/Models/DatabaseModels/TelemetryException.js +170 -8
- package/Types/AI/AIChatPageContext.d.mts +4 -1
- package/Types/AI/AIChatPageContext.d.ts +4 -1
- package/Types/AI/AIChatPageContext.js +7 -0
- package/Types/AI/AIChatTypes.d.mts +6 -1
- package/Types/AI/AIChatTypes.d.ts +6 -1
- package/Types/AI/AIChatTypes.js +9 -0
- package/Types/AI/AiAffectedResources.js +5 -3
- package/Types/AI/CodeFixTaskContext.d.mts +21 -0
- package/Types/AI/CodeFixTaskContext.d.ts +21 -0
- package/Types/AI/CodeFixTaskContext.js +61 -4
- package/Types/AI/CodeFixTaskContext.mjs +2 -0
- package/Types/AI/CodeTask.d.mts +2 -0
- package/Types/AI/CodeTask.d.ts +2 -0
- package/Types/AI/CodeTask.js +4 -0
- package/Types/AI/ResourceAiAccessApi.d.mts +1 -0
- package/Types/AI/ResourceAiAccessApi.d.ts +1 -0
- package/Types/AI/ResourceAiAccessPermissions.js +6 -0
- package/Types/AutoRemediation/AiRemediationCommandPlan.d.mts +19 -0
- package/Types/AutoRemediation/AiRemediationCommandPlan.d.ts +19 -0
- package/Types/AutoRemediation/AiRemediationCommandPlan.js +85 -10
- package/Types/AutoRemediation/AiRemediationCommandPlan.mjs +4 -0
- package/Types/AutoRemediation/RemediationTryAgain.d.mts +17 -0
- package/Types/AutoRemediation/RemediationTryAgain.d.ts +17 -0
- package/Types/AutoRemediation/RemediationTryAgain.js +104 -0
- package/Types/AutoRemediation/RemediationTryAgain.mjs +6 -0
- package/Types/CloudConnection/CloudAiAgentCost.d.mts +19 -0
- package/Types/CloudConnection/CloudAiAgentCost.d.ts +19 -0
- package/Types/CloudConnection/CloudAiAgentCost.js +95 -0
- package/Types/CloudConnection/CloudAiAgentCost.mjs +15 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.mts +70 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.ts +70 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.js +1107 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.mjs +37 -0
- package/Types/CloudConnection/CloudConnectionCatalog.d.mts +8 -0
- package/Types/CloudConnection/CloudConnectionCatalog.d.ts +8 -0
- package/Types/CloudConnection/CloudConnectionCatalog.js +75 -1
- package/Types/CloudConnection/CloudConnectionCatalog.mjs +6 -0
- package/Types/CloudConnection/CloudConnectionSetupCommands.d.mts +48 -4
- package/Types/CloudConnection/CloudConnectionSetupCommands.d.ts +48 -4
- package/Types/CloudConnection/CloudConnectionSetupCommands.js +410 -16
- package/Types/CloudConnection/CloudConnectionSetupCommands.mjs +21 -0
- package/Types/CodeRepository/CodeHost.d.mts +2 -1
- package/Types/CodeRepository/CodeHost.d.ts +2 -1
- package/Types/CodeRepository/CodeHost.js +12 -5
- package/Types/CodeRepository/ProductionReview.d.mts +7 -0
- package/Types/CodeRepository/ProductionReview.d.ts +7 -0
- package/Types/CodeRepository/ProductionReview.js +67 -1
- package/Types/CodeRepository/ProductionReview.mjs +1 -0
- package/Types/DataSecurity/ComplianceFramework.d.mts +21 -0
- package/Types/DataSecurity/ComplianceFramework.d.ts +21 -0
- package/Types/DataSecurity/ComplianceFramework.js +97 -0
- package/Types/DataSecurity/ComplianceFramework.mjs +5 -0
- package/Types/DataSecurity/ComplianceRequirementCatalog.d.mts +41 -0
- package/Types/DataSecurity/ComplianceRequirementCatalog.d.ts +41 -0
- package/Types/DataSecurity/ComplianceRequirementCatalog.js +199 -0
- package/Types/DataSecurity/ComplianceRequirementCatalog.mjs +7 -0
- package/Types/DataSecurity/DataCategory.d.mts +15 -0
- package/Types/DataSecurity/DataCategory.d.ts +15 -0
- package/Types/DataSecurity/DataCategory.js +61 -0
- package/Types/DataSecurity/DataCategory.mjs +7 -0
- package/Types/DataSecurity/DataConfidence.d.mts +11 -0
- package/Types/DataSecurity/DataConfidence.d.ts +11 -0
- package/Types/DataSecurity/DataConfidence.js +49 -0
- package/Types/DataSecurity/DataConfidence.mjs +7 -0
- package/Types/DataSecurity/DataSecurityApiTypes.d.mts +106 -0
- package/Types/DataSecurity/DataSecurityApiTypes.d.ts +106 -0
- package/Types/DataSecurity/DataSecurityApiTypes.js +53 -0
- package/Types/DataSecurity/DataSecurityApiTypes.mjs +3 -0
- package/Types/DataSecurity/DataSecurityCheckCatalog.d.mts +93 -0
- package/Types/DataSecurity/DataSecurityCheckCatalog.d.ts +93 -0
- package/Types/DataSecurity/DataSecurityCheckCatalog.js +1183 -0
- package/Types/DataSecurity/DataSecurityCheckCatalog.mjs +10 -0
- package/Types/DataSecurity/DataSecurityIssueStatus.d.mts +10 -0
- package/Types/DataSecurity/DataSecurityIssueStatus.d.ts +10 -0
- package/Types/DataSecurity/DataSecurityIssueStatus.js +38 -0
- package/Types/DataSecurity/DataSecurityIssueStatus.mjs +5 -0
- package/Types/DataSecurity/DataSecurityResidency.d.mts +21 -0
- package/Types/DataSecurity/DataSecurityResidency.d.ts +21 -0
- package/Types/DataSecurity/DataSecurityResidency.js +92 -0
- package/Types/DataSecurity/DataSecurityResidency.mjs +5 -0
- package/Types/DataSecurity/DataSecurityResponseAction.d.mts +14 -0
- package/Types/DataSecurity/DataSecurityResponseAction.d.ts +14 -0
- package/Types/DataSecurity/DataSecurityResponseAction.js +115 -0
- package/Types/DataSecurity/DataSecurityResponseAction.mjs +11 -0
- package/Types/DataSecurity/DataSecurityRisk.d.mts +38 -0
- package/Types/DataSecurity/DataSecurityRisk.d.ts +38 -0
- package/Types/DataSecurity/DataSecurityRisk.js +138 -0
- package/Types/DataSecurity/DataSecurityRisk.mjs +7 -0
- package/Types/DataSecurity/DataSensitivity.d.mts +13 -0
- package/Types/DataSecurity/DataSensitivity.d.ts +13 -0
- package/Types/DataSecurity/DataSensitivity.js +68 -0
- package/Types/DataSecurity/DataSensitivity.mjs +8 -0
- package/Types/DataSecurity/DataStoreAccess.d.mts +27 -0
- package/Types/DataSecurity/DataStoreAccess.d.ts +27 -0
- package/Types/DataSecurity/DataStoreAccess.js +35 -0
- package/Types/DataSecurity/DataStoreAccess.mjs +4 -0
- package/Types/DataSecurity/DataStoreEnvironment.d.mts +11 -0
- package/Types/DataSecurity/DataStoreEnvironment.d.ts +11 -0
- package/Types/DataSecurity/DataStoreEnvironment.js +80 -0
- package/Types/DataSecurity/DataStoreEnvironment.mjs +5 -0
- package/Types/DataSecurity/DataStoreKey.d.mts +18 -0
- package/Types/DataSecurity/DataStoreKey.d.ts +18 -0
- package/Types/DataSecurity/DataStoreKey.js +49 -0
- package/Types/DataSecurity/DataStoreKey.mjs +7 -0
- package/Types/DataSecurity/DataStoreKind.d.mts +67 -0
- package/Types/DataSecurity/DataStoreKind.d.ts +67 -0
- package/Types/DataSecurity/DataStoreKind.js +230 -0
- package/Types/DataSecurity/DataStoreKind.mjs +10 -0
- package/Types/DataSecurity/DataStorePosture.d.mts +40 -0
- package/Types/DataSecurity/DataStorePosture.d.ts +40 -0
- package/Types/DataSecurity/DataStorePosture.js +100 -0
- package/Types/DataSecurity/DataStorePosture.mjs +7 -0
- package/Types/DataSecurity/DataTypeCatalog.d.mts +17 -0
- package/Types/DataSecurity/DataTypeCatalog.d.ts +17 -0
- package/Types/DataSecurity/DataTypeCatalog.js +434 -0
- package/Types/DataSecurity/DataTypeCatalog.mjs +4 -0
- package/Types/Email/EmailTemplateType.d.mts +1 -0
- package/Types/Email/EmailTemplateType.d.ts +1 -0
- package/Types/Email/EmailTemplateType.js +6 -0
- package/Types/Monitor/CephAlertTemplates.d.mts +2 -1
- package/Types/Monitor/CephAlertTemplates.d.ts +2 -1
- package/Types/Monitor/CephAlertTemplates.js +49 -0
- package/Types/Monitor/CephAlertTemplates.mjs +1 -0
- package/Types/Monitor/DockerAlertTemplates.d.mts +2 -1
- package/Types/Monitor/DockerAlertTemplates.d.ts +2 -1
- package/Types/Monitor/DockerAlertTemplates.js +109 -37
- package/Types/Monitor/DockerAlertTemplates.mjs +1 -0
- package/Types/Monitor/DockerMetricCatalog.d.mts +1 -0
- package/Types/Monitor/DockerMetricCatalog.d.ts +1 -0
- package/Types/Monitor/DockerMetricCatalog.js +26 -52
- package/Types/Monitor/DockerSwarmAlertTemplates.d.mts +1 -0
- package/Types/Monitor/DockerSwarmAlertTemplates.d.ts +1 -0
- package/Types/Monitor/DockerSwarmAlertTemplates.js +65 -8
- package/Types/Monitor/DockerSwarmAlertTemplates.mjs +1 -0
- package/Types/Monitor/DockerSwarmMetricCatalog.js +7 -4
- package/Types/Monitor/HostAlertTemplates.d.mts +2 -1
- package/Types/Monitor/HostAlertTemplates.d.ts +2 -1
- package/Types/Monitor/HostAlertTemplates.js +48 -0
- package/Types/Monitor/HostAlertTemplates.mjs +1 -0
- package/Types/Monitor/IotAlertTemplates.d.mts +1 -0
- package/Types/Monitor/IotAlertTemplates.d.ts +1 -0
- package/Types/Monitor/IotAlertTemplates.js +11 -0
- package/Types/Monitor/IotAlertTemplates.mjs +1 -0
- package/Types/Monitor/KubernetesAlertTemplates.d.mts +49 -1
- package/Types/Monitor/KubernetesAlertTemplates.d.ts +49 -1
- package/Types/Monitor/KubernetesAlertTemplates.js +392 -75
- package/Types/Monitor/KubernetesAlertTemplates.mjs +2 -0
- package/Types/Monitor/KubernetesMetricCatalog.js +12 -2
- package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.mts +4 -4
- package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.ts +4 -4
- package/Types/Monitor/MonitorCriteriaInstance.js +107 -10
- package/Types/Monitor/MonitorStep.js +50 -3
- package/Types/Monitor/MonitorStepDockerSwarmMonitor.d.mts +33 -11
- package/Types/Monitor/MonitorStepDockerSwarmMonitor.d.ts +33 -11
- package/Types/Monitor/MonitorStepDockerSwarmMonitor.js +65 -0
- package/Types/Monitor/MonitorStepKubernetesMonitor.d.mts +6 -0
- package/Types/Monitor/MonitorStepKubernetesMonitor.d.ts +6 -0
- package/Types/Monitor/MonitorStepKubernetesMonitor.js +38 -1
- package/Types/Monitor/MonitorStepKubernetesMonitor.mjs +2 -0
- package/Types/Monitor/MonitorType.d.mts +1 -0
- package/Types/Monitor/MonitorType.d.ts +1 -0
- package/Types/Monitor/MonitorType.js +18 -0
- package/Types/Monitor/PodmanAlertTemplates.d.mts +12 -1
- package/Types/Monitor/PodmanAlertTemplates.d.ts +12 -1
- package/Types/Monitor/PodmanAlertTemplates.js +161 -33
- package/Types/Monitor/PodmanAlertTemplates.mjs +2 -0
- package/Types/Monitor/PodmanMetricCatalog.d.mts +1 -0
- package/Types/Monitor/PodmanMetricCatalog.d.ts +1 -0
- package/Types/Monitor/PodmanMetricCatalog.js +26 -52
- package/Types/Monitor/ProxmoxAlertTemplates.d.mts +1 -0
- package/Types/Monitor/ProxmoxAlertTemplates.d.ts +1 -0
- package/Types/Monitor/ProxmoxAlertTemplates.js +49 -0
- package/Types/Monitor/ProxmoxAlertTemplates.mjs +1 -0
- package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.d.mts +19 -0
- package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.d.ts +19 -0
- package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.js +50 -2
- package/Types/Monitor/Recommendation/RecommendationCriteriaBuilder.mjs +2 -0
- package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.d.mts +2 -0
- package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.d.ts +2 -0
- package/Types/Monitor/SnmpMonitor/NetworkDeviceAlertPack.js +31 -2
- package/Types/Monitor/StorageArrayAlertTemplates.d.mts +2 -1
- package/Types/Monitor/StorageArrayAlertTemplates.d.ts +2 -1
- package/Types/Monitor/StorageArrayAlertTemplates.js +69 -0
- package/Types/Monitor/StorageArrayAlertTemplates.mjs +1 -0
- package/Types/Monitor/VMwareAlertTemplates.d.mts +2 -1
- package/Types/Monitor/VMwareAlertTemplates.d.ts +2 -1
- package/Types/Monitor/VMwareAlertTemplates.js +50 -0
- package/Types/Monitor/VMwareAlertTemplates.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallPersonPage.d.mts +44 -0
- package/Types/OnCallDutyPolicy/OnCallPersonPage.d.ts +44 -0
- package/Types/OnCallDutyPolicy/OnCallPersonPage.js +171 -0
- package/Types/OnCallDutyPolicy/OnCallPersonPage.mjs +14 -0
- package/Types/Permission.d.mts +51 -0
- package/Types/Permission.d.ts +51 -0
- package/Types/Permission.js +542 -0
- package/Types/Probe/ProbeCapability.d.mts +2 -1
- package/Types/Probe/ProbeCapability.d.ts +2 -1
- package/Types/Probe/ProbeCapability.js +8 -0
- package/Types/ProviderLogo/ProviderLogo.d.mts +2 -0
- package/Types/ProviderLogo/ProviderLogo.d.ts +2 -0
- package/Types/ProviderLogo/ProviderLogo.js +4 -0
- package/Types/ResourceAiAgent/AiResourceType.d.mts +7 -1
- package/Types/ResourceAiAgent/AiResourceType.d.ts +7 -1
- package/Types/ResourceAiAgent/AiResourceType.js +76 -2
- package/Types/ResourceAiAgent/AiResourceType.mjs +3 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.mts +19 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.ts +19 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.js +75 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.mjs +16 -0
- package/Types/ResourceAiAgent/ResourceAiAccess.d.mts +12 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.d.ts +12 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.js +28 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.mjs +6 -0
- package/Types/Rules/RuleCriteriaFieldRegistry.js +13 -0
- package/Types/Rules/RuleCriteriaSubject.d.mts +2 -1
- package/Types/Rules/RuleCriteriaSubject.d.ts +2 -1
- package/Types/Rules/RuleCriteriaSubject.js +3 -0
- package/Types/Rules/RuleRun.d.mts +2 -0
- package/Types/Rules/RuleRun.d.ts +2 -0
- package/Types/Rules/RuleRun.js +4 -0
- package/Types/SecurityCase/SecurityDetectionSource.d.mts +2 -1
- package/Types/SecurityCase/SecurityDetectionSource.d.ts +2 -1
- package/Types/SecurityCase/SecurityDetectionSource.js +5 -2
- package/Types/SecurityCase/SecurityEntity.d.mts +5 -0
- package/Types/SecurityCase/SecurityEntity.d.ts +5 -0
- package/Types/SecurityCase/SecurityEntity.js +39 -1
- package/Types/SecurityCase/SecurityEntity.mjs +4 -0
- package/Types/SecurityCase/SecurityEntityRisk.js +14 -6
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.d.mts +2 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.d.ts +2 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +124 -1
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.mjs +2 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.d.mts +3 -1
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.d.ts +3 -1
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorProvider.js +4 -0
- package/Types/SecurityEvent/DataSecuritySignal.d.mts +33 -0
- package/Types/SecurityEvent/DataSecuritySignal.d.ts +33 -0
- package/Types/SecurityEvent/DataSecuritySignal.js +114 -0
- package/Types/SecurityEvent/DataSecuritySignal.mjs +14 -0
- package/Types/SecurityEvent/DetectionRuleDataKind.d.mts +7 -1
- package/Types/SecurityEvent/DetectionRuleDataKind.d.ts +7 -1
- package/Types/SecurityEvent/DetectionRuleDataKind.js +74 -0
- package/Types/SecurityEvent/DetectionRuleLibrary.d.mts +2 -1
- package/Types/SecurityEvent/DetectionRuleLibrary.d.ts +2 -1
- package/Types/SecurityEvent/DetectionRuleLibrary.js +730 -0
- package/Types/SecurityEvent/OcsfEventClass.js +31 -2
- package/Types/SecurityEvent/SecurityLogFormat.d.mts +15 -0
- package/Types/SecurityEvent/SecurityLogFormat.d.ts +15 -0
- package/Types/SecurityEvent/SecurityLogFormat.js +123 -10
- package/Types/SecurityEvent/SecurityLogFormat.mjs +4 -0
- package/Types/SecurityPlaybook/SecurityPlaybookAction.d.mts +3 -0
- package/Types/SecurityPlaybook/SecurityPlaybookAction.d.ts +3 -0
- package/Types/SecurityPlaybook/SecurityPlaybookAction.js +37 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStep.d.mts +3 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStep.d.ts +3 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStep.js +9 -0
- package/Types/SecurityPlaybook/SecurityProtectedEntity.js +8 -1
- package/Types/Telemetry/ExceptionAIDigest.d.mts +31 -0
- package/Types/Telemetry/ExceptionAIDigest.d.ts +31 -0
- package/Types/Telemetry/ExceptionAIDigest.js +131 -0
- package/Types/Telemetry/ExceptionAIDigest.mjs +13 -0
- package/Types/Telemetry/ExceptionAIExplanation.d.mts +37 -0
- package/Types/Telemetry/ExceptionAIExplanation.d.ts +37 -0
- package/Types/Telemetry/ExceptionAIExplanation.js +110 -0
- package/Types/Telemetry/ExceptionAIExplanation.mjs +12 -0
- package/Types/Telemetry/TraceSpanType.d.mts +1 -1
- package/Types/Telemetry/TraceSpanType.d.ts +1 -1
- package/Types/Telemetry/TraceSpanType.js +33 -8
- package/Types/Telemetry/TraceSpanType.mjs +1 -1
- package/Types/UpdateCheck/SecurityAdvisory.d.mts +39 -0
- package/Types/UpdateCheck/SecurityAdvisory.d.ts +39 -0
- package/Types/UpdateCheck/SecurityAdvisory.js +221 -0
- package/Types/UpdateCheck/SecurityAdvisory.mjs +7 -0
- package/Types/UpdateCheck/UpdateCheckFailure.d.mts +9 -0
- package/Types/UpdateCheck/UpdateCheckFailure.d.ts +9 -0
- package/Types/UpdateCheck/UpdateCheckFailure.js +32 -0
- package/Types/UpdateCheck/UpdateCheckFailure.mjs +3 -0
- package/Types/UpdateCheck/UpdateStatus.d.mts +44 -0
- package/Types/UpdateCheck/UpdateStatus.d.ts +44 -0
- package/Types/UpdateCheck/UpdateStatus.js +195 -0
- package/Types/UpdateCheck/UpdateStatus.mjs +3 -0
- package/Types/Workspace/WorkspaceMessagePayload.d.mts +1 -0
- package/Types/Workspace/WorkspaceMessagePayload.d.ts +1 -0
- package/Utils/AiRemediation/CloudChangeDryRunPlan.d.mts +17 -0
- package/Utils/AiRemediation/CloudChangeDryRunPlan.d.ts +17 -0
- package/Utils/AiRemediation/CloudChangeDryRunPlan.js +122 -0
- package/Utils/AiRemediation/CloudChangeDryRunPlan.mjs +7 -0
- package/Utils/AiRemediation/Resource/CloudCommandPolicy.d.mts +4 -0
- package/Utils/AiRemediation/Resource/CloudCommandPolicy.d.ts +4 -0
- package/Utils/AiRemediation/Resource/CloudCommandPolicy.js +177 -0
- package/Utils/AiRemediation/Resource/CloudCommandPolicy.mjs +4 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.mts +144 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.ts +144 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.js +1964 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.mjs +48 -0
- package/Utils/AiRemediation/Resource/ResourceCommandPolicy.js +4 -0
- package/Utils/DataSecurity/CustomDataTypeDetector.d.mts +23 -0
- package/Utils/DataSecurity/CustomDataTypeDetector.d.ts +23 -0
- package/Utils/DataSecurity/CustomDataTypeDetector.js +130 -0
- package/Utils/DataSecurity/CustomDataTypeDetector.mjs +8 -0
- package/Utils/DataSecurity/Detector.d.mts +26 -0
- package/Utils/DataSecurity/Detector.d.ts +26 -0
- package/Utils/DataSecurity/Detector.js +83 -0
- package/Utils/DataSecurity/Detector.mjs +8 -0
- package/Utils/DataSecurity/Detectors/ContactDetectors.d.mts +12 -0
- package/Utils/DataSecurity/Detectors/ContactDetectors.d.ts +12 -0
- package/Utils/DataSecurity/Detectors/ContactDetectors.js +915 -0
- package/Utils/DataSecurity/Detectors/ContactDetectors.mjs +12 -0
- package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.d.mts +3 -0
- package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.d.ts +3 -0
- package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.js +52 -0
- package/Utils/DataSecurity/Detectors/DocumentMarkingDetectors.mjs +3 -0
- package/Utils/DataSecurity/Detectors/FinancialDetectors.d.mts +8 -0
- package/Utils/DataSecurity/Detectors/FinancialDetectors.d.ts +8 -0
- package/Utils/DataSecurity/Detectors/FinancialDetectors.js +566 -0
- package/Utils/DataSecurity/Detectors/FinancialDetectors.mjs +8 -0
- package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.d.mts +3 -0
- package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.d.ts +3 -0
- package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.js +2415 -0
- package/Utils/DataSecurity/Detectors/GovernmentIdDetectors.mjs +3 -0
- package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.d.mts +3 -0
- package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.d.ts +3 -0
- package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.js +258 -0
- package/Utils/DataSecurity/Detectors/HealthIdentifierDetectors.mjs +3 -0
- package/Utils/DataSecurity/Detectors/HealthRecordDetectors.d.mts +3 -0
- package/Utils/DataSecurity/Detectors/HealthRecordDetectors.d.ts +3 -0
- package/Utils/DataSecurity/Detectors/HealthRecordDetectors.js +115 -0
- package/Utils/DataSecurity/Detectors/HealthRecordDetectors.mjs +3 -0
- package/Utils/DataSecurity/Detectors/Index.d.mts +4 -0
- package/Utils/DataSecurity/Detectors/Index.d.ts +4 -0
- package/Utils/DataSecurity/Detectors/Index.js +47 -0
- package/Utils/DataSecurity/Detectors/Index.mjs +4 -0
- package/Utils/DataSecurity/Detectors/SecretDetectors.d.mts +11 -0
- package/Utils/DataSecurity/Detectors/SecretDetectors.d.ts +11 -0
- package/Utils/DataSecurity/Detectors/SecretDetectors.js +1733 -0
- package/Utils/DataSecurity/Detectors/SecretDetectors.mjs +11 -0
- package/Utils/DataSecurity/FieldClassifier.d.mts +20 -0
- package/Utils/DataSecurity/FieldClassifier.d.ts +20 -0
- package/Utils/DataSecurity/FieldClassifier.js +247 -0
- package/Utils/DataSecurity/FieldClassifier.mjs +5 -0
- package/Utils/DataSecurity/FieldCollector.d.mts +23 -0
- package/Utils/DataSecurity/FieldCollector.d.ts +23 -0
- package/Utils/DataSecurity/FieldCollector.js +81 -0
- package/Utils/DataSecurity/FieldCollector.mjs +3 -0
- package/Utils/DataSecurity/FieldNameHints.d.mts +9 -0
- package/Utils/DataSecurity/FieldNameHints.d.ts +9 -0
- package/Utils/DataSecurity/FieldNameHints.js +184 -0
- package/Utils/DataSecurity/FieldNameHints.mjs +6 -0
- package/Utils/DataSecurity/FindingTally.d.mts +44 -0
- package/Utils/DataSecurity/FindingTally.d.ts +44 -0
- package/Utils/DataSecurity/FindingTally.js +138 -0
- package/Utils/DataSecurity/FindingTally.mjs +6 -0
- package/Utils/DataSecurity/Masking.d.mts +6 -0
- package/Utils/DataSecurity/Masking.d.ts +6 -0
- package/Utils/DataSecurity/Masking.js +159 -0
- package/Utils/DataSecurity/Masking.mjs +7 -0
- package/Utils/DataSecurity/PathPattern.d.mts +3 -0
- package/Utils/DataSecurity/PathPattern.d.ts +3 -0
- package/Utils/DataSecurity/PathPattern.js +55 -0
- package/Utils/DataSecurity/PathPattern.mjs +4 -0
- package/Utils/DataSecurity/Sha256.d.mts +1 -0
- package/Utils/DataSecurity/Sha256.d.ts +1 -0
- package/Utils/DataSecurity/Sha256.js +94 -0
- package/Utils/DataSecurity/Sha256.mjs +2 -0
- package/Utils/DataSecurity/TextScanner.d.mts +35 -0
- package/Utils/DataSecurity/TextScanner.d.ts +35 -0
- package/Utils/DataSecurity/TextScanner.js +303 -0
- package/Utils/DataSecurity/TextScanner.mjs +8 -0
- package/Utils/DataSecurity/Validators.d.mts +16 -0
- package/Utils/DataSecurity/Validators.d.ts +16 -0
- package/Utils/DataSecurity/Validators.js +339 -0
- package/Utils/DataSecurity/Validators.mjs +17 -0
- package/Utils/Exceptions/ExceptionIssueState.d.mts +18 -0
- package/Utils/Exceptions/ExceptionIssueState.d.ts +18 -0
- package/Utils/Exceptions/ExceptionIssueState.js +131 -0
- package/Utils/Exceptions/ExceptionIssueState.mjs +8 -0
- package/Utils/HostCollector/HostCollectorDefaultConfig.d.mts +2 -0
- package/Utils/HostCollector/HostCollectorDefaultConfig.d.ts +2 -0
- package/Utils/HostCollector/HostCollectorDefaultConfig.js +39 -1
- package/Utils/HostCollector/HostCollectorDefaultConfig.mjs +2 -0
- package/Utils/LabelRuleImportExport.js +17 -3
- package/Utils/Monitor/PlatformResourceIdentity.js +7 -4
- package/Utils/SecurityAdvisoryMatcher.d.mts +33 -0
- package/Utils/SecurityAdvisoryMatcher.d.ts +33 -0
- package/Utils/SecurityAdvisoryMatcher.js +291 -0
- package/Utils/SecurityAdvisoryMatcher.mjs +2 -0
- package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.d.mts +24 -0
- package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.d.ts +24 -0
- package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.js +380 -0
- package/Utils/SecurityEvent/Connectors/EntraIdNormalizer.mjs +15 -0
- package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.d.mts +29 -0
- package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.d.ts +29 -0
- package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.js +527 -0
- package/Utils/SecurityEvent/Connectors/GoogleWorkspaceNormalizer.mjs +13 -0
- package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.d.mts +21 -0
- package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.d.ts +21 -0
- package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.js +365 -0
- package/Utils/SecurityEvent/Connectors/Microsoft365AuditNormalizer.mjs +11 -0
- package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.d.mts +17 -0
- package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.d.ts +17 -0
- package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.js +344 -0
- package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.mjs +12 -0
- package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.d.mts +27 -0
- package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.d.ts +27 -0
- package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.js +326 -0
- package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.mjs +10 -0
- package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.d.mts +38 -0
- package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.d.ts +38 -0
- package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.js +629 -0
- package/Utils/SecurityEvent/LogParsers/SecurityDeviceLogParser.mjs +13 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.mts +9 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.ts +9 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.js +63 -3
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.mjs +4 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogParser.js +54 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.d.mts +26 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.d.ts +26 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.js +1046 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventLogParser.mjs +11 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.d.mts +19 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.d.ts +19 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.js +724 -0
- package/Utils/SecurityEvent/LogParsers/WindowsEventRecord.mjs +7 -0
- package/Utils/SecurityEvent/SecurityRecordReading.d.mts +32 -0
- package/Utils/SecurityEvent/SecurityRecordReading.d.ts +32 -0
- package/Utils/SecurityEvent/SecurityRecordReading.js +78 -0
- package/Utils/SecurityEvent/SecurityRecordReading.mjs +2 -0
- package/Utils/Sms/OnCallPageSms.d.mts +1 -0
- package/Utils/Sms/OnCallPageSms.d.ts +1 -0
- package/Utils/Sms/OnCallPageSms.js +16 -2
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.mts +44 -0
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.ts +44 -0
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.js +223 -0
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.mjs +8 -0
- package/Utils/Syslog/LeefParser.d.mts +28 -0
- package/Utils/Syslog/LeefParser.d.ts +28 -0
- package/Utils/Syslog/LeefParser.js +326 -0
- package/Utils/Syslog/LeefParser.mjs +10 -0
- package/Utils/VersionRange.d.mts +34 -0
- package/Utils/VersionRange.d.ts +34 -0
- package/Utils/VersionRange.js +422 -0
- package/Utils/VersionRange.mjs +5 -0
- package/package.json +1 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import commonJsModule from "./KubernetesAlertTemplates.js";
|
|
2
2
|
export const buildKubernetesMonitorConfig = commonJsModule.buildKubernetesMonitorConfig;
|
|
3
3
|
export const buildKubernetesMonitorStep = commonJsModule.buildKubernetesMonitorStep;
|
|
4
|
+
export const buildKubernetesMultiQueryMonitorConfig = commonJsModule.buildKubernetesMultiQueryMonitorConfig;
|
|
4
5
|
export const buildKubernetesRatioMonitorConfig = commonJsModule.buildKubernetesRatioMonitorConfig;
|
|
5
6
|
export const buildOfflineCriteriaInstance = commonJsModule.buildOfflineCriteriaInstance;
|
|
6
7
|
export const buildOnlineCriteriaInstance = commonJsModule.buildOnlineCriteriaInstance;
|
|
7
8
|
export const getAllKubernetesAlertTemplates = commonJsModule.getAllKubernetesAlertTemplates;
|
|
8
9
|
export const getKubernetesAlertTemplateById = commonJsModule.getKubernetesAlertTemplateById;
|
|
9
10
|
export const getKubernetesAlertTemplatesByCategory = commonJsModule.getKubernetesAlertTemplatesByCategory;
|
|
11
|
+
export const getKubernetesDefaultAlertTemplateId = commonJsModule.getKubernetesDefaultAlertTemplateId;
|
|
@@ -107,13 +107,23 @@ const kubernetesMetricCatalog = [
|
|
|
107
107
|
{
|
|
108
108
|
id: "node-memory-usage",
|
|
109
109
|
friendlyName: "Node Memory Usage",
|
|
110
|
-
description: "Memory usage in bytes for nodes",
|
|
110
|
+
description: "Memory usage in bytes for nodes, page cache included. For memory pressure, use Node Memory Working Set.",
|
|
111
111
|
metricName: "k8s.node.memory.usage",
|
|
112
112
|
category: "Node",
|
|
113
113
|
defaultAggregation: MetricsAggregationType_1.default.Avg,
|
|
114
114
|
defaultResourceScope: MonitorStepKubernetesMonitor_1.KubernetesResourceScope.Node,
|
|
115
115
|
unit: "bytes",
|
|
116
116
|
},
|
|
117
|
+
{
|
|
118
|
+
id: "node-memory-working-set",
|
|
119
|
+
friendlyName: "Node Memory Working Set",
|
|
120
|
+
description: "Memory in use on the node, in bytes, without the page cache the kernel can reclaim: the figure the kubelet evicts pods on, and the one kubectl top node prints. Divide by Node Allocatable Memory for a percentage.",
|
|
121
|
+
metricName: "k8s.node.memory.working_set",
|
|
122
|
+
category: "Node",
|
|
123
|
+
defaultAggregation: MetricsAggregationType_1.default.Avg,
|
|
124
|
+
defaultResourceScope: MonitorStepKubernetesMonitor_1.KubernetesResourceScope.Node,
|
|
125
|
+
unit: "bytes",
|
|
126
|
+
},
|
|
117
127
|
{
|
|
118
128
|
id: "node-filesystem-usage",
|
|
119
129
|
friendlyName: "Node Filesystem Usage",
|
|
@@ -137,7 +147,7 @@ const kubernetesMetricCatalog = [
|
|
|
137
147
|
{
|
|
138
148
|
id: "node-condition-ready",
|
|
139
149
|
friendlyName: "Node Ready Condition",
|
|
140
|
-
description: "
|
|
150
|
+
description: "The node's Ready condition: 1 = Ready, 0 = NotReady, -1 = Unknown (the kubelet stopped reporting, as a node that went down does). Alert on 'less than 1' to catch both.",
|
|
141
151
|
metricName: "k8s.node.condition_ready",
|
|
142
152
|
category: "Node",
|
|
143
153
|
defaultAggregation: MetricsAggregationType_1.default.Min,
|
|
@@ -190,13 +190,13 @@ export interface StorageArrayResourceBreakdown extends PlatformResourceBreakdown
|
|
|
190
190
|
attributes: Dictionary<string>;
|
|
191
191
|
}
|
|
192
192
|
export interface DockerSwarmAffectedResource {
|
|
193
|
-
/** `container.name`
|
|
193
|
+
/** `resource.container.name` — a Swarm task's container is `<service>.<slot>.<taskid>`. */
|
|
194
194
|
containerName?: string | undefined;
|
|
195
|
-
/** `container.image.name
|
|
195
|
+
/** `resource.container.image.name`, when present. */
|
|
196
196
|
containerImage?: string | undefined;
|
|
197
|
-
/** `docker.swarm.node.name
|
|
197
|
+
/** `resource.docker.swarm.node.name`, when the agent knows its node's name. */
|
|
198
198
|
nodeName?: string | undefined;
|
|
199
|
-
/** `docker.swarm.service.name
|
|
199
|
+
/** `resource.docker.swarm.service.name`, Swarm's service label on the task. */
|
|
200
200
|
serviceName?: string | undefined;
|
|
201
201
|
metricValue: number;
|
|
202
202
|
/**
|
|
@@ -190,13 +190,13 @@ export interface StorageArrayResourceBreakdown extends PlatformResourceBreakdown
|
|
|
190
190
|
attributes: Dictionary<string>;
|
|
191
191
|
}
|
|
192
192
|
export interface DockerSwarmAffectedResource {
|
|
193
|
-
/** `container.name`
|
|
193
|
+
/** `resource.container.name` — a Swarm task's container is `<service>.<slot>.<taskid>`. */
|
|
194
194
|
containerName?: string | undefined;
|
|
195
|
-
/** `container.image.name
|
|
195
|
+
/** `resource.container.image.name`, when present. */
|
|
196
196
|
containerImage?: string | undefined;
|
|
197
|
-
/** `docker.swarm.node.name
|
|
197
|
+
/** `resource.docker.swarm.node.name`, when the agent knows its node's name. */
|
|
198
198
|
nodeName?: string | undefined;
|
|
199
|
-
/** `docker.swarm.service.name
|
|
199
|
+
/** `resource.docker.swarm.service.name`, Swarm's service label on the task. */
|
|
200
200
|
serviceName?: string | undefined;
|
|
201
201
|
metricValue: number;
|
|
202
202
|
/**
|
|
@@ -252,15 +252,56 @@ class MonitorCriteriaInstance extends DatabaseProperty_1.default {
|
|
|
252
252
|
return monitorCriteriaInstance;
|
|
253
253
|
}
|
|
254
254
|
/*
|
|
255
|
-
*
|
|
256
|
-
*
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
*
|
|
263
|
-
|
|
255
|
+
* An infrastructure monitor (Host, Kubernetes, Docker, Podman, Docker
|
|
256
|
+
* Swarm, Proxmox, VMware, Ceph, Storage Array, IoT Device) is online
|
|
257
|
+
* while its agent sends data: Has Data on the first query, whatever the
|
|
258
|
+
* values. These types used to share the Metrics monitor's pair below,
|
|
259
|
+
* "any value above 0 is online, any value of 0 is offline" - and a
|
|
260
|
+
* metric that is healthy at zero (container restarts, failed job pods,
|
|
261
|
+
* an idle load average) declared "is offline" on a healthy resource,
|
|
262
|
+
* while a resource that stopped sending never went offline at all.
|
|
263
|
+
*/
|
|
264
|
+
if (MonitorType_1.MonitorTypeHelper.isInfrastructureMonitor(arg.monitorType)) {
|
|
265
|
+
const monitorCriteriaInstance = new MonitorCriteriaInstance();
|
|
266
|
+
monitorCriteriaInstance.data = {
|
|
267
|
+
id: ObjectID_1.default.generate().toString(),
|
|
268
|
+
monitorStatusId: arg.monitorStatusId,
|
|
269
|
+
filterCondition: FilterCondition_1.default.Any,
|
|
270
|
+
filters: [
|
|
271
|
+
{
|
|
272
|
+
checkOn: CriteriaFilter_1.CheckOn.MetricValue,
|
|
273
|
+
filterType: CriteriaFilter_1.FilterType.IsNotEmpty,
|
|
274
|
+
metricMonitorOptions: {
|
|
275
|
+
metricAggregationType: CriteriaFilter_1.EvaluateOverTimeType.AnyValue,
|
|
276
|
+
metricAlias: arg.metricOptions &&
|
|
277
|
+
arg.metricOptions.metricAliases &&
|
|
278
|
+
arg.metricOptions.metricAliases.length > 0
|
|
279
|
+
? arg.metricOptions.metricAliases[0]
|
|
280
|
+
: undefined,
|
|
281
|
+
},
|
|
282
|
+
// No threshold: the condition asks whether there is data at all.
|
|
283
|
+
value: undefined,
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
incidents: [],
|
|
287
|
+
alerts: [],
|
|
288
|
+
changeMonitorStatus: true,
|
|
289
|
+
createIncidents: false,
|
|
290
|
+
createAlerts: false,
|
|
291
|
+
name: `Check if ${arg.monitorName} is online`,
|
|
292
|
+
description: `This criteria checks if the ${arg.monitorName} is sending data.`,
|
|
293
|
+
};
|
|
294
|
+
return monitorCriteriaInstance;
|
|
295
|
+
}
|
|
296
|
+
/*
|
|
297
|
+
* The other metric-backed type, Metrics: MonitorCriteriaEvaluator hands
|
|
298
|
+
* its criteria to MetricMonitorCriteria, which reads exactly one thing -
|
|
299
|
+
* CheckOn.MetricValue: a metric that is reporting a value means online, a
|
|
300
|
+
* metric that has gone to zero means offline. A type missing from the
|
|
301
|
+
* list would fall through to `new MonitorCriteriaInstance()` and ship an
|
|
302
|
+
* unnamed criteria whose "Is Online" filter no evaluator on this path
|
|
303
|
+
* reads - a rule that can never fire and cannot be saved, since
|
|
304
|
+
* getValidationError requires a name.
|
|
264
305
|
*/
|
|
265
306
|
if (MonitorType_1.MonitorTypeHelper.isMetricBackedMonitor(arg.monitorType)) {
|
|
266
307
|
const monitorCriteriaInstance = new MonitorCriteriaInstance();
|
|
@@ -1429,7 +1470,63 @@ class MonitorCriteriaInstance extends DatabaseProperty_1.default {
|
|
|
1429
1470
|
description: `This criteria checks if the ${arg.monitorName} has exceptions.`,
|
|
1430
1471
|
};
|
|
1431
1472
|
}
|
|
1432
|
-
|
|
1473
|
+
/*
|
|
1474
|
+
* An infrastructure monitor is offline once its agent has sent nothing
|
|
1475
|
+
* for the whole window: Has No Data on the first query. A value of 0 is
|
|
1476
|
+
* data, so a metric that is healthy at zero no longer opens "is
|
|
1477
|
+
* offline" on a healthy resource, and a resource that stopped sending
|
|
1478
|
+
* now does. Has No Data also opts the step into absent-series detection
|
|
1479
|
+
* (HostAbsenceSeries.monitorStepOptsIntoNoDataDetection).
|
|
1480
|
+
*/
|
|
1481
|
+
if (MonitorType_1.MonitorTypeHelper.isInfrastructureMonitor(arg.monitorType)) {
|
|
1482
|
+
monitorCriteriaInstance.data = {
|
|
1483
|
+
id: ObjectID_1.default.generate().toString(),
|
|
1484
|
+
monitorStatusId: arg.monitorStatusId,
|
|
1485
|
+
filterCondition: FilterCondition_1.default.Any,
|
|
1486
|
+
filters: [
|
|
1487
|
+
{
|
|
1488
|
+
checkOn: CriteriaFilter_1.CheckOn.MetricValue,
|
|
1489
|
+
filterType: CriteriaFilter_1.FilterType.IsEmpty,
|
|
1490
|
+
metricMonitorOptions: {
|
|
1491
|
+
metricAggregationType: CriteriaFilter_1.EvaluateOverTimeType.AnyValue,
|
|
1492
|
+
metricAlias: arg.metricOptions &&
|
|
1493
|
+
arg.metricOptions.metricAliases &&
|
|
1494
|
+
arg.metricOptions.metricAliases.length > 0
|
|
1495
|
+
? arg.metricOptions.metricAliases[0]
|
|
1496
|
+
: undefined,
|
|
1497
|
+
},
|
|
1498
|
+
// No threshold: the condition asks whether there is data at all.
|
|
1499
|
+
value: undefined,
|
|
1500
|
+
},
|
|
1501
|
+
],
|
|
1502
|
+
incidents: [
|
|
1503
|
+
{
|
|
1504
|
+
title: `${arg.monitorName} is offline`,
|
|
1505
|
+
description: `${arg.monitorName} has sent no data for the whole evaluation window.`,
|
|
1506
|
+
incidentSeverityId: arg.incidentSeverityId,
|
|
1507
|
+
autoResolveIncident: true,
|
|
1508
|
+
id: ObjectID_1.default.generate().toString(),
|
|
1509
|
+
onCallPolicyIds: [],
|
|
1510
|
+
},
|
|
1511
|
+
],
|
|
1512
|
+
alerts: [
|
|
1513
|
+
{
|
|
1514
|
+
title: `${arg.monitorName} is offline`,
|
|
1515
|
+
description: `${arg.monitorName} has sent no data for the whole evaluation window.`,
|
|
1516
|
+
alertSeverityId: arg.alertSeverityId,
|
|
1517
|
+
autoResolveAlert: true,
|
|
1518
|
+
id: ObjectID_1.default.generate().toString(),
|
|
1519
|
+
onCallPolicyIds: [],
|
|
1520
|
+
},
|
|
1521
|
+
],
|
|
1522
|
+
createAlerts: false,
|
|
1523
|
+
changeMonitorStatus: true,
|
|
1524
|
+
createIncidents: true,
|
|
1525
|
+
name: `Check if ${arg.monitorName} is offline`,
|
|
1526
|
+
description: `This criteria checks if the ${arg.monitorName} has stopped sending data.`,
|
|
1527
|
+
};
|
|
1528
|
+
}
|
|
1529
|
+
else if (MonitorType_1.MonitorTypeHelper.isMetricBackedMonitor(arg.monitorType)) {
|
|
1433
1530
|
monitorCriteriaInstance.data = {
|
|
1434
1531
|
id: ObjectID_1.default.generate().toString(),
|
|
1435
1532
|
monitorStatusId: arg.monitorStatusId,
|
|
@@ -1,4 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
37
|
};
|
|
@@ -18,7 +51,7 @@ const MonitorCriteria_1 = __importDefault(require("./MonitorCriteria"));
|
|
|
18
51
|
const MonitorStepLogMonitor_1 = require("./MonitorStepLogMonitor");
|
|
19
52
|
const MonitorStepSecurityEventsMonitor_1 = require("./MonitorStepSecurityEventsMonitor");
|
|
20
53
|
const MonitorStepLlmMonitor_1 = require("./MonitorStepLlmMonitor");
|
|
21
|
-
const MonitorType_1 =
|
|
54
|
+
const MonitorType_1 = __importStar(require("./MonitorType"));
|
|
22
55
|
const BrowserType_1 = __importDefault(require("./SyntheticMonitors//BrowserType"));
|
|
23
56
|
const ScreenSizeType_1 = __importDefault(require("./SyntheticMonitors/ScreenSizeType"));
|
|
24
57
|
/*
|
|
@@ -549,7 +582,7 @@ class MonitorStep extends DatabaseProperty_1.default {
|
|
|
549
582
|
};
|
|
550
583
|
}
|
|
551
584
|
static getValidationError(value, monitorType) {
|
|
552
|
-
var _a, _b;
|
|
585
|
+
var _a, _b, _c;
|
|
553
586
|
if (!value.data) {
|
|
554
587
|
return "Monitor Step is required.";
|
|
555
588
|
}
|
|
@@ -805,13 +838,27 @@ class MonitorStep extends DatabaseProperty_1.default {
|
|
|
805
838
|
return "IoT fleet is required";
|
|
806
839
|
}
|
|
807
840
|
}
|
|
841
|
+
/*
|
|
842
|
+
* An infrastructure monitor reads nothing but its metric queries. One
|
|
843
|
+
* saved without a query - its alert template and metric both left
|
|
844
|
+
* unpicked - was accepted, and then evaluated nothing, ever.
|
|
845
|
+
*/
|
|
846
|
+
if (MonitorType_1.MonitorTypeHelper.isInfrastructureMonitor(monitorType)) {
|
|
847
|
+
const hasMetricQuery = (((_b = MonitorStep.getMetricsViewConfig(value)) === null || _b === void 0 ? void 0 : _b.queryConfigs) || []).some((queryConfig) => {
|
|
848
|
+
var _a, _b, _c;
|
|
849
|
+
return Boolean((_c = (_b = (_a = queryConfig === null || queryConfig === void 0 ? void 0 : queryConfig.metricQueryData) === null || _a === void 0 ? void 0 : _a.filterData) === null || _b === void 0 ? void 0 : _b.metricName) === null || _c === void 0 ? void 0 : _c.toString().trim());
|
|
850
|
+
});
|
|
851
|
+
if (!hasMetricQuery) {
|
|
852
|
+
return "Pick an alert template or a metric to watch";
|
|
853
|
+
}
|
|
854
|
+
}
|
|
808
855
|
/*
|
|
809
856
|
* A Probe Status monitor needs only to know which probes to watch.
|
|
810
857
|
* Whether this project may watch them is the server's question
|
|
811
858
|
* (MonitorStepsProjectValidator): this check runs in the browser too.
|
|
812
859
|
*/
|
|
813
860
|
if (monitorType === MonitorType_1.default.ProbeStatus) {
|
|
814
|
-
if (MonitorStepProbeStatusMonitor_1.MonitorStepProbeStatusMonitorUtil.normalizeProbeIds((
|
|
861
|
+
if (MonitorStepProbeStatusMonitor_1.MonitorStepProbeStatusMonitorUtil.normalizeProbeIds((_c = value.data.probeStatusMonitor) === null || _c === void 0 ? void 0 : _c.probeIds).length === 0) {
|
|
815
862
|
return "Pick at least one probe to watch";
|
|
816
863
|
}
|
|
817
864
|
}
|
|
@@ -3,26 +3,28 @@ import MetricsViewConfig from "../Metrics/MetricsViewConfig.mjs";
|
|
|
3
3
|
import RollingTime from "../RollingTime/RollingTime.mjs";
|
|
4
4
|
export interface DockerSwarmResourceFilters {
|
|
5
5
|
/**
|
|
6
|
-
* → equality on
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* → equality on `resource.container.name`. A Swarm service task's
|
|
7
|
+
* container is named `<service>.<slot>.<taskid>`, so an exact container
|
|
8
|
+
* name pins one task replica.
|
|
9
9
|
*/
|
|
10
10
|
containerName?: string | undefined;
|
|
11
11
|
/**
|
|
12
|
-
* →
|
|
13
|
-
*
|
|
12
|
+
* → `resource.container.image.name`, matched with or without the digest
|
|
13
|
+
* Swarm pins a task's image to (see getContainerImageGlobs). Scopes the
|
|
14
|
+
* query to every task running a given image.
|
|
14
15
|
*/
|
|
15
16
|
containerImage?: string | undefined;
|
|
16
17
|
/**
|
|
17
|
-
* → equality on
|
|
18
|
-
* the agent
|
|
19
|
-
* Swarm node. Optional — leave empty to
|
|
18
|
+
* → equality on `resource.docker.swarm.node.name`: the node's hostname,
|
|
19
|
+
* stamped from the agent's DOCKER_SWARM_NODE_NAME. Scopes the query to
|
|
20
|
+
* the containers running on one Swarm node. Optional — leave empty to
|
|
21
|
+
* span the whole cluster.
|
|
20
22
|
*/
|
|
21
23
|
nodeName?: string | undefined;
|
|
22
24
|
/**
|
|
23
|
-
* → equality on
|
|
24
|
-
*
|
|
25
|
-
* tasks. Optional.
|
|
25
|
+
* → equality on `resource.docker.swarm.service.name`, Swarm's own
|
|
26
|
+
* `com.docker.swarm.service.name` label (a stack's service is
|
|
27
|
+
* `<stack>_<service>`). Scopes the query to one service's tasks. Optional.
|
|
26
28
|
*/
|
|
27
29
|
serviceName?: string | undefined;
|
|
28
30
|
}
|
|
@@ -34,6 +36,26 @@ export default interface MonitorStepDockerSwarmMonitor {
|
|
|
34
36
|
}
|
|
35
37
|
export declare class MonitorStepDockerSwarmMonitorUtil {
|
|
36
38
|
static getDefault(): MonitorStepDockerSwarmMonitor;
|
|
39
|
+
/**
|
|
40
|
+
* The globs (Wildcard syntax) a Container Image filter matches
|
|
41
|
+
* `resource.container.image.name` with.
|
|
42
|
+
*
|
|
43
|
+
* Swarm rewrites the image a service is deployed with before any task
|
|
44
|
+
* runs it: `docker service create` and `docker stack deploy` tag an
|
|
45
|
+
* untagged name `:latest`, then pin the reference to the digest the
|
|
46
|
+
* registry resolves it to. A task deployed from `nginx` runs, and
|
|
47
|
+
* docker_stats reports, `nginx:latest@sha256:…` — so an exact match on
|
|
48
|
+
* `nginx:latest`, the image as `docker service ls` and OneUptime's own
|
|
49
|
+
* Services and Tasks pages show it, finds nothing. This undoes both
|
|
50
|
+
* rewrites: the typed reference is matched with any digest or none, a
|
|
51
|
+
* digest typed with it is dropped (a service update pins a new one), and
|
|
52
|
+
* a name typed without a tag or a digest is also matched as `:latest`.
|
|
53
|
+
* The typed text is matched literally: a `*` in it is not a wildcard.
|
|
54
|
+
* Blank text matches no image in particular: no globs, no filter.
|
|
55
|
+
*/
|
|
56
|
+
static getContainerImageGlobs(containerImage: string): Array<string>;
|
|
57
|
+
private static withoutDigest;
|
|
58
|
+
private static hasTag;
|
|
37
59
|
static fromJSON(json: JSONObject): MonitorStepDockerSwarmMonitor;
|
|
38
60
|
static toJSON(monitor: MonitorStepDockerSwarmMonitor): JSONObject;
|
|
39
61
|
}
|
|
@@ -3,26 +3,28 @@ import MetricsViewConfig from "../Metrics/MetricsViewConfig";
|
|
|
3
3
|
import RollingTime from "../RollingTime/RollingTime";
|
|
4
4
|
export interface DockerSwarmResourceFilters {
|
|
5
5
|
/**
|
|
6
|
-
* → equality on
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* → equality on `resource.container.name`. A Swarm service task's
|
|
7
|
+
* container is named `<service>.<slot>.<taskid>`, so an exact container
|
|
8
|
+
* name pins one task replica.
|
|
9
9
|
*/
|
|
10
10
|
containerName?: string | undefined;
|
|
11
11
|
/**
|
|
12
|
-
* →
|
|
13
|
-
*
|
|
12
|
+
* → `resource.container.image.name`, matched with or without the digest
|
|
13
|
+
* Swarm pins a task's image to (see getContainerImageGlobs). Scopes the
|
|
14
|
+
* query to every task running a given image.
|
|
14
15
|
*/
|
|
15
16
|
containerImage?: string | undefined;
|
|
16
17
|
/**
|
|
17
|
-
* → equality on
|
|
18
|
-
* the agent
|
|
19
|
-
* Swarm node. Optional — leave empty to
|
|
18
|
+
* → equality on `resource.docker.swarm.node.name`: the node's hostname,
|
|
19
|
+
* stamped from the agent's DOCKER_SWARM_NODE_NAME. Scopes the query to
|
|
20
|
+
* the containers running on one Swarm node. Optional — leave empty to
|
|
21
|
+
* span the whole cluster.
|
|
20
22
|
*/
|
|
21
23
|
nodeName?: string | undefined;
|
|
22
24
|
/**
|
|
23
|
-
* → equality on
|
|
24
|
-
*
|
|
25
|
-
* tasks. Optional.
|
|
25
|
+
* → equality on `resource.docker.swarm.service.name`, Swarm's own
|
|
26
|
+
* `com.docker.swarm.service.name` label (a stack's service is
|
|
27
|
+
* `<stack>_<service>`). Scopes the query to one service's tasks. Optional.
|
|
26
28
|
*/
|
|
27
29
|
serviceName?: string | undefined;
|
|
28
30
|
}
|
|
@@ -34,6 +36,26 @@ export default interface MonitorStepDockerSwarmMonitor {
|
|
|
34
36
|
}
|
|
35
37
|
export declare class MonitorStepDockerSwarmMonitorUtil {
|
|
36
38
|
static getDefault(): MonitorStepDockerSwarmMonitor;
|
|
39
|
+
/**
|
|
40
|
+
* The globs (Wildcard syntax) a Container Image filter matches
|
|
41
|
+
* `resource.container.image.name` with.
|
|
42
|
+
*
|
|
43
|
+
* Swarm rewrites the image a service is deployed with before any task
|
|
44
|
+
* runs it: `docker service create` and `docker stack deploy` tag an
|
|
45
|
+
* untagged name `:latest`, then pin the reference to the digest the
|
|
46
|
+
* registry resolves it to. A task deployed from `nginx` runs, and
|
|
47
|
+
* docker_stats reports, `nginx:latest@sha256:…` — so an exact match on
|
|
48
|
+
* `nginx:latest`, the image as `docker service ls` and OneUptime's own
|
|
49
|
+
* Services and Tasks pages show it, finds nothing. This undoes both
|
|
50
|
+
* rewrites: the typed reference is matched with any digest or none, a
|
|
51
|
+
* digest typed with it is dropped (a service update pins a new one), and
|
|
52
|
+
* a name typed without a tag or a digest is also matched as `:latest`.
|
|
53
|
+
* The typed text is matched literally: a `*` in it is not a wildcard.
|
|
54
|
+
* Blank text matches no image in particular: no globs, no filter.
|
|
55
|
+
*/
|
|
56
|
+
static getContainerImageGlobs(containerImage: string): Array<string>;
|
|
57
|
+
private static withoutDigest;
|
|
58
|
+
private static hasTag;
|
|
37
59
|
static fromJSON(json: JSONObject): MonitorStepDockerSwarmMonitor;
|
|
38
60
|
static toJSON(monitor: MonitorStepDockerSwarmMonitor): JSONObject;
|
|
39
61
|
}
|
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.MonitorStepDockerSwarmMonitorUtil = void 0;
|
|
7
7
|
const RollingTime_1 = __importDefault(require("../RollingTime/RollingTime"));
|
|
8
|
+
const WildcardPattern_1 = require("../BaseDatabase/WildcardPattern");
|
|
8
9
|
class MonitorStepDockerSwarmMonitorUtil {
|
|
9
10
|
static getDefault() {
|
|
10
11
|
return {
|
|
@@ -17,6 +18,70 @@ class MonitorStepDockerSwarmMonitorUtil {
|
|
|
17
18
|
rollingTime: RollingTime_1.default.Past1Minute,
|
|
18
19
|
};
|
|
19
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* The globs (Wildcard syntax) a Container Image filter matches
|
|
23
|
+
* `resource.container.image.name` with.
|
|
24
|
+
*
|
|
25
|
+
* Swarm rewrites the image a service is deployed with before any task
|
|
26
|
+
* runs it: `docker service create` and `docker stack deploy` tag an
|
|
27
|
+
* untagged name `:latest`, then pin the reference to the digest the
|
|
28
|
+
* registry resolves it to. A task deployed from `nginx` runs, and
|
|
29
|
+
* docker_stats reports, `nginx:latest@sha256:…` — so an exact match on
|
|
30
|
+
* `nginx:latest`, the image as `docker service ls` and OneUptime's own
|
|
31
|
+
* Services and Tasks pages show it, finds nothing. This undoes both
|
|
32
|
+
* rewrites: the typed reference is matched with any digest or none, a
|
|
33
|
+
* digest typed with it is dropped (a service update pins a new one), and
|
|
34
|
+
* a name typed without a tag or a digest is also matched as `:latest`.
|
|
35
|
+
* The typed text is matched literally: a `*` in it is not a wildcard.
|
|
36
|
+
* Blank text matches no image in particular: no globs, no filter.
|
|
37
|
+
*/
|
|
38
|
+
static getContainerImageGlobs(containerImage) {
|
|
39
|
+
const typed = containerImage.trim();
|
|
40
|
+
const withoutDigest = MonitorStepDockerSwarmMonitorUtil.withoutDigest(typed);
|
|
41
|
+
if (!withoutDigest) {
|
|
42
|
+
// Blank, or a digest with no name: match the text as it is.
|
|
43
|
+
return typed ? [(0, WildcardPattern_1.escapeWildcards)(typed)] : [];
|
|
44
|
+
}
|
|
45
|
+
const references = [withoutDigest];
|
|
46
|
+
if (withoutDigest === typed &&
|
|
47
|
+
!MonitorStepDockerSwarmMonitorUtil.hasTag(withoutDigest)) {
|
|
48
|
+
references.push(`${withoutDigest}:latest`);
|
|
49
|
+
}
|
|
50
|
+
return references.flatMap((reference) => {
|
|
51
|
+
const literal = (0, WildcardPattern_1.escapeWildcards)(reference);
|
|
52
|
+
return [literal, `${literal}@*`];
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/*
|
|
56
|
+
* An image reference without the digest at its end (`@sha256:<hex>`, or
|
|
57
|
+
* any `@<algorithm>:<encoded>`). Read with indexOf rather than a regular
|
|
58
|
+
* expression: the value comes from a monitor's settings, with no limit on
|
|
59
|
+
* its length.
|
|
60
|
+
*/
|
|
61
|
+
static withoutDigest(reference) {
|
|
62
|
+
const at = reference.lastIndexOf("@");
|
|
63
|
+
if (at < 0) {
|
|
64
|
+
return reference;
|
|
65
|
+
}
|
|
66
|
+
const digest = reference.substring(at + 1);
|
|
67
|
+
const colon = digest.indexOf(":");
|
|
68
|
+
if (colon <= 0 ||
|
|
69
|
+
colon === digest.length - 1 ||
|
|
70
|
+
digest.includes("/") ||
|
|
71
|
+
digest.indexOf(":", colon + 1) >= 0) {
|
|
72
|
+
return reference;
|
|
73
|
+
}
|
|
74
|
+
return reference.substring(0, at);
|
|
75
|
+
}
|
|
76
|
+
/*
|
|
77
|
+
* Whether an image reference names a tag: a `:` after its last `/`. A
|
|
78
|
+
* colon before the last slash is a registry's port
|
|
79
|
+
* (`registry.example.com:5000/team/app`).
|
|
80
|
+
*/
|
|
81
|
+
static hasTag(reference) {
|
|
82
|
+
const name = reference.substring(reference.lastIndexOf("/") + 1);
|
|
83
|
+
return name.includes(":");
|
|
84
|
+
}
|
|
20
85
|
static fromJSON(json) {
|
|
21
86
|
return json;
|
|
22
87
|
}
|
|
@@ -15,6 +15,11 @@ export interface KubernetesResourceFilters {
|
|
|
15
15
|
nodeName?: string | undefined;
|
|
16
16
|
podName?: string | undefined;
|
|
17
17
|
}
|
|
18
|
+
export declare const KUBERNETES_WORKLOAD_KINDS: ReadonlyArray<{
|
|
19
|
+
label: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const DEFAULT_KUBERNETES_WORKLOAD_KIND: string;
|
|
18
23
|
export default interface MonitorStepKubernetesMonitor {
|
|
19
24
|
clusterIdentifier: string;
|
|
20
25
|
resourceScope: KubernetesResourceScope;
|
|
@@ -24,6 +29,7 @@ export default interface MonitorStepKubernetesMonitor {
|
|
|
24
29
|
}
|
|
25
30
|
export declare class MonitorStepKubernetesMonitorUtil {
|
|
26
31
|
static getDefault(): MonitorStepKubernetesMonitor;
|
|
32
|
+
static getWorkloadNameAttributeKey(resourceFilters: KubernetesResourceFilters | undefined): string | null;
|
|
27
33
|
static fromJSON(json: JSONObject): MonitorStepKubernetesMonitor;
|
|
28
34
|
static toJSON(monitor: MonitorStepKubernetesMonitor): JSONObject;
|
|
29
35
|
}
|
|
@@ -15,6 +15,11 @@ export interface KubernetesResourceFilters {
|
|
|
15
15
|
nodeName?: string | undefined;
|
|
16
16
|
podName?: string | undefined;
|
|
17
17
|
}
|
|
18
|
+
export declare const KUBERNETES_WORKLOAD_KINDS: ReadonlyArray<{
|
|
19
|
+
label: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const DEFAULT_KUBERNETES_WORKLOAD_KIND: string;
|
|
18
23
|
export default interface MonitorStepKubernetesMonitor {
|
|
19
24
|
clusterIdentifier: string;
|
|
20
25
|
resourceScope: KubernetesResourceScope;
|
|
@@ -24,6 +29,7 @@ export default interface MonitorStepKubernetesMonitor {
|
|
|
24
29
|
}
|
|
25
30
|
export declare class MonitorStepKubernetesMonitorUtil {
|
|
26
31
|
static getDefault(): MonitorStepKubernetesMonitor;
|
|
32
|
+
static getWorkloadNameAttributeKey(resourceFilters: KubernetesResourceFilters | undefined): string | null;
|
|
27
33
|
static fromJSON(json: JSONObject): MonitorStepKubernetesMonitor;
|
|
28
34
|
static toJSON(monitor: MonitorStepKubernetesMonitor): JSONObject;
|
|
29
35
|
}
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.MonitorStepKubernetesMonitorUtil = exports.KubernetesResourceScope = void 0;
|
|
6
|
+
exports.MonitorStepKubernetesMonitorUtil = exports.DEFAULT_KUBERNETES_WORKLOAD_KIND = exports.KUBERNETES_WORKLOAD_KINDS = exports.KubernetesResourceScope = void 0;
|
|
7
7
|
const RollingTime_1 = __importDefault(require("../RollingTime/RollingTime"));
|
|
8
8
|
var KubernetesResourceScope;
|
|
9
9
|
(function (KubernetesResourceScope) {
|
|
@@ -13,6 +13,21 @@ var KubernetesResourceScope;
|
|
|
13
13
|
KubernetesResourceScope["Node"] = "Node";
|
|
14
14
|
KubernetesResourceScope["Pod"] = "Pod";
|
|
15
15
|
})(KubernetesResourceScope || (exports.KubernetesResourceScope = KubernetesResourceScope = {}));
|
|
16
|
+
/*
|
|
17
|
+
* The kinds of workload a Workload Name filter can name, by the word the
|
|
18
|
+
* metrics carry them under: a pod of a StatefulSet carries
|
|
19
|
+
* `k8s.statefulset.name`, of a Deployment `k8s.deployment.name`.
|
|
20
|
+
*/
|
|
21
|
+
exports.KUBERNETES_WORKLOAD_KINDS = [
|
|
22
|
+
{ label: "Deployment", value: "deployment" },
|
|
23
|
+
{ label: "StatefulSet", value: "statefulset" },
|
|
24
|
+
{ label: "DaemonSet", value: "daemonset" },
|
|
25
|
+
{ label: "ReplicaSet", value: "replicaset" },
|
|
26
|
+
{ label: "Job", value: "job" },
|
|
27
|
+
{ label: "CronJob", value: "cronjob" },
|
|
28
|
+
];
|
|
29
|
+
// The kind a Workload Name is read as when the step names none.
|
|
30
|
+
exports.DEFAULT_KUBERNETES_WORKLOAD_KIND = "deployment";
|
|
16
31
|
class MonitorStepKubernetesMonitorUtil {
|
|
17
32
|
static getDefault() {
|
|
18
33
|
return {
|
|
@@ -26,6 +41,28 @@ class MonitorStepKubernetesMonitorUtil {
|
|
|
26
41
|
rollingTime: RollingTime_1.default.Past1Minute,
|
|
27
42
|
};
|
|
28
43
|
}
|
|
44
|
+
/*
|
|
45
|
+
* The resource attribute a Workload Name filter matches, or null when
|
|
46
|
+
* the step names no workload.
|
|
47
|
+
*
|
|
48
|
+
* The form asked only for the name and never set the kind, and the
|
|
49
|
+
* worker applied the filter only when both were set - so a monitor
|
|
50
|
+
* scoped to one workload watched every workload in the cluster. A name
|
|
51
|
+
* without a kind is read as a Deployment's, the kind the form now starts
|
|
52
|
+
* on.
|
|
53
|
+
*/
|
|
54
|
+
static getWorkloadNameAttributeKey(resourceFilters) {
|
|
55
|
+
const workloadName = ((resourceFilters === null || resourceFilters === void 0 ? void 0 : resourceFilters.workloadName) || "").trim();
|
|
56
|
+
if (!workloadName) {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
// Letters only: the kind becomes part of an attribute key.
|
|
60
|
+
const kind = ((resourceFilters === null || resourceFilters === void 0 ? void 0 : resourceFilters.workloadType) || "")
|
|
61
|
+
.trim()
|
|
62
|
+
.toLowerCase()
|
|
63
|
+
.replace(/[^a-z]/g, "");
|
|
64
|
+
return `resource.k8s.${kind || exports.DEFAULT_KUBERNETES_WORKLOAD_KIND}.name`;
|
|
65
|
+
}
|
|
29
66
|
static fromJSON(json) {
|
|
30
67
|
return json;
|
|
31
68
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import commonJsModule from "./MonitorStepKubernetesMonitor.js";
|
|
2
|
+
export const DEFAULT_KUBERNETES_WORKLOAD_KIND = commonJsModule.DEFAULT_KUBERNETES_WORKLOAD_KIND;
|
|
3
|
+
export const KUBERNETES_WORKLOAD_KINDS = commonJsModule.KUBERNETES_WORKLOAD_KINDS;
|
|
2
4
|
export const KubernetesResourceScope = commonJsModule.KubernetesResourceScope;
|
|
3
5
|
export const MonitorStepKubernetesMonitorUtil = commonJsModule.MonitorStepKubernetesMonitorUtil;
|
|
@@ -56,6 +56,7 @@ export declare class MonitorTypeHelper {
|
|
|
56
56
|
static getMonitorTypeCategories(): Array<MonitorTypeCategory>;
|
|
57
57
|
static getMetricBackedMonitorTypes(): Array<MonitorType>;
|
|
58
58
|
static isMetricBackedMonitor(monitorType: MonitorType | undefined): boolean;
|
|
59
|
+
static isInfrastructureMonitor(monitorType: MonitorType | undefined): boolean;
|
|
59
60
|
static getTelemetryMonitorTypes(): Array<MonitorType>;
|
|
60
61
|
static isTelemetryMonitor(monitorType: MonitorType): boolean;
|
|
61
62
|
static isManualMonitor(monitorType: MonitorType): boolean;
|
|
@@ -56,6 +56,7 @@ export declare class MonitorTypeHelper {
|
|
|
56
56
|
static getMonitorTypeCategories(): Array<MonitorTypeCategory>;
|
|
57
57
|
static getMetricBackedMonitorTypes(): Array<MonitorType>;
|
|
58
58
|
static isMetricBackedMonitor(monitorType: MonitorType | undefined): boolean;
|
|
59
|
+
static isInfrastructureMonitor(monitorType: MonitorType | undefined): boolean;
|
|
59
60
|
static getTelemetryMonitorTypes(): Array<MonitorType>;
|
|
60
61
|
static isTelemetryMonitor(monitorType: MonitorType): boolean;
|
|
61
62
|
static isManualMonitor(monitorType: MonitorType): boolean;
|