@oneuptime/common 14.0.97 → 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/CodeRepository.d.mts +3 -0
- package/Models/DatabaseModels/CodeRepository.d.ts +3 -0
- package/Models/DatabaseModels/CodeRepository.js +104 -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 +37 -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/SecurityCaseEvidence.d.mts +4 -0
- package/Models/DatabaseModels/SecurityCaseEvidence.d.ts +4 -0
- package/Models/DatabaseModels/SecurityCaseEvidence.js +64 -5
- package/Models/DatabaseModels/SecurityEntityCriticality.js +7 -6
- package/Models/DatabaseModels/SecurityEntityRisk.js +2 -2
- package/Models/DatabaseModels/SecurityHunt.d.mts +34 -0
- package/Models/DatabaseModels/SecurityHunt.d.ts +34 -0
- package/Models/DatabaseModels/SecurityHunt.js +608 -0
- package/Models/DatabaseModels/SecurityHunt.mjs +2 -0
- 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 +7 -1
- package/Types/AI/AIChatTypes.d.ts +7 -1
- package/Types/AI/AIChatTypes.js +9 -0
- package/Types/AI/AIRunEventType.d.mts +1 -0
- package/Types/AI/AIRunEventType.d.ts +1 -0
- package/Types/AI/AIRunEventType.js +8 -0
- package/Types/AI/AiAffectedResources.js +5 -3
- package/Types/AI/AiTokenCount.d.mts +22 -1
- package/Types/AI/AiTokenCount.d.ts +22 -1
- package/Types/AI/AiTokenCount.js +126 -57
- package/Types/AI/AiTokenCount.mjs +2 -0
- package/Types/AI/CodeFixTaskContext.d.mts +22 -0
- package/Types/AI/CodeFixTaskContext.d.ts +22 -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/CodeRepositorySetting.d.mts +1 -0
- package/Types/CodeRepository/CodeRepositorySetting.d.ts +1 -0
- package/Types/CodeRepository/CodeRepositorySetting.js +2 -0
- 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 +2 -0
- package/Types/Email/EmailTemplateType.d.ts +2 -0
- package/Types/Email/EmailTemplateType.js +8 -0
- package/Types/Link.d.mts +1 -0
- package/Types/Link.d.ts +1 -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/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 +6 -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/SecurityCaseEventEvidence.d.mts +67 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.d.ts +67 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.js +271 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.mjs +13 -0
- package/Types/SecurityCase/SecurityCaseEvidenceKind.d.mts +2 -1
- package/Types/SecurityCase/SecurityCaseEvidenceKind.d.ts +2 -1
- package/Types/SecurityCase/SecurityCaseEvidenceKind.js +11 -1
- 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/SecurityHunt.d.mts +122 -0
- package/Types/SecurityEvent/SecurityHunt.d.ts +122 -0
- package/Types/SecurityEvent/SecurityHunt.js +391 -0
- package/Types/SecurityEvent/SecurityHunt.mjs +32 -0
- 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/Workflow/RunRecord.d.mts +3 -14
- package/Types/Workflow/RunRecord.d.ts +3 -14
- package/Types/Workflow/RunRecord.js +10 -51
- package/Types/Workspace/WorkspaceMessagePayload.d.mts +1 -0
- package/Types/Workspace/WorkspaceMessagePayload.d.ts +1 -0
- package/Utils/AI/InvestigationLogStall.d.mts +38 -0
- package/Utils/AI/InvestigationLogStall.d.ts +38 -0
- package/Utils/AI/InvestigationLogStall.js +163 -0
- package/Utils/AI/InvestigationLogStall.mjs +11 -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/Project/RecordNumber.d.mts +43 -0
- package/Utils/Project/RecordNumber.d.ts +43 -0
- package/Utils/Project/RecordNumber.js +151 -0
- package/Utils/Project/RecordNumber.mjs +6 -0
- 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/SecurityCase/SecurityCaseMarkdown.d.mts +9 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.d.ts +9 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.js +20 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.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/SecurityEventSearch.d.mts +56 -0
- package/Utils/SecurityEvent/SecurityEventSearch.d.ts +56 -0
- package/Utils/SecurityEvent/SecurityEventSearch.js +422 -0
- package/Utils/SecurityEvent/SecurityEventSearch.mjs +21 -0
- package/Utils/SecurityEvent/SecurityHuntSearch.d.mts +12 -0
- package/Utils/SecurityEvent/SecurityHuntSearch.d.ts +12 -0
- package/Utils/SecurityEvent/SecurityHuntSearch.js +51 -0
- package/Utils/SecurityEvent/SecurityHuntSearch.mjs +3 -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/Suggestions/TracePerformanceFixSuggestion.d.mts +9 -0
- package/Utils/Suggestions/TracePerformanceFixSuggestion.d.ts +9 -0
- package/Utils/Suggestions/TracePerformanceFixSuggestion.js +69 -1
- package/Utils/Suggestions/TracePerformanceFixSuggestion.mjs +4 -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
|
@@ -8,13 +8,16 @@ exports.buildOfflineCriteriaInstance = buildOfflineCriteriaInstance;
|
|
|
8
8
|
exports.buildOnlineCriteriaInstance = buildOnlineCriteriaInstance;
|
|
9
9
|
exports.buildKubernetesMonitorConfig = buildKubernetesMonitorConfig;
|
|
10
10
|
exports.buildKubernetesRatioMonitorConfig = buildKubernetesRatioMonitorConfig;
|
|
11
|
+
exports.buildKubernetesMultiQueryMonitorConfig = buildKubernetesMultiQueryMonitorConfig;
|
|
11
12
|
exports.getAllKubernetesAlertTemplates = getAllKubernetesAlertTemplates;
|
|
12
13
|
exports.getKubernetesAlertTemplatesByCategory = getKubernetesAlertTemplatesByCategory;
|
|
13
14
|
exports.getKubernetesAlertTemplateById = getKubernetesAlertTemplateById;
|
|
15
|
+
exports.getKubernetesDefaultAlertTemplateId = getKubernetesDefaultAlertTemplateId;
|
|
14
16
|
const ObjectID_1 = __importDefault(require("../ObjectID"));
|
|
15
17
|
const MonitorStep_1 = __importDefault(require("./MonitorStep"));
|
|
16
18
|
const MonitorCriteria_1 = __importDefault(require("./MonitorCriteria"));
|
|
17
19
|
const RecommendationCriteriaBuilder_1 = require("./Recommendation/RecommendationCriteriaBuilder");
|
|
20
|
+
const FilterCondition_1 = __importDefault(require("../Filter/FilterCondition"));
|
|
18
21
|
const CriteriaFilter_1 = require("./CriteriaFilter");
|
|
19
22
|
const MonitorStepKubernetesMonitor_1 = require("./MonitorStepKubernetesMonitor");
|
|
20
23
|
const RollingTime_1 = __importDefault(require("../RollingTime/RollingTime"));
|
|
@@ -233,41 +236,204 @@ function buildKubernetesRatioMonitorConfig(args) {
|
|
|
233
236
|
rollingTime: args.rollingTime,
|
|
234
237
|
};
|
|
235
238
|
}
|
|
239
|
+
/**
|
|
240
|
+
* Several queries over the SAME object, and the formulas over them that the
|
|
241
|
+
* criteria compare: a counter's growth next to the gauge that qualifies it
|
|
242
|
+
* (CrashLoopBackOff), or two derived values that must both hold (an HPA at
|
|
243
|
+
* its ceiling AND above its floor).
|
|
244
|
+
*
|
|
245
|
+
* Every query carries the same group-by key set, which is what lines the
|
|
246
|
+
* series up (see buildKubernetesRatioMonitorConfig: a key only one query
|
|
247
|
+
* carries splits the fingerprints and the formula silently evaluates
|
|
248
|
+
* against an empty operand), so pass only keys every metric's receiver
|
|
249
|
+
* stamps itself.
|
|
250
|
+
*
|
|
251
|
+
* A counter's growth is the house pattern of buildDockerDeltaMonitorConfig:
|
|
252
|
+
* a Max and a Min query over the same lifetime counter and a formula
|
|
253
|
+
* subtracting them give its growth WITHIN each one-minute bucket, and a
|
|
254
|
+
* criteria with `EvaluateOverTimeType.Sum` totals those across the window.
|
|
255
|
+
* The monitor path has no cross-bucket rate, so this sees only growth
|
|
256
|
+
* between two samples of the SAME minute: at the agent's 30-second
|
|
257
|
+
* collection interval, about half of the real increments - a lower bound,
|
|
258
|
+
* which cannot manufacture a breach. At 60 seconds or slower every bucket
|
|
259
|
+
* holds one sample and the growth reads 0.
|
|
260
|
+
*/
|
|
261
|
+
function buildKubernetesMultiQueryMonitorConfig(args) {
|
|
262
|
+
return {
|
|
263
|
+
clusterIdentifier: args.clusterIdentifier,
|
|
264
|
+
resourceScope: args.resourceScope,
|
|
265
|
+
resourceFilters: {},
|
|
266
|
+
metricViewConfig: {
|
|
267
|
+
queryConfigs: args.queries.map((query) => {
|
|
268
|
+
return {
|
|
269
|
+
metricAliasData: {
|
|
270
|
+
metricVariable: query.alias,
|
|
271
|
+
title: query.alias,
|
|
272
|
+
description: query.alias,
|
|
273
|
+
legend: query.alias,
|
|
274
|
+
// Unset, so MetricResultUnitConverter passes the raw value through.
|
|
275
|
+
legendUnit: undefined,
|
|
276
|
+
},
|
|
277
|
+
metricQueryData: {
|
|
278
|
+
filterData: {
|
|
279
|
+
metricName: query.metricName,
|
|
280
|
+
attributes: {},
|
|
281
|
+
aggegationType: query.aggregationType,
|
|
282
|
+
aggregateBy: {},
|
|
283
|
+
},
|
|
284
|
+
groupByAttributeKeys: args.groupByAttributeKeys,
|
|
285
|
+
},
|
|
286
|
+
};
|
|
287
|
+
}),
|
|
288
|
+
formulaConfigs: args.formulas.map((formula) => {
|
|
289
|
+
return {
|
|
290
|
+
metricAliasData: {
|
|
291
|
+
metricVariable: formula.alias,
|
|
292
|
+
title: formula.legend,
|
|
293
|
+
description: formula.legend,
|
|
294
|
+
legend: formula.legend,
|
|
295
|
+
legendUnit: formula.legendUnit,
|
|
296
|
+
},
|
|
297
|
+
metricFormulaData: {
|
|
298
|
+
metricFormula: formula.formula,
|
|
299
|
+
},
|
|
300
|
+
};
|
|
301
|
+
}),
|
|
302
|
+
},
|
|
303
|
+
rollingTime: args.rollingTime,
|
|
304
|
+
};
|
|
305
|
+
}
|
|
236
306
|
// --- Template Definitions ---
|
|
307
|
+
const clusterStoppedReportingTemplate = {
|
|
308
|
+
id: "k8s-cluster-stopped-reporting",
|
|
309
|
+
name: "Cluster Stopped Reporting",
|
|
310
|
+
summary: "The cluster's agent sends no data for 10 minutes.",
|
|
311
|
+
// See etcdNoLeaderTemplate for why no backticks.
|
|
312
|
+
description: "Alert when the cluster's agent sends no data for ten minutes: the agent was uninstalled or keeps crashing, its API key was revoked, it lost its route to OneUptime, or the cluster's API server stopped answering it. Reads k8s.node.condition_ready, which the agent's cluster receiver reports for every node every 30 seconds while it runs. Without this, every other template simply stops being evaluated when the data stops.",
|
|
313
|
+
category: "Availability",
|
|
314
|
+
severity: "Critical",
|
|
315
|
+
getMonitorStep: (args) => {
|
|
316
|
+
const metricAlias = RecommendationCriteriaBuilder_1.STOPPED_REPORTING_METRIC_ALIAS;
|
|
317
|
+
return buildKubernetesMonitorStep(Object.assign({ kubernetesMonitor: buildKubernetesMonitorConfig({
|
|
318
|
+
clusterIdentifier: args.clusterIdentifier,
|
|
319
|
+
/*
|
|
320
|
+
* The heartbeat. The k8s_cluster receiver (the agent's Deployment,
|
|
321
|
+
* configmap-deployment.yaml, collection_interval 30s) reports the
|
|
322
|
+
* Ready condition of EVERY node on every scrape whatever its value
|
|
323
|
+
* (True 1, False 0, Unknown -1), and a cluster always has a node,
|
|
324
|
+
* so this series is never empty while the agent runs. Ungrouped
|
|
325
|
+
* and counted: the whole cluster is one series, and only a window
|
|
326
|
+
* with no row at all is the breach.
|
|
327
|
+
*/
|
|
328
|
+
metricName: "k8s.node.condition_ready",
|
|
329
|
+
metricAlias,
|
|
330
|
+
resourceScope: MonitorStepKubernetesMonitor_1.KubernetesResourceScope.Cluster,
|
|
331
|
+
rollingTime: RollingTime_1.default.Past10Minutes,
|
|
332
|
+
aggregationType: MetricsAggregationType_1.default.Count,
|
|
333
|
+
}) }, (0, RecommendationCriteriaBuilder_1.buildStoppedReportingCriteriaInstances)({
|
|
334
|
+
onlineMonitorStatusId: args.onlineMonitorStatusId,
|
|
335
|
+
offlineMonitorStatusId: args.offlineMonitorStatusId,
|
|
336
|
+
incidentSeverityId: args.defaultIncidentSeverityId,
|
|
337
|
+
alertSeverityId: args.defaultAlertSeverityId,
|
|
338
|
+
monitorName: args.monitorName,
|
|
339
|
+
metricAlias,
|
|
340
|
+
resourceNoun: "Kubernetes cluster",
|
|
341
|
+
incidentTitle: `[K8s] Cluster Stopped Reporting - ${args.monitorName}`,
|
|
342
|
+
incidentDescription: `OneUptime has received no data from this cluster's agent for ten minutes, so the cluster's other monitors have nothing to evaluate either. Check, in order: whether the agent's pods are running and what their logs say (\`kubectl get pods\` in the namespace the agent was installed in), whether its API key is still valid, and whether the cluster can reach OneUptime. The incident resolves on its own once data arrives again.`,
|
|
343
|
+
criteriaName: "Cluster Stopped Reporting - No data for 10 minutes",
|
|
344
|
+
criteriaDescription: "Triggers when the cluster's agent sends no node readiness data for the whole ten-minute window.",
|
|
345
|
+
})));
|
|
346
|
+
},
|
|
347
|
+
};
|
|
237
348
|
const crashLoopBackOffTemplate = {
|
|
238
349
|
id: "k8s-crashloopbackoff",
|
|
239
350
|
name: "CrashLoopBackOff Detection",
|
|
240
|
-
summary: "A container
|
|
351
|
+
summary: "A container restarts within 15 minutes and is mostly not ready.",
|
|
241
352
|
/*
|
|
242
353
|
* No backticks in here. `template.description` is rendered as raw JSX
|
|
243
354
|
* text on the recommendation card
|
|
244
355
|
* (KubernetesTemplatePicker.tsx renders `{template.description}` inside a
|
|
245
356
|
* <p>, not markdown), so a code span would show up as literal backticks.
|
|
246
357
|
*/
|
|
247
|
-
description: "Alert when a container
|
|
358
|
+
description: "Alert when a container restarts within fifteen minutes and was ready for less than half of them: the kubelet keeps restarting a container that keeps crashing, with a growing back-off, and it is not ready in between. Reads the growth of k8s.container.restarts (the container's restart count) and the average of k8s.container.ready. The restart count is only seen growing between two samples of the same minute, so a single restart can go unseen; a crash loop restarts again and again and is caught. One incident per container.",
|
|
248
359
|
category: "Workload",
|
|
249
360
|
severity: "Critical",
|
|
250
361
|
getMonitorStep: (args) => {
|
|
251
362
|
const metricAlias = "container_restarts";
|
|
363
|
+
const readyAlias = "container_ready";
|
|
252
364
|
return buildKubernetesMonitorStep({
|
|
253
|
-
|
|
365
|
+
/*
|
|
366
|
+
* NOT the restart count itself. `k8s.container.restarts` is the
|
|
367
|
+
* container status' restartCount, a lifetime total for the pod: a
|
|
368
|
+
* long-lived pod that crashed six times over a month opened a
|
|
369
|
+
* Critical incident at once and held it until the pod was replaced,
|
|
370
|
+
* while a container crash-looping right now with only its third
|
|
371
|
+
* restart did not fire at all.
|
|
372
|
+
*
|
|
373
|
+
* A current-state signal would be better - kube-state-metrics'
|
|
374
|
+
* kube_pod_container_status_waiting_reason{reason="CrashLoopBackOff"}
|
|
375
|
+
* or the receiver's k8s.container.status.reason - but the agent
|
|
376
|
+
* collects neither by default (kubeStateMetrics.enabled is false,
|
|
377
|
+
* and the k8s_cluster receiver runs with its default metrics).
|
|
378
|
+
*
|
|
379
|
+
* So the template reads what the agent always sends: the restart
|
|
380
|
+
* count's GROWTH in the window (the house delta, see
|
|
381
|
+
* buildKubernetesMultiQueryMonitorConfig) - a container restarting
|
|
382
|
+
* now - qualified by k8s.container.ready, so a one-off restart (an
|
|
383
|
+
* OOM kill, a node drain's replacement) of a container that came
|
|
384
|
+
* straight back and stayed ready does not page as a crash loop. A
|
|
385
|
+
* crash-looping container sits in its back-off, not ready, between
|
|
386
|
+
* restarts.
|
|
387
|
+
*/
|
|
388
|
+
kubernetesMonitor: buildKubernetesMultiQueryMonitorConfig({
|
|
254
389
|
clusterIdentifier: args.clusterIdentifier,
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
390
|
+
queries: [
|
|
391
|
+
{
|
|
392
|
+
alias: "container_restarts_max",
|
|
393
|
+
metricName: "k8s.container.restarts",
|
|
394
|
+
aggregationType: MetricsAggregationType_1.default.Max,
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
alias: "container_restarts_min",
|
|
398
|
+
metricName: "k8s.container.restarts",
|
|
399
|
+
aggregationType: MetricsAggregationType_1.default.Min,
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
alias: readyAlias,
|
|
403
|
+
metricName: "k8s.container.ready",
|
|
404
|
+
// The share of the minute's samples that were ready.
|
|
405
|
+
aggregationType: MetricsAggregationType_1.default.Avg,
|
|
406
|
+
},
|
|
407
|
+
],
|
|
408
|
+
formulas: [
|
|
409
|
+
{
|
|
410
|
+
alias: metricAlias,
|
|
411
|
+
legend: "Container Restarts (in window)",
|
|
412
|
+
formula: "container_restarts_max - container_restarts_min",
|
|
413
|
+
legendUnit: "",
|
|
414
|
+
},
|
|
415
|
+
],
|
|
260
416
|
/*
|
|
261
|
-
* Per
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
*
|
|
417
|
+
* Per container: a crash-looping container must page on its own
|
|
418
|
+
* rather than dedupe behind whichever one in the cluster crashed
|
|
419
|
+
* first. Both metrics come from the k8s_cluster receiver, which
|
|
420
|
+
* stamps all three keys itself, so the queries line up.
|
|
265
421
|
*/
|
|
266
422
|
groupByAttributeKeys: [
|
|
267
423
|
"resource.k8s.namespace.name",
|
|
268
424
|
"resource.k8s.pod.name",
|
|
269
425
|
"resource.k8s.container.name",
|
|
270
426
|
],
|
|
427
|
+
resourceScope: MonitorStepKubernetesMonitor_1.KubernetesResourceScope.Cluster,
|
|
428
|
+
/*
|
|
429
|
+
* Fifteen minutes: a crash loop's back-off doubles from 10 seconds
|
|
430
|
+
* to its 5-minute cap, so even a loop at the cap restarts three
|
|
431
|
+
* times in the window, and each restart is seen with about even
|
|
432
|
+
* odds. A longer window would see more of them, but every query
|
|
433
|
+
* reads at most 10,000 rows (LIMIT_PER_PROJECT): 15 minutes of
|
|
434
|
+
* 30-second samples covers about 330 containers.
|
|
435
|
+
*/
|
|
436
|
+
rollingTime: RollingTime_1.default.Past15Minutes,
|
|
271
437
|
}),
|
|
272
438
|
offlineCriteriaInstance: buildOfflineCriteriaInstance({
|
|
273
439
|
offlineMonitorStatusId: args.offlineMonitorStatusId,
|
|
@@ -276,15 +442,28 @@ const crashLoopBackOffTemplate = {
|
|
|
276
442
|
monitorName: args.monitorName,
|
|
277
443
|
metricAlias,
|
|
278
444
|
filterType: CriteriaFilter_1.FilterType.GreaterThan,
|
|
279
|
-
value:
|
|
445
|
+
value: 0,
|
|
446
|
+
/*
|
|
447
|
+
* Sum, not the sustained AllValues default: each sample is ONE
|
|
448
|
+
* MINUTE'S growth and most minutes of a crash loop are 0, so "every
|
|
449
|
+
* minute breached" is unreachable. The window total is the count.
|
|
450
|
+
*/
|
|
451
|
+
metricAggregationType: CriteriaFilter_1.EvaluateOverTimeType.Sum,
|
|
452
|
+
filterCondition: FilterCondition_1.default.All,
|
|
453
|
+
additionalFilters: [
|
|
454
|
+
{
|
|
455
|
+
/*
|
|
456
|
+
* Ready for less than half the window. The same container,
|
|
457
|
+
* because both filters are evaluated per series.
|
|
458
|
+
*/
|
|
459
|
+
metricAlias: readyAlias,
|
|
460
|
+
filterType: CriteriaFilter_1.FilterType.LessThan,
|
|
461
|
+
value: 0.5,
|
|
462
|
+
metricAggregationType: CriteriaFilter_1.EvaluateOverTimeType.Average,
|
|
463
|
+
},
|
|
464
|
+
],
|
|
280
465
|
incidentTitle: `[K8s] CrashLoopBackOff Detected - ${args.monitorName}`,
|
|
281
466
|
/*
|
|
282
|
-
* `k8s.container.restarts` is containerStatus.restartCount: it only
|
|
283
|
-
* ever goes up for the life of the pod object. Everything this copy
|
|
284
|
-
* says follows from that, so keep the two facts in it — the count is
|
|
285
|
-
* cumulative, and the alert therefore clears on pod replacement
|
|
286
|
-
* rather than when the crashing stops.
|
|
287
|
-
*
|
|
288
467
|
* No bare angle-bracket placeholders in here. Incident.description
|
|
289
468
|
* is a Markdown column, and the subscriber path runs it through
|
|
290
469
|
* Markdown.convertToPlainText, which strips a tag-shaped <pod> as
|
|
@@ -299,15 +478,29 @@ const crashLoopBackOffTemplate = {
|
|
|
299
478
|
* lives in the block SeriesContextEnricher appends to the
|
|
300
479
|
* description.
|
|
301
480
|
*/
|
|
302
|
-
incidentDescription: `A container
|
|
303
|
-
criteriaName: "CrashLoopBackOff -
|
|
304
|
-
criteriaDescription: "Triggers when a container's
|
|
481
|
+
incidentDescription: `A container restarted within the last fifteen minutes and was ready for less than half of them — the signature of a CrashLoopBackOff: the kubelet keeps restarting a container that keeps crashing, waiting longer each time. The alert clears once the container stops restarting for fifteen minutes or stays ready. Common causes: a crash on startup, a missing config map or secret, an OOMKill against the container's memory limit, or a failing liveness probe. The affected namespace, pod and container are named under "Affected resource" below, with the kubectl commands to inspect them — including the previous instance's logs — under "Start here".`,
|
|
482
|
+
criteriaName: "CrashLoopBackOff - Restarts in 15 min > 0, Ready < 50%",
|
|
483
|
+
criteriaDescription: "Triggers when a container's restart count grows within the monitoring window and the container was ready for less than half of it. The growth is counted between two samples of the same minute, so it is a lower bound: a single restart can go unseen, a crash loop's repeated restarts are caught.",
|
|
305
484
|
}),
|
|
306
485
|
onlineCriteriaInstance: buildOnlineCriteriaInstance({
|
|
307
486
|
onlineMonitorStatusId: args.onlineMonitorStatusId,
|
|
308
487
|
metricAlias,
|
|
309
488
|
filterType: CriteriaFilter_1.FilterType.LessThanOrEqualTo,
|
|
310
|
-
value:
|
|
489
|
+
value: 0,
|
|
490
|
+
// Must match the unhealthy side: a sum of per-minute growth.
|
|
491
|
+
metricAggregationType: CriteriaFilter_1.EvaluateOverTimeType.Sum,
|
|
492
|
+
/*
|
|
493
|
+
* Either clears it: no restart in the window, or a container ready
|
|
494
|
+
* for most of it (with the shared dead band, 55%).
|
|
495
|
+
*/
|
|
496
|
+
additionalFilters: [
|
|
497
|
+
{
|
|
498
|
+
metricAlias: readyAlias,
|
|
499
|
+
filterType: CriteriaFilter_1.FilterType.GreaterThanOrEqualTo,
|
|
500
|
+
value: 0.5,
|
|
501
|
+
metricAggregationType: CriteriaFilter_1.EvaluateOverTimeType.Average,
|
|
502
|
+
},
|
|
503
|
+
],
|
|
311
504
|
}),
|
|
312
505
|
});
|
|
313
506
|
},
|
|
@@ -358,9 +551,9 @@ const podPendingTemplate = {
|
|
|
358
551
|
* Min also avoids the trap the previous `Sum` walked into, which
|
|
359
552
|
* Common/Types/Dashboard/DashboardTemplates.ts documents: a
|
|
360
553
|
* per-resource gauge re-emitted on every scrape sums to
|
|
361
|
-
* (pods x scrapes).
|
|
362
|
-
*
|
|
363
|
-
*
|
|
554
|
+
* (pods x scrapes). k8s-node-not-ready reads its
|
|
555
|
+
* `k8s.node.condition_ready` the same way (Min per node), with a
|
|
556
|
+
* `< 1` because that metric has two bad values.
|
|
364
557
|
*/
|
|
365
558
|
aggregationType: MetricsAggregationType_1.default.Min,
|
|
366
559
|
/*
|
|
@@ -421,8 +614,8 @@ const podPendingTemplate = {
|
|
|
421
614
|
const nodeNotReadyTemplate = {
|
|
422
615
|
id: "k8s-node-not-ready",
|
|
423
616
|
name: "Node Not Ready",
|
|
424
|
-
summary: "A node reports NotReady.",
|
|
425
|
-
description: "Alert when a node condition
|
|
617
|
+
summary: "A node reports NotReady, or stops reporting its status.",
|
|
618
|
+
description: "Alert when a node's Ready condition is not True: NotReady (the kubelet reports a problem) or Unknown (the kubelet stopped reporting, which is what a node that crashed, lost power or lost its network looks like). k8s.node.condition_ready is 1 for Ready, 0 for NotReady and -1 for Unknown.",
|
|
426
619
|
category: "Node",
|
|
427
620
|
severity: "Critical",
|
|
428
621
|
getMonitorStep: (args) => {
|
|
@@ -437,8 +630,8 @@ const nodeNotReadyTemplate = {
|
|
|
437
630
|
aggregationType: MetricsAggregationType_1.default.Min,
|
|
438
631
|
/*
|
|
439
632
|
* Per node: one incident per NotReady node. Ungrouped, the Min
|
|
440
|
-
* across the fleet
|
|
441
|
-
* second node to fail dedupes behind the first one's incident.
|
|
633
|
+
* across the fleet drops below 1 as soon as ANY node is down, and
|
|
634
|
+
* the second node to fail dedupes behind the first one's incident.
|
|
442
635
|
*/
|
|
443
636
|
groupByAttributeKeys: ["resource.k8s.node.name"],
|
|
444
637
|
}),
|
|
@@ -448,18 +641,34 @@ const nodeNotReadyTemplate = {
|
|
|
448
641
|
alertSeverityId: args.defaultAlertSeverityId,
|
|
449
642
|
monitorName: args.monitorName,
|
|
450
643
|
metricAlias,
|
|
451
|
-
|
|
452
|
-
|
|
644
|
+
/*
|
|
645
|
+
* `< 1`, NOT `= 0`. The k8s_cluster receiver maps the Ready
|
|
646
|
+
* condition's status to a number: True 1, False 0, Unknown -1
|
|
647
|
+
* (k8sclusterreceiver's nodeConditionValues). A node that goes
|
|
648
|
+
* down - crashed, powered off, partitioned - does not report
|
|
649
|
+
* False: its kubelet stops posting status, and after the node
|
|
650
|
+
* monitor grace period the node controller sets Ready to
|
|
651
|
+
* Unknown. `= 0` therefore never matched the outage this template
|
|
652
|
+
* exists for; it only caught a kubelet that was alive enough to
|
|
653
|
+
* say it was unhealthy. Every value below 1 is "not Ready".
|
|
654
|
+
*/
|
|
655
|
+
filterType: CriteriaFilter_1.FilterType.LessThan,
|
|
656
|
+
value: 1,
|
|
453
657
|
incidentTitle: `[K8s] Node Not Ready - ${args.monitorName}`,
|
|
454
|
-
incidentDescription: `A Kubernetes node
|
|
455
|
-
criteriaName: "Node
|
|
456
|
-
criteriaDescription: "Triggers when
|
|
658
|
+
incidentDescription: `A Kubernetes node is not Ready: it reports NotReady, or its kubelet has stopped reporting and the node's Ready condition is Unknown, which is how a node that crashed, lost power or lost its network looks. This is a critical condition that affects all pods scheduled on this node. The affected node is named under "Affected resource" below; use the kubectl commands under "Start here" to read its conditions and list what it is still hosting.`,
|
|
659
|
+
criteriaName: "Node Not Ready - Ready Condition < 1",
|
|
660
|
+
criteriaDescription: "Triggers when a node's Ready condition stays below 1 (0 = NotReady, -1 = Unknown) for every sample in the monitoring window.",
|
|
457
661
|
}),
|
|
458
662
|
onlineCriteriaInstance: buildOnlineCriteriaInstance({
|
|
459
663
|
onlineMonitorStatusId: args.onlineMonitorStatusId,
|
|
460
664
|
metricAlias,
|
|
461
|
-
filterType: CriteriaFilter_1.FilterType.
|
|
462
|
-
value:
|
|
665
|
+
filterType: CriteriaFilter_1.FilterType.GreaterThanOrEqualTo,
|
|
666
|
+
value: 1,
|
|
667
|
+
/*
|
|
668
|
+
* Ready is exactly 1, so the shared 10% dead band (recover at
|
|
669
|
+
* `>= 1.1`) could never be reached.
|
|
670
|
+
*/
|
|
671
|
+
isBinaryMetric: true,
|
|
463
672
|
}),
|
|
464
673
|
});
|
|
465
674
|
},
|
|
@@ -519,7 +728,7 @@ const highMemoryTemplate = {
|
|
|
519
728
|
id: "k8s-high-memory",
|
|
520
729
|
name: "High Node Memory Utilization",
|
|
521
730
|
summary: "A node uses more than 85% of its allocatable memory.",
|
|
522
|
-
description: "Alert when a node's average memory
|
|
731
|
+
description: "Alert when a node's average memory working set exceeds 85% of its allocatable memory. Computed per node as k8s.node.memory.working_set ÷ k8s.node.allocatable_memory × 100 — both are bytes, so this is a true percentage. The working set is the memory the kubelet counts when it evicts pods; k8s.node.memory.usage also counts page cache the kernel can reclaim, so a node full of cache would read near 100% without being under pressure.",
|
|
523
732
|
category: "Node",
|
|
524
733
|
severity: "Warning",
|
|
525
734
|
getMonitorStep: (args) => {
|
|
@@ -527,7 +736,16 @@ const highMemoryTemplate = {
|
|
|
527
736
|
return buildKubernetesMonitorStep({
|
|
528
737
|
kubernetesMonitor: buildKubernetesRatioMonitorConfig({
|
|
529
738
|
clusterIdentifier: args.clusterIdentifier,
|
|
530
|
-
|
|
739
|
+
/*
|
|
740
|
+
* The WORKING SET, not `k8s.node.memory.usage`. kubeletstats'
|
|
741
|
+
* usage is the cgroup's total, page cache included; the working
|
|
742
|
+
* set is usage minus inactive file pages - the figure the kubelet
|
|
743
|
+
* compares against its eviction thresholds and that `kubectl top
|
|
744
|
+
* node` prints. A node whose memory is mostly reclaimable cache
|
|
745
|
+
* read near 100% on `usage` while nothing was under pressure. Both
|
|
746
|
+
* are default kubeletstats node metrics, from the same scrape.
|
|
747
|
+
*/
|
|
748
|
+
numeratorMetricName: "k8s.node.memory.working_set",
|
|
531
749
|
denominatorMetricName: "k8s.node.allocatable_memory",
|
|
532
750
|
groupByAttributeKeys: ["resource.k8s.node.name"],
|
|
533
751
|
numeratorAlias: "used_mem",
|
|
@@ -553,9 +771,9 @@ const highMemoryTemplate = {
|
|
|
553
771
|
filterType: CriteriaFilter_1.FilterType.GreaterThan,
|
|
554
772
|
value: 85,
|
|
555
773
|
incidentTitle: `[K8s] High Memory Utilization (>85%) - ${args.monitorName}`,
|
|
556
|
-
incidentDescription: `A node's average memory
|
|
557
|
-
criteriaName: "High Memory -
|
|
558
|
-
criteriaDescription: "Triggers when a node's average memory
|
|
774
|
+
incidentDescription: `A node's average memory working set has exceeded 85% of its allocatable memory. The working set leaves out page cache the kernel can reclaim, so this is memory in use: past the kubelet's eviction threshold it starts evicting pods, and the kernel OOM-kills containers. The affected node is named under "Affected resource" below; use the kubectl commands under "Start here" to list the pods on it and find the top memory consumers.`,
|
|
775
|
+
criteriaName: "High Memory - Working Set > 85%",
|
|
776
|
+
criteriaDescription: "Triggers when a node's average memory working set exceeds 85% of its allocatable memory over the monitoring window.",
|
|
559
777
|
}),
|
|
560
778
|
onlineCriteriaInstance: buildOnlineCriteriaInstance({
|
|
561
779
|
onlineMonitorStatusId: args.onlineMonitorStatusId,
|
|
@@ -662,20 +880,45 @@ const deploymentReplicaMismatchTemplate = {
|
|
|
662
880
|
const jobFailuresTemplate = {
|
|
663
881
|
id: "k8s-job-failures",
|
|
664
882
|
name: "Job Failures",
|
|
665
|
-
summary: "A job
|
|
666
|
-
description: "Alert when Kubernetes
|
|
883
|
+
summary: "A pod of a job fails within 15 minutes.",
|
|
884
|
+
description: "Alert when a pod of a Kubernetes Job fails, and clear fifteen minutes after the last failure: a Job that retried and succeeded stops alerting on its own. Reads the growth of k8s.job.failed_pods, the Job's running count of failed pods, which is only seen growing between two samples of the same minute: a Job that fails once can go unseen, one that exhausts its retries (six by default) is caught. One incident per Job.",
|
|
667
885
|
category: "Workload",
|
|
668
886
|
severity: "Warning",
|
|
669
887
|
getMonitorStep: (args) => {
|
|
670
888
|
const metricAlias = "failed_pods";
|
|
671
889
|
return buildKubernetesMonitorStep({
|
|
672
|
-
|
|
890
|
+
/*
|
|
891
|
+
* NOT the failed-pod count itself. `k8s.job.failed_pods` is the Job's
|
|
892
|
+
* status.failed, which only grows for the life of the Job object: a
|
|
893
|
+
* Job that failed once and succeeded on its retry kept "> 0" - and
|
|
894
|
+
* the alert open - until the Job was deleted, and a CronJob keeps
|
|
895
|
+
* its last failed Job (failedJobsHistoryLimit) indefinitely. Its
|
|
896
|
+
* GROWTH in the window is "a pod failed recently", which clears on
|
|
897
|
+
* its own; see buildKubernetesMultiQueryMonitorConfig for the house
|
|
898
|
+
* delta and what it can and cannot see.
|
|
899
|
+
*/
|
|
900
|
+
kubernetesMonitor: buildKubernetesMultiQueryMonitorConfig({
|
|
673
901
|
clusterIdentifier: args.clusterIdentifier,
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
902
|
+
queries: [
|
|
903
|
+
{
|
|
904
|
+
alias: "failed_pods_max",
|
|
905
|
+
metricName: "k8s.job.failed_pods",
|
|
906
|
+
aggregationType: MetricsAggregationType_1.default.Max,
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
alias: "failed_pods_min",
|
|
910
|
+
metricName: "k8s.job.failed_pods",
|
|
911
|
+
aggregationType: MetricsAggregationType_1.default.Min,
|
|
912
|
+
},
|
|
913
|
+
],
|
|
914
|
+
formulas: [
|
|
915
|
+
{
|
|
916
|
+
alias: metricAlias,
|
|
917
|
+
legend: "Failed Job Pods (in window)",
|
|
918
|
+
formula: "failed_pods_max - failed_pods_min",
|
|
919
|
+
legendUnit: "",
|
|
920
|
+
},
|
|
921
|
+
],
|
|
679
922
|
/*
|
|
680
923
|
* Per Job object — one failing Job must not hide the next one.
|
|
681
924
|
* Jobs are short-lived: when a Job is cleaned up its series stops
|
|
@@ -686,6 +929,13 @@ const jobFailuresTemplate = {
|
|
|
686
929
|
"resource.k8s.namespace.name",
|
|
687
930
|
"resource.k8s.job.name",
|
|
688
931
|
],
|
|
932
|
+
resourceScope: MonitorStepKubernetesMonitor_1.KubernetesResourceScope.Workload,
|
|
933
|
+
/*
|
|
934
|
+
* Fifteen minutes: a Job that exhausts the default backoffLimit of
|
|
935
|
+
* 6 fails seven pods over about ten minutes (back-off 10 s, 20 s,
|
|
936
|
+
* 40 s ... capped at 6 minutes), all inside one window.
|
|
937
|
+
*/
|
|
938
|
+
rollingTime: RollingTime_1.default.Past15Minutes,
|
|
689
939
|
}),
|
|
690
940
|
offlineCriteriaInstance: buildOfflineCriteriaInstance({
|
|
691
941
|
offlineMonitorStatusId: args.offlineMonitorStatusId,
|
|
@@ -695,16 +945,23 @@ const jobFailuresTemplate = {
|
|
|
695
945
|
metricAlias,
|
|
696
946
|
filterType: CriteriaFilter_1.FilterType.GreaterThan,
|
|
697
947
|
value: 0,
|
|
948
|
+
/*
|
|
949
|
+
* Sum: each sample is one minute's growth, and the window total is
|
|
950
|
+
* the number of pod failures seen.
|
|
951
|
+
*/
|
|
952
|
+
metricAggregationType: CriteriaFilter_1.EvaluateOverTimeType.Sum,
|
|
698
953
|
incidentTitle: `[K8s] Job Failure Detected - ${args.monitorName}`,
|
|
699
|
-
incidentDescription: `A Kubernetes Job
|
|
700
|
-
criteriaName: "Job Failures - Failed Pods > 0",
|
|
701
|
-
criteriaDescription: "Triggers when
|
|
954
|
+
incidentDescription: `A pod of a Kubernetes Job failed within the last fifteen minutes, so the Job's workload is failing. If the Job retries and succeeds, or nothing fails for fifteen minutes, the alert clears on its own. The affected namespace and job are named under "Affected resource" below, with the describe command under "Start here"; the failed pod's logs say why it exited.`,
|
|
955
|
+
criteriaName: "Job Failures - Failed Pods in 15 min > 0",
|
|
956
|
+
criteriaDescription: "Triggers when a Job's failed-pod count grows within the monitoring window. The growth is counted between two samples of the same minute, so it is a lower bound: a single failure can go unseen, a Job failing its retries is caught.",
|
|
702
957
|
}),
|
|
703
958
|
onlineCriteriaInstance: buildOnlineCriteriaInstance({
|
|
704
959
|
onlineMonitorStatusId: args.onlineMonitorStatusId,
|
|
705
960
|
metricAlias,
|
|
706
|
-
filterType: CriteriaFilter_1.FilterType.
|
|
961
|
+
filterType: CriteriaFilter_1.FilterType.LessThanOrEqualTo,
|
|
707
962
|
value: 0,
|
|
963
|
+
// Must match the unhealthy side: a sum of per-minute growth.
|
|
964
|
+
metricAggregationType: CriteriaFilter_1.EvaluateOverTimeType.Sum,
|
|
708
965
|
}),
|
|
709
966
|
});
|
|
710
967
|
},
|
|
@@ -1144,36 +1401,67 @@ const nodeMemoryRequestUtilizationTemplate = {
|
|
|
1144
1401
|
const hpaAtMaxReplicasTemplate = {
|
|
1145
1402
|
id: "k8s-hpa-at-max-replicas",
|
|
1146
1403
|
name: "HPA Saturated at Max Replicas",
|
|
1147
|
-
summary: "An autoscaler
|
|
1148
|
-
description: "Alert when a HorizontalPodAutoscaler
|
|
1404
|
+
summary: "An autoscaler has scaled up to 90% or more of its maximum replicas.",
|
|
1405
|
+
description: "Alert when a HorizontalPodAutoscaler has scaled above its minReplicas and runs at 90% or more of its maxReplicas. Computed per HPA as k8s.hpa.current_replicas ÷ k8s.hpa.max_replicas × 100, while k8s.hpa.current_replicas is above k8s.hpa.min_replicas — an HPA whose floor is already within 10% of its ceiling sits there at idle, and is not saturated. An HPA at its ceiling has no headroom left: load it cannot absorb by scaling turns straight into latency and errors, and a workload that reaches the ceiling and stays there is usually under-resourced per pod rather than genuinely at capacity.",
|
|
1149
1406
|
category: "Workload",
|
|
1150
1407
|
severity: "Critical",
|
|
1151
1408
|
getMonitorStep: (args) => {
|
|
1152
1409
|
const metricAlias = "hpa_replica_saturation";
|
|
1410
|
+
const aboveMinAlias = "hpa_replicas_above_min";
|
|
1153
1411
|
return buildKubernetesMonitorStep({
|
|
1154
|
-
kubernetesMonitor:
|
|
1412
|
+
kubernetesMonitor: buildKubernetesMultiQueryMonitorConfig({
|
|
1155
1413
|
clusterIdentifier: args.clusterIdentifier,
|
|
1156
|
-
|
|
1157
|
-
|
|
1414
|
+
/*
|
|
1415
|
+
* ONE series per HPA on every query (they are the same object's
|
|
1416
|
+
* status/spec fields, from the same k8s_cluster scrape), so Avg
|
|
1417
|
+
* gives the representative per-minute value independent of scrape
|
|
1418
|
+
* count. See buildKubernetesRatioMonitorConfig.
|
|
1419
|
+
*/
|
|
1420
|
+
queries: [
|
|
1421
|
+
{
|
|
1422
|
+
alias: "current_replicas",
|
|
1423
|
+
metricName: "k8s.hpa.current_replicas",
|
|
1424
|
+
aggregationType: MetricsAggregationType_1.default.Avg,
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
alias: "max_replicas",
|
|
1428
|
+
metricName: "k8s.hpa.max_replicas",
|
|
1429
|
+
aggregationType: MetricsAggregationType_1.default.Avg,
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
alias: "min_replicas",
|
|
1433
|
+
metricName: "k8s.hpa.min_replicas",
|
|
1434
|
+
aggregationType: MetricsAggregationType_1.default.Avg,
|
|
1435
|
+
},
|
|
1436
|
+
],
|
|
1437
|
+
formulas: [
|
|
1438
|
+
{
|
|
1439
|
+
alias: metricAlias,
|
|
1440
|
+
legend: "HPA Replica Saturation (%)",
|
|
1441
|
+
formula: "(current_replicas / max_replicas) * 100",
|
|
1442
|
+
legendUnit: "%",
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
/*
|
|
1446
|
+
* How far the HPA has scaled above its floor. An HPA with
|
|
1447
|
+
* minReplicas 9 and maxReplicas 10 is at 90% of its ceiling
|
|
1448
|
+
* while idle, and the ratio alone paged on it forever; with
|
|
1449
|
+
* minReplicas = maxReplicas it cannot scale at all. Requiring
|
|
1450
|
+
* current > min keeps both out: the HPA must have scaled up
|
|
1451
|
+
* to get there.
|
|
1452
|
+
*/
|
|
1453
|
+
alias: aboveMinAlias,
|
|
1454
|
+
legend: "HPA Replicas Above Minimum",
|
|
1455
|
+
formula: "current_replicas - min_replicas",
|
|
1456
|
+
legendUnit: "",
|
|
1457
|
+
},
|
|
1458
|
+
],
|
|
1158
1459
|
groupByAttributeKeys: [
|
|
1159
1460
|
"resource.k8s.namespace.name",
|
|
1160
1461
|
"resource.k8s.hpa.name",
|
|
1161
1462
|
],
|
|
1162
|
-
numeratorAlias: "current_replicas",
|
|
1163
|
-
denominatorAlias: "max_replicas",
|
|
1164
|
-
resultAlias: metricAlias,
|
|
1165
|
-
resultLegend: "HPA Replica Saturation (%)",
|
|
1166
1463
|
resourceScope: MonitorStepKubernetesMonitor_1.KubernetesResourceScope.Workload,
|
|
1167
1464
|
rollingTime: RollingTime_1.default.Past5Minutes,
|
|
1168
|
-
/*
|
|
1169
|
-
* ONE series per HPA on both sides (they are the same object's
|
|
1170
|
-
* status/spec fields), so Avg gives the representative per-minute
|
|
1171
|
-
* ratio independent of scrape count. Both come from the same
|
|
1172
|
-
* k8s_cluster scrape, so Sum would also cancel — but Avg stays
|
|
1173
|
-
* correct across restarts and missed scrapes. See
|
|
1174
|
-
* buildKubernetesRatioMonitorConfig.
|
|
1175
|
-
*/
|
|
1176
|
-
aggregationType: MetricsAggregationType_1.default.Avg,
|
|
1177
1465
|
}),
|
|
1178
1466
|
offlineCriteriaInstance: buildOfflineCriteriaInstance({
|
|
1179
1467
|
offlineMonitorStatusId: args.offlineMonitorStatusId,
|
|
@@ -1183,16 +1471,36 @@ const hpaAtMaxReplicasTemplate = {
|
|
|
1183
1471
|
metricAlias,
|
|
1184
1472
|
filterType: CriteriaFilter_1.FilterType.GreaterThanOrEqualTo,
|
|
1185
1473
|
value: 90,
|
|
1474
|
+
// Both must hold for the SAME HPA (evaluated per series).
|
|
1475
|
+
filterCondition: FilterCondition_1.default.All,
|
|
1476
|
+
additionalFilters: [
|
|
1477
|
+
{
|
|
1478
|
+
metricAlias: aboveMinAlias,
|
|
1479
|
+
filterType: CriteriaFilter_1.FilterType.GreaterThan,
|
|
1480
|
+
value: 0,
|
|
1481
|
+
},
|
|
1482
|
+
],
|
|
1186
1483
|
incidentTitle: `[K8s] HPA Saturated at Max Replicas (>=90%) - ${args.monitorName}`,
|
|
1187
|
-
incidentDescription: `A HorizontalPodAutoscaler
|
|
1188
|
-
criteriaName: "HPA Saturation - Current/Max Replicas >= 90
|
|
1189
|
-
criteriaDescription: "Triggers when
|
|
1484
|
+
incidentDescription: `A HorizontalPodAutoscaler has scaled up to 90% or more of its maxReplicas and has effectively no scaling headroom left. Any further load cannot be absorbed by scaling out, so it will surface as latency and errors instead. Check whether the workload is genuinely at capacity or whether its per-pod CPU/memory limits are set too low — an under-resourced pod gets throttled or OOMKilled, which inflates the metric the HPA scales on and drives it to the ceiling. The affected namespace and HorizontalPodAutoscaler are named under "Affected resource" below, with the describe command under "Start here" for its target and current-vs-max replicas.`,
|
|
1485
|
+
criteriaName: "HPA Saturation - Current/Max Replicas >= 90%, above minReplicas",
|
|
1486
|
+
criteriaDescription: "Triggers when an HPA's current replica count stays at 90% or more of its maxReplicas, and above its minReplicas, for every sample in the monitoring window. An HPA that sits at its floor never fires, however close the floor is to the ceiling.",
|
|
1190
1487
|
}),
|
|
1191
1488
|
onlineCriteriaInstance: buildOnlineCriteriaInstance({
|
|
1192
1489
|
onlineMonitorStatusId: args.onlineMonitorStatusId,
|
|
1193
1490
|
metricAlias,
|
|
1194
1491
|
filterType: CriteriaFilter_1.FilterType.LessThan,
|
|
1195
1492
|
value: 90,
|
|
1493
|
+
/*
|
|
1494
|
+
* Either clears it (the builder default, Any): it scaled back below
|
|
1495
|
+
* the dead band, or back down to its floor.
|
|
1496
|
+
*/
|
|
1497
|
+
additionalFilters: [
|
|
1498
|
+
{
|
|
1499
|
+
metricAlias: aboveMinAlias,
|
|
1500
|
+
filterType: CriteriaFilter_1.FilterType.LessThanOrEqualTo,
|
|
1501
|
+
value: 0,
|
|
1502
|
+
},
|
|
1503
|
+
],
|
|
1196
1504
|
}),
|
|
1197
1505
|
});
|
|
1198
1506
|
},
|
|
@@ -1319,6 +1627,7 @@ const podCpuLimitSaturationTemplate = {
|
|
|
1319
1627
|
};
|
|
1320
1628
|
function getAllKubernetesAlertTemplates() {
|
|
1321
1629
|
return [
|
|
1630
|
+
clusterStoppedReportingTemplate,
|
|
1322
1631
|
crashLoopBackOffTemplate,
|
|
1323
1632
|
podPendingTemplate,
|
|
1324
1633
|
nodeNotReadyTemplate,
|
|
@@ -1348,3 +1657,11 @@ function getKubernetesAlertTemplateById(id) {
|
|
|
1348
1657
|
return template.id === id;
|
|
1349
1658
|
});
|
|
1350
1659
|
}
|
|
1660
|
+
/*
|
|
1661
|
+
* The template a NEW Kubernetes monitor starts on: the cluster going silent.
|
|
1662
|
+
* It is the one template that still speaks when every other one has stopped
|
|
1663
|
+
* being evaluated, and it has no threshold to tune.
|
|
1664
|
+
*/
|
|
1665
|
+
function getKubernetesDefaultAlertTemplateId() {
|
|
1666
|
+
return clusterStoppedReportingTemplate.id;
|
|
1667
|
+
}
|