@oneuptime/common 17.0.0 → 17.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/AnalyticsModels/AuditLog.d.mts +10 -0
- package/Models/AnalyticsModels/AuditLog.d.ts +10 -0
- package/Models/AnalyticsModels/AuditLog.js +110 -0
- package/Models/AnalyticsModels/KubernetesCostAllocation.d.mts +14 -0
- package/Models/AnalyticsModels/KubernetesCostAllocation.d.ts +14 -0
- package/Models/AnalyticsModels/KubernetesCostAllocation.js +169 -0
- package/Models/DatabaseModels/AIPostmortemRule.js +1 -1
- package/Models/DatabaseModels/AIRun.d.mts +3 -0
- package/Models/DatabaseModels/AIRun.d.ts +3 -0
- package/Models/DatabaseModels/AIRun.js +64 -0
- package/Models/DatabaseModels/AlertGroupingRule.js +1 -1
- package/Models/DatabaseModels/AlertIncidentRule.js +1 -1
- package/Models/DatabaseModels/AlertMeasurement.js +1 -1
- package/Models/DatabaseModels/AlertReminderRule.js +1 -1
- package/Models/DatabaseModels/AlertSeverity.js +1 -1
- package/Models/DatabaseModels/AlertState.js +1 -1
- package/Models/DatabaseModels/CloudConnection.d.mts +1 -0
- package/Models/DatabaseModels/CloudConnection.d.ts +1 -0
- package/Models/DatabaseModels/CloudConnection.js +20 -0
- package/Models/DatabaseModels/DataAsset.d.mts +1 -0
- package/Models/DatabaseModels/DataAsset.d.ts +1 -0
- package/Models/DatabaseModels/DataAsset.js +17 -0
- package/Models/DatabaseModels/DataBiConnection.d.mts +1 -0
- package/Models/DatabaseModels/DataBiConnection.d.ts +1 -0
- package/Models/DatabaseModels/DataBiConnection.js +23 -0
- package/Models/DatabaseModels/DataPipeline.d.mts +5 -0
- package/Models/DatabaseModels/DataPipeline.d.ts +5 -0
- package/Models/DatabaseModels/DataPipeline.js +88 -0
- package/Models/DatabaseModels/DataPipelineOwnerRule.d.mts +21 -0
- package/Models/DatabaseModels/DataPipelineOwnerRule.d.ts +21 -0
- package/Models/DatabaseModels/DataPipelineOwnerRule.js +635 -0
- package/Models/DatabaseModels/DataPipelineOwnerRule.mjs +2 -0
- package/Models/DatabaseModels/DataSecurityComplianceSetting.d.mts +24 -0
- package/Models/DatabaseModels/DataSecurityComplianceSetting.d.ts +24 -0
- package/Models/DatabaseModels/DataSecurityComplianceSetting.js +454 -0
- package/Models/DatabaseModels/DataSecurityComplianceSetting.mjs +2 -0
- package/Models/DatabaseModels/DataStore.d.mts +1 -0
- package/Models/DatabaseModels/DataStore.d.ts +1 -0
- package/Models/DatabaseModels/DataStore.js +24 -0
- package/Models/DatabaseModels/DetectionRule.d.mts +2 -0
- package/Models/DatabaseModels/DetectionRule.d.ts +2 -0
- package/Models/DatabaseModels/DetectionRule.js +29 -0
- package/Models/DatabaseModels/DeviceManagementConnection.d.mts +25 -0
- package/Models/DatabaseModels/DeviceManagementConnection.d.ts +25 -0
- package/Models/DatabaseModels/DeviceManagementConnection.js +438 -0
- package/Models/DatabaseModels/DeviceManagementConnection.mjs +2 -0
- package/Models/DatabaseModels/GlobalConfig.d.mts +1 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +1 -0
- package/Models/DatabaseModels/GlobalConfig.js +31 -0
- package/Models/DatabaseModels/GlobalSso.d.mts +2 -0
- package/Models/DatabaseModels/GlobalSso.d.ts +2 -0
- package/Models/DatabaseModels/GlobalSso.js +56 -0
- package/Models/DatabaseModels/HostCollectorConfig.js +1 -1
- package/Models/DatabaseModels/HostLogSession.d.mts +22 -0
- package/Models/DatabaseModels/HostLogSession.d.ts +22 -0
- package/Models/DatabaseModels/HostLogSession.js +352 -0
- package/Models/DatabaseModels/HostLogSession.mjs +2 -0
- package/Models/DatabaseModels/IncidentCustomField.js +1 -1
- package/Models/DatabaseModels/IncidentFeed.d.mts +1 -0
- package/Models/DatabaseModels/IncidentFeed.d.ts +1 -0
- package/Models/DatabaseModels/IncidentFeed.js +6 -0
- package/Models/DatabaseModels/IncidentGroupingRule.js +1 -1
- package/Models/DatabaseModels/IncidentMeasurement.js +1 -1
- package/Models/DatabaseModels/IncidentPostmortemStatus.js +1 -1
- package/Models/DatabaseModels/IncidentReminderRule.js +1 -1
- package/Models/DatabaseModels/IncidentSeverity.js +1 -1
- package/Models/DatabaseModels/IncidentSlaRule.js +1 -1
- package/Models/DatabaseModels/IncidentState.js +1 -1
- package/Models/DatabaseModels/IncidentTemplateOwnerTeam.d.mts +0 -1
- package/Models/DatabaseModels/IncidentTemplateOwnerTeam.d.ts +0 -1
- package/Models/DatabaseModels/IncidentTemplateOwnerTeam.js +0 -35
- package/Models/DatabaseModels/IncidentTemplateOwnerUser.d.mts +0 -1
- package/Models/DatabaseModels/IncidentTemplateOwnerUser.d.ts +0 -1
- package/Models/DatabaseModels/IncidentTemplateOwnerUser.js +0 -40
- package/Models/DatabaseModels/IncidentVideoCall.d.mts +3 -0
- package/Models/DatabaseModels/IncidentVideoCall.d.ts +3 -0
- package/Models/DatabaseModels/IncidentVideoCall.js +105 -0
- package/Models/DatabaseModels/IncomingCallPolicyEscalationRule.js +1 -1
- package/Models/DatabaseModels/Index.js +16 -0
- package/Models/DatabaseModels/InstanceSamlSigningKey.d.mts +5 -0
- package/Models/DatabaseModels/InstanceSamlSigningKey.d.ts +5 -0
- package/Models/DatabaseModels/InstanceSamlSigningKey.js +108 -0
- package/Models/DatabaseModels/InstanceSamlSigningKey.mjs +2 -0
- package/Models/DatabaseModels/KubernetesResource.d.mts +9 -0
- package/Models/DatabaseModels/KubernetesResource.d.ts +9 -0
- package/Models/DatabaseModels/KubernetesResource.js +233 -1
- package/Models/DatabaseModels/LogDropFilter.js +1 -1
- package/Models/DatabaseModels/LogPipeline.js +1 -1
- package/Models/DatabaseModels/LogPipelineProcessor.js +1 -1
- package/Models/DatabaseModels/LogScrubRule.js +1 -1
- package/Models/DatabaseModels/ManagedDevice.d.mts +44 -0
- package/Models/DatabaseModels/ManagedDevice.d.ts +44 -0
- package/Models/DatabaseModels/ManagedDevice.js +698 -0
- package/Models/DatabaseModels/ManagedDevice.mjs +2 -0
- package/Models/DatabaseModels/ManagedDeviceApp.d.mts +20 -0
- package/Models/DatabaseModels/ManagedDeviceApp.d.ts +20 -0
- package/Models/DatabaseModels/ManagedDeviceApp.js +320 -0
- package/Models/DatabaseModels/ManagedDeviceApp.mjs +2 -0
- package/Models/DatabaseModels/MarketplaceSubscription.js +1 -1
- package/Models/DatabaseModels/MetricPipelineRule.js +1 -1
- package/Models/DatabaseModels/Monitor.d.mts +2 -0
- package/Models/DatabaseModels/Monitor.d.ts +2 -0
- package/Models/DatabaseModels/Monitor.js +127 -0
- package/Models/DatabaseModels/MonitorSecret.d.mts +2 -0
- package/Models/DatabaseModels/MonitorSecret.d.ts +2 -0
- package/Models/DatabaseModels/MonitorSecret.js +51 -1
- package/Models/DatabaseModels/MonitorStatus.js +1 -1
- package/Models/DatabaseModels/NetworkDevice.js +2 -1
- package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.d.mts +1 -0
- package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.d.ts +1 -0
- package/Models/DatabaseModels/NetworkDeviceNamingRule.js +1 -1
- package/Models/DatabaseModels/NetworkDeviceRole.js +1 -1
- package/Models/DatabaseModels/NetworkSiteAssignmentRule.js +1 -1
- package/Models/DatabaseModels/OnCallDutyPolicyUserOverride.js +28 -1
- package/Models/DatabaseModels/Probe.d.mts +1 -0
- package/Models/DatabaseModels/Probe.d.ts +1 -0
- package/Models/DatabaseModels/Probe.js +32 -0
- package/Models/DatabaseModels/Project.d.mts +3 -0
- package/Models/DatabaseModels/Project.d.ts +3 -0
- package/Models/DatabaseModels/Project.js +131 -0
- package/Models/DatabaseModels/ProjectOidc.d.mts +2 -0
- package/Models/DatabaseModels/ProjectOidc.d.ts +2 -0
- package/Models/DatabaseModels/ProjectOidc.js +57 -0
- package/Models/DatabaseModels/ProjectSso.d.mts +4 -0
- package/Models/DatabaseModels/ProjectSso.d.ts +4 -0
- package/Models/DatabaseModels/ProjectSso.js +147 -0
- package/Models/DatabaseModels/PublicNoteApprovalStep.js +1 -1
- package/Models/DatabaseModels/RumApplication.d.mts +3 -0
- package/Models/DatabaseModels/RumApplication.d.ts +3 -0
- package/Models/DatabaseModels/RumApplication.js +154 -0
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceReminderRule.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceState.js +1 -1
- package/Models/DatabaseModels/SecurityCasePriority.js +1 -1
- package/Models/DatabaseModels/SecurityCaseStatus.js +1 -1
- package/Models/DatabaseModels/SecurityDetection.d.mts +2 -1
- package/Models/DatabaseModels/SecurityDetection.d.ts +2 -1
- package/Models/DatabaseModels/SecurityDetection.js +32 -0
- package/Models/DatabaseModels/ServiceAINote.d.mts +22 -0
- package/Models/DatabaseModels/ServiceAINote.d.ts +22 -0
- package/Models/DatabaseModels/ServiceAINote.js +331 -0
- package/Models/DatabaseModels/ServiceAINote.mjs +7 -0
- package/Models/DatabaseModels/ServiceOwnerTeam.d.mts +1 -0
- package/Models/DatabaseModels/ServiceOwnerTeam.d.ts +1 -0
- package/Models/DatabaseModels/ServiceOwnerTeam.js +40 -0
- package/Models/DatabaseModels/ServiceOwnerUser.d.mts +1 -0
- package/Models/DatabaseModels/ServiceOwnerUser.d.ts +1 -0
- package/Models/DatabaseModels/ServiceOwnerUser.js +40 -0
- package/Models/DatabaseModels/StatusPageFooterLink.js +1 -1
- package/Models/DatabaseModels/StatusPageHeaderLink.js +1 -1
- package/Models/DatabaseModels/StatusPageHistoryChartBarColorRule.js +1 -1
- package/Models/DatabaseModels/StorageArrayResource.js +2 -1
- package/Models/DatabaseModels/Team.d.mts +1 -0
- package/Models/DatabaseModels/Team.d.ts +1 -0
- package/Models/DatabaseModels/Team.js +42 -0
- package/Models/DatabaseModels/TeamMember.d.mts +1 -0
- package/Models/DatabaseModels/TeamMember.d.ts +1 -0
- package/Models/DatabaseModels/TeamMember.js +47 -0
- package/Models/DatabaseModels/TraceDropFilter.js +1 -1
- package/Models/DatabaseModels/TracePipeline.js +1 -1
- package/Models/DatabaseModels/TracePipelineProcessor.js +1 -1
- package/Models/DatabaseModels/TraceScrubRule.js +1 -1
- package/Models/DatabaseModels/UserSession.js +12 -8
- package/Models/DatabaseModels/Workflow.d.mts +11 -0
- package/Models/DatabaseModels/Workflow.d.ts +11 -0
- package/Models/DatabaseModels/Workflow.js +316 -0
- package/Models/DatabaseModels/WorkflowLog.d.mts +7 -0
- package/Models/DatabaseModels/WorkflowLog.d.ts +7 -0
- package/Models/DatabaseModels/WorkflowLog.js +211 -0
- package/Server/Services/DatabaseService.d.mts +26 -0
- package/Server/Services/DatabaseService.d.ts +26 -0
- package/Server/Types/Database/DeleteById.d.mts +2 -0
- package/Server/Types/Database/DeleteById.d.ts +2 -0
- package/Server/Types/Database/DeleteOneBy.d.mts +2 -0
- package/Server/Types/Database/DeleteOneBy.d.ts +2 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.mts +6 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.ts +6 -0
- package/Types/AI/AIActionWords.d.mts +35 -0
- package/Types/AI/AIActionWords.d.ts +35 -0
- package/Types/AI/AIActionWords.js +133 -1
- package/Types/AI/AIActionWords.mjs +2 -0
- package/Types/AI/AIAgentRunLimits.d.mts +7 -0
- package/Types/AI/AIAgentRunLimits.d.ts +7 -0
- package/Types/AI/AIAgentRunLimits.js +39 -2
- package/Types/AI/AIAgentRunLimits.mjs +3 -0
- package/Types/AI/AIChatTestPage.d.mts +11 -0
- package/Types/AI/AIChatTestPage.d.ts +11 -0
- package/Types/AI/AIChatTestPage.js +107 -0
- package/Types/AI/AIChatTestPage.mjs +6 -0
- package/Types/AI/AIChatTypes.d.mts +6 -0
- package/Types/AI/AIChatTypes.d.ts +6 -0
- package/Types/AI/AIReadTableWords.d.mts +6 -0
- package/Types/AI/AIReadTableWords.d.ts +6 -0
- package/Types/AI/AIReadTableWords.js +13 -0
- package/Types/AI/AIRunAttempt.d.mts +2 -0
- package/Types/AI/AIRunAttempt.d.ts +2 -0
- package/Types/AI/AIRunAttempt.js +14 -1
- package/Types/AI/AIRunAttempt.mjs +1 -0
- package/Types/AI/AISetupActions.d.mts +17 -0
- package/Types/AI/AISetupActions.d.ts +17 -0
- package/Types/AI/AISetupActions.js +55 -2
- package/Types/AI/AISetupActions.mjs +7 -0
- package/Types/AI/AiActivityInsights.d.mts +11 -0
- package/Types/AI/AiActivityInsights.d.ts +11 -0
- package/Types/AI/AiActivityInsights.js +7 -2
- package/Types/AI/AiActivityInsights.mjs +1 -0
- package/Types/AI/AiOutcomes.d.mts +61 -0
- package/Types/AI/AiOutcomes.d.ts +61 -0
- package/Types/AI/AiOutcomes.js +71 -2
- package/Types/AI/AiOutcomes.mjs +12 -0
- package/Types/AI/CodeAgentRunLimits.d.mts +1 -0
- package/Types/AI/CodeAgentRunLimits.d.ts +1 -0
- package/Types/AI/CodeAgentRunLimits.js +6 -1
- package/Types/AI/CodeFixTaskType.d.mts +3 -0
- package/Types/AI/CodeFixTaskType.d.ts +3 -0
- package/Types/AI/CodeFixTaskType.js +43 -0
- package/Types/AI/CodeTask.d.mts +8 -0
- package/Types/AI/CodeTask.d.ts +8 -0
- package/Types/AI/CodeTask.js +3 -1
- package/Types/AI/CodeTask.mjs +1 -0
- package/Types/AI/CodeTaskTryAgain.d.mts +9 -0
- package/Types/AI/CodeTaskTryAgain.d.ts +9 -0
- package/Types/AI/CodeTaskTryAgain.js +56 -0
- package/Types/AI/CodeTaskTryAgain.mjs +10 -0
- package/Types/AI/ExternalMcpServer/ExternalMcpToolNames.d.mts +10 -0
- package/Types/AI/ExternalMcpServer/ExternalMcpToolNames.d.ts +10 -0
- package/Types/AI/ExternalMcpServer/ExternalMcpToolNames.js +33 -0
- package/Types/AI/ExternalMcpServer/ExternalMcpToolNames.mjs +2 -0
- package/Types/AI/InvestigationRecording.d.mts +1 -0
- package/Types/AI/InvestigationRecording.d.ts +1 -0
- package/Types/AI/ProjectAiRunLimits.d.mts +4 -1
- package/Types/AI/ProjectAiRunLimits.d.ts +4 -1
- package/Types/AI/ProjectAiRunLimits.js +26 -5
- package/Types/AI/ProjectAiRunLimits.mjs +2 -0
- package/Types/AI/ServiceKnowledgeSummary.d.mts +27 -0
- package/Types/AI/ServiceKnowledgeSummary.d.ts +27 -0
- package/Types/AI/ServiceKnowledgeSummary.js +68 -0
- package/Types/AI/ServiceKnowledgeSummary.mjs +4 -0
- package/Types/Accounts/SecondStepEnrolment.d.mts +16 -0
- package/Types/Accounts/SecondStepEnrolment.d.ts +16 -0
- package/Types/Accounts/SecondStepEnrolment.js +96 -0
- package/Types/Accounts/SecondStepEnrolment.mjs +14 -0
- package/Types/Accounts/SecurityKeySignIn.d.mts +1 -0
- package/Types/Accounts/SecurityKeySignIn.d.ts +1 -0
- package/Types/Accounts/SecurityKeySignIn.js +33 -0
- package/Types/Accounts/SecurityKeySignIn.mjs +2 -0
- package/Types/Accounts/SignInMessages.d.mts +1 -0
- package/Types/Accounts/SignInMessages.d.ts +1 -0
- package/Types/Accounts/SignInMessages.js +14 -2
- package/Types/Accounts/SignInMessages.mjs +1 -0
- package/Types/Accounts/SignUpInvitation.d.mts +5 -0
- package/Types/Accounts/SignUpInvitation.d.ts +5 -0
- package/Types/Accounts/SignUpInvitation.js +26 -0
- package/Types/Analytics/ProductEvent.d.mts +2 -0
- package/Types/Analytics/ProductEvent.d.ts +2 -0
- package/Types/Analytics/ProductEvent.js +17 -1
- package/Types/AuditLog/AuditLogCoverage.d.mts +1 -0
- package/Types/AuditLog/AuditLogCoverage.d.ts +1 -0
- package/Types/AuditLog/AuditLogCoverage.js +14 -2
- package/Types/AuditLog/AuditLogCoverage.mjs +1 -0
- package/Types/AuditLog/AuditLogSessionEvent.js +1 -0
- package/Types/AuditLog/AuditLogSignInSettingsCleared.d.mts +17 -0
- package/Types/AuditLog/AuditLogSignInSettingsCleared.d.ts +17 -0
- package/Types/AuditLog/AuditLogSignInSettingsCleared.js +87 -0
- package/Types/AuditLog/AuditLogSignInSettingsCleared.mjs +4 -0
- package/Types/AuditLog/Export/AuditLogExportRecord.d.mts +9 -1
- package/Types/AuditLog/Export/AuditLogExportRecord.d.ts +9 -1
- package/Types/AuditLog/Export/AuditLogExportRecord.js +55 -9
- package/Types/AuditLog/Export/AuditLogExportRecord.mjs +3 -0
- package/Types/AutoRemediation/RemediationRound.d.mts +10 -1
- package/Types/AutoRemediation/RemediationRound.d.ts +10 -1
- package/Types/AutoRemediation/RemediationRound.js +37 -6
- package/Types/AutoRemediation/RemediationRound.mjs +3 -0
- package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.mts +3 -0
- package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.ts +3 -0
- package/Types/Call/CallStatus.d.mts +2 -1
- package/Types/Call/CallStatus.d.ts +2 -1
- package/Types/Call/CallStatus.js +6 -0
- package/Types/Cloud/CloudAddedMetrics.d.mts +68 -0
- package/Types/Cloud/CloudAddedMetrics.d.ts +68 -0
- package/Types/Cloud/CloudAddedMetrics.js +402 -0
- package/Types/Cloud/CloudAddedMetrics.mjs +18 -0
- package/Types/Cloud/CloudKeyMetricCondition.d.mts +10 -0
- package/Types/Cloud/CloudKeyMetricCondition.d.ts +10 -0
- package/Types/Cloud/CloudKeyMetricCondition.js +65 -0
- package/Types/Cloud/CloudKeyMetricCondition.mjs +4 -0
- package/Types/Cloud/CloudKeyMetrics.d.mts +53 -4
- package/Types/Cloud/CloudKeyMetrics.d.ts +53 -4
- package/Types/Cloud/CloudKeyMetrics.js +781 -211
- package/Types/Cloud/CloudKeyMetrics.mjs +19 -0
- package/Types/Cloud/CloudMonitoredResource.js +16 -2
- package/Types/Cloud/CloudPublishedMetrics.d.mts +40 -0
- package/Types/Cloud/CloudPublishedMetrics.d.ts +40 -0
- package/Types/Cloud/CloudPublishedMetrics.js +165 -0
- package/Types/Cloud/CloudPublishedMetrics.mjs +6 -0
- package/Types/Cloud/CloudReadingKeys.d.mts +10 -0
- package/Types/Cloud/CloudReadingKeys.d.ts +10 -0
- package/Types/Cloud/CloudReadingKeys.js +37 -0
- package/Types/Cloud/CloudReadingKeys.mjs +3 -0
- package/Types/Cloud/CloudResourceCatalog.d.mts +1 -0
- package/Types/Cloud/CloudResourceCatalog.d.ts +1 -0
- package/Types/Cloud/CloudResourceCatalog.js +33 -2
- package/Types/Cloud/CloudResourceHealth.d.mts +93 -1
- package/Types/Cloud/CloudResourceHealth.d.ts +93 -1
- package/Types/Cloud/CloudResourceHealth.js +671 -33
- package/Types/Cloud/CloudResourceHealth.mjs +41 -0
- package/Types/Cloud/CloudRightSizing.js +9 -3
- package/Types/Cloud/CloudUnreportedKeyMetrics.d.mts +84 -0
- package/Types/Cloud/CloudUnreportedKeyMetrics.d.ts +84 -0
- package/Types/Cloud/CloudUnreportedKeyMetrics.js +448 -0
- package/Types/Cloud/CloudUnreportedKeyMetrics.mjs +15 -0
- package/Types/CloudConnection/CloudConnectionCost.d.mts +18 -0
- package/Types/CloudConnection/CloudConnectionCost.d.ts +18 -0
- package/Types/CloudConnection/CloudConnectionCost.js +89 -4
- package/Types/CloudConnection/CloudConnectionCost.mjs +3 -0
- package/Types/CloudConnection/CloudConnectionSetupCommands.js +14 -0
- package/Types/CloudConnection/CloudStream.d.mts +5 -0
- package/Types/CloudConnection/CloudStream.d.ts +5 -0
- package/Types/CloudConnection/CloudStream.js +46 -2
- package/Types/CloudConnection/CloudStream.mjs +3 -0
- package/Types/CloudConnection/CloudStreamOrganization.d.mts +6 -0
- package/Types/CloudConnection/CloudStreamOrganization.d.ts +6 -0
- package/Types/CloudConnection/CloudStreamOrganization.js +36 -1
- package/Types/CloudConnection/CloudStreamOrganization.mjs +2 -0
- package/Types/CloudConnection/CloudStreamStack.d.mts +48 -0
- package/Types/CloudConnection/CloudStreamStack.d.ts +48 -0
- package/Types/CloudConnection/CloudStreamStack.js +198 -0
- package/Types/CloudConnection/CloudStreamStack.mjs +15 -0
- package/Types/CloudConnection/CloudStreamTemplate.d.mts +14 -1
- package/Types/CloudConnection/CloudStreamTemplate.d.ts +14 -1
- package/Types/CloudConnection/CloudStreamTemplate.js +147 -16
- package/Types/CloudConnection/CloudStreamTemplate.mjs +10 -0
- package/Types/DataObservability/DataBiLineage.d.mts +5 -0
- package/Types/DataObservability/DataBiLineage.d.ts +5 -0
- package/Types/DataObservability/DataBiLineage.js +29 -1
- package/Types/DataObservability/DataCircuitBreaker.d.mts +78 -0
- package/Types/DataObservability/DataCircuitBreaker.d.ts +78 -0
- package/Types/DataObservability/DataCircuitBreaker.js +262 -0
- package/Types/DataObservability/DataCircuitBreaker.mjs +12 -0
- package/Types/DataObservability/DataLineageMap.d.mts +3 -0
- package/Types/DataObservability/DataLineageMap.d.ts +3 -0
- package/Types/DataObservability/DataLineageMap.js +22 -0
- package/Types/DataObservability/DataLineageMap.mjs +2 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.mts +18 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.ts +18 -0
- package/Types/DataObservability/DataObservabilityApiTypes.js +10 -0
- package/Types/DataObservability/DataObservabilityAttention.d.mts +1 -0
- package/Types/DataObservability/DataObservabilityAttention.d.ts +1 -0
- package/Types/DataObservability/DataObservabilityAttention.js +12 -6
- package/Types/DataObservability/DataPipelineMetric.d.mts +2 -1
- package/Types/DataObservability/DataPipelineMetric.d.ts +2 -1
- package/Types/DataObservability/DataPipelineMetric.js +12 -2
- package/Types/DataObservability/SkippedTables.d.mts +24 -0
- package/Types/DataObservability/SkippedTables.d.ts +24 -0
- package/Types/DataObservability/SkippedTables.js +147 -0
- package/Types/DataObservability/SkippedTables.mjs +9 -0
- package/Types/DataSecurity/ComplianceRequirementCatalog.d.mts +9 -2
- package/Types/DataSecurity/ComplianceRequirementCatalog.d.ts +9 -2
- package/Types/DataSecurity/ComplianceRequirementCatalog.js +46 -10
- package/Types/DataSecurity/ComplianceRequirementCatalog.mjs +1 -0
- package/Types/DataSecurity/ComplianceScope.d.mts +29 -0
- package/Types/DataSecurity/ComplianceScope.d.ts +29 -0
- package/Types/DataSecurity/ComplianceScope.js +120 -0
- package/Types/DataSecurity/ComplianceScope.mjs +7 -0
- package/Types/DataSecurity/ComplianceSettingFramework.d.mts +5 -0
- package/Types/DataSecurity/ComplianceSettingFramework.d.ts +5 -0
- package/Types/DataSecurity/ComplianceSettingFramework.js +10 -0
- package/Types/DataSecurity/ComplianceSettingFramework.mjs +3 -0
- package/Types/DataSecurity/DataSecurityApiTypes.d.mts +77 -2
- package/Types/DataSecurity/DataSecurityApiTypes.d.ts +77 -2
- package/Types/DataSecurity/DataSecurityApiTypes.js +45 -1
- package/Types/DataSecurity/DataSecurityApiTypes.mjs +3 -0
- package/Types/DataSecurity/DataSecurityCheckCatalog.js +2 -2
- package/Types/DataSecurity/DataStoreKind.d.mts +2 -1
- package/Types/DataSecurity/DataStoreKind.d.ts +2 -1
- package/Types/DataSecurity/DataStoreKind.js +8 -1
- package/Types/DataSecurity/DataStoreResource.d.mts +32 -0
- package/Types/DataSecurity/DataStoreResource.d.ts +32 -0
- package/Types/DataSecurity/DataStoreResource.js +142 -0
- package/Types/DataSecurity/DataStoreResource.mjs +11 -0
- package/Types/DataSecurity/FindingSampleRecord.d.mts +5 -0
- package/Types/DataSecurity/FindingSampleRecord.d.ts +5 -0
- package/Types/DataSecurity/FindingSampleRecord.js +62 -11
- package/Types/DataSecurity/FindingSampleRecord.mjs +1 -0
- package/Types/DataSecurity/TelemetryScrubTarget.d.mts +28 -0
- package/Types/DataSecurity/TelemetryScrubTarget.d.ts +28 -0
- package/Types/DataSecurity/TelemetryScrubTarget.js +125 -0
- package/Types/DataSecurity/TelemetryScrubTarget.mjs +12 -0
- package/Types/Database/AccessControl/AccountDateColumns.d.mts +3 -0
- package/Types/Database/AccessControl/AccountDateColumns.d.ts +3 -0
- package/Types/Database/AccessControl/AccountDateColumns.js +32 -0
- package/Types/Database/AccessControl/AccountDateColumns.mjs +4 -0
- package/Types/Database/AccessControl/PermissionScopeNarrowing.js +9 -0
- package/Types/Database/MoveInList.d.mts +11 -2
- package/Types/Database/MoveInList.d.ts +11 -2
- package/Types/Database/MoveInList.js +74 -23
- package/Types/Database/MoveInList.mjs +2 -0
- package/Types/Database/SharedNames.d.mts +15 -0
- package/Types/Database/SharedNames.d.ts +15 -0
- package/Types/Database/SharedNames.js +80 -0
- package/Types/Database/SharedNames.mjs +8 -0
- package/Types/Database/TableColumn.d.mts +1 -0
- package/Types/Database/TableColumn.d.ts +1 -0
- package/Types/Database/UniqueName.d.mts +41 -0
- package/Types/Database/UniqueName.d.ts +41 -0
- package/Types/Database/UniqueName.js +242 -0
- package/Types/Database/UniqueName.mjs +25 -0
- package/Types/DeviceManagement/DeviceManagementConnectionHealth.d.mts +25 -0
- package/Types/DeviceManagement/DeviceManagementConnectionHealth.d.ts +25 -0
- package/Types/DeviceManagement/DeviceManagementConnectionHealth.js +98 -0
- package/Types/DeviceManagement/DeviceManagementConnectionHealth.mjs +5 -0
- package/Types/DeviceManagement/DeviceManagementConnectionSettings.d.mts +27 -0
- package/Types/DeviceManagement/DeviceManagementConnectionSettings.d.ts +27 -0
- package/Types/DeviceManagement/DeviceManagementConnectionSettings.js +254 -0
- package/Types/DeviceManagement/DeviceManagementConnectionSettings.mjs +21 -0
- package/Types/DeviceManagement/DeviceManagementConnectionTest.d.mts +14 -0
- package/Types/DeviceManagement/DeviceManagementConnectionTest.d.ts +14 -0
- package/Types/DeviceManagement/DeviceManagementConnectionTest.js +5 -0
- package/Types/DeviceManagement/DeviceManagementConnectionTest.mjs +2 -0
- package/Types/DeviceManagement/DeviceManagementProvider.d.mts +7 -0
- package/Types/DeviceManagement/DeviceManagementProvider.d.ts +7 -0
- package/Types/DeviceManagement/DeviceManagementProvider.js +37 -0
- package/Types/DeviceManagement/DeviceManagementProvider.mjs +5 -0
- package/Types/DeviceManagement/DeviceManagementReadSummary.d.mts +28 -0
- package/Types/DeviceManagement/DeviceManagementReadSummary.d.ts +28 -0
- package/Types/DeviceManagement/DeviceManagementReadSummary.js +67 -0
- package/Types/DeviceManagement/DeviceManagementReadSummary.mjs +4 -0
- package/Types/DeviceManagement/ManagedDeviceCheckIn.d.mts +43 -0
- package/Types/DeviceManagement/ManagedDeviceCheckIn.d.ts +43 -0
- package/Types/DeviceManagement/ManagedDeviceCheckIn.js +173 -0
- package/Types/DeviceManagement/ManagedDeviceCheckIn.mjs +8 -0
- package/Types/DeviceManagement/ManagedDeviceIdentity.d.mts +23 -0
- package/Types/DeviceManagement/ManagedDeviceIdentity.d.ts +23 -0
- package/Types/DeviceManagement/ManagedDeviceIdentity.js +148 -0
- package/Types/DeviceManagement/ManagedDeviceIdentity.mjs +16 -0
- package/Types/DeviceManagement/ManagedDeviceStatus.d.mts +45 -0
- package/Types/DeviceManagement/ManagedDeviceStatus.d.ts +45 -0
- package/Types/DeviceManagement/ManagedDeviceStatus.js +161 -0
- package/Types/DeviceManagement/ManagedDeviceStatus.mjs +9 -0
- package/Types/DockerSwarm/DockerSwarmInventoryExtractor.js +20 -1
- package/Types/Domain.d.mts +1 -0
- package/Types/Domain.d.ts +1 -0
- package/Types/Domain.js +30 -0
- package/Types/Email/EmailTemplateType.d.mts +8 -0
- package/Types/Email/EmailTemplateType.d.ts +8 -0
- package/Types/Email/EmailTemplateType.js +27 -0
- package/Types/HeldPermissions.d.mts +10 -0
- package/Types/HeldPermissions.d.ts +10 -0
- package/Types/HeldPermissions.js +63 -0
- package/Types/Host/HostHealth.d.mts +2 -0
- package/Types/Host/HostHealth.d.ts +2 -0
- package/Types/Host/HostHealth.js +10 -1
- package/Types/Host/HostHealth.mjs +1 -0
- package/Types/Host/HostLogSession.d.mts +30 -0
- package/Types/Host/HostLogSession.d.ts +30 -0
- package/Types/Host/HostLogSession.js +117 -0
- package/Types/Host/HostLogSession.mjs +12 -0
- package/Types/HostCollector/HostCollector.js +1 -1
- package/Types/Icon/IconProp.d.mts +1 -0
- package/Types/Icon/IconProp.d.ts +1 -0
- package/Types/Icon/IconProp.js +2 -0
- package/Types/IncomingCall/IncomingCallEscalationOrder.d.mts +16 -0
- package/Types/IncomingCall/IncomingCallEscalationOrder.d.ts +16 -0
- package/Types/IncomingCall/IncomingCallEscalationOrder.js +59 -0
- package/Types/IncomingCall/IncomingCallEscalationOrder.mjs +3 -0
- package/Types/Kubernetes/Compliance/CisKubernetesBenchmark.d.mts +26 -0
- package/Types/Kubernetes/Compliance/CisKubernetesBenchmark.d.ts +26 -0
- package/Types/Kubernetes/Compliance/CisKubernetesBenchmark.js +482 -0
- package/Types/Kubernetes/Compliance/CisKubernetesBenchmark.mjs +12 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceApiTypes.d.mts +32 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceApiTypes.d.ts +32 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceApiTypes.js +14 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceApiTypes.mjs +2 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceCatalog.d.mts +35 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceCatalog.d.ts +35 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceCatalog.js +470 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceCatalog.mjs +13 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceFinding.d.mts +24 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceFinding.d.ts +24 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceFinding.js +17 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceFinding.mjs +3 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceFramework.d.mts +8 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceFramework.d.ts +8 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceFramework.js +38 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceFramework.mjs +5 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceScoring.d.mts +50 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceScoring.d.ts +50 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceScoring.js +318 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceScoring.mjs +6 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceSnapshot.d.mts +39 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceSnapshot.d.ts +39 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceSnapshot.js +13 -0
- package/Types/Kubernetes/Compliance/KubernetesComplianceSnapshot.mjs +2 -0
- package/Types/Kubernetes/Compliance/KubernetesRbac.d.mts +43 -0
- package/Types/Kubernetes/Compliance/KubernetesRbac.d.ts +43 -0
- package/Types/Kubernetes/Compliance/KubernetesRbac.js +165 -0
- package/Types/Kubernetes/Compliance/KubernetesRbac.mjs +20 -0
- package/Types/Kubernetes/Compliance/KubernetesVersion.d.mts +11 -0
- package/Types/Kubernetes/Compliance/KubernetesVersion.d.ts +11 -0
- package/Types/Kubernetes/Compliance/KubernetesVersion.js +79 -0
- package/Types/Kubernetes/Compliance/KubernetesVersion.mjs +8 -0
- package/Types/Kubernetes/Compliance/PodSecurityStandards.d.mts +58 -0
- package/Types/Kubernetes/Compliance/PodSecurityStandards.d.ts +58 -0
- package/Types/Kubernetes/Compliance/PodSecurityStandards.js +638 -0
- package/Types/Kubernetes/Compliance/PodSecurityStandards.mjs +20 -0
- package/Types/Kubernetes/KubernetesCostEfficiency.d.mts +16 -0
- package/Types/Kubernetes/KubernetesCostEfficiency.d.ts +16 -0
- package/Types/Kubernetes/KubernetesCostEfficiency.js +74 -0
- package/Types/Kubernetes/KubernetesCostEfficiency.mjs +7 -0
- package/Types/Kubernetes/KubernetesCostIngest.d.mts +5 -0
- package/Types/Kubernetes/KubernetesCostIngest.d.ts +5 -0
- package/Types/Kubernetes/KubernetesCostIngest.js +14 -16
- package/Types/Kubernetes/KubernetesCostIngest.mjs +3 -0
- package/Types/Kubernetes/KubernetesCostMetrics.d.mts +47 -0
- package/Types/Kubernetes/KubernetesCostMetrics.d.ts +47 -0
- package/Types/Kubernetes/KubernetesCostMetrics.js +296 -0
- package/Types/Kubernetes/KubernetesCostMetrics.mjs +19 -0
- package/Types/Kubernetes/KubernetesCostPricing.d.mts +20 -0
- package/Types/Kubernetes/KubernetesCostPricing.d.ts +20 -0
- package/Types/Kubernetes/KubernetesCostPricing.js +114 -0
- package/Types/Kubernetes/KubernetesCostPricing.mjs +7 -0
- package/Types/Kubernetes/KubernetesHealth.d.mts +26 -3
- package/Types/Kubernetes/KubernetesHealth.d.ts +26 -3
- package/Types/Kubernetes/KubernetesHealth.js +424 -37
- package/Types/Kubernetes/KubernetesHealth.mjs +2 -0
- package/Types/Kubernetes/KubernetesInventoryExtractor.js +11 -3
- package/Types/Kubernetes/KubernetesObjectParser.d.mts +8 -0
- package/Types/Kubernetes/KubernetesObjectParser.d.ts +8 -0
- package/Types/Kubernetes/KubernetesObjectParser.js +45 -0
- package/Types/Kubernetes/KubernetesObjectParser.mjs +1 -0
- package/Types/Kubernetes/KubernetesPodSecurity.d.mts +63 -0
- package/Types/Kubernetes/KubernetesPodSecurity.d.ts +63 -0
- package/Types/Kubernetes/KubernetesPodSecurity.js +399 -0
- package/Types/Kubernetes/KubernetesPodSecurity.mjs +6 -0
- package/Types/Kubernetes/KubernetesPolicyObjects.d.mts +62 -0
- package/Types/Kubernetes/KubernetesPolicyObjects.d.ts +62 -0
- package/Types/Kubernetes/KubernetesPolicyObjects.js +239 -0
- package/Types/Kubernetes/KubernetesPolicyObjects.mjs +16 -0
- package/Types/Kubernetes/KubernetesStorageHealth.d.mts +52 -0
- package/Types/Kubernetes/KubernetesStorageHealth.d.ts +52 -0
- package/Types/Kubernetes/KubernetesStorageHealth.js +353 -0
- package/Types/Kubernetes/KubernetesStorageHealth.mjs +17 -0
- package/Types/MeaningKeys.js +33 -0
- package/Types/Monitor/CloudAlertTemplates.d.mts +23 -0
- package/Types/Monitor/CloudAlertTemplates.d.ts +23 -0
- package/Types/Monitor/CloudAlertTemplates.js +575 -4
- package/Types/Monitor/CloudAlertTemplates.mjs +11 -0
- package/Types/Monitor/CriteriaFilter.d.mts +2 -0
- package/Types/Monitor/CriteriaFilter.d.ts +2 -0
- package/Types/Monitor/CriteriaFilter.js +9 -0
- package/Types/Monitor/CriteriaFilterTerms.js +2 -0
- package/Types/Monitor/DataPipelineAlertTemplates.js +34 -1
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.d.mts +7 -0
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.d.ts +7 -0
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.js +45 -2
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorEvaluation.mjs +3 -0
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorResponse.d.mts +3 -0
- package/Types/Monitor/ExceptionMonitor/ExceptionMonitorResponse.d.ts +3 -0
- package/Types/Monitor/HostAlertTemplates.d.mts +13 -0
- package/Types/Monitor/HostAlertTemplates.d.ts +13 -0
- package/Types/Monitor/HostAlertTemplates.js +352 -2
- package/Types/Monitor/HostAlertTemplates.mjs +4 -0
- package/Types/Monitor/KubernetesAlertTemplates.d.mts +5 -1
- package/Types/Monitor/KubernetesAlertTemplates.d.ts +5 -1
- package/Types/Monitor/KubernetesAlertTemplates.js +317 -27
- package/Types/Monitor/KubernetesAlertTemplates.mjs +3 -0
- package/Types/Monitor/KubernetesMetricCatalog.d.mts +1 -1
- package/Types/Monitor/KubernetesMetricCatalog.d.ts +1 -1
- package/Types/Monitor/KubernetesMetricCatalog.js +105 -1
- package/Types/Monitor/ManagedDeviceAlertTemplates.d.mts +33 -0
- package/Types/Monitor/ManagedDeviceAlertTemplates.d.ts +33 -0
- package/Types/Monitor/ManagedDeviceAlertTemplates.js +191 -0
- package/Types/Monitor/ManagedDeviceAlertTemplates.mjs +8 -0
- package/Types/Monitor/MonitorSecretType.d.mts +11 -0
- package/Types/Monitor/MonitorSecretType.d.ts +11 -0
- package/Types/Monitor/MonitorSecretType.js +37 -0
- package/Types/Monitor/MonitorSecretType.mjs +3 -0
- package/Types/Monitor/MonitorStep.d.mts +4 -0
- package/Types/Monitor/MonitorStep.d.ts +4 -0
- package/Types/Monitor/MonitorStep.js +27 -1
- package/Types/Monitor/MonitorStepExceptionMonitor.d.mts +7 -0
- package/Types/Monitor/MonitorStepExceptionMonitor.d.ts +7 -0
- package/Types/Monitor/MonitorStepExceptionMonitor.js +82 -3
- package/Types/Monitor/MonitorStepIoTMonitor.js +4 -17
- package/Types/Monitor/MonitorStepMetricMonitor.d.mts +2 -0
- package/Types/Monitor/MonitorStepMetricMonitor.d.ts +2 -0
- package/Types/Monitor/MonitorStepMetricMonitor.js +4 -0
- package/Types/Monitor/MonitorStepTraceMonitor.d.mts +4 -0
- package/Types/Monitor/MonitorStepTraceMonitor.d.ts +4 -0
- package/Types/Monitor/MonitorStepTraceMonitor.js +50 -0
- package/Types/Monitor/MonitorSteps.d.mts +1 -0
- package/Types/Monitor/MonitorSteps.d.ts +1 -0
- package/Types/Monitor/MonitorSteps.js +22 -1
- package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.mts +1 -1
- package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.ts +1 -1
- package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.js +70 -9
- package/Types/Monitor/Recommendation/MonitorRecommendationCreateUtil.d.mts +38 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationCreateUtil.d.ts +38 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationCreateUtil.js +168 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationCreateUtil.mjs +2 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.mts +11 -1
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.ts +11 -1
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.js +8 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationUtil.js +37 -0
- package/Types/Monitor/RumAlertTemplates.d.mts +23 -1
- package/Types/Monitor/RumAlertTemplates.d.ts +23 -1
- package/Types/Monitor/RumAlertTemplates.js +658 -12
- package/Types/Monitor/RumAlertTemplates.mjs +11 -0
- package/Types/Monitor/SeriesContext/SeriesDebugHints.d.mts +5 -0
- package/Types/Monitor/SeriesContext/SeriesDebugHints.d.ts +5 -0
- package/Types/Monitor/SeriesContext/SeriesDebugHints.js +207 -5
- package/Types/Monitor/SeriesContext/SeriesLabelDisplay.js +32 -0
- package/Types/Monitor/TelemetryAlertRule.js +4 -3
- package/Types/Monitor/TraceMonitor/TraceMonitorGroupResult.d.mts +16 -0
- package/Types/Monitor/TraceMonitor/TraceMonitorGroupResult.d.ts +16 -0
- package/Types/Monitor/TraceMonitor/TraceMonitorGroupResult.js +2 -0
- package/Types/Monitor/TraceMonitor/TraceMonitorGroupResult.mjs +1 -0
- package/Types/Monitor/TraceMonitor/TraceMonitorResponse.d.mts +6 -0
- package/Types/Monitor/TraceMonitor/TraceMonitorResponse.d.ts +6 -0
- package/Types/NetworkDevice/DiscoveredDevice.d.mts +1 -0
- package/Types/NetworkDevice/DiscoveredDevice.d.ts +1 -0
- package/Types/NetworkDevice/DiscoveredDevice.js +4 -0
- package/Types/NetworkDevice/DiscoveryImport.d.mts +1 -0
- package/Types/NetworkDevice/DiscoveryImport.d.ts +1 -0
- package/Types/NetworkDevice/DiscoveryImport.js +11 -1
- package/Types/NetworkDevice/DiscoveryImport.mjs +1 -0
- package/Types/Notification/OwnerNotificationDelivery.d.mts +28 -0
- package/Types/Notification/OwnerNotificationDelivery.d.ts +28 -0
- package/Types/Notification/OwnerNotificationDelivery.js +47 -1
- package/Types/Notification/WhoWasTold.js +5 -3
- package/Types/NotificationSetting/NotificationEmailRollupCategory.d.mts +4 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.d.ts +4 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.js +44 -0
- package/Types/NotificationSetting/NotificationEmailRollupPolicy.js +10 -1
- package/Types/NotificationSetting/NotificationSettingEventType.d.mts +12 -0
- package/Types/NotificationSetting/NotificationSettingEventType.d.ts +12 -0
- package/Types/NotificationSetting/NotificationSettingEventType.js +39 -0
- package/Types/NotificationSetting/RoutineEmailEvents.js +12 -0
- package/Types/OnCallDutyPolicy/OnCallPageChannel.d.mts +2 -0
- package/Types/OnCallDutyPolicy/OnCallPageChannel.d.ts +2 -0
- package/Types/OnCallDutyPolicy/OnCallSentLine.d.mts +10 -1
- package/Types/OnCallDutyPolicy/OnCallSentLine.d.ts +10 -1
- package/Types/OnCallDutyPolicy/OnCallSentLine.js +50 -1
- package/Types/OnCallDutyPolicy/OnCallSentLine.mjs +6 -0
- package/Types/OnCallDutyPolicy/PagedFirst.d.mts +55 -0
- package/Types/OnCallDutyPolicy/PagedFirst.d.ts +55 -0
- package/Types/OnCallDutyPolicy/PagedFirst.js +205 -0
- package/Types/OnCallDutyPolicy/PagedFirst.mjs +8 -0
- package/Types/OnCallDutyPolicy/UserOverrideTeamAccess.d.mts +22 -0
- package/Types/OnCallDutyPolicy/UserOverrideTeamAccess.d.ts +22 -0
- package/Types/OnCallDutyPolicy/UserOverrideTeamAccess.js +135 -0
- package/Types/OnCallDutyPolicy/UserOverrideTeamAccess.mjs +9 -0
- package/Types/OpenStack/OpenStackBareMetal.d.mts +3 -0
- package/Types/OpenStack/OpenStackBareMetal.d.ts +3 -0
- package/Types/OpenStack/OpenStackBareMetal.js +8 -1
- package/Types/OpenStack/OpenStackBareMetal.mjs +2 -0
- package/Types/OpenStack/OpenStackHealthRules.d.mts +11 -0
- package/Types/OpenStack/OpenStackHealthRules.d.ts +11 -0
- package/Types/OpenStack/OpenStackHealthRules.js +41 -1
- package/Types/OpenStack/OpenStackHealthRules.mjs +4 -0
- package/Types/Permission.d.mts +9 -0
- package/Types/Permission.d.ts +9 -0
- package/Types/Permission.js +104 -0
- package/Types/Probe/ProbeCapability.d.mts +3 -1
- package/Types/Probe/ProbeCapability.d.ts +3 -1
- package/Types/Probe/ProbeCapability.js +21 -1
- package/Types/Probe/ProbeCapability.mjs +1 -0
- package/Types/Probe/ProbeReportedVersion.d.mts +48 -0
- package/Types/Probe/ProbeReportedVersion.d.ts +48 -0
- package/Types/Probe/ProbeReportedVersion.js +280 -0
- package/Types/Probe/ProbeReportedVersion.mjs +9 -0
- package/Types/Product/ProductRecordTables.js +14 -0
- package/Types/ProviderLogo/AllProviderLogoMarks.js +2 -0
- package/Types/ProviderLogo/Marks/android.d.mts +3 -0
- package/Types/ProviderLogo/Marks/android.d.ts +3 -0
- package/Types/ProviderLogo/Marks/android.js +15 -0
- package/Types/ProviderLogo/Marks/android.mjs +2 -0
- package/Types/ProviderLogo/ProviderLogo.d.mts +1 -0
- package/Types/ProviderLogo/ProviderLogo.d.ts +1 -0
- package/Types/ProviderLogo/ProviderLogo.js +3 -0
- package/Types/ProviderLogo/ProviderLogoMarks.js +1 -0
- package/Types/Rules/RuleCriteriaFieldRegistry.js +2 -0
- package/Types/Rules/RuleCriteriaSubject.d.mts +1 -0
- package/Types/Rules/RuleCriteriaSubject.d.ts +1 -0
- package/Types/Rules/RuleCriteriaSubject.js +2 -0
- package/Types/Rules/RuleRun.d.mts +1 -0
- package/Types/Rules/RuleRun.d.ts +1 -0
- package/Types/Rules/RuleRun.js +2 -0
- package/Types/Rum/MobileAppTelemetry.d.mts +28 -0
- package/Types/Rum/MobileAppTelemetry.d.ts +28 -0
- package/Types/Rum/MobileAppTelemetry.js +120 -0
- package/Types/Rum/MobileAppTelemetry.mjs +21 -0
- package/Types/Rum/RumClientKind.d.mts +5 -0
- package/Types/Rum/RumClientKind.d.ts +5 -0
- package/Types/Rum/RumClientKind.js +57 -0
- package/Types/Rum/RumClientKind.mjs +5 -0
- package/Types/Rum/SessionReplay.d.mts +3 -0
- package/Types/Rum/SessionReplay.d.ts +3 -0
- package/Types/Rum/SessionReplay.js +1 -1
- package/Types/Rum/SessionReplayFrustrationSignals.d.mts +3 -1
- package/Types/Rum/SessionReplayFrustrationSignals.d.ts +3 -1
- package/Types/Rum/SessionReplayFrustrationSignals.js +32 -2
- package/Types/Rum/SessionReplayFrustrationSignals.mjs +2 -0
- package/Types/Rum/SessionReplayPageRules.d.mts +10 -0
- package/Types/Rum/SessionReplayPageRules.d.ts +10 -0
- package/Types/Rum/SessionReplayPageRules.js +115 -0
- package/Types/Rum/SessionReplayPageRules.mjs +7 -0
- package/Types/Rum/SessionReplayReadableProperties.d.mts +4 -0
- package/Types/Rum/SessionReplayReadableProperties.d.ts +4 -0
- package/Types/Rum/SessionReplayReadableProperties.js +64 -0
- package/Types/Rum/SessionReplayReadableProperties.mjs +5 -0
- package/Types/Rum/SessionReplaySignalMetric.d.mts +10 -0
- package/Types/Rum/SessionReplaySignalMetric.d.ts +10 -0
- package/Types/Rum/SessionReplaySignalMetric.js +62 -0
- package/Types/Rum/SessionReplaySignalMetric.mjs +8 -0
- package/Types/SSO/IdentityProviderSignOut.d.mts +17 -1
- package/Types/SSO/IdentityProviderSignOut.d.ts +17 -1
- package/Types/SSO/IdentityProviderSignOut.js +120 -11
- package/Types/SSO/IdentityProviderSignOut.mjs +6 -0
- package/Types/SSO/LocalSignInClearing.d.mts +35 -0
- package/Types/SSO/LocalSignInClearing.d.ts +35 -0
- package/Types/SSO/LocalSignInClearing.js +166 -0
- package/Types/SSO/LocalSignInClearing.mjs +19 -0
- package/Types/SSO/SignInMethods.d.mts +5 -0
- package/Types/SSO/SignInMethods.d.ts +5 -0
- package/Types/SSO/SignInMethods.js +29 -1
- package/Types/SSO/SignInMethods.mjs +4 -0
- package/Types/SSO/SignInSettingsClearedEmail.d.mts +33 -0
- package/Types/SSO/SignInSettingsClearedEmail.d.ts +33 -0
- package/Types/SSO/SignInSettingsClearedEmail.js +144 -0
- package/Types/SSO/SignInSettingsClearedEmail.mjs +8 -0
- package/Types/SSO/SsoManagedSignIn.d.mts +23 -0
- package/Types/SSO/SsoManagedSignIn.d.ts +23 -0
- package/Types/SSO/SsoManagedSignIn.js +205 -0
- package/Types/SSO/SsoManagedSignIn.mjs +9 -0
- package/Types/ScheduledMaintenance/ScheduledMaintenanceSubscriberReach.d.mts +50 -0
- package/Types/ScheduledMaintenance/ScheduledMaintenanceSubscriberReach.d.ts +50 -0
- package/Types/ScheduledMaintenance/ScheduledMaintenanceSubscriberReach.js +230 -0
- package/Types/ScheduledMaintenance/ScheduledMaintenanceSubscriberReach.mjs +4 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.d.mts +6 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.d.ts +6 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.js +17 -1
- package/Types/SecurityCase/SecurityCaseMatches.d.mts +8 -1
- package/Types/SecurityCase/SecurityCaseMatches.d.ts +8 -1
- package/Types/SecurityCase/SecurityCaseMatches.js +8 -1
- package/Types/SecurityCase/SecurityConnection.d.mts +7 -0
- package/Types/SecurityCase/SecurityConnection.d.ts +7 -0
- package/Types/SecurityCase/SecurityConnection.js +45 -2
- package/Types/SecurityCase/SecurityConnection.mjs +6 -0
- package/Types/SecurityCase/SecurityDetectionMatchedEvents.d.mts +43 -0
- package/Types/SecurityCase/SecurityDetectionMatchedEvents.d.ts +43 -0
- package/Types/SecurityCase/SecurityDetectionMatchedEvents.js +365 -0
- package/Types/SecurityCase/SecurityDetectionMatchedEvents.mjs +20 -0
- package/Types/SecurityEvent/DetectionRuleLibraryResponseSteps.d.mts +8 -0
- package/Types/SecurityEvent/DetectionRuleLibraryResponseSteps.d.ts +8 -0
- package/Types/SecurityEvent/DetectionRuleLibraryResponseSteps.js +1400 -0
- package/Types/SecurityEvent/DetectionRuleLibraryResponseSteps.mjs +7 -0
- package/Types/SecurityEvent/DetectionRuleResponseSteps.d.mts +26 -0
- package/Types/SecurityEvent/DetectionRuleResponseSteps.d.ts +26 -0
- package/Types/SecurityEvent/DetectionRuleResponseSteps.js +184 -0
- package/Types/SecurityEvent/DetectionRuleResponseSteps.mjs +14 -0
- package/Types/StatusPage/AnnouncementReach.d.mts +16 -0
- package/Types/StatusPage/AnnouncementReach.d.ts +16 -0
- package/Types/StatusPage/AnnouncementReach.js +62 -0
- package/Types/StatusPage/AnnouncementReach.mjs +2 -0
- package/Types/StatusPage/AnnouncementUpdateNotification.d.mts +15 -0
- package/Types/StatusPage/AnnouncementUpdateNotification.d.ts +15 -0
- package/Types/StatusPage/AnnouncementUpdateNotification.js +92 -0
- package/Types/StatusPage/AnnouncementUpdateNotification.mjs +4 -0
- package/Types/StatusPage/PickedStatusPagesReach.d.mts +13 -0
- package/Types/StatusPage/PickedStatusPagesReach.d.ts +13 -0
- package/Types/StatusPage/PickedStatusPagesReach.js +73 -0
- package/Types/StatusPage/PickedStatusPagesReach.mjs +2 -0
- package/Types/StatusPage/PublicNoteApproval.d.mts +2 -1
- package/Types/StatusPage/PublicNoteApproval.d.ts +2 -1
- package/Types/StatusPage/PublicNoteApproval.js +11 -5
- package/Types/StatusPage/PublicNoteReach.d.mts +26 -0
- package/Types/StatusPage/PublicNoteReach.d.ts +26 -0
- package/Types/StatusPage/PublicNoteReach.js +144 -0
- package/Types/StatusPage/PublicNoteReach.mjs +4 -0
- package/Types/StatusPage/SubscriberNotificationPreview.js +9 -3
- package/Types/Team/CustomRole.d.mts +5 -0
- package/Types/Team/CustomRole.d.ts +5 -0
- package/Types/Team/CustomRole.js +19 -2
- package/Types/Team/CustomRole.mjs +1 -0
- package/Types/Team/InviteSuggestions.d.mts +36 -0
- package/Types/Team/InviteSuggestions.d.ts +36 -0
- package/Types/Team/InviteSuggestions.js +203 -0
- package/Types/Team/InviteSuggestions.mjs +13 -0
- package/Types/Telemetry/InventoryLiveness.d.mts +11 -3
- package/Types/Telemetry/InventoryLiveness.d.ts +11 -3
- package/Types/Telemetry/InventoryLiveness.js +19 -6
- package/Types/Telemetry/InventoryLiveness.mjs +1 -0
- package/Types/Telemetry/ServiceType.d.mts +1 -0
- package/Types/Telemetry/ServiceType.d.ts +1 -0
- package/Types/Telemetry/ServiceType.js +8 -0
- package/Types/Telemetry/TelemetryIngestSurface.d.mts +2 -1
- package/Types/Telemetry/TelemetryIngestSurface.d.ts +2 -1
- package/Types/Telemetry/TelemetryIngestSurface.js +9 -0
- package/Types/Timezone.d.mts +1 -0
- package/Types/Timezone.d.ts +1 -0
- package/Types/Timezone.js +1 -0
- package/Types/TimezoneAlias.js +11 -6
- package/Types/ToolImport/ToolImportNote.d.mts +1 -0
- package/Types/ToolImport/ToolImportNote.d.ts +1 -0
- package/Types/ToolImport/ToolImportNote.js +5 -0
- package/Types/TwoFactorAuthSetup.d.mts +16 -0
- package/Types/TwoFactorAuthSetup.d.ts +16 -0
- package/Types/TwoFactorAuthSetup.js +64 -0
- package/Types/TwoFactorAuthSetup.mjs +6 -0
- package/Types/UserAuthenticationStatus.d.mts +3 -0
- package/Types/UserAuthenticationStatus.d.ts +3 -0
- package/Types/UserSession/SessionEndCause.d.mts +1 -0
- package/Types/UserSession/SessionEndCause.d.ts +1 -0
- package/Types/UserSession/SessionEndCause.js +10 -2
- package/Types/VideoCall/CallSummaryPosts.d.mts +18 -0
- package/Types/VideoCall/CallSummaryPosts.d.ts +18 -0
- package/Types/VideoCall/CallSummaryPosts.js +106 -0
- package/Types/VideoCall/CallSummaryPosts.mjs +2 -0
- package/Types/WhatsApp/WhatsAppEventTemplates.d.mts +9 -0
- package/Types/WhatsApp/WhatsAppEventTemplates.d.ts +9 -0
- package/Types/WhatsApp/WhatsAppEventTemplates.js +117 -0
- package/Types/WhatsApp/WhatsAppEventTemplates.mjs +5 -0
- package/Types/Workflow/WorkflowRunAs.d.mts +99 -0
- package/Types/Workflow/WorkflowRunAs.d.ts +99 -0
- package/Types/Workflow/WorkflowRunAs.js +411 -0
- package/Types/Workflow/WorkflowRunAs.mjs +39 -0
- package/Types/Workspace/WorkspacePostedMessage.d.mts +12 -0
- package/Types/Workspace/WorkspacePostedMessage.d.ts +12 -0
- package/Types/Workspace/WorkspacePostedMessage.js +57 -0
- package/Types/Workspace/WorkspacePostedMessage.mjs +3 -0
- package/Utils/AI/MeaningMatch.d.mts +7 -0
- package/Utils/AI/MeaningMatch.d.ts +7 -0
- package/Utils/AI/MeaningMatch.js +49 -1
- package/Utils/AI/MeaningMatch.mjs +1 -0
- package/Utils/AiRemediation/KubectlWaitBudget.d.mts +1 -0
- package/Utils/AiRemediation/KubectlWaitBudget.d.ts +1 -0
- package/Utils/AiRemediation/KubectlWaitBudget.js +19 -0
- package/Utils/DataSecurity/OccurrenceExcerpt.d.mts +4 -0
- package/Utils/DataSecurity/OccurrenceExcerpt.d.ts +4 -0
- package/Utils/DataSecurity/OccurrenceExcerpt.js +30 -0
- package/Utils/DataSecurity/OccurrenceExcerpt.mjs +1 -0
- package/Utils/DeveloperDocs/AiAssistantExamples.d.mts +2 -1
- package/Utils/DeveloperDocs/AiAssistantExamples.d.ts +2 -1
- package/Utils/DeveloperDocs/AiAssistantExamples.js +38 -1
- package/Utils/DeveloperDocs/AiAssistantExamples.mjs +1 -0
- package/Utils/DeveloperDocs/CliCommands.d.mts +14 -0
- package/Utils/DeveloperDocs/CliCommands.d.ts +14 -0
- package/Utils/DeveloperDocs/CliCommands.js +36 -0
- package/Utils/DeveloperDocs/CliCommands.mjs +2 -0
- package/Utils/DeveloperDocs/DeleteChoices.d.mts +47 -0
- package/Utils/DeveloperDocs/DeleteChoices.d.ts +47 -0
- package/Utils/DeveloperDocs/DeleteChoices.js +296 -0
- package/Utils/DeveloperDocs/DeleteChoices.mjs +10 -0
- package/Utils/DeveloperDocs/ListOrderFacts.d.mts +27 -0
- package/Utils/DeveloperDocs/ListOrderFacts.d.ts +27 -0
- package/Utils/DeveloperDocs/ListOrderFacts.js +106 -0
- package/Utils/DeveloperDocs/ListOrderFacts.mjs +4 -0
- package/Utils/DeveloperDocs/TerraformSchema.d.mts +6 -0
- package/Utils/DeveloperDocs/TerraformSchema.d.ts +6 -0
- package/Utils/DeveloperDocs/TerraformSchema.js +20 -1
- package/Utils/DeveloperDocs/TerraformSchema.mjs +1 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.d.mts +36 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.d.ts +36 -0
- package/Utils/GuidedSetup/OnCallPolicyRecords.js +101 -1
- package/Utils/GuidedSetup/OnCallPolicyRecords.mjs +8 -0
- package/Utils/GuidedSetup/ServiceMonitorRecords.d.mts +58 -0
- package/Utils/GuidedSetup/ServiceMonitorRecords.d.ts +58 -0
- package/Utils/GuidedSetup/ServiceMonitorRecords.js +163 -0
- package/Utils/GuidedSetup/ServiceMonitorRecords.mjs +11 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.d.mts +12 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.d.ts +12 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.js +33 -1
- package/Utils/GuidedSetup/WebsiteMonitorRecords.mjs +3 -0
- package/Utils/Host/AndroidAgentLogSessions.d.mts +63 -0
- package/Utils/Host/AndroidAgentLogSessions.d.ts +63 -0
- package/Utils/Host/AndroidAgentLogSessions.js +245 -0
- package/Utils/Host/AndroidAgentLogSessions.mjs +9 -0
- package/Utils/Host/HostOperatingSystem.d.mts +29 -0
- package/Utils/Host/HostOperatingSystem.d.ts +29 -0
- package/Utils/Host/HostOperatingSystem.js +95 -0
- package/Utils/Host/HostOperatingSystem.mjs +4 -0
- package/Utils/HostCollector/HostCollectorConfigResolution.d.mts +1 -1
- package/Utils/HostCollector/HostCollectorConfigResolution.d.ts +1 -1
- package/Utils/HostCollector/HostCollectorConfigResolution.js +12 -2
- package/Utils/HostCollector/HostCollectorDefaultConfig.d.mts +5 -0
- package/Utils/HostCollector/HostCollectorDefaultConfig.d.ts +5 -0
- package/Utils/HostCollector/HostCollectorDefaultConfig.js +90 -4
- package/Utils/HostCollector/HostCollectorDefaultConfig.mjs +5 -0
- package/Utils/Inventory/InventoryAssetDetails.d.mts +4 -3
- package/Utils/Inventory/InventoryAssetDetails.d.ts +4 -3
- package/Utils/Inventory/InventoryAssetDetails.js +16 -29
- package/Utils/ListOrder.d.mts +71 -11
- package/Utils/ListOrder.d.ts +71 -11
- package/Utils/ListOrder.js +135 -20
- package/Utils/ListOrder.mjs +3 -1
- package/Utils/Metrics/MetricLatestReading.d.mts +15 -0
- package/Utils/Metrics/MetricLatestReading.d.ts +15 -0
- package/Utils/Metrics/MetricLatestReading.js +49 -0
- package/Utils/Metrics/MetricLatestReading.mjs +2 -0
- package/Utils/Metrics/MetricQueryOverlay.d.mts +24 -0
- package/Utils/Metrics/MetricQueryOverlay.d.ts +24 -0
- package/Utils/Metrics/MetricQueryOverlay.js +169 -0
- package/Utils/Metrics/MetricQueryOverlay.mjs +3 -0
- package/Utils/Metrics/RetiredCloudMetricChartMoves.d.mts +11 -0
- package/Utils/Metrics/RetiredCloudMetricChartMoves.d.ts +11 -0
- package/Utils/Metrics/RetiredCloudMetricChartMoves.js +337 -0
- package/Utils/Metrics/RetiredCloudMetricChartMoves.mjs +5 -0
- package/Utils/Metrics/RetiredCloudMetricMoves.d.mts +126 -0
- package/Utils/Metrics/RetiredCloudMetricMoves.d.ts +126 -0
- package/Utils/Metrics/RetiredCloudMetricMoves.js +681 -0
- package/Utils/Metrics/RetiredCloudMetricMoves.mjs +26 -0
- package/Utils/Metrics/RetiredCloudMetricReads.d.mts +13 -0
- package/Utils/Metrics/RetiredCloudMetricReads.d.ts +13 -0
- package/Utils/Metrics/RetiredCloudMetricReads.js +176 -0
- package/Utils/Metrics/RetiredCloudMetricReads.mjs +12 -0
- package/Utils/ModelImportExport.js +9 -0
- package/Utils/Monitor/DeviceMonitorDuplicates.js +22 -3
- package/Utils/Monitor/DeviceMonitorTemplateUtil.d.mts +11 -1
- package/Utils/Monitor/DeviceMonitorTemplateUtil.d.ts +11 -1
- package/Utils/Monitor/DeviceMonitorTemplateUtil.js +173 -44
- package/Utils/Monitor/DeviceMonitorTemplateUtil.mjs +5 -0
- package/Utils/Monitor/DeviceUrlTarget.d.mts +35 -0
- package/Utils/Monitor/DeviceUrlTarget.d.ts +35 -0
- package/Utils/Monitor/DeviceUrlTarget.js +254 -0
- package/Utils/Monitor/DeviceUrlTarget.mjs +9 -0
- package/Utils/Monitor/MonitorSecretReferences.d.mts +21 -0
- package/Utils/Monitor/MonitorSecretReferences.d.ts +21 -0
- package/Utils/Monitor/MonitorSecretReferences.js +162 -0
- package/Utils/Monitor/MonitorSecretReferences.mjs +10 -0
- package/Utils/Monitor/MonitorSecretTotp.d.mts +40 -0
- package/Utils/Monitor/MonitorSecretTotp.d.ts +40 -0
- package/Utils/Monitor/MonitorSecretTotp.js +313 -0
- package/Utils/Monitor/MonitorSecretTotp.mjs +15 -0
- package/Utils/Monitor/MonitorStatusReason.d.mts +44 -0
- package/Utils/Monitor/MonitorStatusReason.d.ts +44 -0
- package/Utils/Monitor/MonitorStatusReason.js +446 -0
- package/Utils/Monitor/MonitorStatusReason.mjs +12 -0
- package/Utils/Monitor/MonitorUptimeSummaryUtil.js +7 -6
- package/Utils/Monitor/ProbeFailureCauses.d.mts +3 -1
- package/Utils/Monitor/ProbeFailureCauses.d.ts +3 -1
- package/Utils/Monitor/ProbeFailureCauses.js +14 -3
- package/Utils/Monitor/StatusChangeCauseWording.d.mts +15 -0
- package/Utils/Monitor/StatusChangeCauseWording.d.ts +15 -0
- package/Utils/Monitor/StatusChangeCauseWording.js +129 -0
- package/Utils/Monitor/StatusChangeCauseWording.mjs +5 -0
- package/Utils/Monitor/StatusChangeNotes.d.mts +15 -0
- package/Utils/Monitor/StatusChangeNotes.d.ts +15 -0
- package/Utils/Monitor/StatusChangeNotes.js +144 -0
- package/Utils/Monitor/StatusChangeNotes.mjs +15 -0
- package/Utils/NetworkDevice/DeviceAddressScope.d.mts +71 -0
- package/Utils/NetworkDevice/DeviceAddressScope.d.ts +71 -0
- package/Utils/NetworkDevice/DeviceAddressScope.js +286 -0
- package/Utils/NetworkDevice/DeviceAddressScope.mjs +12 -0
- package/Utils/NetworkDevice/MonitorCheckedHost.d.mts +9 -0
- package/Utils/NetworkDevice/MonitorCheckedHost.d.ts +9 -0
- package/Utils/NetworkDevice/MonitorCheckedHost.js +114 -0
- package/Utils/NetworkDevice/MonitorCheckedHost.mjs +4 -0
- package/Utils/NetworkDevice/Naming/DeviceNamingPlanner.js +8 -6
- package/Utils/NetworkSite/CidrMatchUtil.js +10 -4
- package/Utils/Project/ProjectBilling.js +1 -0
- package/Utils/Rum/SessionIdentity.d.mts +0 -8
- package/Utils/Rum/SessionIdentity.d.ts +0 -8
- package/Utils/Rum/SessionIdentity.js +4 -105
- package/Utils/Rum/SessionReplayFrustrationSettingsValidation.js +15 -1
- package/Utils/Rum/SessionReplayIngestBounds.d.mts +10 -0
- package/Utils/Rum/SessionReplayIngestBounds.d.ts +10 -0
- package/Utils/Rum/SessionReplayIngestBounds.js +121 -0
- package/Utils/Rum/SessionReplayIngestBounds.mjs +2 -0
- package/Utils/Rum/SessionReplayPolicyValidation.d.mts +9 -0
- package/Utils/Rum/SessionReplayPolicyValidation.d.ts +9 -0
- package/Utils/Rum/SessionReplayPolicyValidation.js +97 -0
- package/Utils/Rum/SessionReplayPolicyValidation.mjs +6 -0
- package/Utils/Schema/ModelSchema.js +20 -4
- package/Utils/SecurityCase/SecurityCaseMarkdown.d.mts +1 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.d.ts +1 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.js +5 -2
- package/Utils/SecurityCase/SecurityConnectionMatch.js +23 -8
- package/Utils/SecurityEvent/LogParsers/AzureActivityLogParser.js +7 -0
- package/Utils/SecurityEvent/LogParsers/CloudAuditResources.d.mts +93 -0
- package/Utils/SecurityEvent/LogParsers/CloudAuditResources.d.ts +93 -0
- package/Utils/SecurityEvent/LogParsers/CloudAuditResources.js +1363 -0
- package/Utils/SecurityEvent/LogParsers/CloudAuditResources.mjs +26 -0
- package/Utils/SecurityEvent/LogParsers/CloudTrailLogParser.js +3 -0
- package/Utils/SecurityEvent/LogParsers/GoogleCloudAuditLogParser.js +7 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.mts +5 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.ts +5 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.js +79 -1
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.mjs +4 -0
- package/Utils/SecurityEvent/SecurityRecordReading.d.mts +3 -0
- package/Utils/SecurityEvent/SecurityRecordReading.d.ts +3 -0
- package/Utils/SecurityEvent/SecurityRecordReading.js +21 -0
- package/Utils/SecurityEvent/SecurityRecordReading.mjs +2 -0
- package/Utils/SecurityEvent/SecurityTemplateRecords.js +7 -1
- package/Utils/SecurityEvent/TelemetryScan/TraceSignals.d.mts +1 -0
- package/Utils/SecurityEvent/TelemetryScan/TraceSignals.d.ts +1 -0
- package/Utils/SecurityEvent/TelemetryScan/TraceSignals.js +31 -4
- package/Utils/SecurityEvent/TelemetryScan/TraceSignals.mjs +1 -0
- package/Utils/StateOrder.d.mts +25 -7
- package/Utils/StateOrder.d.ts +25 -7
- package/Utils/StateOrder.js +33 -19
- package/Utils/StateOrder.mjs +1 -0
- package/Utils/Storage/StorageUsage.d.mts +31 -0
- package/Utils/Storage/StorageUsage.d.ts +31 -0
- package/Utils/Storage/StorageUsage.js +179 -0
- package/Utils/Storage/StorageUsage.mjs +10 -0
- package/Utils/Suggestions/CodeFixSuggestion.js +3 -2
- package/Utils/Telemetry/CrossSignalScope.d.mts +6 -1
- package/Utils/Telemetry/CrossSignalScope.d.ts +6 -1
- package/Utils/Telemetry/CrossSignalScope.js +19 -1
- package/Utils/Telemetry/CrossSignalScope.mjs +2 -0
- package/Utils/Telemetry/MetricKitCallStack.d.mts +33 -0
- package/Utils/Telemetry/MetricKitCallStack.d.ts +33 -0
- package/Utils/Telemetry/MetricKitCallStack.js +253 -0
- package/Utils/Telemetry/MetricKitCallStack.mjs +4 -0
- package/Utils/Telemetry/MobileAppFaults.d.mts +14 -1
- package/Utils/Telemetry/MobileAppFaults.d.ts +14 -1
- package/Utils/Telemetry/MobileAppFaults.js +149 -15
- package/Utils/Telemetry/MobileAppFaults.mjs +12 -0
- package/Utils/Telemetry/OtlpAnyValue.d.mts +5 -0
- package/Utils/Telemetry/OtlpAnyValue.d.ts +5 -0
- package/Utils/Telemetry/OtlpAnyValue.js +86 -0
- package/Utils/Telemetry/OtlpAnyValue.mjs +5 -0
- package/Utils/Totp/TotpParameters.d.mts +25 -0
- package/Utils/Totp/TotpParameters.d.ts +25 -0
- package/Utils/Totp/TotpParameters.js +99 -0
- package/Utils/Totp/TotpParameters.mjs +14 -0
- package/Utils/Totp/TotpSecret.d.mts +42 -0
- package/Utils/Totp/TotpSecret.d.ts +42 -0
- package/Utils/Totp/TotpSecret.js +327 -0
- package/Utils/Totp/TotpSecret.mjs +21 -0
- package/Utils/VersionUtil.d.mts +1 -0
- package/Utils/VersionUtil.d.ts +1 -0
- package/Utils/VersionUtil.js +26 -0
- package/package.json +3 -2
|
@@ -0,0 +1,1363 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CLOUDTRAIL_EKS_CLUSTER_FIELDS = exports.EC2_RESOURCE_ID_KINDS = exports.CLOUDTRAIL_RESOURCE_FIELDS = exports.MAX_CLOUD_AUDIT_RESOURCE_IDS = void 0;
|
|
4
|
+
exports.isKmsKeyId = isKmsKeyId;
|
|
5
|
+
exports.isCloudFrontDistributionId = isCloudFrontDistributionId;
|
|
6
|
+
exports.buildInventoryAwsArn = buildInventoryAwsArn;
|
|
7
|
+
exports.isEc2ResourceId = isEc2ResourceId;
|
|
8
|
+
exports.buildCatalogAwsArn = buildCatalogAwsArn;
|
|
9
|
+
exports.normalizeAwsArn = normalizeAwsArn;
|
|
10
|
+
exports.readLambdaFunctionName = readLambdaFunctionName;
|
|
11
|
+
exports.readSqsQueueUrl = readSqsQueueUrl;
|
|
12
|
+
exports.readCloudTrailResourceIds = readCloudTrailResourceIds;
|
|
13
|
+
exports.normalizeAzureResourceId = normalizeAzureResourceId;
|
|
14
|
+
exports.getAzureTopLevelResourceId = getAzureTopLevelResourceId;
|
|
15
|
+
exports.readAzureActivityResourceIds = readAzureActivityResourceIds;
|
|
16
|
+
exports.isGoogleApiServiceName = isGoogleApiServiceName;
|
|
17
|
+
exports.normalizeGoogleResourceName = normalizeGoogleResourceName;
|
|
18
|
+
exports.getGoogleTopLevelResourceName = getGoogleTopLevelResourceName;
|
|
19
|
+
exports.getGoogleMonitoredResourceName = getGoogleMonitoredResourceName;
|
|
20
|
+
exports.readGoogleCloudAuditResourceIds = readGoogleCloudAuditResourceIds;
|
|
21
|
+
exports.canServerlessFunctionBeNamedByAuditLog = canServerlessFunctionBeNamedByAuditLog;
|
|
22
|
+
exports.getServerlessFunctionCloudResourceId = getServerlessFunctionCloudResourceId;
|
|
23
|
+
exports.canCloudResourceHaveSecurityEvents = canCloudResourceHaveSecurityEvents;
|
|
24
|
+
exports.isCloudResourceNamedByItsId = isCloudResourceNamedByItsId;
|
|
25
|
+
const AwsRegionCode_1 = require("../../../Types/Cloud/AwsRegionCode");
|
|
26
|
+
const CloudPlatform_1 = require("../../../Types/Cloud/CloudPlatform");
|
|
27
|
+
const CloudLogGroups_1 = require("../../../Types/Cloud/CloudLogGroups");
|
|
28
|
+
const CloudResourceCatalog_1 = require("../../../Types/Cloud/CloudResourceCatalog");
|
|
29
|
+
const CloudMonitoredResource_1 = require("../../../Types/Cloud/CloudMonitoredResource");
|
|
30
|
+
const LookupTable_1 = require("../../LookupTable");
|
|
31
|
+
const SecurityConnectionMatch_1 = require("../../SecurityCase/SecurityConnectionMatch");
|
|
32
|
+
const SecurityRecordReading_1 = require("../SecurityRecordReading");
|
|
33
|
+
/*
|
|
34
|
+
* THE CLOUD RESOURCES AN AUDIT RECORD IS ABOUT (#9779), by the id their
|
|
35
|
+
* Cloud Resource keeps (CloudResource.providerResourceId): an AWS ARN, an
|
|
36
|
+
* Azure resource ID, a Google Cloud full resource name.
|
|
37
|
+
*
|
|
38
|
+
* A cloud's audit log keeps the resource a call was made on, each cloud its
|
|
39
|
+
* own way, and none where a record's scope reads it:
|
|
40
|
+
*
|
|
41
|
+
* - CloudTrail lists some of it in `resources[].ARN`, and names the rest
|
|
42
|
+
* in the call's own parameters - a bucket by `bucketName`, an instance
|
|
43
|
+
* by its id, a function by its name or its ARN - and in what AWS
|
|
44
|
+
* answered (RunInstances' new instances, CreateFunction's ARN);
|
|
45
|
+
* - the Azure Activity Log keeps it in `resourceId`, in whatever case the
|
|
46
|
+
* writer chose (the export writes it in capitals);
|
|
47
|
+
* - Google Cloud's audit logs keep it in `protoPayload.resourceName`,
|
|
48
|
+
* relative to the API that wrote it, and file the entry under the
|
|
49
|
+
* monitored resource it is about (`resource.type` and its labels).
|
|
50
|
+
*
|
|
51
|
+
* Read here into the ids OneUptime keeps, so a parser puts them among the
|
|
52
|
+
* event's observables - what a record's Security card and Security Events
|
|
53
|
+
* page search (Types/SecurityEvent/SecurityEventScope) - and the event
|
|
54
|
+
* reaches the resource's page, its open cases and its risk:
|
|
55
|
+
*
|
|
56
|
+
* - AWS: an ARN as AWS writes it, and the ARN built from a name or an id
|
|
57
|
+
* the way the resource's own row got its - by the cloud catalog
|
|
58
|
+
* (CloudResourceCatalog, through resolveCloudMonitoredResource), or as
|
|
59
|
+
* the inventory builds a VPC's, a subnet's, a security group's and an
|
|
60
|
+
* EKS cluster's - so the two can only be equal for the same resource;
|
|
61
|
+
* - Azure: the resource ID in lower case - Azure's own resource IDs are
|
|
62
|
+
* case-insensitive, and a record's search reads its own ID in lower
|
|
63
|
+
* case among its spellings;
|
|
64
|
+
* - Google Cloud: `//<service>/<resource name>`, and the full resource
|
|
65
|
+
* name the catalog builds from the monitored resource, as the
|
|
66
|
+
* resource's own row and its streamed logs got theirs.
|
|
67
|
+
*
|
|
68
|
+
* A record about a part of a resource is also about the resource: an S3
|
|
69
|
+
* object's bucket, a Lambda version's function, a DynamoDB index's table,
|
|
70
|
+
* a container of an Azure storage account, a role assigned on a Key Vault,
|
|
71
|
+
* a BigQuery table's dataset. That resource is named too.
|
|
72
|
+
*
|
|
73
|
+
* Only an exact id is ever named. A bare name - a bucket called "logs", a
|
|
74
|
+
* function called "api" - is never put among the observables: it could be
|
|
75
|
+
* any resource of that name, in any account, or a host or a user of the
|
|
76
|
+
* same name. A name becomes an ARN only with the account and the Region the
|
|
77
|
+
* record was written in, through the catalog's own template.
|
|
78
|
+
*
|
|
79
|
+
* Every value here was written outside OneUptime - a request parameter is
|
|
80
|
+
* whatever the caller typed - so each is read with loops and slices, never
|
|
81
|
+
* a regular expression, and each walk is bounded.
|
|
82
|
+
*/
|
|
83
|
+
// The most cloud resources one record names among its observables.
|
|
84
|
+
exports.MAX_CLOUD_AUDIT_RESOURCE_IDS = SecurityRecordReading_1.MAX_EVENT_RESOURCE_IDS;
|
|
85
|
+
/*
|
|
86
|
+
* The deepest a record's parameters are walked, the most text values read
|
|
87
|
+
* of them and the most objects, lists and values looked at in all.
|
|
88
|
+
*/
|
|
89
|
+
const MAX_WALK_DEPTH = 8;
|
|
90
|
+
const MAX_WALK_VALUES = 500;
|
|
91
|
+
const MAX_WALK_NODES = 2000;
|
|
92
|
+
function text(value) {
|
|
93
|
+
if (value === null || value === undefined || typeof value === "object") {
|
|
94
|
+
return "";
|
|
95
|
+
}
|
|
96
|
+
return String(value).trim();
|
|
97
|
+
}
|
|
98
|
+
function asObject(value) {
|
|
99
|
+
return value && typeof value === "object" && !Array.isArray(value)
|
|
100
|
+
? value
|
|
101
|
+
: null;
|
|
102
|
+
}
|
|
103
|
+
// The ids collected for one record: each once, in order, at most the cap.
|
|
104
|
+
class ResourceIds {
|
|
105
|
+
constructor() {
|
|
106
|
+
this.ids = [];
|
|
107
|
+
this.seen = new Set();
|
|
108
|
+
}
|
|
109
|
+
add(id) {
|
|
110
|
+
const value = (id || "").trim();
|
|
111
|
+
if (!value ||
|
|
112
|
+
value.length > SecurityConnectionMatch_1.MAX_RESOURCE_ID_LENGTH ||
|
|
113
|
+
this.ids.length >= exports.MAX_CLOUD_AUDIT_RESOURCE_IDS ||
|
|
114
|
+
!(0, SecurityConnectionMatch_1.isCloudResourceIdLike)(value) ||
|
|
115
|
+
this.seen.has(value)) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
this.seen.add(value);
|
|
119
|
+
this.ids.push(value);
|
|
120
|
+
}
|
|
121
|
+
isFull() {
|
|
122
|
+
return this.ids.length >= exports.MAX_CLOUD_AUDIT_RESOURCE_IDS;
|
|
123
|
+
}
|
|
124
|
+
toArray() {
|
|
125
|
+
return [...this.ids];
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
// A KMS key's own id: a UUID, or a multi-Region key's mrk- and 32 hex digits.
|
|
129
|
+
function isKmsKeyId(value) {
|
|
130
|
+
if (value.startsWith("mrk-")) {
|
|
131
|
+
return value.length === 36 && isLowerHex(value.slice(4));
|
|
132
|
+
}
|
|
133
|
+
if (value.length !== 36) {
|
|
134
|
+
return false;
|
|
135
|
+
}
|
|
136
|
+
for (let index = 0; index < value.length; index++) {
|
|
137
|
+
const isDash = value.charCodeAt(index) === 45;
|
|
138
|
+
const shouldBeDash = index === 8 || index === 13 || index === 18 || index === 23;
|
|
139
|
+
if (isDash !== shouldBeDash) {
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return isLowerHex(value.split("-").join(""));
|
|
144
|
+
}
|
|
145
|
+
// A CloudFront distribution's id: E and 12 to 13 capital letters and digits.
|
|
146
|
+
function isCloudFrontDistributionId(value) {
|
|
147
|
+
if (!value.startsWith("E") || value.length < 13 || value.length > 14) {
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
150
|
+
for (let index = 1; index < value.length; index++) {
|
|
151
|
+
const code = value.charCodeAt(index);
|
|
152
|
+
if (!((code >= 48 && code <= 57) || (code >= 65 && code <= 90))) {
|
|
153
|
+
return false;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
return true;
|
|
157
|
+
}
|
|
158
|
+
/*
|
|
159
|
+
* The names and ids CloudTrail records for the resources OneUptime's cloud
|
|
160
|
+
* catalog lists. A resource whose calls always carry its ARN - an SNS
|
|
161
|
+
* topic, an ELBv2 load balancer, a Step Functions state machine, a
|
|
162
|
+
* certificate, an accelerator, an App Runner service, an MSK cluster - is
|
|
163
|
+
* read from that ARN (readCloudTrailArns), and needs no field here.
|
|
164
|
+
*/
|
|
165
|
+
exports.CLOUDTRAIL_RESOURCE_FIELDS = [
|
|
166
|
+
{
|
|
167
|
+
eventSource: "s3.amazonaws.com",
|
|
168
|
+
field: "bucketName",
|
|
169
|
+
namespace: "AWS/S3",
|
|
170
|
+
dimension: "BucketName",
|
|
171
|
+
type: "AWS::S3::Bucket",
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
eventSource: "rds.amazonaws.com",
|
|
175
|
+
field: "dBInstanceIdentifier",
|
|
176
|
+
namespace: "AWS/RDS",
|
|
177
|
+
dimension: "DBInstanceIdentifier",
|
|
178
|
+
type: "AWS::RDS::DBInstance",
|
|
179
|
+
isLowerCase: true,
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
eventSource: "rds.amazonaws.com",
|
|
183
|
+
field: "dBClusterIdentifier",
|
|
184
|
+
namespace: "AWS/RDS",
|
|
185
|
+
dimension: "DBClusterIdentifier",
|
|
186
|
+
type: "AWS::RDS::DBCluster",
|
|
187
|
+
isLowerCase: true,
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
eventSource: "dynamodb.amazonaws.com",
|
|
191
|
+
field: "tableName",
|
|
192
|
+
namespace: "AWS/DynamoDB",
|
|
193
|
+
dimension: "TableName",
|
|
194
|
+
type: "AWS::DynamoDB::Table",
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
eventSource: "sqs.amazonaws.com",
|
|
198
|
+
field: "queueName",
|
|
199
|
+
namespace: "AWS/SQS",
|
|
200
|
+
dimension: "QueueName",
|
|
201
|
+
type: "AWS::SQS::Queue",
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
eventSource: "elasticloadbalancing.amazonaws.com",
|
|
205
|
+
field: "loadBalancerName",
|
|
206
|
+
namespace: "AWS/ELB",
|
|
207
|
+
dimension: "LoadBalancerName",
|
|
208
|
+
type: "AWS::ElasticLoadBalancing::LoadBalancer",
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
eventSource: "kinesis.amazonaws.com",
|
|
212
|
+
field: "streamName",
|
|
213
|
+
namespace: "AWS/Kinesis",
|
|
214
|
+
dimension: "StreamName",
|
|
215
|
+
type: "AWS::Kinesis::Stream",
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
eventSource: "firehose.amazonaws.com",
|
|
219
|
+
field: "deliveryStreamName",
|
|
220
|
+
namespace: "AWS/Firehose",
|
|
221
|
+
dimension: "DeliveryStreamName",
|
|
222
|
+
type: "AWS::KinesisFirehose::DeliveryStream",
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
eventSource: "elasticache.amazonaws.com",
|
|
226
|
+
field: "cacheClusterId",
|
|
227
|
+
namespace: "AWS/ElastiCache",
|
|
228
|
+
dimension: "CacheClusterId",
|
|
229
|
+
type: "AWS::ElastiCache::CacheCluster",
|
|
230
|
+
isLowerCase: true,
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
eventSource: "elasticache.amazonaws.com",
|
|
234
|
+
field: "replicationGroupId",
|
|
235
|
+
namespace: "AWS/ElastiCache",
|
|
236
|
+
dimension: "ReplicationGroupId",
|
|
237
|
+
type: "AWS::ElastiCache::ReplicationGroup",
|
|
238
|
+
isLowerCase: true,
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
eventSource: "elasticache.amazonaws.com",
|
|
242
|
+
field: "serverlessCacheName",
|
|
243
|
+
namespace: "AWS/ElastiCache",
|
|
244
|
+
dimension: "clusterId",
|
|
245
|
+
type: "AWS::ElastiCache::ServerlessCache",
|
|
246
|
+
isLowerCase: true,
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
eventSource: "memorydb.amazonaws.com",
|
|
250
|
+
field: "clusterName",
|
|
251
|
+
namespace: "AWS/MemoryDB",
|
|
252
|
+
dimension: "ClusterName",
|
|
253
|
+
type: "AWS::MemoryDB::Cluster",
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
eventSource: "redshift.amazonaws.com",
|
|
257
|
+
field: "clusterIdentifier",
|
|
258
|
+
namespace: "AWS/Redshift",
|
|
259
|
+
dimension: "ClusterIdentifier",
|
|
260
|
+
type: "AWS::Redshift::Cluster",
|
|
261
|
+
isLowerCase: true,
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
eventSource: "es.amazonaws.com",
|
|
265
|
+
field: "domainName",
|
|
266
|
+
namespace: "AWS/ES",
|
|
267
|
+
dimension: "DomainName",
|
|
268
|
+
type: "AWS::OpenSearchService::Domain",
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
eventSource: "ecs.amazonaws.com",
|
|
272
|
+
field: "cluster",
|
|
273
|
+
namespace: "AWS/ECS",
|
|
274
|
+
dimension: "ClusterName",
|
|
275
|
+
type: "AWS::ECS::Cluster",
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
eventSource: "ecs.amazonaws.com",
|
|
279
|
+
field: "clusterName",
|
|
280
|
+
namespace: "AWS/ECS",
|
|
281
|
+
dimension: "ClusterName",
|
|
282
|
+
type: "AWS::ECS::Cluster",
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
eventSource: "ecs.amazonaws.com",
|
|
286
|
+
field: "service",
|
|
287
|
+
namespace: "AWS/ECS",
|
|
288
|
+
dimension: "ServiceName",
|
|
289
|
+
type: "AWS::ECS::Service",
|
|
290
|
+
companions: { ClusterName: { field: "cluster", isRequired: true } },
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
eventSource: "cloudfront.amazonaws.com",
|
|
294
|
+
field: "distributionId",
|
|
295
|
+
namespace: "AWS/CloudFront",
|
|
296
|
+
dimension: "DistributionId",
|
|
297
|
+
type: "AWS::CloudFront::Distribution",
|
|
298
|
+
accepts: isCloudFrontDistributionId,
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
eventSource: "cloudfront.amazonaws.com",
|
|
302
|
+
field: "id",
|
|
303
|
+
namespace: "AWS/CloudFront",
|
|
304
|
+
dimension: "DistributionId",
|
|
305
|
+
type: "AWS::CloudFront::Distribution",
|
|
306
|
+
eventNameIncludes: "Distribution",
|
|
307
|
+
accepts: isCloudFrontDistributionId,
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
eventSource: "elasticfilesystem.amazonaws.com",
|
|
311
|
+
field: "fileSystemId",
|
|
312
|
+
namespace: "AWS/EFS",
|
|
313
|
+
dimension: "FileSystemId",
|
|
314
|
+
type: "AWS::EFS::FileSystem",
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
eventSource: "fsx.amazonaws.com",
|
|
318
|
+
field: "fileSystemId",
|
|
319
|
+
namespace: "AWS/FSx",
|
|
320
|
+
dimension: "FileSystemId",
|
|
321
|
+
type: "AWS::FSx::FileSystem",
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
eventSource: "route53.amazonaws.com",
|
|
325
|
+
field: "healthCheckId",
|
|
326
|
+
namespace: "AWS/Route53",
|
|
327
|
+
dimension: "HealthCheckId",
|
|
328
|
+
type: "AWS::Route53::HealthCheck",
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
eventSource: "network-firewall.amazonaws.com",
|
|
332
|
+
field: "firewallName",
|
|
333
|
+
namespace: "AWS/NetworkFirewall",
|
|
334
|
+
dimension: "FirewallName",
|
|
335
|
+
type: "AWS::NetworkFirewall::Firewall",
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
eventSource: "glue.amazonaws.com",
|
|
339
|
+
field: "jobName",
|
|
340
|
+
namespace: "Glue",
|
|
341
|
+
dimension: "JobName",
|
|
342
|
+
type: "AWS::Glue::Job",
|
|
343
|
+
fixedDimensions: { JobRunId: "ALL" },
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
eventSource: "athena.amazonaws.com",
|
|
347
|
+
field: "workGroup",
|
|
348
|
+
namespace: "AWS/Athena",
|
|
349
|
+
dimension: "WorkGroup",
|
|
350
|
+
type: "AWS::Athena::WorkGroup",
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
eventSource: "apigateway.amazonaws.com",
|
|
354
|
+
field: "apiId",
|
|
355
|
+
namespace: "AWS/ApiGateway",
|
|
356
|
+
dimension: "ApiId",
|
|
357
|
+
type: "AWS::ApiGatewayV2::Api",
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
eventSource: "appsync.amazonaws.com",
|
|
361
|
+
field: "apiId",
|
|
362
|
+
namespace: "AWS/AppSync",
|
|
363
|
+
dimension: "GraphQLAPIId",
|
|
364
|
+
type: "AWS::AppSync::GraphQLApi",
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
eventSource: "kms.amazonaws.com",
|
|
368
|
+
field: "keyId",
|
|
369
|
+
namespace: "AWS/KMS",
|
|
370
|
+
dimension: "KeyId",
|
|
371
|
+
type: "AWS::KMS::Key",
|
|
372
|
+
accepts: isKmsKeyId,
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
eventSource: "cognito-idp.amazonaws.com",
|
|
376
|
+
field: "userPoolId",
|
|
377
|
+
namespace: "AWS/Cognito",
|
|
378
|
+
dimension: "UserPool",
|
|
379
|
+
type: "AWS::Cognito::UserPool",
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
eventSource: "sagemaker.amazonaws.com",
|
|
383
|
+
field: "endpointName",
|
|
384
|
+
namespace: "AWS/SageMaker",
|
|
385
|
+
dimension: "EndpointName",
|
|
386
|
+
type: "AWS::SageMaker::Endpoint",
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
eventSource: "events.amazonaws.com",
|
|
390
|
+
field: "name",
|
|
391
|
+
namespace: "AWS/Events",
|
|
392
|
+
dimension: "RuleName",
|
|
393
|
+
type: "AWS::Events::Rule",
|
|
394
|
+
eventNameIncludes: "Rule",
|
|
395
|
+
companions: {
|
|
396
|
+
EventBusName: { field: "eventBusName", isRequired: false },
|
|
397
|
+
},
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
eventSource: "events.amazonaws.com",
|
|
401
|
+
field: "rule",
|
|
402
|
+
namespace: "AWS/Events",
|
|
403
|
+
dimension: "RuleName",
|
|
404
|
+
type: "AWS::Events::Rule",
|
|
405
|
+
companions: {
|
|
406
|
+
EventBusName: { field: "eventBusName", isRequired: false },
|
|
407
|
+
},
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
eventSource: "logs.amazonaws.com",
|
|
411
|
+
field: "logGroupName",
|
|
412
|
+
namespace: "AWS/Logs",
|
|
413
|
+
dimension: "LogGroupName",
|
|
414
|
+
type: "AWS::Logs::LogGroup",
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
eventSource: "directconnect.amazonaws.com",
|
|
418
|
+
field: "connectionId",
|
|
419
|
+
namespace: "AWS/DX",
|
|
420
|
+
dimension: "ConnectionId",
|
|
421
|
+
type: "AWS::DirectConnect::Connection",
|
|
422
|
+
},
|
|
423
|
+
];
|
|
424
|
+
/*
|
|
425
|
+
* The ARN of a resource the AWS inventory lists without metrics - a VPC, a
|
|
426
|
+
* subnet, a security group, an EKS cluster - built as the inventory builds
|
|
427
|
+
* it (AwsInventoryCatalog), in the record's account and Region. Null when
|
|
428
|
+
* either is not known.
|
|
429
|
+
*/
|
|
430
|
+
function buildInventoryAwsArn(data) {
|
|
431
|
+
const region = data.place.region;
|
|
432
|
+
const accountId = data.place.accountId;
|
|
433
|
+
if (!(0, AwsRegionCode_1.isAwsRegion)(region) || accountId.length !== 12 || !isDigits(accountId)) {
|
|
434
|
+
return null;
|
|
435
|
+
}
|
|
436
|
+
return `arn:${(0, CloudResourceCatalog_1.getAwsPartitionForRegion)(region)}:${data.service}:${region}:${accountId}:${data.resource}`;
|
|
437
|
+
}
|
|
438
|
+
function catalogEc2Kind(data) {
|
|
439
|
+
return {
|
|
440
|
+
prefix: data.prefix,
|
|
441
|
+
type: data.type,
|
|
442
|
+
arn: (id, place) => {
|
|
443
|
+
return buildCatalogAwsArn({
|
|
444
|
+
namespace: data.namespace,
|
|
445
|
+
dimensions: { [data.dimension]: id },
|
|
446
|
+
place,
|
|
447
|
+
type: data.type,
|
|
448
|
+
});
|
|
449
|
+
},
|
|
450
|
+
};
|
|
451
|
+
}
|
|
452
|
+
function inventoryEc2Kind(data) {
|
|
453
|
+
return {
|
|
454
|
+
prefix: data.prefix,
|
|
455
|
+
type: data.type,
|
|
456
|
+
arn: (id, place) => {
|
|
457
|
+
return buildInventoryAwsArn({
|
|
458
|
+
service: "ec2",
|
|
459
|
+
resource: `${data.resource}/${id}`,
|
|
460
|
+
place,
|
|
461
|
+
});
|
|
462
|
+
},
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
/*
|
|
466
|
+
* The EC2 ids a record names, in any service's call - an instance a
|
|
467
|
+
* Systems Manager command ran on is named by its id there too, and a
|
|
468
|
+
* security group an RDS database was moved into by its id: the id's
|
|
469
|
+
* prefix says what it is, and its ARN is built as its Cloud Resource's
|
|
470
|
+
* was, by the cloud catalog or the inventory.
|
|
471
|
+
*/
|
|
472
|
+
exports.EC2_RESOURCE_ID_KINDS = [
|
|
473
|
+
catalogEc2Kind({
|
|
474
|
+
prefix: "i-",
|
|
475
|
+
namespace: "AWS/EC2",
|
|
476
|
+
dimension: "InstanceId",
|
|
477
|
+
type: "AWS::EC2::Instance",
|
|
478
|
+
}),
|
|
479
|
+
catalogEc2Kind({
|
|
480
|
+
prefix: "vol-",
|
|
481
|
+
namespace: "AWS/EBS",
|
|
482
|
+
dimension: "VolumeId",
|
|
483
|
+
type: "AWS::EC2::Volume",
|
|
484
|
+
}),
|
|
485
|
+
catalogEc2Kind({
|
|
486
|
+
prefix: "nat-",
|
|
487
|
+
namespace: "AWS/NATGateway",
|
|
488
|
+
dimension: "NatGatewayId",
|
|
489
|
+
type: "AWS::EC2::NatGateway",
|
|
490
|
+
}),
|
|
491
|
+
catalogEc2Kind({
|
|
492
|
+
prefix: "tgw-",
|
|
493
|
+
namespace: "AWS/TransitGateway",
|
|
494
|
+
dimension: "TransitGateway",
|
|
495
|
+
type: "AWS::EC2::TransitGateway",
|
|
496
|
+
}),
|
|
497
|
+
catalogEc2Kind({
|
|
498
|
+
prefix: "vpn-",
|
|
499
|
+
namespace: "AWS/VPN",
|
|
500
|
+
dimension: "VpnId",
|
|
501
|
+
type: "AWS::EC2::VPNConnection",
|
|
502
|
+
}),
|
|
503
|
+
inventoryEc2Kind({
|
|
504
|
+
prefix: "sg-",
|
|
505
|
+
type: "AWS::EC2::SecurityGroup",
|
|
506
|
+
resource: "security-group",
|
|
507
|
+
}),
|
|
508
|
+
inventoryEc2Kind({ prefix: "vpc-", type: "AWS::EC2::VPC", resource: "vpc" }),
|
|
509
|
+
inventoryEc2Kind({
|
|
510
|
+
prefix: "subnet-",
|
|
511
|
+
type: "AWS::EC2::Subnet",
|
|
512
|
+
resource: "subnet",
|
|
513
|
+
}),
|
|
514
|
+
];
|
|
515
|
+
/*
|
|
516
|
+
* The EKS cluster a call names (#9375 lists them): by `name` on the
|
|
517
|
+
* cluster's own calls - UpdateClusterConfig opening its API to the
|
|
518
|
+
* internet - and by `clusterName` on everything inside it - an access
|
|
519
|
+
* entry, a node group, an identity provider.
|
|
520
|
+
*/
|
|
521
|
+
exports.CLOUDTRAIL_EKS_CLUSTER_FIELDS = [
|
|
522
|
+
{ field: "name", eventNameIncludes: "Cluster" },
|
|
523
|
+
{ field: "clusterName" },
|
|
524
|
+
];
|
|
525
|
+
// An EKS cluster's name: 1 to 100 letters, digits, hyphens and underscores, a letter or digit first.
|
|
526
|
+
function isEksClusterName(value) {
|
|
527
|
+
if (value.length < 1 || value.length > 100) {
|
|
528
|
+
return false;
|
|
529
|
+
}
|
|
530
|
+
for (let index = 0; index < value.length; index++) {
|
|
531
|
+
const code = value.charCodeAt(index);
|
|
532
|
+
const isLetterOrDigit = (code >= 48 && code <= 57) ||
|
|
533
|
+
(code >= 65 && code <= 90) ||
|
|
534
|
+
(code >= 97 && code <= 122);
|
|
535
|
+
if (!isLetterOrDigit && (index === 0 || (code !== 45 && code !== 95))) {
|
|
536
|
+
return false;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
return true;
|
|
540
|
+
}
|
|
541
|
+
function isLowerHex(value) {
|
|
542
|
+
for (let index = 0; index < value.length; index++) {
|
|
543
|
+
const code = value.charCodeAt(index);
|
|
544
|
+
if (!((code >= 48 && code <= 57) || (code >= 97 && code <= 102))) {
|
|
545
|
+
return false;
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
return true;
|
|
549
|
+
}
|
|
550
|
+
/*
|
|
551
|
+
* Whether a value is an EC2 id with this prefix: the prefix, then 8 or 17
|
|
552
|
+
* lowercase hex digits, and nothing else - "tgw-attach-..." is an
|
|
553
|
+
* attachment, not a transit gateway.
|
|
554
|
+
*/
|
|
555
|
+
function isEc2ResourceId(value, prefix) {
|
|
556
|
+
if (!value.startsWith(prefix)) {
|
|
557
|
+
return false;
|
|
558
|
+
}
|
|
559
|
+
const rest = value.slice(prefix.length);
|
|
560
|
+
return (rest.length === 8 || rest.length === 17) && isLowerHex(rest);
|
|
561
|
+
}
|
|
562
|
+
/*
|
|
563
|
+
* The ARN the cloud catalog builds for a resource of this namespace and
|
|
564
|
+
* these dimensions, in this account and Region - the one its Cloud
|
|
565
|
+
* Resource keeps - or null when the catalog builds none (a resource whose
|
|
566
|
+
* ARN carries an id no call names) or it is not of the type expected.
|
|
567
|
+
*/
|
|
568
|
+
function buildCatalogAwsArn(data) {
|
|
569
|
+
const attributes = {
|
|
570
|
+
[CloudMonitoredResource_1.AWS_CLOUDWATCH_NAMESPACE_ATTRIBUTE]: data.namespace,
|
|
571
|
+
};
|
|
572
|
+
if (data.place.accountId) {
|
|
573
|
+
attributes[CloudMonitoredResource_1.CLOUD_ACCOUNT_ID_ATTRIBUTE] = data.place.accountId;
|
|
574
|
+
}
|
|
575
|
+
if (data.place.region) {
|
|
576
|
+
attributes[CloudMonitoredResource_1.CLOUD_REGION_ATTRIBUTE] = data.place.region;
|
|
577
|
+
}
|
|
578
|
+
for (const name of Object.keys(data.dimensions)) {
|
|
579
|
+
const value = (data.dimensions[name] || "").trim();
|
|
580
|
+
if (!value) {
|
|
581
|
+
return null;
|
|
582
|
+
}
|
|
583
|
+
attributes[`${CloudMonitoredResource_1.AWS_CLOUDWATCH_DIMENSION_PREFIX}${name}`] = value;
|
|
584
|
+
}
|
|
585
|
+
const resource = (0, CloudMonitoredResource_1.resolveCloudMonitoredResource)({
|
|
586
|
+
metricName: `${CloudMonitoredResource_1.AWS_CLOUDWATCH_METRIC_NAME_PREFIX}${data.namespace}/CloudTrail`,
|
|
587
|
+
attributes,
|
|
588
|
+
});
|
|
589
|
+
if (!resource ||
|
|
590
|
+
resource.resourceType !== data.type ||
|
|
591
|
+
!(0, CloudMonitoredResource_1.isCloudProviderOwnResourceId)(CloudPlatform_1.CloudProvider.AWS, resource.providerResourceId)) {
|
|
592
|
+
return null;
|
|
593
|
+
}
|
|
594
|
+
return resource.providerResourceId;
|
|
595
|
+
}
|
|
596
|
+
// The ARN's parts: arn, partition, service, region, account and the resource, which may hold colons.
|
|
597
|
+
function splitArn(arn) {
|
|
598
|
+
const parts = [];
|
|
599
|
+
let start = 0;
|
|
600
|
+
for (let index = 0; index < arn.length && parts.length < 5; index++) {
|
|
601
|
+
if (arn.charCodeAt(index) === 58) {
|
|
602
|
+
parts.push(arn.slice(start, index));
|
|
603
|
+
start = index + 1;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
if (parts.length < 5 || parts[0] !== "arn") {
|
|
607
|
+
return null;
|
|
608
|
+
}
|
|
609
|
+
parts.push(arn.slice(start));
|
|
610
|
+
return parts[5] ? parts : null;
|
|
611
|
+
}
|
|
612
|
+
function joinArn(parts, resource) {
|
|
613
|
+
return `${parts.slice(0, 5).join(":")}:${resource}`;
|
|
614
|
+
}
|
|
615
|
+
// The resource part cut at the first `separator` after `from`, or as it is.
|
|
616
|
+
function cutAt(value, separator, from = 0) {
|
|
617
|
+
const at = value.indexOf(separator, from);
|
|
618
|
+
return at === -1 ? value : value.slice(0, at);
|
|
619
|
+
}
|
|
620
|
+
/*
|
|
621
|
+
* An ARN a record names, as the resource OneUptime keeps it: a part of a
|
|
622
|
+
* resource as the resource itself (an S3 object as its bucket, a Lambda
|
|
623
|
+
* version as its function, a DynamoDB index or stream as its table, a
|
|
624
|
+
* Kinesis consumer as its stream, an SNS subscription as its topic, a
|
|
625
|
+
* load balancer's listener or rule as the load balancer, a log group's
|
|
626
|
+
* stream as the log group), any other ARN as it is. Null for an ARN that
|
|
627
|
+
* names no resource - a signed-in session (sts) - or is no ARN.
|
|
628
|
+
*/
|
|
629
|
+
function normalizeAwsArn(value) {
|
|
630
|
+
const arn = value.trim();
|
|
631
|
+
if (!(0, SecurityConnectionMatch_1.isCloudResourceIdLike)(arn) || !arn.toLowerCase().startsWith("arn:")) {
|
|
632
|
+
return null;
|
|
633
|
+
}
|
|
634
|
+
const parts = splitArn(arn);
|
|
635
|
+
if (!parts) {
|
|
636
|
+
return null;
|
|
637
|
+
}
|
|
638
|
+
const service = parts[2] || "";
|
|
639
|
+
const resource = parts[5] || "";
|
|
640
|
+
switch (service) {
|
|
641
|
+
case "sts":
|
|
642
|
+
return null;
|
|
643
|
+
case "s3": {
|
|
644
|
+
// An object, or a bucket's own path: the bucket. An access point keeps its Region.
|
|
645
|
+
if (parts[3] || parts[4]) {
|
|
646
|
+
return arn;
|
|
647
|
+
}
|
|
648
|
+
const bucket = cutAt(resource, "/");
|
|
649
|
+
return bucket ? joinArn(parts, bucket) : null;
|
|
650
|
+
}
|
|
651
|
+
case "lambda": {
|
|
652
|
+
// function:<name>[:<version or alias>]
|
|
653
|
+
if (resource.startsWith("function:")) {
|
|
654
|
+
return joinArn(parts, cutAt(resource, ":", "function:".length));
|
|
655
|
+
}
|
|
656
|
+
return arn;
|
|
657
|
+
}
|
|
658
|
+
case "dynamodb": {
|
|
659
|
+
// table/<name>[/index/... | /stream/... | /backup/... | /export/...]
|
|
660
|
+
if (resource.startsWith("table/")) {
|
|
661
|
+
return joinArn(parts, cutAt(resource, "/", "table/".length));
|
|
662
|
+
}
|
|
663
|
+
return arn;
|
|
664
|
+
}
|
|
665
|
+
case "kinesis": {
|
|
666
|
+
if (resource.startsWith("stream/")) {
|
|
667
|
+
return joinArn(parts, cutAt(resource, "/", "stream/".length));
|
|
668
|
+
}
|
|
669
|
+
return arn;
|
|
670
|
+
}
|
|
671
|
+
case "sns": {
|
|
672
|
+
// <topic>[:<subscription id>]
|
|
673
|
+
return joinArn(parts, cutAt(resource, ":"));
|
|
674
|
+
}
|
|
675
|
+
case "logs": {
|
|
676
|
+
// log-group:<name>[:*][:log-stream:<name>]
|
|
677
|
+
if (resource.startsWith("log-group:")) {
|
|
678
|
+
return joinArn(parts, cutAt(resource, ":", "log-group:".length));
|
|
679
|
+
}
|
|
680
|
+
return arn;
|
|
681
|
+
}
|
|
682
|
+
case "elasticloadbalancing": {
|
|
683
|
+
// listener/<type>/<name>/<id>/<listener id>, listener-rule/.../<rule id>
|
|
684
|
+
for (const child of ["listener/", "listener-rule/"]) {
|
|
685
|
+
if (resource.startsWith(child)) {
|
|
686
|
+
const pieces = resource.slice(child.length).split("/");
|
|
687
|
+
return pieces.length >= 3 && pieces[0] && pieces[1] && pieces[2]
|
|
688
|
+
? joinArn(parts, `loadbalancer/${pieces[0]}/${pieces[1]}/${pieces[2]}`)
|
|
689
|
+
: null;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
return arn;
|
|
693
|
+
}
|
|
694
|
+
default:
|
|
695
|
+
return arn;
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
/*
|
|
699
|
+
* A Lambda function's name, from what a call gives in `functionName`: the
|
|
700
|
+
* name, the name with a version or alias, the partial ARN
|
|
701
|
+
* (<account>:function:<name>) or the full ARN. With the account the partial
|
|
702
|
+
* ARN names, when it names one. Null for anything that is not a function's
|
|
703
|
+
* name: 1 to 64 letters, digits, hyphens and underscores.
|
|
704
|
+
*/
|
|
705
|
+
function readLambdaFunctionName(value) {
|
|
706
|
+
let rest = value.trim();
|
|
707
|
+
let accountId = "";
|
|
708
|
+
if (rest.startsWith("arn:")) {
|
|
709
|
+
return null;
|
|
710
|
+
}
|
|
711
|
+
const marker = ":function:";
|
|
712
|
+
const at = rest.indexOf(marker);
|
|
713
|
+
if (at !== -1) {
|
|
714
|
+
accountId = rest.slice(0, at);
|
|
715
|
+
rest = rest.slice(at + marker.length);
|
|
716
|
+
if (accountId.length !== 12 || !isDigits(accountId)) {
|
|
717
|
+
return null;
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
const name = cutAt(rest, ":");
|
|
721
|
+
if (name.length < 1 || name.length > 64) {
|
|
722
|
+
return null;
|
|
723
|
+
}
|
|
724
|
+
for (let index = 0; index < name.length; index++) {
|
|
725
|
+
const code = name.charCodeAt(index);
|
|
726
|
+
const isAllowed = (code >= 48 && code <= 57) ||
|
|
727
|
+
(code >= 65 && code <= 90) ||
|
|
728
|
+
(code >= 97 && code <= 122) ||
|
|
729
|
+
code === 45 ||
|
|
730
|
+
code === 95;
|
|
731
|
+
if (!isAllowed) {
|
|
732
|
+
return null;
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
return { name, accountId };
|
|
736
|
+
}
|
|
737
|
+
function isDigits(value) {
|
|
738
|
+
if (!value) {
|
|
739
|
+
return false;
|
|
740
|
+
}
|
|
741
|
+
for (let index = 0; index < value.length; index++) {
|
|
742
|
+
const code = value.charCodeAt(index);
|
|
743
|
+
if (code < 48 || code > 57) {
|
|
744
|
+
return false;
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
return true;
|
|
748
|
+
}
|
|
749
|
+
/*
|
|
750
|
+
* An SQS queue's URL as its name, account and Region:
|
|
751
|
+
* https://sqs.<region>.amazonaws.com/<account>/<name>, the legacy
|
|
752
|
+
* https://<region>.queue.amazonaws.com/... and https://queue.amazonaws.com/...
|
|
753
|
+
* (us-east-1). Null for anything else.
|
|
754
|
+
*/
|
|
755
|
+
function readSqsQueueUrl(value) {
|
|
756
|
+
const url = value.trim();
|
|
757
|
+
const scheme = "https://";
|
|
758
|
+
if (!url.toLowerCase().startsWith(scheme) || url.length > 512) {
|
|
759
|
+
return null;
|
|
760
|
+
}
|
|
761
|
+
const rest = url.slice(scheme.length);
|
|
762
|
+
const slash = rest.indexOf("/");
|
|
763
|
+
if (slash === -1) {
|
|
764
|
+
return null;
|
|
765
|
+
}
|
|
766
|
+
const host = rest.slice(0, slash).toLowerCase();
|
|
767
|
+
const path = rest
|
|
768
|
+
.slice(slash + 1)
|
|
769
|
+
.split("/")
|
|
770
|
+
.filter((segment) => {
|
|
771
|
+
return segment.length > 0;
|
|
772
|
+
});
|
|
773
|
+
if (path.length !== 2 || !isDigits(path[0]) || path[0].length !== 12) {
|
|
774
|
+
return null;
|
|
775
|
+
}
|
|
776
|
+
let region = "";
|
|
777
|
+
if (host.startsWith("sqs.")) {
|
|
778
|
+
region = cutAt(host.slice("sqs.".length), ".");
|
|
779
|
+
}
|
|
780
|
+
else if (host === "queue.amazonaws.com") {
|
|
781
|
+
region = "us-east-1";
|
|
782
|
+
}
|
|
783
|
+
else if (host.endsWith(".queue.amazonaws.com")) {
|
|
784
|
+
region = host.slice(0, host.length - ".queue.amazonaws.com".length);
|
|
785
|
+
}
|
|
786
|
+
else {
|
|
787
|
+
return null;
|
|
788
|
+
}
|
|
789
|
+
return region ? { name: path[1], accountId: path[0], region } : null;
|
|
790
|
+
}
|
|
791
|
+
// A value that may be an ARN: its last part, else the value.
|
|
792
|
+
function arnTail(value) {
|
|
793
|
+
if (!value.startsWith("arn:")) {
|
|
794
|
+
return value;
|
|
795
|
+
}
|
|
796
|
+
const slash = value.lastIndexOf("/");
|
|
797
|
+
const colon = value.lastIndexOf(":");
|
|
798
|
+
const cut = Math.max(slash, colon);
|
|
799
|
+
return cut >= 0 ? value.slice(cut + 1) : value;
|
|
800
|
+
}
|
|
801
|
+
/*
|
|
802
|
+
* Every text value of a record's parameters, with the field it is in,
|
|
803
|
+
* nearest first: at most MAX_WALK_VALUES of them, at most MAX_WALK_DEPTH
|
|
804
|
+
* deep, and no more than MAX_WALK_NODES looked at in all, however the
|
|
805
|
+
* record nests.
|
|
806
|
+
*/
|
|
807
|
+
function walkValues(root) {
|
|
808
|
+
const values = [];
|
|
809
|
+
const queue = [];
|
|
810
|
+
if (root !== undefined && root !== null) {
|
|
811
|
+
queue.push({ value: root, field: "", depth: 0 });
|
|
812
|
+
}
|
|
813
|
+
for (let next = 0; next < queue.length && values.length < MAX_WALK_VALUES; next++) {
|
|
814
|
+
const { value, field, depth } = queue[next];
|
|
815
|
+
if (typeof value === "string") {
|
|
816
|
+
values.push({ field, value });
|
|
817
|
+
continue;
|
|
818
|
+
}
|
|
819
|
+
if (!value || typeof value !== "object" || depth >= MAX_WALK_DEPTH) {
|
|
820
|
+
continue;
|
|
821
|
+
}
|
|
822
|
+
const children = Array.isArray(value)
|
|
823
|
+
? value
|
|
824
|
+
.slice(0, MAX_WALK_NODES)
|
|
825
|
+
.map((item) => {
|
|
826
|
+
return { value: item, field };
|
|
827
|
+
})
|
|
828
|
+
: Object.keys(value)
|
|
829
|
+
.slice(0, MAX_WALK_NODES)
|
|
830
|
+
.map((key) => {
|
|
831
|
+
return {
|
|
832
|
+
value: value[key],
|
|
833
|
+
field: key,
|
|
834
|
+
};
|
|
835
|
+
});
|
|
836
|
+
for (const child of children) {
|
|
837
|
+
if (queue.length >= MAX_WALK_NODES) {
|
|
838
|
+
break;
|
|
839
|
+
}
|
|
840
|
+
queue.push({ ...child, depth: depth + 1 });
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
return values;
|
|
844
|
+
}
|
|
845
|
+
// A field's value among a record's walked values: the first, of any case of its name.
|
|
846
|
+
function companionValue(values, field) {
|
|
847
|
+
const lower = field.toLowerCase();
|
|
848
|
+
for (const walked of values) {
|
|
849
|
+
if (walked.field.toLowerCase() === lower && walked.value.trim()) {
|
|
850
|
+
return arnTail(walked.value.trim());
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
return undefined;
|
|
854
|
+
}
|
|
855
|
+
/*
|
|
856
|
+
* The resources one walked value names, as ARNs: an ARN as the resource it
|
|
857
|
+
* is of, an EC2 id by its prefix, and a field of the table by its name.
|
|
858
|
+
*/
|
|
859
|
+
function readValueArns(data) {
|
|
860
|
+
const value = data.walked.value.trim();
|
|
861
|
+
if (!value || value.length > SecurityConnectionMatch_1.MAX_RESOURCE_ID_LENGTH) {
|
|
862
|
+
return [];
|
|
863
|
+
}
|
|
864
|
+
if (value.startsWith("arn:")) {
|
|
865
|
+
const arn = normalizeAwsArn(value);
|
|
866
|
+
return arn ? [arn] : [];
|
|
867
|
+
}
|
|
868
|
+
const arns = [];
|
|
869
|
+
for (const ec2 of exports.EC2_RESOURCE_ID_KINDS) {
|
|
870
|
+
if (isEc2ResourceId(value, ec2.prefix)) {
|
|
871
|
+
const arn = ec2.arn(value, data.place);
|
|
872
|
+
if (arn) {
|
|
873
|
+
arns.push(arn);
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
const field = data.walked.field.toLowerCase();
|
|
878
|
+
if (data.eventSource === "eks.amazonaws.com" && isEksClusterName(value)) {
|
|
879
|
+
for (const eks of exports.CLOUDTRAIL_EKS_CLUSTER_FIELDS) {
|
|
880
|
+
if (eks.field.toLowerCase() === field &&
|
|
881
|
+
(!eks.eventNameIncludes ||
|
|
882
|
+
data.eventName.indexOf(eks.eventNameIncludes) !== -1)) {
|
|
883
|
+
const arn = buildInventoryAwsArn({
|
|
884
|
+
service: "eks",
|
|
885
|
+
resource: `cluster/${value}`,
|
|
886
|
+
place: data.place,
|
|
887
|
+
});
|
|
888
|
+
if (arn) {
|
|
889
|
+
arns.push(arn);
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
if (data.eventSource === "lambda.amazonaws.com" && field === "functionname") {
|
|
895
|
+
const named = readLambdaFunctionName(value);
|
|
896
|
+
const arn = named
|
|
897
|
+
? buildCatalogAwsArn({
|
|
898
|
+
namespace: "AWS/Lambda",
|
|
899
|
+
dimensions: { FunctionName: named.name },
|
|
900
|
+
place: {
|
|
901
|
+
accountId: named.accountId || data.place.accountId,
|
|
902
|
+
region: data.place.region,
|
|
903
|
+
},
|
|
904
|
+
type: "AWS::Lambda::Function",
|
|
905
|
+
})
|
|
906
|
+
: null;
|
|
907
|
+
if (arn) {
|
|
908
|
+
arns.push(arn);
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
if (data.eventSource === "sqs.amazonaws.com" && field === "queueurl") {
|
|
912
|
+
const queue = readSqsQueueUrl(value);
|
|
913
|
+
const arn = queue
|
|
914
|
+
? buildCatalogAwsArn({
|
|
915
|
+
namespace: "AWS/SQS",
|
|
916
|
+
dimensions: { QueueName: queue.name },
|
|
917
|
+
place: { accountId: queue.accountId, region: queue.region },
|
|
918
|
+
type: "AWS::SQS::Queue",
|
|
919
|
+
})
|
|
920
|
+
: null;
|
|
921
|
+
if (arn) {
|
|
922
|
+
arns.push(arn);
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
for (const entry of exports.CLOUDTRAIL_RESOURCE_FIELDS) {
|
|
926
|
+
if (entry.eventSource !== data.eventSource ||
|
|
927
|
+
entry.field.toLowerCase() !== field ||
|
|
928
|
+
(entry.eventNameIncludes &&
|
|
929
|
+
data.eventName.indexOf(entry.eventNameIncludes) === -1) ||
|
|
930
|
+
(entry.accepts && !entry.accepts(value))) {
|
|
931
|
+
continue;
|
|
932
|
+
}
|
|
933
|
+
const dimensions = {
|
|
934
|
+
...(entry.fixedDimensions || {}),
|
|
935
|
+
[entry.dimension]: entry.isLowerCase ? value.toLowerCase() : value,
|
|
936
|
+
};
|
|
937
|
+
let isComplete = true;
|
|
938
|
+
for (const [dimension, companion] of Object.entries(entry.companions || {})) {
|
|
939
|
+
const companionText = companionValue(data.all, companion.field);
|
|
940
|
+
if (companionText) {
|
|
941
|
+
dimensions[dimension] = companionText;
|
|
942
|
+
}
|
|
943
|
+
else if (companion.isRequired) {
|
|
944
|
+
isComplete = false;
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
const arn = isComplete
|
|
948
|
+
? buildCatalogAwsArn({
|
|
949
|
+
namespace: entry.namespace,
|
|
950
|
+
dimensions,
|
|
951
|
+
place: data.place,
|
|
952
|
+
type: entry.type,
|
|
953
|
+
})
|
|
954
|
+
: null;
|
|
955
|
+
if (arn) {
|
|
956
|
+
arns.push(arn);
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
return arns;
|
|
960
|
+
}
|
|
961
|
+
/*
|
|
962
|
+
* The cloud resources a CloudTrail record is about, as ARNs: the ones it
|
|
963
|
+
* lists in `resources`, then the ones its call names - by ARN, by EC2 id,
|
|
964
|
+
* by a name or an id the cloud catalog knows - then the ones in what AWS
|
|
965
|
+
* answered. Each in the account the call was received in
|
|
966
|
+
* (recipientAccountId) and its Region.
|
|
967
|
+
*/
|
|
968
|
+
function readCloudTrailResourceIds(record) {
|
|
969
|
+
const ids = new ResourceIds();
|
|
970
|
+
const eventSource = text(record["eventSource"]).toLowerCase();
|
|
971
|
+
const eventName = text(record["eventName"]);
|
|
972
|
+
const userIdentity = asObject(record["userIdentity"]);
|
|
973
|
+
const place = {
|
|
974
|
+
accountId: text(record["recipientAccountId"]) ||
|
|
975
|
+
text(userIdentity ? userIdentity["accountId"] : undefined),
|
|
976
|
+
region: text(record["awsRegion"]).toLowerCase(),
|
|
977
|
+
};
|
|
978
|
+
const resources = record["resources"];
|
|
979
|
+
if (Array.isArray(resources)) {
|
|
980
|
+
for (const item of resources.slice(0, MAX_WALK_VALUES)) {
|
|
981
|
+
const resource = asObject(item);
|
|
982
|
+
const arn = resource
|
|
983
|
+
? text(resource["ARN"]) || text(resource["arn"])
|
|
984
|
+
: "";
|
|
985
|
+
ids.add(arn ? normalizeAwsArn(arn) : null);
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
for (const part of ["requestParameters", "responseElements"]) {
|
|
989
|
+
if (ids.isFull()) {
|
|
990
|
+
break;
|
|
991
|
+
}
|
|
992
|
+
const walked = walkValues(record[part]);
|
|
993
|
+
for (const value of walked) {
|
|
994
|
+
if (ids.isFull()) {
|
|
995
|
+
break;
|
|
996
|
+
}
|
|
997
|
+
for (const arn of readValueArns({
|
|
998
|
+
walked: value,
|
|
999
|
+
all: walked,
|
|
1000
|
+
eventSource,
|
|
1001
|
+
eventName,
|
|
1002
|
+
place,
|
|
1003
|
+
})) {
|
|
1004
|
+
ids.add(arn);
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
return ids.toArray();
|
|
1009
|
+
}
|
|
1010
|
+
// ---------- Azure: the Activity Log ----------
|
|
1011
|
+
/*
|
|
1012
|
+
* An Azure resource ID as OneUptime compares it: trimmed, without a
|
|
1013
|
+
* trailing slash, in lower case - Azure's resource IDs are
|
|
1014
|
+
* case-insensitive, and the Activity Log's export writes them in capitals.
|
|
1015
|
+
* Null for anything that is not a resource ID under a subscription.
|
|
1016
|
+
*/
|
|
1017
|
+
function normalizeAzureResourceId(value) {
|
|
1018
|
+
let id = value.trim();
|
|
1019
|
+
while (id.endsWith("/")) {
|
|
1020
|
+
id = id.slice(0, -1);
|
|
1021
|
+
}
|
|
1022
|
+
const lower = id.toLowerCase();
|
|
1023
|
+
return lower.startsWith("/subscriptions/") && (0, SecurityConnectionMatch_1.isCloudResourceIdLike)(lower)
|
|
1024
|
+
? lower
|
|
1025
|
+
: null;
|
|
1026
|
+
}
|
|
1027
|
+
/*
|
|
1028
|
+
* The resource an Azure resource ID is a part of, or an extension of: the
|
|
1029
|
+
* first type and name after its first provider - a storage account for its
|
|
1030
|
+
* blob container, a SQL server for its database, a Key Vault for a role
|
|
1031
|
+
* assigned on it. Null when the ID is that resource itself, or names none
|
|
1032
|
+
* (a subscription, a resource group).
|
|
1033
|
+
*/
|
|
1034
|
+
function getAzureTopLevelResourceId(id) {
|
|
1035
|
+
// ["", "subscriptions", <id>, ("resourceGroups", <name>,) "providers", ...]
|
|
1036
|
+
const segments = id.split("/");
|
|
1037
|
+
const providers = (segments[3] || "").toLowerCase() === "resourcegroups" ? 5 : 3;
|
|
1038
|
+
// providers/<namespace>/<type>/<name>
|
|
1039
|
+
if ((segments[providers] || "").toLowerCase() !== "providers" ||
|
|
1040
|
+
!segments[providers + 1] ||
|
|
1041
|
+
!segments[providers + 2] ||
|
|
1042
|
+
!segments[providers + 3]) {
|
|
1043
|
+
return null;
|
|
1044
|
+
}
|
|
1045
|
+
const top = segments.slice(0, providers + 4).join("/");
|
|
1046
|
+
return top.length < id.length ? top : null;
|
|
1047
|
+
}
|
|
1048
|
+
/*
|
|
1049
|
+
* The cloud resources an Activity Log record is about, as Azure resource
|
|
1050
|
+
* IDs in lower case: its resourceId, the resource that is a part of, and -
|
|
1051
|
+
* for a Defender for Cloud alert - the resource it was raised on, when the
|
|
1052
|
+
* alert names it by its ID.
|
|
1053
|
+
*/
|
|
1054
|
+
function readAzureActivityResourceIds(record) {
|
|
1055
|
+
const ids = new ResourceIds();
|
|
1056
|
+
const properties = asObject(record["properties"]);
|
|
1057
|
+
const candidates = [
|
|
1058
|
+
text(record["resourceId"]),
|
|
1059
|
+
...(properties
|
|
1060
|
+
? [
|
|
1061
|
+
text(properties["resourceId"]),
|
|
1062
|
+
text(properties["ResourceId"]),
|
|
1063
|
+
text(properties["compromisedEntity"]),
|
|
1064
|
+
]
|
|
1065
|
+
: []),
|
|
1066
|
+
];
|
|
1067
|
+
for (const candidate of candidates) {
|
|
1068
|
+
const id = candidate
|
|
1069
|
+
? normalizeAzureResourceId(candidate)
|
|
1070
|
+
: null;
|
|
1071
|
+
if (id) {
|
|
1072
|
+
ids.add(id);
|
|
1073
|
+
ids.add(getAzureTopLevelResourceId(id));
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
return ids.toArray();
|
|
1077
|
+
}
|
|
1078
|
+
// ---------- Google Cloud: the audit logs ----------
|
|
1079
|
+
// Whether a value is an API's service name: letters, digits, dots and hyphens, ending in .googleapis.com.
|
|
1080
|
+
function isGoogleApiServiceName(value) {
|
|
1081
|
+
if (!value.endsWith(".googleapis.com") ||
|
|
1082
|
+
value.length <= ".googleapis.com".length ||
|
|
1083
|
+
value.length > 253) {
|
|
1084
|
+
return false;
|
|
1085
|
+
}
|
|
1086
|
+
for (let index = 0; index < value.length; index++) {
|
|
1087
|
+
const code = value.charCodeAt(index);
|
|
1088
|
+
const isAllowed = (code >= 48 && code <= 57) ||
|
|
1089
|
+
(code >= 97 && code <= 122) ||
|
|
1090
|
+
code === 45 ||
|
|
1091
|
+
code === 46;
|
|
1092
|
+
if (!isAllowed) {
|
|
1093
|
+
return false;
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
return true;
|
|
1097
|
+
}
|
|
1098
|
+
/*
|
|
1099
|
+
* A resource name as the API's full resource name would write it, from
|
|
1100
|
+
* what the audit entry also says of the resource:
|
|
1101
|
+
*
|
|
1102
|
+
* - the project by its id, where the API wrote its number
|
|
1103
|
+
* ("projects/123456789012/secrets/x") and the entry's resource names the
|
|
1104
|
+
* project's id;
|
|
1105
|
+
* - a GKE cluster under its location, as Cloud Asset Inventory names it,
|
|
1106
|
+
* where the older API wrote its zone;
|
|
1107
|
+
* - a Cloud Run service by its project and location, where the Knative
|
|
1108
|
+
* API wrote its namespace ("namespaces/<project>/services/<name>").
|
|
1109
|
+
*
|
|
1110
|
+
* Null for a name that is no single resource's: a project of "-" stands
|
|
1111
|
+
* for any project.
|
|
1112
|
+
*/
|
|
1113
|
+
function normalizeGoogleResourceName(data) {
|
|
1114
|
+
const segments = data.resourceName
|
|
1115
|
+
.split("/")
|
|
1116
|
+
.filter((segment) => {
|
|
1117
|
+
return segment.length > 0;
|
|
1118
|
+
});
|
|
1119
|
+
if (segments.length < 2) {
|
|
1120
|
+
return null;
|
|
1121
|
+
}
|
|
1122
|
+
const projectId = data.labels["project_id"] || "";
|
|
1123
|
+
if (segments[1] === "-") {
|
|
1124
|
+
return null;
|
|
1125
|
+
}
|
|
1126
|
+
// The project by its id, where the API wrote its number.
|
|
1127
|
+
if ((segments[0] === "projects" || segments[0] === "namespaces") &&
|
|
1128
|
+
isDigits(segments[1]) &&
|
|
1129
|
+
projectId &&
|
|
1130
|
+
!isDigits(projectId)) {
|
|
1131
|
+
segments[1] = projectId;
|
|
1132
|
+
}
|
|
1133
|
+
if (segments[0] === "projects" &&
|
|
1134
|
+
data.serviceName === "container.googleapis.com" &&
|
|
1135
|
+
segments[2] === "zones") {
|
|
1136
|
+
segments[2] = "locations";
|
|
1137
|
+
}
|
|
1138
|
+
// Knative's namespace is the project: no other API writes one.
|
|
1139
|
+
if (segments[0] === "namespaces") {
|
|
1140
|
+
const location = data.labels["location"] || "";
|
|
1141
|
+
if (data.serviceName !== "run.googleapis.com" || !location) {
|
|
1142
|
+
return null;
|
|
1143
|
+
}
|
|
1144
|
+
return [
|
|
1145
|
+
"projects",
|
|
1146
|
+
segments[1],
|
|
1147
|
+
"locations",
|
|
1148
|
+
location,
|
|
1149
|
+
...segments.slice(2),
|
|
1150
|
+
].join("/");
|
|
1151
|
+
}
|
|
1152
|
+
return segments.join("/");
|
|
1153
|
+
}
|
|
1154
|
+
const GOOGLE_LOCATION_COLLECTIONS = [
|
|
1155
|
+
"locations",
|
|
1156
|
+
"zones",
|
|
1157
|
+
"regions",
|
|
1158
|
+
];
|
|
1159
|
+
/*
|
|
1160
|
+
* The resource a Google Cloud resource name is a part of: its project (or
|
|
1161
|
+
* App Engine app), its location, and the first collection and id after
|
|
1162
|
+
* them - a BigQuery table's dataset, a Spanner database's instance, a Cloud
|
|
1163
|
+
* Storage object's bucket, an App Engine version's service. Null when the
|
|
1164
|
+
* name is that resource itself, or names none (a project).
|
|
1165
|
+
*/
|
|
1166
|
+
function getGoogleTopLevelResourceName(name) {
|
|
1167
|
+
const segments = name.split("/");
|
|
1168
|
+
if ((segments[0] !== "projects" && segments[0] !== "apps") || !segments[1]) {
|
|
1169
|
+
return null;
|
|
1170
|
+
}
|
|
1171
|
+
let index = 2;
|
|
1172
|
+
if (GOOGLE_LOCATION_COLLECTIONS.includes(segments[index] || "") &&
|
|
1173
|
+
segments[index + 1]) {
|
|
1174
|
+
index += 2;
|
|
1175
|
+
}
|
|
1176
|
+
else if (segments[index] === "global") {
|
|
1177
|
+
index += 1;
|
|
1178
|
+
}
|
|
1179
|
+
if (!segments[index] || !segments[index + 1]) {
|
|
1180
|
+
return null;
|
|
1181
|
+
}
|
|
1182
|
+
const top = segments.slice(0, index + 2).join("/");
|
|
1183
|
+
return top.length < name.length ? top : null;
|
|
1184
|
+
}
|
|
1185
|
+
// A LogEntry's monitored resource labels, as text, each key the label's own.
|
|
1186
|
+
function readLabels(value) {
|
|
1187
|
+
const labels = {};
|
|
1188
|
+
const object = asObject(value);
|
|
1189
|
+
if (!object) {
|
|
1190
|
+
return labels;
|
|
1191
|
+
}
|
|
1192
|
+
for (const key of Object.keys(object).slice(0, 50)) {
|
|
1193
|
+
const item = text(object[key]);
|
|
1194
|
+
if (item && key.length <= 256) {
|
|
1195
|
+
(0, LookupTable_1.writeOwnValue)(labels, key, item);
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
return labels;
|
|
1199
|
+
}
|
|
1200
|
+
/*
|
|
1201
|
+
* The full resource name the cloud catalog gives the monitored resource an
|
|
1202
|
+
* entry is filed under - the one its Cloud Resource and its streamed logs
|
|
1203
|
+
* carry - or null for a type the catalog has no full name for.
|
|
1204
|
+
*/
|
|
1205
|
+
function getGoogleMonitoredResourceName(data) {
|
|
1206
|
+
if (!data.type) {
|
|
1207
|
+
return null;
|
|
1208
|
+
}
|
|
1209
|
+
const attributes = {
|
|
1210
|
+
[CloudMonitoredResource_1.GCP_RESOURCE_TYPE_ATTRIBUTE]: data.type,
|
|
1211
|
+
};
|
|
1212
|
+
for (const key of Object.keys(data.labels)) {
|
|
1213
|
+
attributes[`resource.${key}`] = data.labels[key];
|
|
1214
|
+
}
|
|
1215
|
+
const resource = (0, CloudMonitoredResource_1.resolveCloudMonitoredResource)({
|
|
1216
|
+
metricName: `logging.googleapis.com/${data.type}`,
|
|
1217
|
+
attributes,
|
|
1218
|
+
});
|
|
1219
|
+
return resource &&
|
|
1220
|
+
(0, CloudMonitoredResource_1.isCloudProviderOwnResourceId)(CloudPlatform_1.CloudProvider.GCP, resource.providerResourceId)
|
|
1221
|
+
? resource.providerResourceId
|
|
1222
|
+
: null;
|
|
1223
|
+
}
|
|
1224
|
+
/*
|
|
1225
|
+
* The cloud resources a Google Cloud audit entry is about, as full
|
|
1226
|
+
* resource names: its resourceName under its API's service
|
|
1227
|
+
* (//<service>/<name>), the resource that is a part of, and the monitored
|
|
1228
|
+
* resource the entry is filed under, as the catalog names it.
|
|
1229
|
+
*/
|
|
1230
|
+
function readGoogleCloudAuditResourceIds(data) {
|
|
1231
|
+
const ids = new ResourceIds();
|
|
1232
|
+
const serviceName = text(data.payload["serviceName"]).toLowerCase();
|
|
1233
|
+
const resourceName = text(data.payload["resourceName"]);
|
|
1234
|
+
const monitored = asObject(data.entry["resource"]);
|
|
1235
|
+
const labels = readLabels(monitored ? monitored["labels"] : undefined);
|
|
1236
|
+
if (resourceName.startsWith("//")) {
|
|
1237
|
+
ids.add(resourceName);
|
|
1238
|
+
}
|
|
1239
|
+
else if (resourceName && isGoogleApiServiceName(serviceName)) {
|
|
1240
|
+
const name = normalizeGoogleResourceName({
|
|
1241
|
+
serviceName,
|
|
1242
|
+
resourceName,
|
|
1243
|
+
labels,
|
|
1244
|
+
});
|
|
1245
|
+
if (name) {
|
|
1246
|
+
ids.add(`//${serviceName}/${name}`);
|
|
1247
|
+
const top = getGoogleTopLevelResourceName(name);
|
|
1248
|
+
if (top) {
|
|
1249
|
+
ids.add(`//${serviceName}/${top}`);
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
ids.add(getGoogleMonitoredResourceName({
|
|
1254
|
+
type: text(monitored ? monitored["type"] : undefined),
|
|
1255
|
+
labels,
|
|
1256
|
+
}));
|
|
1257
|
+
return ids.toArray();
|
|
1258
|
+
}
|
|
1259
|
+
// ---------- A serverless function's own id ----------
|
|
1260
|
+
// A Lambda function: by its platform, or an AWS function whose platform was not reported.
|
|
1261
|
+
function isLambdaFunction(data) {
|
|
1262
|
+
const platform = (0, CloudPlatform_1.normalizeCloudPlatform)(data.cloudPlatform) || "";
|
|
1263
|
+
const provider = (data.cloudProvider || "").trim().toLowerCase();
|
|
1264
|
+
return (platform === CloudPlatform_1.FaasCloudPlatform.AwsLambda ||
|
|
1265
|
+
(!platform && provider === CloudPlatform_1.CloudProvider.AWS));
|
|
1266
|
+
}
|
|
1267
|
+
/*
|
|
1268
|
+
* Whether a function's cloud's audit log can name it once its telemetry
|
|
1269
|
+
* says its account and Region: an AWS Lambda function's or a Google Cloud
|
|
1270
|
+
* function's, never an Azure function's (getServerlessFunctionCloudResourceId).
|
|
1271
|
+
*/
|
|
1272
|
+
function canServerlessFunctionBeNamedByAuditLog(data) {
|
|
1273
|
+
return (isLambdaFunction(data) ||
|
|
1274
|
+
(0, CloudPlatform_1.normalizeCloudPlatform)(data.cloudPlatform) ===
|
|
1275
|
+
CloudPlatform_1.FaasCloudPlatform.GcpCloudFunctions);
|
|
1276
|
+
}
|
|
1277
|
+
/*
|
|
1278
|
+
* A serverless function's id at its cloud, the way an audit record names
|
|
1279
|
+
* it (#9780) - or null where its telemetry does not say it in full:
|
|
1280
|
+
*
|
|
1281
|
+
* - an AWS Lambda function: its ARN, from its account, its Region and
|
|
1282
|
+
* its name (faas.name), through the cloud catalog's own template, as
|
|
1283
|
+
* its Cloud Resource keeps it. A Lambda layer that reports no account
|
|
1284
|
+
* id leaves it unsaid, and nothing is guessed;
|
|
1285
|
+
* - a Google Cloud function: its full resource name, from its project,
|
|
1286
|
+
* its Region and its name;
|
|
1287
|
+
* - an Azure function: none. Its resource ID holds its resource group,
|
|
1288
|
+
* which no telemetry of a function reports, so the Activity Log's
|
|
1289
|
+
* records about it reach its Function App's own page in Cloud.
|
|
1290
|
+
*/
|
|
1291
|
+
function getServerlessFunctionCloudResourceId(data) {
|
|
1292
|
+
const name = (data.functionIdentifier || "").trim();
|
|
1293
|
+
const platform = (0, CloudPlatform_1.normalizeCloudPlatform)(data.cloudPlatform) || "";
|
|
1294
|
+
const region = (data.cloudRegion || "").trim().toLowerCase();
|
|
1295
|
+
const accountId = (data.cloudAccountId || "").trim();
|
|
1296
|
+
if (!name || !region || !accountId) {
|
|
1297
|
+
return null;
|
|
1298
|
+
}
|
|
1299
|
+
if (isLambdaFunction(data)) {
|
|
1300
|
+
const named = readLambdaFunctionName(name);
|
|
1301
|
+
if (!named ||
|
|
1302
|
+
named.accountId ||
|
|
1303
|
+
named.name !== name ||
|
|
1304
|
+
accountId.length !== 12 ||
|
|
1305
|
+
!isDigits(accountId) ||
|
|
1306
|
+
!(0, AwsRegionCode_1.isAwsRegion)(region)) {
|
|
1307
|
+
return null;
|
|
1308
|
+
}
|
|
1309
|
+
return buildCatalogAwsArn({
|
|
1310
|
+
namespace: "AWS/Lambda",
|
|
1311
|
+
dimensions: { FunctionName: named.name },
|
|
1312
|
+
place: { accountId, region },
|
|
1313
|
+
type: "AWS::Lambda::Function",
|
|
1314
|
+
});
|
|
1315
|
+
}
|
|
1316
|
+
if (platform === CloudPlatform_1.FaasCloudPlatform.GcpCloudFunctions) {
|
|
1317
|
+
return getGoogleMonitoredResourceName({
|
|
1318
|
+
type: "cloud_function",
|
|
1319
|
+
labels: { project_id: accountId, region, function_name: name },
|
|
1320
|
+
});
|
|
1321
|
+
}
|
|
1322
|
+
return null;
|
|
1323
|
+
}
|
|
1324
|
+
// ---------- Which cloud resources have security events of their own ----------
|
|
1325
|
+
/*
|
|
1326
|
+
* Whether a cloud resource can have security events of its own (#9779),
|
|
1327
|
+
* and so a Security Events page - by the identities its Security card
|
|
1328
|
+
* counts by (ResourceSecurity):
|
|
1329
|
+
*
|
|
1330
|
+
* - an ID its cloud's audit log names it by: an ARN, an Azure resource
|
|
1331
|
+
* ID, a Google Cloud full resource name (isCloudResourceNamedByItsId);
|
|
1332
|
+
* - logs of its own, which its connection's stream files under it,
|
|
1333
|
+
* stamped with its ID;
|
|
1334
|
+
* - a name or address it answers on (its endpoints), which any source
|
|
1335
|
+
* can name it by.
|
|
1336
|
+
*
|
|
1337
|
+
* A resource OneUptime knows only by a readable stand-in its metrics give
|
|
1338
|
+
* it ("AWS/AmazonMQ Broker=orders", a Google Cloud VPN gateway's labels),
|
|
1339
|
+
* that sends no logs of its own and answers on no name or address of its
|
|
1340
|
+
* own, has none of them: no record names the stand-in, and nothing else is
|
|
1341
|
+
* its. It has no page, rather than one that would always be empty.
|
|
1342
|
+
*/
|
|
1343
|
+
function canCloudResourceHaveSecurityEvents(data) {
|
|
1344
|
+
const provider = (data.provider || "").toLowerCase();
|
|
1345
|
+
const id = (data.providerResourceId || "").trim();
|
|
1346
|
+
const endpoints = (0, SecurityConnectionMatch_1.readCloudEndpointHosts)(data.cloudEndpoints);
|
|
1347
|
+
if (endpoints.names.length > 0 || endpoints.addresses.length > 0) {
|
|
1348
|
+
return true;
|
|
1349
|
+
}
|
|
1350
|
+
if (!id) {
|
|
1351
|
+
return false;
|
|
1352
|
+
}
|
|
1353
|
+
return (isCloudResourceNamedByItsId(id) ||
|
|
1354
|
+
(0, CloudLogGroups_1.canCloudResourceHaveStreamedLogs)({ provider, type: data.type }));
|
|
1355
|
+
}
|
|
1356
|
+
/*
|
|
1357
|
+
* Whether a cloud resource's audit log can name it: its row keeps its own
|
|
1358
|
+
* ID at its cloud, as ResourceSecurity searches for it, not a readable
|
|
1359
|
+
* stand-in no record names.
|
|
1360
|
+
*/
|
|
1361
|
+
function isCloudResourceNamedByItsId(providerResourceId) {
|
|
1362
|
+
return (0, SecurityConnectionMatch_1.isCloudResourceIdLike)(providerResourceId);
|
|
1363
|
+
}
|