@oneuptime/common 14.0.104 → 14.0.106
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/CloudCost.d.mts +2 -0
- package/Models/AnalyticsModels/CloudCost.d.ts +2 -0
- package/Models/AnalyticsModels/CloudCost.js +27 -0
- package/Models/AnalyticsModels/Index.js +8 -0
- package/Models/AnalyticsModels/RumProductAnalyticsSession.d.mts +14 -0
- package/Models/AnalyticsModels/RumProductAnalyticsSession.d.ts +14 -0
- package/Models/AnalyticsModels/RumProductAnalyticsSession.js +410 -0
- package/Models/AnalyticsModels/RumProductAnalyticsSession.mjs +11 -0
- package/Models/AnalyticsModels/RumProductAnalyticsUser.d.mts +4 -0
- package/Models/AnalyticsModels/RumProductAnalyticsUser.d.ts +4 -0
- package/Models/AnalyticsModels/RumProductAnalyticsUser.js +210 -0
- package/Models/AnalyticsModels/RumProductAnalyticsUser.mjs +2 -0
- package/Models/AnalyticsModels/RumSession.js +66 -12
- package/Models/AnalyticsModels/RumSessionChunk.js +30 -2
- package/Models/DatabaseModels/AIAgentTaskPullRequest.js +24 -9
- package/Models/DatabaseModels/AIRun.d.mts +4 -0
- package/Models/DatabaseModels/AIRun.d.ts +4 -0
- package/Models/DatabaseModels/AIRun.js +107 -0
- package/Models/DatabaseModels/Alert.d.mts +2 -0
- package/Models/DatabaseModels/Alert.d.ts +2 -0
- package/Models/DatabaseModels/Alert.js +70 -0
- package/Models/DatabaseModels/AlertEpisodeOnCallRuleOwningTeam.d.mts +18 -0
- package/Models/DatabaseModels/AlertEpisodeOnCallRuleOwningTeam.d.ts +18 -0
- package/Models/DatabaseModels/AlertEpisodeOnCallRuleOwningTeam.js +456 -0
- package/Models/DatabaseModels/AlertEpisodeOnCallRuleOwningTeam.mjs +2 -0
- package/Models/DatabaseModels/AlertGroupingRule.d.mts +2 -0
- package/Models/DatabaseModels/AlertGroupingRule.d.ts +2 -0
- package/Models/DatabaseModels/AlertGroupingRule.js +85 -0
- package/Models/DatabaseModels/AlertOnCallRuleOwningTeam.d.mts +18 -0
- package/Models/DatabaseModels/AlertOnCallRuleOwningTeam.d.ts +18 -0
- package/Models/DatabaseModels/AlertOnCallRuleOwningTeam.js +456 -0
- package/Models/DatabaseModels/AlertOnCallRuleOwningTeam.mjs +2 -0
- package/Models/DatabaseModels/AuditLogExport.d.mts +1 -0
- package/Models/DatabaseModels/AuditLogExport.d.ts +1 -0
- package/Models/DatabaseModels/AuditLogExport.js +32 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.mts +4 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.ts +4 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.js +109 -0
- package/Models/DatabaseModels/CephCluster.d.mts +1 -0
- package/Models/DatabaseModels/CephCluster.d.ts +1 -0
- package/Models/DatabaseModels/CephCluster.js +36 -0
- package/Models/DatabaseModels/CloudAccount.d.mts +2 -0
- package/Models/DatabaseModels/CloudAccount.d.ts +2 -0
- package/Models/DatabaseModels/CloudAccount.js +48 -0
- package/Models/DatabaseModels/CloudBudget.d.mts +1 -0
- package/Models/DatabaseModels/CloudBudget.d.ts +1 -0
- package/Models/DatabaseModels/CloudBudget.js +38 -3
- package/Models/DatabaseModels/CloudConnection.d.mts +1 -0
- package/Models/DatabaseModels/CloudConnection.d.ts +1 -0
- package/Models/DatabaseModels/CloudConnection.js +27 -6
- package/Models/DatabaseModels/CloudCostRecommendation.d.mts +2 -0
- package/Models/DatabaseModels/CloudCostRecommendation.d.ts +2 -0
- package/Models/DatabaseModels/CloudCostRecommendation.js +30 -2
- package/Models/DatabaseModels/CodeRepository.js +23 -6
- package/Models/DatabaseModels/DataStoreFinding.js +8 -2
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.mts +2 -1
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.ts +2 -1
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.js +21 -0
- package/Models/DatabaseModels/DatabaseBaseModel/OnCallRuleBaseModel.d.mts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/OnCallRuleBaseModel.d.ts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/OnCallRuleBaseModel.js +35 -1
- package/Models/DatabaseModels/DatabaseServer.d.mts +1 -0
- package/Models/DatabaseModels/DatabaseServer.d.ts +1 -0
- package/Models/DatabaseModels/DatabaseServer.js +36 -0
- package/Models/DatabaseModels/DetectionRule.js +8 -7
- package/Models/DatabaseModels/DockerHost.d.mts +1 -0
- package/Models/DatabaseModels/DockerHost.d.ts +1 -0
- package/Models/DatabaseModels/DockerHost.js +36 -0
- package/Models/DatabaseModels/DockerSwarmCluster.d.mts +1 -0
- package/Models/DatabaseModels/DockerSwarmCluster.d.ts +1 -0
- package/Models/DatabaseModels/DockerSwarmCluster.js +36 -0
- package/Models/DatabaseModels/GlobalConfig.d.mts +36 -1
- package/Models/DatabaseModels/GlobalConfig.d.ts +36 -1
- package/Models/DatabaseModels/GlobalConfig.js +635 -2
- package/Models/DatabaseModels/Host.d.mts +1 -0
- package/Models/DatabaseModels/Host.d.ts +1 -0
- package/Models/DatabaseModels/Host.js +36 -0
- package/Models/DatabaseModels/Incident.d.mts +2 -0
- package/Models/DatabaseModels/Incident.d.ts +2 -0
- package/Models/DatabaseModels/Incident.js +70 -0
- package/Models/DatabaseModels/IncidentEpisodeFeed.d.mts +2 -1
- package/Models/DatabaseModels/IncidentEpisodeFeed.d.ts +2 -1
- package/Models/DatabaseModels/IncidentEpisodeFeed.js +7 -0
- package/Models/DatabaseModels/IncidentEpisodeOnCallRuleOwningTeam.d.mts +18 -0
- package/Models/DatabaseModels/IncidentEpisodeOnCallRuleOwningTeam.d.ts +18 -0
- package/Models/DatabaseModels/IncidentEpisodeOnCallRuleOwningTeam.js +456 -0
- package/Models/DatabaseModels/IncidentEpisodeOnCallRuleOwningTeam.mjs +2 -0
- package/Models/DatabaseModels/IncidentEpisodePublicNote.d.mts +5 -0
- package/Models/DatabaseModels/IncidentEpisodePublicNote.d.ts +5 -0
- package/Models/DatabaseModels/IncidentEpisodePublicNote.js +185 -0
- package/Models/DatabaseModels/IncidentFeed.d.mts +2 -1
- package/Models/DatabaseModels/IncidentFeed.d.ts +2 -1
- package/Models/DatabaseModels/IncidentFeed.js +7 -0
- package/Models/DatabaseModels/IncidentGroupingRule.d.mts +2 -0
- package/Models/DatabaseModels/IncidentGroupingRule.d.ts +2 -0
- package/Models/DatabaseModels/IncidentGroupingRule.js +85 -0
- package/Models/DatabaseModels/IncidentOnCallRuleOwningTeam.d.mts +18 -0
- package/Models/DatabaseModels/IncidentOnCallRuleOwningTeam.d.ts +18 -0
- package/Models/DatabaseModels/IncidentOnCallRuleOwningTeam.js +456 -0
- package/Models/DatabaseModels/IncidentOnCallRuleOwningTeam.mjs +2 -0
- package/Models/DatabaseModels/IncidentOwnerRuleOwningTeam.d.mts +18 -0
- package/Models/DatabaseModels/IncidentOwnerRuleOwningTeam.d.ts +18 -0
- package/Models/DatabaseModels/IncidentOwnerRuleOwningTeam.js +456 -0
- package/Models/DatabaseModels/IncidentOwnerRuleOwningTeam.mjs +2 -0
- package/Models/DatabaseModels/IncidentPublicNote.d.mts +5 -0
- package/Models/DatabaseModels/IncidentPublicNote.d.ts +5 -0
- package/Models/DatabaseModels/IncidentPublicNote.js +185 -0
- package/Models/DatabaseModels/Index.js +24 -0
- package/Models/DatabaseModels/KubernetesCluster.d.mts +1 -0
- package/Models/DatabaseModels/KubernetesCluster.d.ts +1 -0
- package/Models/DatabaseModels/KubernetesCluster.js +36 -0
- package/Models/DatabaseModels/LlmProvider.d.mts +1 -0
- package/Models/DatabaseModels/LlmProvider.d.ts +1 -0
- package/Models/DatabaseModels/LlmProvider.js +39 -0
- package/Models/DatabaseModels/Monitor.d.mts +2 -0
- package/Models/DatabaseModels/Monitor.d.ts +2 -0
- package/Models/DatabaseModels/Monitor.js +98 -2
- package/Models/DatabaseModels/NetworkDeviceDiscoveryImport.js +11 -6
- package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.js +48 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +54 -0
- package/Models/DatabaseModels/OpenStackCloud.d.mts +1 -0
- package/Models/DatabaseModels/OpenStackCloud.d.ts +1 -0
- package/Models/DatabaseModels/OpenStackCloud.js +27 -0
- package/Models/DatabaseModels/PacketCapture.js +3 -1
- package/Models/DatabaseModels/PodmanHost.d.mts +1 -0
- package/Models/DatabaseModels/PodmanHost.d.ts +1 -0
- package/Models/DatabaseModels/PodmanHost.js +36 -0
- package/Models/DatabaseModels/Project.d.mts +19 -0
- package/Models/DatabaseModels/Project.d.ts +19 -0
- package/Models/DatabaseModels/Project.js +541 -0
- package/Models/DatabaseModels/ProjectSmtpConfig.d.mts +10 -0
- package/Models/DatabaseModels/ProjectSmtpConfig.d.ts +10 -0
- package/Models/DatabaseModels/ProjectSmtpConfig.js +335 -1
- package/Models/DatabaseModels/ProxmoxCluster.d.mts +1 -0
- package/Models/DatabaseModels/ProxmoxCluster.d.ts +1 -0
- package/Models/DatabaseModels/ProxmoxCluster.js +36 -0
- package/Models/DatabaseModels/PublicNoteApprovalRequest.d.mts +29 -0
- package/Models/DatabaseModels/PublicNoteApprovalRequest.d.ts +29 -0
- package/Models/DatabaseModels/PublicNoteApprovalRequest.js +460 -0
- package/Models/DatabaseModels/PublicNoteApprovalRequest.mjs +3 -0
- package/Models/DatabaseModels/PublicNoteApprovalStep.d.mts +19 -0
- package/Models/DatabaseModels/PublicNoteApprovalStep.d.ts +19 -0
- package/Models/DatabaseModels/PublicNoteApprovalStep.js +363 -0
- package/Models/DatabaseModels/PublicNoteApprovalStep.mjs +2 -0
- package/Models/DatabaseModels/RumApplication.d.mts +6 -0
- package/Models/DatabaseModels/RumApplication.d.ts +6 -0
- package/Models/DatabaseModels/RumApplication.js +202 -2
- package/Models/DatabaseModels/ScheduledMaintenance.d.mts +2 -0
- package/Models/DatabaseModels/ScheduledMaintenance.d.ts +2 -0
- package/Models/DatabaseModels/ScheduledMaintenance.js +63 -0
- package/Models/DatabaseModels/ScheduledMaintenanceFeed.d.mts +2 -1
- package/Models/DatabaseModels/ScheduledMaintenanceFeed.d.ts +2 -1
- package/Models/DatabaseModels/ScheduledMaintenanceFeed.js +7 -0
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.d.mts +5 -0
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.d.ts +5 -0
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +185 -0
- package/Models/DatabaseModels/ServerlessFunction.js +10 -2
- package/Models/DatabaseModels/ServiceLevelObjective.d.mts +5 -0
- package/Models/DatabaseModels/ServiceLevelObjective.d.ts +5 -0
- package/Models/DatabaseModels/ServiceLevelObjective.js +174 -3
- package/Models/DatabaseModels/ServiceLevelObjectiveBurnRateRule.js +1 -1
- package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.d.mts +54 -0
- package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.d.ts +54 -0
- package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.js +1674 -0
- package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.mjs +2 -0
- package/Models/DatabaseModels/ServiceLevelObjectiveFeed.d.mts +8 -1
- package/Models/DatabaseModels/ServiceLevelObjectiveFeed.d.ts +8 -1
- package/Models/DatabaseModels/ServiceLevelObjectiveFeed.js +14 -0
- package/Models/DatabaseModels/TelemetryIngestionKey.d.mts +10 -0
- package/Models/DatabaseModels/TelemetryIngestionKey.d.ts +10 -0
- package/Models/DatabaseModels/TelemetryIngestionKey.js +199 -0
- package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.d.mts +19 -0
- package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.d.ts +19 -0
- package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.js +297 -0
- package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.mjs +2 -0
- package/Models/DatabaseModels/TelemetryUsageBilling.js +35 -122
- package/Models/DatabaseModels/User.d.mts +1 -0
- package/Models/DatabaseModels/User.d.ts +1 -0
- package/Models/DatabaseModels/User.js +29 -0
- package/Models/DatabaseModels/UserSession.js +10 -4
- package/Models/DatabaseModels/VMwareVCenter.d.mts +1 -0
- package/Models/DatabaseModels/VMwareVCenter.d.ts +1 -0
- package/Models/DatabaseModels/VMwareVCenter.js +36 -0
- package/Models/DatabaseModels/Workflow.d.mts +1 -0
- package/Models/DatabaseModels/Workflow.d.ts +1 -0
- package/Models/DatabaseModels/Workflow.js +45 -0
- package/Models/DatabaseModels/WorkflowVersion.d.mts +24 -0
- package/Models/DatabaseModels/WorkflowVersion.d.ts +24 -0
- package/Models/DatabaseModels/WorkflowVersion.js +529 -0
- package/Models/DatabaseModels/WorkflowVersion.mjs +2 -0
- package/Models/DatabaseModels/WorkspaceNotificationRuleOwningTeam.d.mts +18 -0
- package/Models/DatabaseModels/WorkspaceNotificationRuleOwningTeam.d.ts +18 -0
- package/Models/DatabaseModels/WorkspaceNotificationRuleOwningTeam.js +499 -0
- package/Models/DatabaseModels/WorkspaceNotificationRuleOwningTeam.mjs +2 -0
- package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.d.mts +31 -0
- package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.d.ts +31 -0
- package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.js +537 -0
- package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.mjs +2 -0
- package/Server/Services/DatabaseService.d.mts +4 -0
- package/Server/Services/DatabaseService.d.ts +4 -0
- package/Server/Types/Database/UpdateByID.d.mts +1 -0
- package/Server/Types/Database/UpdateByID.d.ts +1 -0
- package/Server/Types/Database/UpdateOneBy.d.mts +1 -0
- package/Server/Types/Database/UpdateOneBy.d.ts +1 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.mts +7 -1
- package/Server/Utils/Workspace/WorkspaceBase.d.ts +7 -1
- package/Types/AI/AIActionWords.d.mts +16 -0
- package/Types/AI/AIActionWords.d.ts +16 -0
- package/Types/AI/AIActionWords.js +105 -1
- package/Types/AI/AIActionWords.mjs +3 -0
- package/Types/AI/AIAgentRunLimits.d.mts +76 -13
- package/Types/AI/AIAgentRunLimits.d.ts +76 -13
- package/Types/AI/AIAgentRunLimits.js +434 -51
- package/Types/AI/AIAgentRunLimits.mjs +10 -2
- package/Types/AI/AIChatRecordSeen.d.mts +49 -0
- package/Types/AI/AIChatRecordSeen.d.ts +49 -0
- package/Types/AI/AIChatRecordSeen.js +337 -0
- package/Types/AI/AIChatRecordSeen.mjs +12 -0
- package/Types/AI/AIChatTypes.d.mts +7 -0
- package/Types/AI/AIChatTypes.d.ts +7 -0
- package/Types/AI/AIChatTypes.js +15 -1
- package/Types/AI/AIChatTypes.mjs +1 -0
- package/Types/AI/AIRunAttempt.d.mts +30 -0
- package/Types/AI/AIRunAttempt.d.ts +30 -0
- package/Types/AI/AIRunAttempt.js +175 -0
- package/Types/AI/AIRunAttempt.mjs +5 -0
- package/Types/AI/AIRunEventType.d.mts +3 -0
- package/Types/AI/AIRunEventType.d.ts +3 -0
- package/Types/AI/AIRunEventType.js +28 -0
- package/Types/AI/AIRunStatus.d.mts +2 -0
- package/Types/AI/AIRunStatus.d.ts +2 -0
- package/Types/AI/AIRunStatus.js +12 -0
- package/Types/AI/AgentLoopDetector.d.mts +29 -0
- package/Types/AI/AgentLoopDetector.d.ts +29 -0
- package/Types/AI/AgentLoopDetector.js +196 -0
- package/Types/AI/AgentLoopDetector.mjs +9 -0
- package/Types/AI/CodeAgentRunLimits.d.mts +28 -0
- package/Types/AI/CodeAgentRunLimits.d.ts +28 -0
- package/Types/AI/CodeAgentRunLimits.js +163 -0
- package/Types/AI/CodeAgentRunLimits.mjs +2 -0
- package/Types/AI/CodeFixTaskContext.d.mts +2 -0
- package/Types/AI/CodeFixTaskContext.d.ts +2 -0
- package/Types/AI/CodeTask.d.mts +20 -0
- package/Types/AI/CodeTask.d.ts +20 -0
- package/Types/AI/CodeTask.js +23 -1
- package/Types/AI/CodeTask.mjs +4 -0
- package/Types/AI/CodeTaskRetry.d.mts +21 -0
- package/Types/AI/CodeTaskRetry.d.ts +21 -0
- package/Types/AI/CodeTaskRetry.js +61 -0
- package/Types/AI/CodeTaskRetry.mjs +4 -0
- package/Types/AI/CodeTaskStage.d.mts +19 -0
- package/Types/AI/CodeTaskStage.d.ts +19 -0
- package/Types/AI/CodeTaskStage.js +78 -0
- package/Types/AI/CodeTaskStage.mjs +3 -0
- package/Types/AI/ExternalMcpServer/ExternalMcpServerLimits.d.mts +0 -1
- package/Types/AI/ExternalMcpServer/ExternalMcpServerLimits.d.ts +0 -1
- package/Types/AI/ExternalMcpServer/ExternalMcpServerLimits.js +6 -4
- package/Types/AI/ExternalMcpServer/ExternalMcpServerLimits.mjs +0 -1
- package/Types/AI/ProjectAiRunLimits.d.mts +24 -0
- package/Types/AI/ProjectAiRunLimits.d.ts +24 -0
- package/Types/AI/ProjectAiRunLimits.js +137 -0
- package/Types/AI/ProjectAiRunLimits.mjs +9 -0
- package/Types/AI/ResourceAiAccessApi.d.mts +1 -0
- package/Types/AI/ResourceAiAccessApi.d.ts +1 -0
- package/Types/AI/ResourceAiAccessApi.js +6 -1
- package/Types/AI/ResourceAiAccessApi.mjs +1 -0
- package/Types/AI/ResourceAiAccessPermissions.d.mts +2 -0
- package/Types/AI/ResourceAiAccessPermissions.d.ts +2 -0
- package/Types/AI/ResourceAiAccessPermissions.js +13 -0
- package/Types/AI/ResourceAiAccessPermissions.mjs +2 -0
- package/Types/AI/TransientAIFailure.d.mts +16 -0
- package/Types/AI/TransientAIFailure.d.ts +16 -0
- package/Types/AI/TransientAIFailure.js +228 -0
- package/Types/AI/TransientAIFailure.mjs +4 -0
- package/Types/Accounts/AccountsLanguage.js +1 -0
- package/Types/AdminDashboard/AdminDashboardLanguage.js +1 -0
- package/Types/AnalyticsDatabase/AnalyticsTableName.d.mts +3 -1
- package/Types/AnalyticsDatabase/AnalyticsTableName.d.ts +3 -1
- package/Types/AnalyticsDatabase/AnalyticsTableName.js +16 -0
- package/Types/AuditLog/AuditLogCoverage.d.mts +40 -0
- package/Types/AuditLog/AuditLogCoverage.d.ts +40 -0
- package/Types/AuditLog/AuditLogCoverage.js +804 -0
- package/Types/AuditLog/AuditLogCoverage.mjs +17 -0
- package/Types/AuditLog/Export/AuditLogExportDestinationCatalog.d.mts +13 -1
- package/Types/AuditLog/Export/AuditLogExportDestinationCatalog.d.ts +13 -1
- package/Types/AuditLog/Export/AuditLogExportDestinationCatalog.js +92 -8
- package/Types/AuditLog/Export/AuditLogExportDestinationCatalog.mjs +5 -0
- package/Types/AuditLog/Export/AuditLogExportRecord.d.mts +14 -4
- package/Types/AuditLog/Export/AuditLogExportRecord.d.ts +14 -4
- package/Types/AuditLog/Export/AuditLogExportRecord.js +86 -29
- package/Types/AuditLog/Export/AuditLogExportRecord.mjs +7 -0
- package/Types/AutoRemediation/RemediationApprovals.d.mts +16 -0
- package/Types/AutoRemediation/RemediationApprovals.d.ts +16 -0
- package/Types/AutoRemediation/RemediationApprovals.js +92 -0
- package/Types/AutoRemediation/RemediationApprovals.mjs +7 -0
- package/Types/AutoRemediation/RemediationRound.d.mts +56 -0
- package/Types/AutoRemediation/RemediationRound.d.ts +56 -0
- package/Types/AutoRemediation/RemediationRound.js +242 -0
- package/Types/AutoRemediation/RemediationRound.mjs +22 -0
- package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.mts +2 -0
- package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.ts +2 -0
- package/Types/BaseDatabase/EnableAuditLogOn.d.mts +1 -0
- package/Types/BaseDatabase/EnableAuditLogOn.d.ts +1 -0
- package/Types/BaseDatabase/WriteSource.d.mts +6 -0
- package/Types/BaseDatabase/WriteSource.d.ts +6 -0
- package/Types/BaseDatabase/WriteSource.js +25 -0
- package/Types/BaseDatabase/WriteSource.mjs +4 -0
- package/Types/Cloud/CloudCommitments.d.mts +74 -0
- package/Types/Cloud/CloudCommitments.d.ts +74 -0
- package/Types/Cloud/CloudCommitments.js +294 -0
- package/Types/Cloud/CloudCommitments.mjs +17 -0
- package/Types/Cloud/CloudConnectionTelemetry.d.mts +3 -0
- package/Types/Cloud/CloudConnectionTelemetry.d.ts +3 -0
- package/Types/Cloud/CloudConnectionTelemetry.js +28 -0
- package/Types/Cloud/CloudConnectionTelemetry.mjs +3 -0
- package/Types/Cloud/CloudCost.d.mts +30 -0
- package/Types/Cloud/CloudCost.d.ts +30 -0
- package/Types/Cloud/CloudCost.js +163 -1
- package/Types/Cloud/CloudCost.mjs +8 -0
- package/Types/Cloud/CloudCostAnomaly.d.mts +34 -0
- package/Types/Cloud/CloudCostAnomaly.d.ts +34 -0
- package/Types/Cloud/CloudCostAnomaly.js +236 -0
- package/Types/Cloud/CloudCostAnomaly.mjs +18 -0
- package/Types/Cloud/CloudKeyMetrics.d.mts +13 -0
- package/Types/Cloud/CloudKeyMetrics.d.ts +13 -0
- package/Types/Cloud/CloudKeyMetrics.js +174 -1
- package/Types/Cloud/CloudKeyMetrics.mjs +10 -0
- package/Types/Cloud/CloudLogGroups.d.mts +33 -2
- package/Types/Cloud/CloudLogGroups.d.ts +33 -2
- package/Types/Cloud/CloudLogGroups.js +245 -8
- package/Types/Cloud/CloudLogGroups.mjs +12 -0
- package/Types/Cloud/CloudMonitoredResource.d.mts +1 -0
- package/Types/Cloud/CloudMonitoredResource.d.ts +1 -0
- package/Types/Cloud/CloudMonitoredResource.js +23 -0
- package/Types/Cloud/CloudMonitoredResource.mjs +1 -0
- package/Types/Cloud/CloudPlatform.js +9 -8
- package/Types/Cloud/CloudPlatformCosts.d.mts +54 -0
- package/Types/Cloud/CloudPlatformCosts.d.ts +54 -0
- package/Types/Cloud/CloudPlatformCosts.js +249 -0
- package/Types/Cloud/CloudPlatformCosts.mjs +7 -0
- package/Types/Cloud/CloudResourceCatalog.js +10 -0
- package/Types/Cloud/CloudResourceHealth.d.mts +1 -0
- package/Types/Cloud/CloudResourceHealth.d.ts +1 -0
- package/Types/Cloud/CloudResourceHealth.js +4 -1
- package/Types/Cloud/CloudResourceMetricAggregation.d.mts +21 -0
- package/Types/Cloud/CloudResourceMetricAggregation.d.ts +21 -0
- package/Types/Cloud/CloudResourceMetricAggregation.js +140 -0
- package/Types/Cloud/CloudResourceMetricAggregation.mjs +4 -0
- package/Types/Cloud/CloudRightSizing.d.mts +140 -0
- package/Types/Cloud/CloudRightSizing.d.ts +140 -0
- package/Types/Cloud/CloudRightSizing.js +867 -0
- package/Types/Cloud/CloudRightSizing.mjs +53 -0
- package/Types/Cloud/CloudWatchLogSeverity.d.mts +7 -0
- package/Types/Cloud/CloudWatchLogSeverity.d.ts +7 -0
- package/Types/Cloud/CloudWatchLogSeverity.js +182 -0
- package/Types/Cloud/CloudWatchLogSeverity.mjs +4 -0
- package/Types/Cloud/RdsConnectionLimits.d.mts +53 -0
- package/Types/Cloud/RdsConnectionLimits.d.ts +53 -0
- package/Types/Cloud/RdsConnectionLimits.js +404 -0
- package/Types/Cloud/RdsConnectionLimits.mjs +24 -0
- package/Types/CloudConnection/AwsStackSets.d.mts +51 -0
- package/Types/CloudConnection/AwsStackSets.d.ts +51 -0
- package/Types/CloudConnection/AwsStackSets.js +188 -0
- package/Types/CloudConnection/AwsStackSets.mjs +15 -0
- package/Types/CloudConnection/CloudAiAgentKey.d.mts +65 -0
- package/Types/CloudConnection/CloudAiAgentKey.d.ts +65 -0
- package/Types/CloudConnection/CloudAiAgentKey.js +289 -0
- package/Types/CloudConnection/CloudAiAgentKey.mjs +18 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.mts +38 -2
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.ts +38 -2
- package/Types/CloudConnection/CloudAiAgentSetupCommands.js +580 -94
- package/Types/CloudConnection/CloudAiAgentSetupCommands.mjs +20 -1
- package/Types/CloudConnection/CloudConnectionCatalog.d.mts +3 -0
- package/Types/CloudConnection/CloudConnectionCatalog.d.ts +3 -0
- package/Types/CloudConnection/CloudConnectionCatalog.js +31 -1
- package/Types/CloudConnection/CloudConnectionCatalog.mjs +2 -0
- package/Types/CloudConnection/CloudConnectionSetupCommands.js +24 -7
- package/Types/CloudConnection/CloudOrganizationAgents.d.mts +45 -0
- package/Types/CloudConnection/CloudOrganizationAgents.d.ts +45 -0
- package/Types/CloudConnection/CloudOrganizationAgents.js +182 -0
- package/Types/CloudConnection/CloudOrganizationAgents.mjs +12 -0
- package/Types/CloudConnection/CloudStream.d.mts +50 -1
- package/Types/CloudConnection/CloudStream.d.ts +50 -1
- package/Types/CloudConnection/CloudStream.js +333 -23
- package/Types/CloudConnection/CloudStream.mjs +35 -0
- package/Types/CloudConnection/CloudStreamAzure.d.mts +60 -0
- package/Types/CloudConnection/CloudStreamAzure.d.ts +60 -0
- package/Types/CloudConnection/CloudStreamAzure.js +418 -0
- package/Types/CloudConnection/CloudStreamAzure.mjs +35 -0
- package/Types/CloudConnection/CloudStreamGcp.d.mts +55 -0
- package/Types/CloudConnection/CloudStreamGcp.d.ts +55 -0
- package/Types/CloudConnection/CloudStreamGcp.js +247 -0
- package/Types/CloudConnection/CloudStreamGcp.mjs +25 -0
- package/Types/CloudConnection/CloudStreamOrganization.d.mts +17 -0
- package/Types/CloudConnection/CloudStreamOrganization.d.ts +17 -0
- package/Types/CloudConnection/CloudStreamOrganization.js +176 -0
- package/Types/CloudConnection/CloudStreamOrganization.mjs +9 -0
- package/Types/CloudConnection/CloudStreamTemplate.d.mts +5 -5
- package/Types/CloudConnection/CloudStreamTemplate.d.ts +5 -5
- package/Types/CloudConnection/CloudStreamTemplate.js +99 -26
- package/Types/CloudConnection/CloudStreamTemplate.mjs +2 -0
- package/Types/CodeRepository/CodeChangeProposedOnKey.d.mts +1 -0
- package/Types/CodeRepository/CodeChangeProposedOnKey.d.ts +1 -0
- package/Types/CodeRepository/CodeChangeProposedOnKey.js +12 -0
- package/Types/CodeRepository/CodeChangeProposedOnKey.mjs +2 -0
- package/Types/CodeRepository/CodeFileSeen.d.mts +106 -0
- package/Types/CodeRepository/CodeFileSeen.d.ts +106 -0
- package/Types/CodeRepository/CodeFileSeen.js +523 -0
- package/Types/CodeRepository/CodeFileSeen.mjs +17 -0
- package/Types/CodeRepository/CodeFileValuesHidden.d.mts +21 -0
- package/Types/CodeRepository/CodeFileValuesHidden.d.ts +21 -0
- package/Types/CodeRepository/CodeFileValuesHidden.js +135 -0
- package/Types/CodeRepository/CodeFileValuesHidden.mjs +6 -0
- package/Types/CodeRepository/CodeHost.d.mts +15 -0
- package/Types/CodeRepository/CodeHost.d.ts +15 -0
- package/Types/CodeRepository/CodeHost.js +195 -6
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.mts +1 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.d.ts +1 -0
- package/Types/CustomNotificationChannel/CustomNotificationChannelPayload.js +3 -0
- package/Types/Dashboard/DashboardComponentType.d.mts +2 -0
- package/Types/Dashboard/DashboardComponentType.d.ts +2 -0
- package/Types/Dashboard/DashboardComponentType.js +24 -1
- package/Types/Dashboard/DashboardComponentType.mjs +2 -0
- package/Types/Dashboard/DashboardLanguage.js +1 -0
- package/Types/Dashboard/PublicDashboardServedSettings.d.mts +19 -0
- package/Types/Dashboard/PublicDashboardServedSettings.d.ts +19 -0
- package/Types/Dashboard/PublicDashboardServedSettings.js +501 -0
- package/Types/Dashboard/PublicDashboardServedSettings.mjs +12 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.mts +17 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.ts +17 -0
- package/Types/DataObservability/DataObservabilityApiTypes.js +5 -1
- package/Types/DataObservability/DataObservabilityApiTypes.mjs +1 -0
- package/Types/DataObservability/DataObservabilityAttention.d.mts +78 -0
- package/Types/DataObservability/DataObservabilityAttention.d.ts +78 -0
- package/Types/DataObservability/DataObservabilityAttention.js +163 -0
- package/Types/DataObservability/DataObservabilityAttention.mjs +12 -0
- package/Types/Database/AccessControl/PermissionScopeNarrowing.js +4 -0
- package/Types/Database/EnableAuditLog.js +3 -0
- package/Types/Date.d.mts +9 -0
- package/Types/Date.d.ts +9 -0
- package/Types/Date.js +57 -8
- package/Types/DateLanguage.d.mts +3 -0
- package/Types/DateLanguage.d.ts +3 -0
- package/Types/DateLanguage.js +59 -10
- package/Types/DateLanguage.mjs +3 -0
- package/Types/Email/EmailServer.d.mts +7 -0
- package/Types/Email/EmailServer.d.ts +7 -0
- package/Types/Email/EmailTemplateType.d.mts +2 -0
- package/Types/Email/EmailTemplateType.d.ts +2 -0
- package/Types/Email/EmailTemplateType.js +3 -0
- package/Types/Email/MailTransportType.d.mts +29 -9
- package/Types/Email/MailTransportType.d.ts +29 -9
- package/Types/Email/MailTransportType.js +56 -8
- package/Types/Email/MailTransportType.mjs +4 -0
- package/Types/Email/MailgunDomain.d.mts +2 -0
- package/Types/Email/MailgunDomain.d.ts +2 -0
- package/Types/Email/MailgunDomain.js +57 -0
- package/Types/Email/MailgunDomain.mjs +3 -0
- package/Types/Email/MailgunRegion.d.mts +8 -0
- package/Types/Email/MailgunRegion.d.ts +8 -0
- package/Types/Email/MailgunRegion.js +32 -0
- package/Types/Email/MailgunRegion.mjs +5 -0
- package/Types/Exception/ConflictException.d.mts +6 -0
- package/Types/Exception/ConflictException.d.ts +6 -0
- package/Types/Exception/ConflictException.js +30 -0
- package/Types/Exception/ConflictException.mjs +2 -0
- package/Types/Exception/ExceptionCode.d.mts +1 -0
- package/Types/Exception/ExceptionCode.d.ts +1 -0
- package/Types/Exception/ExceptionCode.js +2 -0
- package/Types/InstallScripts/InstallScripts.js +1 -1
- package/Types/Kubernetes/KubernetesClusterAiAccess.d.mts +0 -1
- package/Types/Kubernetes/KubernetesClusterAiAccess.d.ts +0 -1
- package/Types/Kubernetes/KubernetesClusterAiAccess.js +7 -6
- package/Types/Kubernetes/KubernetesClusterAiAccess.mjs +0 -1
- package/Types/Kubernetes/KubernetesEvent.js +5 -4
- package/Types/LlmObservability/LlmConnectionCatalog.d.mts +5 -0
- package/Types/LlmObservability/LlmConnectionCatalog.d.ts +5 -0
- package/Types/LlmObservability/LlmConnectionCatalog.js +35 -0
- package/Types/LlmObservability/LlmConnectionProvider.d.mts +1 -0
- package/Types/LlmObservability/LlmConnectionProvider.d.ts +1 -0
- package/Types/LlmObservability/LlmConnectionProvider.js +4 -2
- package/Types/LlmObservability/LlmConnectionRecords.d.mts +7 -0
- package/Types/LlmObservability/LlmConnectionRecords.d.ts +7 -0
- package/Types/LlmObservability/LlmConnectionTest.d.mts +1 -0
- package/Types/LlmObservability/LlmConnectionTest.d.ts +1 -0
- package/Types/Log/LogEventName.d.mts +6 -0
- package/Types/Log/LogEventName.d.ts +6 -0
- package/Types/Log/LogEventName.js +59 -0
- package/Types/Log/LogEventName.mjs +4 -0
- package/Types/MessageQueue/MessageQueueCloudConnectionMetrics.d.mts +15 -0
- package/Types/MessageQueue/MessageQueueCloudConnectionMetrics.d.ts +15 -0
- package/Types/MessageQueue/MessageQueueCloudConnectionMetrics.js +51 -0
- package/Types/MessageQueue/MessageQueueCloudConnectionMetrics.mjs +4 -0
- package/Types/MessageQueue/MessageQueueMetricCatalog.d.mts +1 -1
- package/Types/MessageQueue/MessageQueueMetricCatalog.d.ts +1 -1
- package/Types/MessageQueue/MessageQueueMetricCatalog.js +64 -0
- package/Types/MessageQueue/MessageQueueSpanPopulation.d.mts +65 -0
- package/Types/MessageQueue/MessageQueueSpanPopulation.d.ts +65 -0
- package/Types/MessageQueue/MessageQueueSpanPopulation.js +326 -0
- package/Types/MessageQueue/MessageQueueSpanPopulation.mjs +22 -0
- package/Types/MessageQueue/MessageQueueTopology.d.mts +59 -0
- package/Types/MessageQueue/MessageQueueTopology.d.ts +59 -0
- package/Types/MessageQueue/MessageQueueTopology.js +211 -0
- package/Types/MessageQueue/MessageQueueTopology.mjs +8 -0
- package/Types/MessageQueue/MessagingSystem.js +6 -2
- package/Types/Metrics/MetricsQuery.d.mts +1 -0
- package/Types/Metrics/MetricsQuery.d.ts +1 -0
- package/Types/Monitor/CloudAlertTemplates.d.mts +122 -0
- package/Types/Monitor/CloudAlertTemplates.d.ts +122 -0
- package/Types/Monitor/CloudAlertTemplates.js +2003 -0
- package/Types/Monitor/CloudAlertTemplates.mjs +26 -0
- package/Types/Monitor/CloudAppAlertTemplates.d.mts +34 -0
- package/Types/Monitor/CloudAppAlertTemplates.d.ts +34 -0
- package/Types/Monitor/CloudAppAlertTemplates.js +331 -0
- package/Types/Monitor/CloudAppAlertTemplates.mjs +8 -0
- package/Types/Monitor/IncomingMonitor/IncomingMonitorRequest.d.mts +1 -0
- package/Types/Monitor/IncomingMonitor/IncomingMonitorRequest.d.ts +1 -0
- package/Types/Monitor/MessageQueueAlertTemplates.js +3 -0
- package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.mts +1 -0
- package/Types/Monitor/MetricMonitor/MetricMonitorResponse.d.ts +1 -0
- package/Types/Monitor/MonitorEvaluationDetails.d.mts +80 -0
- package/Types/Monitor/MonitorEvaluationDetails.d.ts +80 -0
- package/Types/Monitor/MonitorEvaluationDetails.js +41 -0
- package/Types/Monitor/MonitorEvaluationDetails.mjs +3 -0
- 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/MonitorSummarySnapshot.d.mts +1 -0
- package/Types/Monitor/MonitorSummarySnapshot.d.ts +1 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.mts +1 -1
- package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.d.ts +1 -1
- package/Types/Monitor/Recommendation/MonitorRecommendationCatalog.js +113 -13
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.mts +16 -1
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.ts +16 -1
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.js +18 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationUtil.d.mts +10 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationUtil.d.ts +10 -0
- package/Types/Monitor/Recommendation/MonitorRecommendationUtil.js +54 -1
- package/Types/Monitor/TelemetryAlertRule.js +19 -1
- package/Types/NetFlow/NetworkTrafficUsage.d.mts +56 -0
- package/Types/NetFlow/NetworkTrafficUsage.d.ts +56 -0
- package/Types/NetFlow/NetworkTrafficUsage.js +171 -1
- package/Types/NetFlow/NetworkTrafficUsage.mjs +11 -0
- package/Types/NetworkController/NetworkControllerApplianceLink.d.mts +43 -0
- package/Types/NetworkController/NetworkControllerApplianceLink.d.ts +43 -0
- package/Types/NetworkController/NetworkControllerApplianceLink.js +107 -0
- package/Types/NetworkController/NetworkControllerApplianceLink.mjs +8 -0
- package/Types/NetworkDevice/DiscoveredDevice.d.mts +105 -0
- package/Types/NetworkDevice/DiscoveredDevice.d.ts +105 -0
- package/Types/NetworkDevice/DiscoveredDevice.js +407 -0
- package/Types/NetworkDevice/DiscoveredDevice.mjs +23 -0
- package/Types/NetworkDevice/DiscoveredDeviceRetention.d.mts +10 -0
- package/Types/NetworkDevice/DiscoveredDeviceRetention.d.ts +10 -0
- package/Types/NetworkDevice/DiscoveredDeviceRetention.js +93 -0
- package/Types/NetworkDevice/DiscoveredDeviceRetention.mjs +11 -0
- package/Types/NetworkDevice/DiscoveryImport.d.mts +12 -0
- package/Types/NetworkDevice/DiscoveryImport.d.ts +12 -0
- package/Types/NetworkDevice/DiscoveryImport.js +53 -1
- package/Types/NetworkDevice/DiscoveryImport.mjs +2 -0
- package/Types/NetworkDevice/NetworkDeviceTelemetryAttribute.d.mts +2 -0
- package/Types/NetworkDevice/NetworkDeviceTelemetryAttribute.d.ts +2 -0
- package/Types/NetworkDevice/NetworkDeviceTelemetryAttribute.js +19 -0
- package/Types/NetworkDevice/NetworkDeviceTelemetryAttribute.mjs +3 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.js +8 -0
- package/Types/NotificationSetting/NotificationEmailRollupPolicy.js +7 -0
- package/Types/NotificationSetting/NotificationSettingEventType.d.mts +2 -0
- package/Types/NotificationSetting/NotificationSettingEventType.d.ts +2 -0
- package/Types/NotificationSetting/NotificationSettingEventType.js +9 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.d.mts +5 -3
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.d.ts +5 -3
- package/Types/OnCallDutyPolicy/OnCallAcknowledgementTimeout.js +98 -11
- package/Types/OnCallDutyPolicy/OnCallObserverPage.d.mts +61 -0
- package/Types/OnCallDutyPolicy/OnCallObserverPage.d.ts +61 -0
- package/Types/OnCallDutyPolicy/OnCallObserverPage.js +331 -0
- package/Types/OnCallDutyPolicy/OnCallObserverPage.mjs +24 -0
- package/Types/OnCallDutyPolicy/OnCallPageAs.d.mts +5 -0
- package/Types/OnCallDutyPolicy/OnCallPageAs.d.ts +5 -0
- package/Types/OnCallDutyPolicy/OnCallPageAs.js +21 -0
- package/Types/OnCallDutyPolicy/OnCallPageAs.mjs +2 -0
- package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.mts +1 -0
- package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.ts +1 -0
- package/Types/OnCallDutyPolicy/OnCallPageWords.d.mts +59 -0
- package/Types/OnCallDutyPolicy/OnCallPageWords.d.ts +59 -0
- package/Types/OnCallDutyPolicy/OnCallPageWords.js +388 -0
- package/Types/OnCallDutyPolicy/OnCallPageWords.mjs +24 -0
- package/Types/OnCallDutyPolicy/OnCallPersonPage.d.mts +10 -3
- package/Types/OnCallDutyPolicy/OnCallPersonPage.d.ts +10 -3
- package/Types/OnCallDutyPolicy/OnCallPersonPage.js +172 -37
- package/Types/OnCallDutyPolicy/OnCallPersonPage.mjs +2 -0
- package/Types/Permission.d.mts +28 -0
- package/Types/Permission.d.ts +28 -0
- package/Types/Permission.js +288 -0
- package/Types/ProviderLogo/AllProviderLogoMarks.js +2 -0
- package/Types/ProviderLogo/Marks/cursor.d.mts +3 -0
- package/Types/ProviderLogo/Marks/cursor.d.ts +3 -0
- package/Types/ProviderLogo/Marks/cursor.js +12 -0
- package/Types/ProviderLogo/Marks/cursor.mjs +2 -0
- package/Types/ProviderLogo/ProviderLogo.d.mts +1 -0
- package/Types/ProviderLogo/ProviderLogo.d.ts +1 -0
- package/Types/ProviderLogo/ProviderLogo.js +2 -0
- package/Types/ProviderLogo/ProviderLogoMarks.js +1 -0
- package/Types/PushNotification/PushNotificationCategory.d.mts +4 -0
- package/Types/PushNotification/PushNotificationCategory.d.ts +4 -0
- package/Types/PushNotification/PushNotificationCategory.js +36 -12
- package/Types/PushNotification/PushNotificationCategory.mjs +2 -0
- package/Types/ReadingDirection.js +2 -2
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.mts +10 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.ts +10 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.js +42 -3
- package/Types/ResourceAiAgent/CloudAiAgentNames.mjs +7 -0
- package/Types/ResourceAiAgent/ResourceAiAccess.d.mts +4 -2
- package/Types/ResourceAiAgent/ResourceAiAccess.d.ts +4 -2
- package/Types/ResourceAiAgent/ResourceAiAccess.js +25 -7
- package/Types/ResourceAiAgent/ResourceAiAccess.mjs +3 -1
- package/Types/Rum/ProductAnalytics.d.mts +153 -0
- package/Types/Rum/ProductAnalytics.d.ts +153 -0
- package/Types/Rum/ProductAnalytics.js +204 -0
- package/Types/Rum/ProductAnalytics.mjs +36 -0
- package/Types/Rum/RumApplicationStatus.d.mts +30 -0
- package/Types/Rum/RumApplicationStatus.d.ts +30 -0
- package/Types/Rum/RumApplicationStatus.js +147 -0
- package/Types/Rum/RumApplicationStatus.mjs +14 -0
- package/Types/Rum/RumTelemetrySignal.d.mts +7 -0
- package/Types/Rum/RumTelemetrySignal.d.ts +7 -0
- package/Types/Rum/RumTelemetrySignal.js +30 -0
- package/Types/Rum/RumTelemetrySignal.mjs +3 -0
- package/Types/Rum/SessionReplay.d.mts +6 -0
- package/Types/Rum/SessionReplay.d.ts +6 -0
- package/Types/Rum/SessionReplayApi.d.mts +7 -0
- package/Types/Rum/SessionReplayApi.d.ts +7 -0
- package/Types/Rum/SessionReplayCustomEvents.d.mts +11 -0
- package/Types/Rum/SessionReplayCustomEvents.d.ts +11 -0
- package/Types/Rum/SessionReplayCustomEvents.js +11 -0
- package/Types/Rum/SessionReplayCustomEvents.mjs +1 -0
- package/Types/Rum/SessionReplayFrustrationSignals.d.mts +90 -0
- package/Types/Rum/SessionReplayFrustrationSignals.d.ts +90 -0
- package/Types/Rum/SessionReplayFrustrationSignals.js +349 -0
- package/Types/Rum/SessionReplayFrustrationSignals.mjs +22 -0
- package/Types/SecurityCase/SecurityCaseContext.d.mts +2 -1
- package/Types/SecurityCase/SecurityCaseContext.d.ts +2 -1
- package/Types/SecurityCase/SecurityConnection.d.mts +11 -1
- package/Types/SecurityCase/SecurityConnection.d.ts +11 -1
- package/Types/SecurityEvent/RealTimeDetection.d.mts +14 -5
- package/Types/SecurityEvent/RealTimeDetection.d.ts +14 -5
- package/Types/SecurityEvent/RealTimeDetection.js +75 -25
- package/Types/SecurityEvent/RealTimeDetection.mjs +3 -3
- package/Types/SecurityEvent/SecurityEventScope.d.mts +12 -0
- package/Types/SecurityEvent/SecurityEventScope.d.ts +12 -0
- package/Types/SecurityEvent/SecurityEventScope.js +109 -0
- package/Types/SecurityEvent/SecurityEventScope.mjs +8 -0
- package/Types/SecurityPlaybook/SecurityPlaybookAction.d.mts +4 -2
- package/Types/SecurityPlaybook/SecurityPlaybookAction.d.ts +4 -2
- package/Types/SecurityPlaybook/SecurityPlaybookAction.js +22 -3
- package/Types/SecurityPlaybook/SecurityPlaybookStep.d.mts +7 -2
- package/Types/SecurityPlaybook/SecurityPlaybookStep.d.ts +7 -2
- package/Types/SecurityPlaybook/SecurityPlaybookStep.js +96 -39
- package/Types/SecurityPlaybook/SecurityPlaybookStep.mjs +2 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.d.mts +17 -2
- package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.d.ts +17 -2
- package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.js +174 -33
- package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.mjs +7 -0
- package/Types/Serverless/ServerlessFunctionStatus.d.mts +30 -0
- package/Types/Serverless/ServerlessFunctionStatus.d.ts +30 -0
- package/Types/Serverless/ServerlessFunctionStatus.js +153 -0
- package/Types/Serverless/ServerlessFunctionStatus.mjs +14 -0
- package/Types/Service/ServiceTelemetryStatus.d.mts +32 -0
- package/Types/Service/ServiceTelemetryStatus.d.ts +32 -0
- package/Types/Service/ServiceTelemetryStatus.js +138 -0
- package/Types/Service/ServiceTelemetryStatus.mjs +15 -0
- package/Types/StatusPage/PublicNoteApproval.d.mts +146 -0
- package/Types/StatusPage/PublicNoteApproval.d.ts +146 -0
- package/Types/StatusPage/PublicNoteApproval.js +473 -0
- package/Types/StatusPage/PublicNoteApproval.mjs +8 -0
- package/Types/StatusPage/StateChangeSubscriberNotification.d.mts +9 -0
- package/Types/StatusPage/StateChangeSubscriberNotification.d.ts +9 -0
- package/Types/StatusPage/StateChangeSubscriberNotification.js +16 -0
- package/Types/StatusPage/StatusPageLanguage.js +1 -0
- package/Types/StatusPage/StatusPageReport.d.mts +3 -0
- package/Types/StatusPage/StatusPageReport.d.ts +3 -0
- package/Types/StatusPage/SubscriberNotificationResend.d.mts +1 -0
- package/Types/StatusPage/SubscriberNotificationResend.d.ts +1 -0
- package/Types/StatusPage/SubscriberNotificationResend.js +2 -0
- package/Types/Table/DefaultTableColumns.d.mts +22 -0
- package/Types/Table/DefaultTableColumns.d.ts +22 -0
- package/Types/Table/DefaultTableColumns.js +166 -0
- package/Types/Table/DefaultTableColumns.mjs +6 -0
- package/Types/TeamOwnedRule/TeamOwnedRuleHeld.d.mts +15 -0
- package/Types/TeamOwnedRule/TeamOwnedRuleHeld.d.ts +15 -0
- package/Types/TeamOwnedRule/TeamOwnedRuleHeld.js +96 -0
- package/Types/TeamOwnedRule/TeamOwnedRuleHeld.mjs +2 -0
- package/Types/TeamOwnedRule/TeamOwnedRuleKinds.d.mts +12 -0
- package/Types/TeamOwnedRule/TeamOwnedRuleKinds.d.ts +12 -0
- package/Types/TeamOwnedRule/TeamOwnedRuleKinds.js +72 -0
- package/Types/TeamOwnedRule/TeamOwnedRuleKinds.mjs +4 -0
- package/Types/Telemetry/LlmConventions.d.mts +5 -0
- package/Types/Telemetry/LlmConventions.d.ts +5 -0
- package/Types/Telemetry/LlmConventions.js +51 -3
- package/Types/Telemetry/LlmConventions.mjs +5 -0
- package/Types/Telemetry/LlmConversationApi.d.mts +7 -0
- package/Types/Telemetry/LlmConversationApi.d.ts +7 -0
- package/Types/Telemetry/LlmConversationApi.js +37 -1
- package/Types/Telemetry/LlmConversationApi.mjs +2 -0
- package/Types/Telemetry/LlmMetricConventions.d.mts +10 -0
- package/Types/Telemetry/LlmMetricConventions.d.ts +10 -0
- package/Types/Telemetry/LlmMetricConventions.js +84 -14
- package/Types/Telemetry/LlmMetricConventions.mjs +3 -0
- package/Types/Telemetry/LlmMetricUsageApi.d.mts +27 -0
- package/Types/Telemetry/LlmMetricUsageApi.d.ts +27 -0
- package/Types/Telemetry/LlmMetricUsageApi.js +73 -0
- package/Types/Telemetry/LlmMetricUsageApi.mjs +7 -0
- package/Types/Telemetry/LlmProviders.d.mts +23 -0
- package/Types/Telemetry/LlmProviders.d.ts +23 -0
- package/Types/Telemetry/LlmProviders.js +288 -0
- package/Types/Telemetry/LlmProviders.mjs +16 -0
- package/Types/Telemetry/LlmSetupCheckApi.d.mts +93 -0
- package/Types/Telemetry/LlmSetupCheckApi.d.ts +93 -0
- package/Types/Telemetry/LlmSetupCheckApi.js +269 -0
- package/Types/Telemetry/LlmSetupCheckApi.mjs +11 -0
- package/Types/Telemetry/LlmUsageApi.d.mts +49 -0
- package/Types/Telemetry/LlmUsageApi.d.ts +49 -0
- package/Types/Telemetry/LlmUsageApi.js +131 -0
- package/Types/Telemetry/LlmUsageApi.mjs +10 -0
- package/Types/Telemetry/ScrubRule.js +2 -1
- package/Types/Telemetry/TelemetryIngestRefusal.d.mts +23 -0
- package/Types/Telemetry/TelemetryIngestRefusal.d.ts +23 -0
- package/Types/Telemetry/TelemetryIngestRefusal.js +81 -0
- package/Types/Telemetry/TelemetryIngestRefusal.mjs +7 -0
- package/Types/Telemetry/TelemetryIngestionBudget.d.mts +160 -0
- package/Types/Telemetry/TelemetryIngestionBudget.d.ts +160 -0
- package/Types/Telemetry/TelemetryIngestionBudget.js +600 -0
- package/Types/Telemetry/TelemetryIngestionBudget.mjs +52 -0
- package/Types/Telemetry/TelemetryIngestionBudgetMetricType.d.mts +7 -0
- package/Types/Telemetry/TelemetryIngestionBudgetMetricType.d.ts +7 -0
- package/Types/Telemetry/TelemetryIngestionBudgetMetricType.js +50 -0
- package/Types/Telemetry/TelemetryIngestionBudgetMetricType.mjs +2 -0
- package/Types/Telemetry/TelemetryIngestionKeyPolicy.d.mts +2 -0
- package/Types/Telemetry/TelemetryIngestionKeyPolicy.d.ts +2 -0
- package/Types/Telemetry/TelemetryQuery.d.mts +3 -0
- package/Types/Telemetry/TelemetryQuery.d.ts +3 -0
- package/Types/Telemetry/TelemetryUsage.d.mts +79 -0
- package/Types/Telemetry/TelemetryUsage.d.ts +79 -0
- package/Types/Telemetry/TelemetryUsage.js +176 -0
- package/Types/Telemetry/TelemetryUsage.mjs +22 -0
- package/Types/Trace/TraceScrubPatternType.js +2 -1
- package/Types/Translator.d.mts +6 -0
- package/Types/Translator.d.ts +6 -0
- package/Types/Translator.js +113 -12
- package/Types/Translator.mjs +6 -0
- package/Types/UserLanguage.d.mts +7 -0
- package/Types/UserLanguage.d.ts +7 -0
- package/Types/UserLanguage.js +78 -0
- package/Types/UserLanguage.mjs +5 -0
- package/Types/Workflow/Components/OnCall.js +28 -1
- package/Types/Workflow/Components/OnCallPageSettings.d.mts +3 -0
- package/Types/Workflow/Components/OnCallPageSettings.d.ts +3 -0
- package/Types/Workflow/Components/OnCallPageSettings.js +25 -0
- package/Types/Workflow/Components/OnCallPageSettings.mjs +1 -0
- package/Types/Workflow/WorkflowDraft.d.mts +2 -0
- package/Types/Workflow/WorkflowDraft.d.ts +2 -0
- package/Types/Workflow/WorkflowDraft.js +32 -23
- package/Types/Workflow/WorkflowDraft.mjs +1 -0
- package/Types/Workflow/WorkflowDraftProposedOnKey.d.mts +1 -0
- package/Types/Workflow/WorkflowDraftProposedOnKey.d.ts +1 -0
- package/Types/Workflow/WorkflowDraftProposedOnKey.js +11 -0
- package/Types/Workflow/WorkflowDraftProposedOnKey.mjs +2 -0
- package/Types/Workflow/WorkflowDraftRebase.d.mts +74 -0
- package/Types/Workflow/WorkflowDraftRebase.d.ts +74 -0
- package/Types/Workflow/WorkflowDraftRebase.js +447 -0
- package/Types/Workflow/WorkflowDraftRebase.mjs +9 -0
- package/Types/Workflow/WorkflowDraftSeen.d.mts +39 -0
- package/Types/Workflow/WorkflowDraftSeen.d.ts +39 -0
- package/Types/Workflow/WorkflowDraftSeen.js +161 -0
- package/Types/Workflow/WorkflowDraftSeen.mjs +6 -0
- package/Types/Workflow/WorkflowGraphRevision.d.mts +2 -0
- package/Types/Workflow/WorkflowGraphRevision.d.ts +2 -0
- package/Types/Workflow/WorkflowGraphRevision.js +45 -0
- package/Types/Workflow/WorkflowGraphRevision.mjs +3 -0
- package/Types/Workflow/WorkflowVersion.d.mts +11 -0
- package/Types/Workflow/WorkflowVersion.d.ts +11 -0
- package/Types/Workflow/WorkflowVersion.js +63 -0
- package/Types/Workflow/WorkflowVersion.mjs +7 -0
- package/Utils/AI/InvestigationImpactNumbers.d.mts +33 -0
- package/Utils/AI/InvestigationImpactNumbers.d.ts +33 -0
- package/Utils/AI/InvestigationImpactNumbers.js +307 -0
- package/Utils/AI/InvestigationImpactNumbers.mjs +9 -0
- package/Utils/AI/InvestigationReport.d.mts +14 -0
- package/Utils/AI/InvestigationReport.d.ts +14 -0
- package/Utils/AI/InvestigationReport.js +136 -3
- package/Utils/AI/InvestigationReport.mjs +4 -0
- package/Utils/AiRemediation/CloudChangeWords.js +6 -0
- package/Utils/AiRemediation/DeclaredCodeChange.d.mts +106 -0
- package/Utils/AiRemediation/DeclaredCodeChange.d.ts +106 -0
- package/Utils/AiRemediation/DeclaredCodeChange.js +451 -0
- package/Utils/AiRemediation/DeclaredCodeChange.mjs +16 -0
- package/Utils/AiRemediation/Resource/CloudCommandPolicy.js +4 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.mts +1 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.d.ts +1 -0
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.js +144 -11
- package/Utils/AiRemediation/Resource/CloudOperationCatalog.mjs +1 -0
- package/Utils/AuditLog/AuditLogTypedValues.d.mts +23 -0
- package/Utils/AuditLog/AuditLogTypedValues.d.ts +23 -0
- package/Utils/AuditLog/AuditLogTypedValues.js +331 -0
- package/Utils/AuditLog/AuditLogTypedValues.mjs +8 -0
- package/Utils/AuditLog/AuditLogValues.d.mts +25 -0
- package/Utils/AuditLog/AuditLogValues.d.ts +25 -0
- package/Utils/AuditLog/AuditLogValues.js +398 -0
- package/Utils/AuditLog/AuditLogValues.mjs +15 -0
- package/Utils/CronScheduleText.js +2 -2
- package/Utils/Dashboard/DashboardWidgetIds.d.mts +9 -0
- package/Utils/Dashboard/DashboardWidgetIds.d.ts +9 -0
- package/Utils/Dashboard/DashboardWidgetIds.js +136 -0
- package/Utils/Dashboard/DashboardWidgetIds.mjs +4 -0
- package/Utils/Dashboard/DashboardWidgetSorts.js +7 -1
- package/Utils/Dashboard/LabelVariable.js +12 -2
- package/Utils/Dashboard/SloWidgetSource.d.mts +2 -2
- package/Utils/Dashboard/SloWidgetSource.d.ts +2 -2
- package/Utils/Dashboard/SloWidgetSource.js +14 -3
- package/Utils/Dashboard/StoredDashboardViewConfig.d.mts +7 -0
- package/Utils/Dashboard/StoredDashboardViewConfig.d.ts +7 -0
- package/Utils/Dashboard/StoredDashboardViewConfig.js +124 -22
- package/Utils/Episode/EpisodeOpeningThreshold.d.mts +9 -0
- package/Utils/Episode/EpisodeOpeningThreshold.d.ts +9 -0
- package/Utils/Episode/EpisodeOpeningThreshold.js +64 -0
- package/Utils/Episode/EpisodeOpeningThreshold.mjs +7 -0
- package/Utils/LLM/LlmProviderResponseTimeout.d.mts +4 -0
- package/Utils/LLM/LlmProviderResponseTimeout.d.ts +4 -0
- package/Utils/LLM/LlmProviderResponseTimeout.js +24 -0
- package/Utils/LLM/LlmProviderResponseTimeout.mjs +4 -0
- package/Utils/LinearRegExp/PatternWork.d.mts +1 -0
- package/Utils/LinearRegExp/PatternWork.d.ts +1 -0
- package/Utils/LinearRegExp/PatternWork.js +10 -4
- package/Utils/LinearRegExp/PatternWork.mjs +1 -0
- package/Utils/Markdown/Base64Data.d.mts +8 -0
- package/Utils/Markdown/Base64Data.d.ts +8 -0
- package/Utils/Markdown/Base64Data.js +130 -0
- package/Utils/Markdown/Base64Data.mjs +4 -0
- package/Utils/Metrics/MetricExplorerUrl.d.mts +1 -0
- package/Utils/Metrics/MetricExplorerUrl.d.ts +1 -0
- package/Utils/Metrics/MetricExplorerUrl.js +14 -3
- package/Utils/Metrics/MetricFormulaEvaluator.d.mts +18 -0
- package/Utils/Metrics/MetricFormulaEvaluator.d.ts +18 -0
- package/Utils/Metrics/MetricFormulaEvaluator.js +112 -0
- package/Utils/Metrics/MetricQueryCloudAggregation.d.mts +62 -0
- package/Utils/Metrics/MetricQueryCloudAggregation.d.ts +62 -0
- package/Utils/Metrics/MetricQueryCloudAggregation.js +335 -0
- package/Utils/Metrics/MetricQueryCloudAggregation.mjs +2 -0
- package/Utils/Metrics/MetricQueryServices.d.mts +14 -0
- package/Utils/Metrics/MetricQueryServices.d.ts +14 -0
- package/Utils/Metrics/MetricQueryServices.js +121 -0
- package/Utils/Metrics/MetricQueryServices.mjs +2 -0
- package/Utils/Metrics/MetricWholeWindow.d.mts +11 -0
- package/Utils/Metrics/MetricWholeWindow.d.ts +11 -0
- package/Utils/Metrics/MetricWholeWindow.js +50 -0
- package/Utils/Metrics/MetricWholeWindow.mjs +2 -0
- package/Utils/Monitor/MetricTelemetrySnapshot.d.mts +23 -0
- package/Utils/Monitor/MetricTelemetrySnapshot.d.ts +23 -0
- package/Utils/Monitor/MetricTelemetrySnapshot.js +154 -0
- package/Utils/Monitor/MetricTelemetrySnapshot.mjs +2 -0
- package/Utils/Monitor/MonitorAutoResolveTemplates.d.mts +13 -0
- package/Utils/Monitor/MonitorAutoResolveTemplates.d.ts +13 -0
- package/Utils/Monitor/MonitorAutoResolveTemplates.js +59 -0
- package/Utils/Monitor/MonitorAutoResolveTemplates.mjs +2 -0
- package/Utils/Monitor/MonitorEvaluationDetailsUtil.d.mts +8 -0
- package/Utils/Monitor/MonitorEvaluationDetailsUtil.d.ts +8 -0
- package/Utils/Monitor/MonitorEvaluationDetailsUtil.js +81 -0
- package/Utils/Monitor/MonitorEvaluationDetailsUtil.mjs +2 -0
- package/Utils/Monitor/MonitorGroupMonitoring.d.mts +25 -0
- package/Utils/Monitor/MonitorGroupMonitoring.d.ts +25 -0
- package/Utils/Monitor/MonitorGroupMonitoring.js +78 -0
- package/Utils/Monitor/MonitorGroupMonitoring.mjs +3 -0
- package/Utils/Monitor/MonitorOverviewFamily.d.mts +2 -1
- package/Utils/Monitor/MonitorOverviewFamily.d.ts +2 -1
- package/Utils/Monitor/MonitorOverviewFamily.js +35 -3
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +1 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +1 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +5 -0
- package/Utils/Monitor/MonitorStepMetricQueries.d.mts +61 -0
- package/Utils/Monitor/MonitorStepMetricQueries.d.ts +61 -0
- package/Utils/Monitor/MonitorStepMetricQueries.js +616 -0
- package/Utils/Monitor/MonitorStepMetricQueries.mjs +6 -0
- package/Utils/Monitor/MonitorStepMetricThresholds.d.mts +62 -0
- package/Utils/Monitor/MonitorStepMetricThresholds.d.ts +62 -0
- package/Utils/Monitor/MonitorStepMetricThresholds.js +415 -0
- package/Utils/Monitor/MonitorStepMetricThresholds.mjs +4 -0
- package/Utils/Monitor/NetworkTopologyUtil.d.mts +1 -0
- package/Utils/Monitor/NetworkTopologyUtil.d.ts +1 -0
- package/Utils/Monitor/NetworkTopologyUtil.js +27 -7
- package/Utils/Monitor/NetworkTopologyUtil.mjs +1 -0
- package/Utils/Monitor/NotOperationalMonitorQuery.d.mts +5 -0
- package/Utils/Monitor/NotOperationalMonitorQuery.d.ts +5 -0
- package/Utils/Monitor/NotOperationalMonitorQuery.js +37 -0
- package/Utils/Monitor/NotOperationalMonitorQuery.mjs +2 -0
- package/Utils/NameBreaks.js +44 -12
- package/Utils/NetworkDevice/DeviceNameLikeness.d.mts +33 -0
- package/Utils/NetworkDevice/DeviceNameLikeness.d.ts +33 -0
- package/Utils/NetworkDevice/DeviceNameLikeness.js +279 -0
- package/Utils/NetworkDevice/DeviceNameLikeness.mjs +14 -0
- package/Utils/NetworkDevice/DiscoveredDeviceIdentity.d.mts +13 -0
- package/Utils/NetworkDevice/DiscoveredDeviceIdentity.d.ts +13 -0
- package/Utils/NetworkDevice/DiscoveredDeviceIdentity.js +104 -0
- package/Utils/NetworkDevice/DiscoveredDeviceIdentity.mjs +6 -0
- package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.d.mts +12 -0
- package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.d.ts +12 -0
- package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.js +92 -0
- package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.mjs +3 -0
- package/Utils/Project/ProjectBilling.d.mts +1 -0
- package/Utils/Project/ProjectBilling.d.ts +1 -0
- package/Utils/Project/ProjectBilling.js +27 -3
- package/Utils/Project/ProjectBilling.mjs +1 -0
- package/Utils/Rum/SessionReplayFrustrationSettingsValidation.d.mts +9 -0
- package/Utils/Rum/SessionReplayFrustrationSettingsValidation.d.ts +9 -0
- package/Utils/Rum/SessionReplayFrustrationSettingsValidation.js +337 -0
- package/Utils/Rum/SessionReplayFrustrationSettingsValidation.mjs +5 -0
- package/Utils/Rum/UserFlow.js +6 -2
- package/Utils/Runbook/RunbookStepExecutionChanges.d.mts +32 -0
- package/Utils/Runbook/RunbookStepExecutionChanges.d.ts +32 -0
- package/Utils/Runbook/RunbookStepExecutionChanges.js +264 -0
- package/Utils/Runbook/RunbookStepExecutionChanges.mjs +11 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.d.mts +5 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.d.ts +5 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.js +10 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.mjs +1 -0
- package/Utils/SecurityCase/SecurityConnectionMatch.d.mts +1 -0
- package/Utils/SecurityCase/SecurityConnectionMatch.d.ts +1 -0
- package/Utils/SecurityCase/SecurityConnectionMatch.js +33 -0
- package/Utils/SecurityCase/SecurityConnectionMatch.mjs +1 -0
- package/Utils/SecurityEvent/LogParsers/DatabaseServerLogLine.d.mts +5 -0
- package/Utils/SecurityEvent/LogParsers/DatabaseServerLogLine.d.ts +5 -0
- package/Utils/SecurityEvent/LogParsers/DatabaseServerLogLine.js +458 -0
- package/Utils/SecurityEvent/LogParsers/DatabaseServerLogLine.mjs +6 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.mts +1 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.d.ts +1 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.js +30 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogLine.mjs +1 -0
- package/Utils/SecurityEvent/LogParsers/SecurityLogParser.js +9 -0
- package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.d.mts +3 -0
- package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.d.ts +3 -0
- package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.js +223 -33
- package/Utils/SecurityEvent/LogParsers/WebAttackLogParser.mjs +3 -0
- package/Utils/SecurityEvent/SecurityScanWords.d.mts +2 -0
- package/Utils/SecurityEvent/SecurityScanWords.d.ts +2 -0
- package/Utils/SecurityEvent/SecurityScanWords.js +122 -0
- package/Utils/SecurityEvent/SecurityScanWords.mjs +3 -0
- package/Utils/Slo/SloBulkRecommendedBurnRateRules.d.mts +42 -0
- package/Utils/Slo/SloBulkRecommendedBurnRateRules.d.ts +42 -0
- package/Utils/Slo/SloBulkRecommendedBurnRateRules.js +207 -0
- package/Utils/Slo/SloBulkRecommendedBurnRateRules.mjs +10 -0
- package/Utils/Slo/SloBurnRateTemplate.d.mts +23 -3
- package/Utils/Slo/SloBurnRateTemplate.d.ts +23 -3
- package/Utils/Slo/SloBurnRateTemplate.js +96 -17
- package/Utils/Slo/SloBurnRateTemplate.mjs +6 -0
- package/Utils/Slo/SloErrorBudgetPolicy.d.mts +99 -0
- package/Utils/Slo/SloErrorBudgetPolicy.d.ts +99 -0
- package/Utils/Slo/SloErrorBudgetPolicy.js +398 -0
- package/Utils/Slo/SloErrorBudgetPolicy.mjs +25 -0
- package/Utils/Slo/SloEvaluation.d.mts +22 -0
- package/Utils/Slo/SloEvaluation.d.ts +22 -0
- package/Utils/Slo/SloEvaluation.js +43 -1
- package/Utils/Slo/SloEvaluation.mjs +4 -0
- package/Utils/Slo/SloFeedMarkdown.d.mts +27 -0
- package/Utils/Slo/SloFeedMarkdown.d.ts +27 -0
- package/Utils/Slo/SloFeedMarkdown.js +118 -3
- package/Utils/Slo/SloFeedMarkdown.mjs +2 -0
- package/Utils/Slo/SloRecommendedBurnRateRules.d.mts +73 -0
- package/Utils/Slo/SloRecommendedBurnRateRules.d.ts +73 -0
- package/Utils/Slo/SloRecommendedBurnRateRules.js +348 -0
- package/Utils/Slo/SloRecommendedBurnRateRules.mjs +28 -0
- package/Utils/Slo/SloRecordOutputColumns.d.mts +25 -0
- package/Utils/Slo/SloRecordOutputColumns.d.ts +25 -0
- package/Utils/Slo/SloRecordOutputColumns.js +87 -0
- package/Utils/Slo/SloRecordOutputColumns.mjs +9 -0
- package/Utils/Slo/SloStatusColor.d.mts +6 -0
- package/Utils/Slo/SloStatusColor.d.ts +6 -0
- package/Utils/Slo/SloStatusColor.js +23 -1
- package/Utils/Slo/SloStatusColor.mjs +2 -0
- package/Utils/Slo/SloUtil.d.mts +4 -0
- package/Utils/Slo/SloUtil.d.ts +4 -0
- package/Utils/Slo/SloUtil.js +8 -2
- package/Utils/Sms/OnCallPageSms.d.mts +18 -0
- package/Utils/Sms/OnCallPageSms.d.ts +18 -0
- package/Utils/Sms/OnCallPageSms.js +88 -6
- package/Utils/StatusPage/Report.js +2 -0
- package/Utils/StatusPage/ReportPeriod.d.mts +4 -4
- package/Utils/StatusPage/ReportPeriod.d.ts +4 -4
- package/Utils/StatusPage/ReportPeriod.js +23 -47
- package/Utils/StatusPage/ReportText.d.mts +33 -0
- package/Utils/StatusPage/ReportText.d.ts +33 -0
- package/Utils/StatusPage/ReportText.js +266 -0
- package/Utils/StatusPage/ReportText.mjs +3 -0
- package/Utils/Telemetry/CloudChangeTitle.d.mts +37 -0
- package/Utils/Telemetry/CloudChangeTitle.d.ts +37 -0
- package/Utils/Telemetry/CloudChangeTitle.js +315 -3
- package/Utils/Telemetry/CloudChangeTitle.mjs +13 -0
- package/Utils/Telemetry/CloudHealthDescription.d.mts +53 -0
- package/Utils/Telemetry/CloudHealthDescription.d.ts +53 -0
- package/Utils/Telemetry/CloudHealthDescription.js +310 -0
- package/Utils/Telemetry/CloudHealthDescription.mjs +13 -0
- package/Utils/Telemetry/LlmCallCounting.d.mts +30 -0
- package/Utils/Telemetry/LlmCallCounting.d.ts +30 -0
- package/Utils/Telemetry/LlmCallCounting.js +109 -0
- package/Utils/Telemetry/LlmCallCounting.mjs +2 -0
- package/Utils/Telemetry/LlmConversationTranscript.js +12 -6
- package/Utils/Telemetry/LlmLogEvents.d.mts +45 -0
- package/Utils/Telemetry/LlmLogEvents.d.ts +45 -0
- package/Utils/Telemetry/LlmLogEvents.js +613 -0
- package/Utils/Telemetry/LlmLogEvents.mjs +4 -0
- package/Utils/Telemetry/LlmMessageParser.d.mts +1 -0
- package/Utils/Telemetry/LlmMessageParser.d.ts +1 -0
- package/Utils/Telemetry/LlmMessageParser.js +60 -2
- package/Utils/Telemetry/LlmMetricUsage.d.mts +27 -0
- package/Utils/Telemetry/LlmMetricUsage.d.ts +27 -0
- package/Utils/Telemetry/LlmMetricUsage.js +189 -0
- package/Utils/Telemetry/LlmMetricUsage.mjs +2 -0
- package/Utils/Telemetry/LlmUsage.d.mts +51 -0
- package/Utils/Telemetry/LlmUsage.d.ts +51 -0
- package/Utils/Telemetry/LlmUsage.js +266 -0
- package/Utils/Telemetry/LlmUsage.mjs +3 -0
- package/Utils/Telemetry/ScrubNestedValues.d.mts +14 -0
- package/Utils/Telemetry/ScrubNestedValues.d.ts +14 -0
- package/Utils/Telemetry/ScrubNestedValues.js +302 -0
- package/Utils/Telemetry/ScrubNestedValues.mjs +4 -0
- package/Utils/Telemetry/TelemetryIngestionBudgetMetricType.d.mts +18 -0
- package/Utils/Telemetry/TelemetryIngestionBudgetMetricType.d.ts +18 -0
- package/Utils/Telemetry/TelemetryIngestionBudgetMetricType.js +141 -0
- package/Utils/Telemetry/TelemetryIngestionBudgetMetricType.mjs +9 -0
- package/Utils/Workflow/WorkflowGraphChanges.d.mts +65 -0
- package/Utils/Workflow/WorkflowGraphChanges.d.ts +65 -0
- package/Utils/Workflow/WorkflowGraphChanges.js +530 -0
- package/Utils/Workflow/WorkflowGraphChanges.mjs +8 -0
- package/Utils/Workflow/WorkflowGraphSnapshot.d.mts +12 -0
- package/Utils/Workflow/WorkflowGraphSnapshot.d.ts +12 -0
- package/Utils/Workflow/WorkflowGraphSnapshot.js +214 -0
- package/Utils/Workflow/WorkflowGraphSnapshot.mjs +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,2003 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.CLOUD_CERTIFICATE_EXPIRY_DAYS = exports.CLOUD_CONNECTIONS_HIGH_PERCENT = exports.CLOUD_ALLOCATED_STORAGE_PROPERTY = exports.CLOUD_SLOW_RESPONSE_SECONDS = exports.CLOUD_RDS_FREE_STORAGE_LOW_PERCENT = exports.CLOUD_COMPUTE_CPU_HIGH_PERCENT = exports.CLOUD_MONITORING_SERVICE_NAMES = exports.CLOUD_SLOW_METRIC_MONITORING_INTERVAL = exports.CLOUD_SLOW_METRIC_WINDOW = exports.CLOUD_ALERT_MONITORING_INTERVAL = exports.CLOUD_ALERT_WINDOWS = void 0;
|
|
7
|
+
exports.getCloudMonitoringServiceName = getCloudMonitoringServiceName;
|
|
8
|
+
exports.getAwsKeyMetricOf = getAwsKeyMetricOf;
|
|
9
|
+
exports.getCloudAlertMetricReadingKey = getCloudAlertMetricReadingKey;
|
|
10
|
+
exports.getCloudAlertStoredMetricName = getCloudAlertStoredMetricName;
|
|
11
|
+
exports.getCloudConnectionsThreshold = getCloudConnectionsThreshold;
|
|
12
|
+
exports.isCloudSlowMetricTemplate = isCloudSlowMetricTemplate;
|
|
13
|
+
exports.getAllCloudAlertTemplates = getAllCloudAlertTemplates;
|
|
14
|
+
exports.getCloudAlertTemplate = getCloudAlertTemplate;
|
|
15
|
+
exports.getCloudAlertTemplatesForType = getCloudAlertTemplatesForType;
|
|
16
|
+
exports.readCloudTelemetryAttributes = readCloudTelemetryAttributes;
|
|
17
|
+
exports.readAllocatedStorageGiB = readAllocatedStorageGiB;
|
|
18
|
+
exports.getCloudAlertTemplatesFor = getCloudAlertTemplatesFor;
|
|
19
|
+
exports.getCloudAlertTemplateReadingKeys = getCloudAlertTemplateReadingKeys;
|
|
20
|
+
exports.getCloudResourceTypesWithAlertTemplates = getCloudResourceTypesWithAlertTemplates;
|
|
21
|
+
const FilterCondition_1 = __importDefault(require("../Filter/FilterCondition"));
|
|
22
|
+
const MetricsAggregationType_1 = __importDefault(require("../Metrics/MetricsAggregationType"));
|
|
23
|
+
const RollingTime_1 = __importDefault(require("../RollingTime/RollingTime"));
|
|
24
|
+
const CloudPlatform_1 = require("../Cloud/CloudPlatform");
|
|
25
|
+
const CloudKeyMetrics_1 = require("../Cloud/CloudKeyMetrics");
|
|
26
|
+
const CloudResourceHealth_1 = require("../Cloud/CloudResourceHealth");
|
|
27
|
+
const CloudMonitoredResource_1 = require("../Cloud/CloudMonitoredResource");
|
|
28
|
+
const MonitorStep_1 = __importDefault(require("./MonitorStep"));
|
|
29
|
+
const MonitorCriteria_1 = __importDefault(require("./MonitorCriteria"));
|
|
30
|
+
const CriteriaFilter_1 = require("./CriteriaFilter");
|
|
31
|
+
const MonitorType_1 = __importDefault(require("./MonitorType"));
|
|
32
|
+
const RecommendationCriteriaBuilder_1 = require("./Recommendation/RecommendationCriteriaBuilder");
|
|
33
|
+
// The window each cloud's monitors read (see WINDOWS above).
|
|
34
|
+
exports.CLOUD_ALERT_WINDOWS = {
|
|
35
|
+
[CloudPlatform_1.CloudProvider.AWS]: RollingTime_1.default.Past30Minutes,
|
|
36
|
+
[CloudPlatform_1.CloudProvider.Azure]: RollingTime_1.default.Past15Minutes,
|
|
37
|
+
[CloudPlatform_1.CloudProvider.GCP]: RollingTime_1.default.Past15Minutes,
|
|
38
|
+
};
|
|
39
|
+
// How often a recommended cloud monitor is evaluated: every five minutes.
|
|
40
|
+
exports.CLOUD_ALERT_MONITORING_INTERVAL = "*/5 * * * *";
|
|
41
|
+
/*
|
|
42
|
+
* A template over a metric its cloud publishes a few times a day, which
|
|
43
|
+
* the connection reads once an hour (an AWS key metric whose period is an
|
|
44
|
+
* hour or more: ACM's DaysToExpiry): the last 2 days, evaluated once an
|
|
45
|
+
* hour (see WINDOWS above).
|
|
46
|
+
*/
|
|
47
|
+
exports.CLOUD_SLOW_METRIC_WINDOW = RollingTime_1.default.Past2Days;
|
|
48
|
+
exports.CLOUD_SLOW_METRIC_MONITORING_INTERVAL = "0 * * * *";
|
|
49
|
+
/*
|
|
50
|
+
* The service each cloud's numbers come from, by its own name - a product
|
|
51
|
+
* name, the same in every language.
|
|
52
|
+
*/
|
|
53
|
+
exports.CLOUD_MONITORING_SERVICE_NAMES = {
|
|
54
|
+
[CloudPlatform_1.CloudProvider.AWS]: "Amazon CloudWatch",
|
|
55
|
+
[CloudPlatform_1.CloudProvider.Azure]: "Azure Monitor",
|
|
56
|
+
[CloudPlatform_1.CloudProvider.GCP]: "Google Cloud Monitoring",
|
|
57
|
+
};
|
|
58
|
+
// A cloud's monitoring service, or nothing for a cloud OneUptime does not read.
|
|
59
|
+
function getCloudMonitoringServiceName(provider) {
|
|
60
|
+
const key = (provider || "").trim().toLowerCase();
|
|
61
|
+
return exports.CLOUD_MONITORING_SERVICE_NAMES[key];
|
|
62
|
+
}
|
|
63
|
+
// CPU a compute resource (an instance, a VM, a container service) may hold.
|
|
64
|
+
exports.CLOUD_COMPUTE_CPU_HIGH_PERCENT = 90;
|
|
65
|
+
// Free storage an RDS instance should keep: 100 - CLOUD_STORAGE_HIGH_PERCENT.
|
|
66
|
+
exports.CLOUD_RDS_FREE_STORAGE_LOW_PERCENT = 100 - CloudResourceHealth_1.CLOUD_STORAGE_HIGH_PERCENT;
|
|
67
|
+
// Responses slower than this on average, held for the window, are slow.
|
|
68
|
+
exports.CLOUD_SLOW_RESPONSE_SECONDS = 1;
|
|
69
|
+
// Where an RDS instance's allocated storage is kept (its inventory, GiB).
|
|
70
|
+
exports.CLOUD_ALLOCATED_STORAGE_PROPERTY = "AllocatedStorage";
|
|
71
|
+
/*
|
|
72
|
+
* The share of an RDS instance's connection limit its connections may hold:
|
|
73
|
+
* AWS's own recommended alarm says 90 to 95% of the limit, and the lower
|
|
74
|
+
* end leaves room for the limit, which is the class's default as worked
|
|
75
|
+
* out (RdsConnectionLimits), to be a little high.
|
|
76
|
+
*/
|
|
77
|
+
exports.CLOUD_CONNECTIONS_HIGH_PERCENT = 90;
|
|
78
|
+
/*
|
|
79
|
+
* The days a certificate may have left before it is said: ACM renews a
|
|
80
|
+
* certificate it issued 45 to 60 days before it expires, and says so when
|
|
81
|
+
* it cannot - first at 30 days, then at 15, 7, 3 and 1. A certificate at 30
|
|
82
|
+
* is one ACM could not renew (imported, not in use, or its validation
|
|
83
|
+
* gone), with a month left to fix it.
|
|
84
|
+
*/
|
|
85
|
+
exports.CLOUD_CERTIFICATE_EXPIRY_DAYS = 30;
|
|
86
|
+
const GIB = 1024 * 1024 * 1024;
|
|
87
|
+
/*
|
|
88
|
+
* ---------------------------------------------------------------------------
|
|
89
|
+
* Metrics
|
|
90
|
+
* ---------------------------------------------------------------------------
|
|
91
|
+
*/
|
|
92
|
+
const AWS_STATISTIC_AGGREGATION = {
|
|
93
|
+
Average: MetricsAggregationType_1.default.Avg,
|
|
94
|
+
Sum: MetricsAggregationType_1.default.Sum,
|
|
95
|
+
Maximum: MetricsAggregationType_1.default.Max,
|
|
96
|
+
Minimum: MetricsAggregationType_1.default.Min,
|
|
97
|
+
};
|
|
98
|
+
// A CloudWatch unit as the alert text writes it.
|
|
99
|
+
const AWS_UNIT_LEGENDS = {
|
|
100
|
+
Percent: "%",
|
|
101
|
+
Seconds: "s",
|
|
102
|
+
Milliseconds: "ms",
|
|
103
|
+
Bytes: "B",
|
|
104
|
+
};
|
|
105
|
+
// The key metric a connection reads, or undefined (a test holds there is one).
|
|
106
|
+
function getAwsKeyMetricOf(namespace, metricName) {
|
|
107
|
+
var _a;
|
|
108
|
+
return (_a = (0, CloudKeyMetrics_1.getAwsKeyMetrics)(namespace)) === null || _a === void 0 ? void 0 : _a.metrics.find((metric) => {
|
|
109
|
+
return metric.metricName === metricName;
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
function awsMetric(namespace, metricName) {
|
|
113
|
+
const keyMetric = getAwsKeyMetricOf(namespace, metricName);
|
|
114
|
+
const statistic = (keyMetric === null || keyMetric === void 0 ? void 0 : keyMetric.statistic) || "Average";
|
|
115
|
+
return {
|
|
116
|
+
provider: CloudPlatform_1.CloudProvider.AWS,
|
|
117
|
+
namespace: namespace,
|
|
118
|
+
metricName: metricName,
|
|
119
|
+
aggregationType: AWS_STATISTIC_AGGREGATION[statistic],
|
|
120
|
+
legendUnit: keyMetric ? AWS_UNIT_LEGENDS[keyMetric.unit] : undefined,
|
|
121
|
+
label: `${metricName} (${statistic})`,
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
function azureMetric(data) {
|
|
125
|
+
return {
|
|
126
|
+
provider: CloudPlatform_1.CloudProvider.Azure,
|
|
127
|
+
metricName: data.metricName,
|
|
128
|
+
azureAggregation: data.aggregation,
|
|
129
|
+
aggregationType: data.aggregationType,
|
|
130
|
+
legendUnit: data.legendUnit,
|
|
131
|
+
label: data.metricName,
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function gcpMetric(data) {
|
|
135
|
+
return {
|
|
136
|
+
provider: CloudPlatform_1.CloudProvider.GCP,
|
|
137
|
+
metricName: data.metricType,
|
|
138
|
+
aggregationType: data.aggregationType,
|
|
139
|
+
legendUnit: data.legendUnit,
|
|
140
|
+
label: data.metricType,
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
/*
|
|
144
|
+
* The key a metric's readings are kept under (getCloudReadingKey): an Azure
|
|
145
|
+
* metric's without its aggregation, so a reading of it says which one its
|
|
146
|
+
* name ends with.
|
|
147
|
+
*/
|
|
148
|
+
function getCloudAlertMetricReadingKey(metric) {
|
|
149
|
+
return (0, CloudResourceHealth_1.getCloudReadingKey)(metric.provider, getFallbackStoredName(metric));
|
|
150
|
+
}
|
|
151
|
+
function getFallbackStoredName(metric) {
|
|
152
|
+
switch (metric.provider) {
|
|
153
|
+
case CloudPlatform_1.CloudProvider.AWS:
|
|
154
|
+
return (0, CloudKeyMetrics_1.getAwsStoredMetricName)(metric.namespace || "", metric.metricName).toLowerCase();
|
|
155
|
+
case CloudPlatform_1.CloudProvider.Azure:
|
|
156
|
+
return (0, CloudKeyMetrics_1.getAzureStoredMetricName)(metric.metricName, metric.azureAggregation || "average");
|
|
157
|
+
default:
|
|
158
|
+
return metric.metricName.toLowerCase();
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
/*
|
|
162
|
+
* The name a metric is stored under for this resource: an AWS or Google
|
|
163
|
+
* Cloud metric's is fixed by its name; an Azure metric's ends with the
|
|
164
|
+
* aggregation the resource's own reading of it was stored with
|
|
165
|
+
* (CloudResourceReading.metric), or Azure's documented one before it has a
|
|
166
|
+
* reading. Lower case, as ingest stores every name.
|
|
167
|
+
*/
|
|
168
|
+
function getCloudAlertStoredMetricName(data) {
|
|
169
|
+
var _a, _b;
|
|
170
|
+
if (data.metric.provider === CloudPlatform_1.CloudProvider.Azure) {
|
|
171
|
+
const key = getCloudAlertMetricReadingKey(data.metric);
|
|
172
|
+
const read = key
|
|
173
|
+
? (_b = (_a = data.readings) === null || _a === void 0 ? void 0 : _a[key]) === null || _b === void 0 ? void 0 : _b.metric
|
|
174
|
+
: undefined;
|
|
175
|
+
if (read && read.trim()) {
|
|
176
|
+
return read.trim().toLowerCase();
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
return getFallbackStoredName(data.metric);
|
|
180
|
+
}
|
|
181
|
+
/*
|
|
182
|
+
* ---------------------------------------------------------------------------
|
|
183
|
+
* Building a template's monitor
|
|
184
|
+
* ---------------------------------------------------------------------------
|
|
185
|
+
*/
|
|
186
|
+
function buildQuery(data) {
|
|
187
|
+
const title = `${data.title} - ${data.query.metric.label}`;
|
|
188
|
+
return {
|
|
189
|
+
metricAliasData: {
|
|
190
|
+
metricVariable: data.query.alias,
|
|
191
|
+
title: title,
|
|
192
|
+
description: title,
|
|
193
|
+
legend: title,
|
|
194
|
+
legendUnit: data.query.metric.legendUnit,
|
|
195
|
+
},
|
|
196
|
+
metricQueryData: {
|
|
197
|
+
filterData: {
|
|
198
|
+
metricName: getCloudAlertStoredMetricName({
|
|
199
|
+
metric: data.query.metric,
|
|
200
|
+
readings: data.args.readings,
|
|
201
|
+
}),
|
|
202
|
+
attributes: Object.assign({}, data.args.telemetryAttributes),
|
|
203
|
+
aggegationType: data.query.metric.aggregationType,
|
|
204
|
+
aggregateBy: {},
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
/*
|
|
208
|
+
* The resource, by its row: its charts draw its own incidents, alerts
|
|
209
|
+
* and changes, and the server reads which resource the monitor is
|
|
210
|
+
* about (MonitorStepResourceIdentity).
|
|
211
|
+
*/
|
|
212
|
+
eventScope: { cloudResourceId: data.args.cloudResourceId },
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
function buildFormula(formula) {
|
|
216
|
+
return {
|
|
217
|
+
metricAliasData: {
|
|
218
|
+
metricVariable: formula.alias,
|
|
219
|
+
title: formula.title,
|
|
220
|
+
description: formula.title,
|
|
221
|
+
legend: formula.title,
|
|
222
|
+
legendUnit: formula.legendUnit,
|
|
223
|
+
},
|
|
224
|
+
metricFormulaData: {
|
|
225
|
+
metricFormula: formula.formula,
|
|
226
|
+
},
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
// A count of connections in a criteria's words, as its other numbers are written: "1,521".
|
|
230
|
+
function formatConnections(count) {
|
|
231
|
+
return count.toLocaleString("en-US");
|
|
232
|
+
}
|
|
233
|
+
// An RDS instance's connection limit, when it is a usable one: a positive number.
|
|
234
|
+
function readConnectionLimit(value) {
|
|
235
|
+
const limit = Number(value);
|
|
236
|
+
return Number.isFinite(limit) && limit > 0 ? limit : null;
|
|
237
|
+
}
|
|
238
|
+
/*
|
|
239
|
+
* The line of a template whose threshold is a share of an RDS instance's
|
|
240
|
+
* connection limit: 90% of it, in whole connections.
|
|
241
|
+
*/
|
|
242
|
+
function getCloudConnectionsThreshold(connectionLimit) {
|
|
243
|
+
return Math.floor((connectionLimit * exports.CLOUD_CONNECTIONS_HIGH_PERCENT) / 100);
|
|
244
|
+
}
|
|
245
|
+
/*
|
|
246
|
+
* The breach's threshold for one resource: RDS storage is a share of its
|
|
247
|
+
* own, and so are its connections.
|
|
248
|
+
*/
|
|
249
|
+
function getThreshold(template, args) {
|
|
250
|
+
if (template.requiresConnectionLimit) {
|
|
251
|
+
const limit = readConnectionLimit(args.connectionLimit);
|
|
252
|
+
return limit === null
|
|
253
|
+
? template.threshold
|
|
254
|
+
: getCloudConnectionsThreshold(limit);
|
|
255
|
+
}
|
|
256
|
+
if (!template.requiresAllocatedStorage) {
|
|
257
|
+
return template.threshold;
|
|
258
|
+
}
|
|
259
|
+
const allocatedGiB = Number(args.allocatedStorageGiB);
|
|
260
|
+
if (!Number.isFinite(allocatedGiB) || allocatedGiB <= 0) {
|
|
261
|
+
return template.threshold;
|
|
262
|
+
}
|
|
263
|
+
return Math.round(allocatedGiB * GIB * (exports.CLOUD_RDS_FREE_STORAGE_LOW_PERCENT / 100));
|
|
264
|
+
}
|
|
265
|
+
function describeCriteria(template, args) {
|
|
266
|
+
const minutes = template.rollingTime
|
|
267
|
+
.replace("Past ", "")
|
|
268
|
+
.trim()
|
|
269
|
+
.toLowerCase();
|
|
270
|
+
const limit = template.requiresConnectionLimit
|
|
271
|
+
? readConnectionLimit(args.connectionLimit)
|
|
272
|
+
: null;
|
|
273
|
+
switch (template.measure) {
|
|
274
|
+
case "breakage":
|
|
275
|
+
return `Triggers on the first reading ${template.thresholdLabel} in the past ${minutes}.`;
|
|
276
|
+
case "age":
|
|
277
|
+
return `Triggers when a reading is ${template.thresholdLabel}.`;
|
|
278
|
+
case "countdown":
|
|
279
|
+
return `Triggers when every reading of the past ${minutes} is ${template.thresholdLabel}, or the past ${minutes} hold no reading.`;
|
|
280
|
+
case "total":
|
|
281
|
+
return `Triggers when the past ${minutes} hold ${template.thresholdLabel}.`;
|
|
282
|
+
case "share":
|
|
283
|
+
return `Triggers when ${template.thresholdLabel} of the requests in the past ${minutes} failed${template.minimumRequests ? `, ${template.minimumRequests.label}` : ""}.`;
|
|
284
|
+
default:
|
|
285
|
+
return `Triggers when every reading of the past ${minutes} is ${template.thresholdLabel}${limit === null
|
|
286
|
+
? ""
|
|
287
|
+
: ` (${formatConnections(getCloudConnectionsThreshold(limit))} of ${formatConnections(limit)} connections)`}.`;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
function buildCriteria(template, args) {
|
|
291
|
+
const threshold = getThreshold(template, args);
|
|
292
|
+
const isWhole = template.measure === "total" || template.measure === "share";
|
|
293
|
+
const isFirstPoint = isWhole || template.measure === "breakage" || template.measure === "age";
|
|
294
|
+
/*
|
|
295
|
+
* A countdown is read by its largest reading: "every reading at or under
|
|
296
|
+
* the line" on the firing side, "one above it" on the healthy side - so a
|
|
297
|
+
* renewal clears it with its first reading (see HOW A WINDOW IS JUDGED).
|
|
298
|
+
*/
|
|
299
|
+
const isCountdown = template.measure === "countdown";
|
|
300
|
+
const minimumRequests = template.minimumRequests
|
|
301
|
+
? {
|
|
302
|
+
metricAlias: template.minimumRequests.alias,
|
|
303
|
+
filterType: CriteriaFilter_1.FilterType.GreaterThanOrEqualTo,
|
|
304
|
+
value: template.minimumRequests.value,
|
|
305
|
+
}
|
|
306
|
+
: undefined;
|
|
307
|
+
const unhealthy = (0, RecommendationCriteriaBuilder_1.buildUnhealthyCriteriaInstance)({
|
|
308
|
+
offlineMonitorStatusId: args.offlineMonitorStatusId,
|
|
309
|
+
incidentSeverityId: args.defaultIncidentSeverityId,
|
|
310
|
+
alertSeverityId: args.defaultAlertSeverityId,
|
|
311
|
+
monitorName: args.monitorName,
|
|
312
|
+
metricAlias: template.comparedAlias,
|
|
313
|
+
filterType: template.filterType,
|
|
314
|
+
value: threshold,
|
|
315
|
+
incidentTitle: `[Cloud] ${template.name} - ${args.monitorName}`,
|
|
316
|
+
incidentDescription: template.incidentDescription,
|
|
317
|
+
criteriaName: `${template.name} - ${template.thresholdLabel}`,
|
|
318
|
+
criteriaDescription: describeCriteria(template, args),
|
|
319
|
+
resourceNoun: "cloud resource",
|
|
320
|
+
/*
|
|
321
|
+
* A broken state, an age, and a window read whole fire on a point; a
|
|
322
|
+
* level must hold for the whole window; a countdown is its window's
|
|
323
|
+
* largest reading (see HOW A WINDOW IS JUDGED).
|
|
324
|
+
*/
|
|
325
|
+
metricAggregationType: isCountdown
|
|
326
|
+
? CriteriaFilter_1.EvaluateOverTimeType.MaximumValue
|
|
327
|
+
: isFirstPoint
|
|
328
|
+
? CriteriaFilter_1.EvaluateOverTimeType.AnyValue
|
|
329
|
+
: CriteriaFilter_1.EvaluateOverTimeType.AllValues,
|
|
330
|
+
additionalFilters: minimumRequests ? [minimumRequests] : undefined,
|
|
331
|
+
filterCondition: minimumRequests ? FilterCondition_1.default.All : undefined,
|
|
332
|
+
/*
|
|
333
|
+
* A countdown that stops is the thing it counts down to: ACM stops
|
|
334
|
+
* publishing a certificate's days once it expires, so an empty window
|
|
335
|
+
* fires too, and the incident stays open past the expiry.
|
|
336
|
+
*/
|
|
337
|
+
triggerOnNoData: isCountdown ? true : undefined,
|
|
338
|
+
});
|
|
339
|
+
/*
|
|
340
|
+
* Recovery: the complement. A window read whole has one value, which an
|
|
341
|
+
* empty window - no failure, no request - reads as zero; a broken state
|
|
342
|
+
* clears once every point of a window is whole again; a level below its
|
|
343
|
+
* dead band; a share, as soon as it is under the line or the window held
|
|
344
|
+
* too few requests to judge; a countdown with its first reading above the
|
|
345
|
+
* line (a count of days only rises when it is renewed: no dead band).
|
|
346
|
+
*/
|
|
347
|
+
const healthy = (0, RecommendationCriteriaBuilder_1.buildHealthyCriteriaInstance)({
|
|
348
|
+
onlineMonitorStatusId: args.onlineMonitorStatusId,
|
|
349
|
+
metricAlias: template.comparedAlias,
|
|
350
|
+
filterType: (0, RecommendationCriteriaBuilder_1.getRecoveryFilterType)(template.filterType),
|
|
351
|
+
value: threshold,
|
|
352
|
+
recoveryValue: isWhole || template.measure === "breakage" || isCountdown
|
|
353
|
+
? threshold
|
|
354
|
+
: undefined,
|
|
355
|
+
isBinaryMetric: template.measure === "breakage",
|
|
356
|
+
metricAggregationType: isCountdown
|
|
357
|
+
? CriteriaFilter_1.EvaluateOverTimeType.MaximumValue
|
|
358
|
+
: isWhole
|
|
359
|
+
? CriteriaFilter_1.EvaluateOverTimeType.AnyValue
|
|
360
|
+
: CriteriaFilter_1.EvaluateOverTimeType.AllValues,
|
|
361
|
+
treatNoDataAsZero: isWhole,
|
|
362
|
+
additionalFilters: minimumRequests
|
|
363
|
+
? [
|
|
364
|
+
{
|
|
365
|
+
metricAlias: minimumRequests.metricAlias,
|
|
366
|
+
filterType: (0, RecommendationCriteriaBuilder_1.getRecoveryFilterType)(minimumRequests.filterType),
|
|
367
|
+
value: minimumRequests.value,
|
|
368
|
+
},
|
|
369
|
+
]
|
|
370
|
+
: undefined,
|
|
371
|
+
filterCondition: minimumRequests ? FilterCondition_1.default.Any : undefined,
|
|
372
|
+
});
|
|
373
|
+
const criteria = new MonitorCriteria_1.default();
|
|
374
|
+
criteria.data = { monitorCriteriaInstanceArray: [unhealthy, healthy] };
|
|
375
|
+
return criteria;
|
|
376
|
+
}
|
|
377
|
+
function buildMonitorStep(template, args) {
|
|
378
|
+
const step = MonitorStep_1.default.getDefaultMonitorStep({
|
|
379
|
+
monitorName: args.monitorName,
|
|
380
|
+
monitorType: MonitorType_1.default.Metrics,
|
|
381
|
+
onlineMonitorStatusId: args.onlineMonitorStatusId,
|
|
382
|
+
offlineMonitorStatusId: args.offlineMonitorStatusId,
|
|
383
|
+
defaultIncidentSeverityId: args.defaultIncidentSeverityId,
|
|
384
|
+
defaultAlertSeverityId: args.defaultAlertSeverityId,
|
|
385
|
+
});
|
|
386
|
+
step.setMetricMonitor(Object.assign({ rollingTime: template.rollingTime, metricViewConfig: {
|
|
387
|
+
queryConfigs: template.queries.map((query) => {
|
|
388
|
+
return buildQuery({ query, args, title: template.name });
|
|
389
|
+
}),
|
|
390
|
+
formulaConfigs: template.formula ? [buildFormula(template.formula)] : [],
|
|
391
|
+
} }, (template.measure === "total" || template.measure === "share"
|
|
392
|
+
? { aggregatesWholeWindow: true }
|
|
393
|
+
: {})));
|
|
394
|
+
step.setMonitorCriteria(buildCriteria(template, args));
|
|
395
|
+
return step;
|
|
396
|
+
}
|
|
397
|
+
/*
|
|
398
|
+
* Whether a template reads a metric its cloud publishes a few times a day:
|
|
399
|
+
* an AWS key metric the connection reads once an hour or less often
|
|
400
|
+
* (CloudKeyMetrics' periodSeconds). Its window and its schedule follow the
|
|
401
|
+
* metric (see WINDOWS above), and a stream makes it no sooner that matters.
|
|
402
|
+
*/
|
|
403
|
+
function isCloudSlowMetricTemplate(data) {
|
|
404
|
+
return (data.provider === CloudPlatform_1.CloudProvider.AWS &&
|
|
405
|
+
data.queries.length > 0 &&
|
|
406
|
+
data.queries.every((query) => {
|
|
407
|
+
var _a;
|
|
408
|
+
const periodSeconds = ((_a = getAwsKeyMetricOf(query.metric.namespace || "", query.metric.metricName)) === null || _a === void 0 ? void 0 : _a.periodSeconds) || CloudKeyMetrics_1.AWS_DEFAULT_PERIOD_SECONDS;
|
|
409
|
+
return periodSeconds >= CloudKeyMetrics_1.HOURLY_PERIOD_SECONDS;
|
|
410
|
+
}));
|
|
411
|
+
}
|
|
412
|
+
function define(spec) {
|
|
413
|
+
const isSlow = isCloudSlowMetricTemplate(spec);
|
|
414
|
+
const template = Object.assign(Object.assign({}, spec), { monitorType: MonitorType_1.default.Metrics, rollingTime: isSlow
|
|
415
|
+
? exports.CLOUD_SLOW_METRIC_WINDOW
|
|
416
|
+
: exports.CLOUD_ALERT_WINDOWS[spec.provider], monitoringInterval: isSlow
|
|
417
|
+
? exports.CLOUD_SLOW_METRIC_MONITORING_INTERVAL
|
|
418
|
+
: exports.CLOUD_ALERT_MONITORING_INTERVAL, isBetterStreamed: spec.provider === CloudPlatform_1.CloudProvider.AWS && !isSlow, getMonitorStep: (args) => {
|
|
419
|
+
return buildMonitorStep(template, args);
|
|
420
|
+
} });
|
|
421
|
+
return template;
|
|
422
|
+
}
|
|
423
|
+
// The alias of a template's one query.
|
|
424
|
+
const VALUE = "value";
|
|
425
|
+
const FAILED = "failed";
|
|
426
|
+
const SECOND_FAILED = "failed_second";
|
|
427
|
+
const REQUESTS = "requests";
|
|
428
|
+
const SHARE = "failed_share";
|
|
429
|
+
const PERCENT = "percent";
|
|
430
|
+
// A level held at or above a line for the whole window.
|
|
431
|
+
function sustainedAtOrAbove(data) {
|
|
432
|
+
return define({
|
|
433
|
+
id: data.id,
|
|
434
|
+
name: data.name,
|
|
435
|
+
summary: data.summary,
|
|
436
|
+
description: data.description,
|
|
437
|
+
category: data.category,
|
|
438
|
+
severity: data.severity || "Warning",
|
|
439
|
+
provider: data.provider,
|
|
440
|
+
resourceTypes: data.resourceTypes,
|
|
441
|
+
measure: "sustained",
|
|
442
|
+
queries: [{ alias: VALUE, metric: data.metric }],
|
|
443
|
+
comparedAlias: VALUE,
|
|
444
|
+
filterType: CriteriaFilter_1.FilterType.GreaterThanOrEqualTo,
|
|
445
|
+
threshold: data.threshold,
|
|
446
|
+
thresholdLabel: data.thresholdLabel,
|
|
447
|
+
incidentDescription: data.incidentDescription,
|
|
448
|
+
});
|
|
449
|
+
}
|
|
450
|
+
/*
|
|
451
|
+
* A Google Cloud utilization (0 to 1) made a percent by a formula, so its
|
|
452
|
+
* threshold reads as the health rules' do, whatever unit its metric was
|
|
453
|
+
* registered with.
|
|
454
|
+
*/
|
|
455
|
+
function gcpPercentAtOrAbove(data) {
|
|
456
|
+
return define({
|
|
457
|
+
id: data.id,
|
|
458
|
+
name: data.name,
|
|
459
|
+
summary: data.summary,
|
|
460
|
+
description: data.description,
|
|
461
|
+
category: data.category,
|
|
462
|
+
severity: "Warning",
|
|
463
|
+
provider: CloudPlatform_1.CloudProvider.GCP,
|
|
464
|
+
resourceTypes: data.resourceTypes,
|
|
465
|
+
measure: "sustained",
|
|
466
|
+
queries: [
|
|
467
|
+
{
|
|
468
|
+
alias: VALUE,
|
|
469
|
+
metric: gcpMetric({
|
|
470
|
+
metricType: data.metricType,
|
|
471
|
+
aggregationType: MetricsAggregationType_1.default.Avg,
|
|
472
|
+
}),
|
|
473
|
+
},
|
|
474
|
+
],
|
|
475
|
+
formula: {
|
|
476
|
+
alias: PERCENT,
|
|
477
|
+
formula: `$${VALUE} * 100`,
|
|
478
|
+
legendUnit: "%",
|
|
479
|
+
title: `${data.name} (%)`,
|
|
480
|
+
},
|
|
481
|
+
comparedAlias: PERCENT,
|
|
482
|
+
filterType: CriteriaFilter_1.FilterType.GreaterThanOrEqualTo,
|
|
483
|
+
threshold: data.threshold,
|
|
484
|
+
thresholdLabel: data.thresholdLabel,
|
|
485
|
+
incidentDescription: data.incidentDescription,
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
// A count's window total of at least one.
|
|
489
|
+
function anyInWindow(data) {
|
|
490
|
+
const [first, second] = data.metrics;
|
|
491
|
+
return define({
|
|
492
|
+
id: data.id,
|
|
493
|
+
name: data.name,
|
|
494
|
+
summary: data.summary,
|
|
495
|
+
description: data.description,
|
|
496
|
+
category: data.category,
|
|
497
|
+
severity: "Warning",
|
|
498
|
+
provider: data.provider,
|
|
499
|
+
resourceTypes: data.resourceTypes,
|
|
500
|
+
measure: "total",
|
|
501
|
+
queries: [
|
|
502
|
+
{ alias: FAILED, metric: first },
|
|
503
|
+
...(second ? [{ alias: SECOND_FAILED, metric: second }] : []),
|
|
504
|
+
],
|
|
505
|
+
/*
|
|
506
|
+
* Two counts (a table's read and write throttles) are added up, each
|
|
507
|
+
* read whole; a count with no point in the window reads as zero
|
|
508
|
+
* (MetricWholeWindow), so either one alone is enough.
|
|
509
|
+
*/
|
|
510
|
+
formula: second
|
|
511
|
+
? {
|
|
512
|
+
alias: "total",
|
|
513
|
+
formula: `$${FAILED} + $${SECOND_FAILED}`,
|
|
514
|
+
title: data.name,
|
|
515
|
+
}
|
|
516
|
+
: undefined,
|
|
517
|
+
comparedAlias: second ? "total" : FAILED,
|
|
518
|
+
filterType: CriteriaFilter_1.FilterType.GreaterThanOrEqualTo,
|
|
519
|
+
threshold: 1,
|
|
520
|
+
thresholdLabel: data.thresholdLabel,
|
|
521
|
+
incidentDescription: data.incidentDescription,
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
/*
|
|
525
|
+
* The share of a window's requests that failed: the failed requests (one
|
|
526
|
+
* count, or two added up) over the requests, both read whole.
|
|
527
|
+
*/
|
|
528
|
+
function failedShare(data) {
|
|
529
|
+
const [first, second] = data.failed;
|
|
530
|
+
const failed = second
|
|
531
|
+
? `($${FAILED} + $${SECOND_FAILED})`
|
|
532
|
+
: `$${FAILED}`;
|
|
533
|
+
return define({
|
|
534
|
+
id: data.id,
|
|
535
|
+
name: data.name,
|
|
536
|
+
summary: data.summary,
|
|
537
|
+
description: data.description,
|
|
538
|
+
category: "Errors",
|
|
539
|
+
severity: "Warning",
|
|
540
|
+
provider: data.provider,
|
|
541
|
+
resourceTypes: data.resourceTypes,
|
|
542
|
+
measure: "share",
|
|
543
|
+
queries: [
|
|
544
|
+
{ alias: FAILED, metric: first },
|
|
545
|
+
...(second ? [{ alias: SECOND_FAILED, metric: second }] : []),
|
|
546
|
+
{ alias: REQUESTS, metric: data.requests },
|
|
547
|
+
],
|
|
548
|
+
formula: {
|
|
549
|
+
alias: SHARE,
|
|
550
|
+
formula: `${failed} / $${REQUESTS} * 100`,
|
|
551
|
+
legendUnit: "%",
|
|
552
|
+
title: `${data.name} (% of requests)`,
|
|
553
|
+
},
|
|
554
|
+
comparedAlias: SHARE,
|
|
555
|
+
filterType: CriteriaFilter_1.FilterType.GreaterThanOrEqualTo,
|
|
556
|
+
threshold: CloudResourceHealth_1.CLOUD_FAILED_SHARE_WARNING_PERCENT,
|
|
557
|
+
thresholdLabel: `${CloudResourceHealth_1.CLOUD_FAILED_SHARE_WARNING_PERCENT}% or more`,
|
|
558
|
+
minimumRequests: data.withoutRequestFloor
|
|
559
|
+
? undefined
|
|
560
|
+
: {
|
|
561
|
+
alias: REQUESTS,
|
|
562
|
+
value: CloudResourceHealth_1.CLOUD_HEALTH_MIN_REQUESTS,
|
|
563
|
+
label: `of at least ${CloudResourceHealth_1.CLOUD_HEALTH_MIN_REQUESTS} requests`,
|
|
564
|
+
},
|
|
565
|
+
incidentDescription: data.incidentDescription,
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
/*
|
|
569
|
+
* A broken state: a reading at or above `fires` (failing checks, a cluster
|
|
570
|
+
* in red) or below it (a tunnel, a health check, a VM that reads 0 when it
|
|
571
|
+
* is down).
|
|
572
|
+
*/
|
|
573
|
+
function breakage(data) {
|
|
574
|
+
var _a;
|
|
575
|
+
return define({
|
|
576
|
+
id: data.id,
|
|
577
|
+
name: data.name,
|
|
578
|
+
summary: data.summary,
|
|
579
|
+
description: data.description,
|
|
580
|
+
category: "Availability",
|
|
581
|
+
severity: "Critical",
|
|
582
|
+
provider: data.provider,
|
|
583
|
+
resourceTypes: data.resourceTypes,
|
|
584
|
+
measure: "breakage",
|
|
585
|
+
queries: [{ alias: VALUE, metric: data.metric }],
|
|
586
|
+
comparedAlias: VALUE,
|
|
587
|
+
filterType: data.firesBelow
|
|
588
|
+
? CriteriaFilter_1.FilterType.LessThan
|
|
589
|
+
: CriteriaFilter_1.FilterType.GreaterThanOrEqualTo,
|
|
590
|
+
threshold: (_a = data.threshold) !== null && _a !== void 0 ? _a : 1,
|
|
591
|
+
thresholdLabel: data.thresholdLabel,
|
|
592
|
+
incidentDescription: data.incidentDescription,
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
// A level that should stay high (availability, health): sustained below a line.
|
|
596
|
+
function sustainedBelow(data) {
|
|
597
|
+
return define({
|
|
598
|
+
id: data.id,
|
|
599
|
+
name: data.name,
|
|
600
|
+
summary: data.summary,
|
|
601
|
+
description: data.description,
|
|
602
|
+
category: "Availability",
|
|
603
|
+
severity: "Warning",
|
|
604
|
+
provider: data.provider,
|
|
605
|
+
resourceTypes: data.resourceTypes,
|
|
606
|
+
measure: "sustained",
|
|
607
|
+
queries: [{ alias: VALUE, metric: data.metric }],
|
|
608
|
+
comparedAlias: VALUE,
|
|
609
|
+
filterType: CriteriaFilter_1.FilterType.LessThan,
|
|
610
|
+
threshold: data.threshold,
|
|
611
|
+
thresholdLabel: data.thresholdLabel,
|
|
612
|
+
incidentDescription: data.incidentDescription,
|
|
613
|
+
});
|
|
614
|
+
}
|
|
615
|
+
// An age at or above an hour: the oldest message, consumers behind.
|
|
616
|
+
function ageAtOrAbove(data) {
|
|
617
|
+
return define({
|
|
618
|
+
id: data.id,
|
|
619
|
+
name: data.name,
|
|
620
|
+
summary: data.summary,
|
|
621
|
+
description: data.description,
|
|
622
|
+
category: "Backlog",
|
|
623
|
+
severity: "Warning",
|
|
624
|
+
provider: data.provider,
|
|
625
|
+
resourceTypes: data.resourceTypes,
|
|
626
|
+
measure: "age",
|
|
627
|
+
queries: [{ alias: VALUE, metric: data.metric }],
|
|
628
|
+
comparedAlias: VALUE,
|
|
629
|
+
filterType: CriteriaFilter_1.FilterType.GreaterThanOrEqualTo,
|
|
630
|
+
threshold: data.threshold,
|
|
631
|
+
thresholdLabel: "an hour or more",
|
|
632
|
+
incidentDescription: data.incidentDescription,
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
const AWS = CloudPlatform_1.CloudProvider.AWS;
|
|
636
|
+
const AZURE = CloudPlatform_1.CloudProvider.Azure;
|
|
637
|
+
/*
|
|
638
|
+
* Where each AWS template's numbers come from, for its description, and that
|
|
639
|
+
* it works better streamed (isBetterStreamed): a read-only account's points
|
|
640
|
+
* are 15 to 30 minutes old when CloudWatch publishes them.
|
|
641
|
+
*/
|
|
642
|
+
const READ_FROM_CLOUDWATCH = "Read from Amazon CloudWatch by the account's connection, or streamed through Amazon Data Firehose: works better streamed, whose metrics arrive within minutes, so it fires sooner.";
|
|
643
|
+
/*
|
|
644
|
+
* Where a template over a metric published a few times a day reads it
|
|
645
|
+
* (isCloudSlowMetricTemplate): a stream carries each reading sooner, and
|
|
646
|
+
* the monitor reads the same readings either way.
|
|
647
|
+
*/
|
|
648
|
+
const READ_SLOWLY_FROM_CLOUDWATCH = "Read from Amazon CloudWatch by the account's connection once an hour, whether or not the account streams its metrics: a stream would not make it fire sooner.";
|
|
649
|
+
const READ_FROM_AZURE_MONITOR = "Read from Azure Monitor by the subscription's connection.";
|
|
650
|
+
const READ_FROM_CLOUD_MONITORING = "Read from Google Cloud Monitoring by the project's connection.";
|
|
651
|
+
const ON_PAGE_TOO = "The resource's page says it too, as its health.";
|
|
652
|
+
function awsShareDescription(metrics) {
|
|
653
|
+
return `Fires when 5% or more of the requests of the past 30 minutes failed, of at least 20 requests: ${metrics}, each totalled over the window, so a read-only and a streamed account read the same share. ${READ_FROM_CLOUDWATCH}`;
|
|
654
|
+
}
|
|
655
|
+
/*
|
|
656
|
+
* ---------------------------------------------------------------------------
|
|
657
|
+
* AWS
|
|
658
|
+
* ---------------------------------------------------------------------------
|
|
659
|
+
*/
|
|
660
|
+
const AWS_TEMPLATES = [
|
|
661
|
+
breakage({
|
|
662
|
+
id: "cloud-aws-ec2-status-check-failed",
|
|
663
|
+
name: "Status Checks Failing",
|
|
664
|
+
summary: "The instance or the host it runs on fails a status check.",
|
|
665
|
+
description: `Fires on the first reading of StatusCheckFailed (Maximum) at 1: the instance, or the AWS host under it, failed a status check. Clears once 30 minutes pass without a failure. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
666
|
+
provider: AWS,
|
|
667
|
+
resourceTypes: ["AWS::EC2::Instance"],
|
|
668
|
+
metric: awsMetric("AWS/EC2", "StatusCheckFailed"),
|
|
669
|
+
thresholdLabel: "at 1",
|
|
670
|
+
incidentDescription: "The instance failed an EC2 status check. A failed system check is a problem with the AWS host it runs on: stop and start the instance to move it to another host. A failed instance check is the instance's own: look at its console output and system log for a kernel panic, a full disk or a network configuration it cannot reach.",
|
|
671
|
+
}),
|
|
672
|
+
sustainedAtOrAbove({
|
|
673
|
+
id: "cloud-aws-ec2-high-cpu",
|
|
674
|
+
name: "High CPU",
|
|
675
|
+
summary: "CPU stays at 90% or more for 30 minutes.",
|
|
676
|
+
description: `Fires when every reading of CPUUtilization (Average) in the past 30 minutes is at or above 90%. A busy instance is often doing its work: this says it has no headroom left. ${READ_FROM_CLOUDWATCH}`,
|
|
677
|
+
category: "Utilization",
|
|
678
|
+
provider: AWS,
|
|
679
|
+
resourceTypes: ["AWS::EC2::Instance"],
|
|
680
|
+
metric: awsMetric("AWS/EC2", "CPUUtilization"),
|
|
681
|
+
threshold: exports.CLOUD_COMPUTE_CPU_HIGH_PERCENT,
|
|
682
|
+
thresholdLabel: `at or above ${exports.CLOUD_COMPUTE_CPU_HIGH_PERCENT}%`,
|
|
683
|
+
incidentDescription: "The instance's CPU stayed at 90% or more for 30 minutes. Look for a process that runs away or for traffic that grew, then scale out behind its load balancer, or move it to a larger instance type. A burstable instance (T family) that ran out of CPU credits is held at its baseline.",
|
|
684
|
+
}),
|
|
685
|
+
sustainedAtOrAbove({
|
|
686
|
+
id: "cloud-aws-elb-unhealthy-hosts",
|
|
687
|
+
name: "Unhealthy Hosts",
|
|
688
|
+
summary: "A host behind the load balancer fails its health check for 30 minutes.",
|
|
689
|
+
description: `Fires when every reading of UnHealthyHostCount (Maximum) in the past 30 minutes is 1 or more: an instance behind the classic load balancer keeps failing its health check, and gets no traffic. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
690
|
+
category: "Availability",
|
|
691
|
+
provider: AWS,
|
|
692
|
+
resourceTypes: ["AWS::ElasticLoadBalancing::LoadBalancer"],
|
|
693
|
+
metric: awsMetric("AWS/ELB", "UnHealthyHostCount"),
|
|
694
|
+
threshold: 1,
|
|
695
|
+
thresholdLabel: "1 or more",
|
|
696
|
+
incidentDescription: "A host behind the load balancer failed its health check for 30 minutes and gets no traffic. Open the load balancer's instances in the AWS console to see which one and why, and check the instance, its security group and the health check's path.",
|
|
697
|
+
}),
|
|
698
|
+
failedShare({
|
|
699
|
+
id: "cloud-aws-elb-server-errors",
|
|
700
|
+
name: "Server Errors",
|
|
701
|
+
summary: "5% or more of requests fail with a 5xx error in 30 minutes.",
|
|
702
|
+
description: awsShareDescription("HTTPCode_Backend_5XX (Sum) over RequestCount (Sum)"),
|
|
703
|
+
provider: AWS,
|
|
704
|
+
resourceTypes: ["AWS::ElasticLoadBalancing::LoadBalancer"],
|
|
705
|
+
failed: [awsMetric("AWS/ELB", "HTTPCode_Backend_5XX")],
|
|
706
|
+
requests: awsMetric("AWS/ELB", "RequestCount"),
|
|
707
|
+
incidentDescription: "The instances behind the load balancer answered 5% or more of its requests with a server error. Look at the applications' logs and at what changed on them.",
|
|
708
|
+
}),
|
|
709
|
+
sustainedAtOrAbove({
|
|
710
|
+
id: "cloud-aws-elb-slow-responses",
|
|
711
|
+
name: "Slow Responses",
|
|
712
|
+
summary: "Responses take a second or more on average for 30 minutes.",
|
|
713
|
+
description: `Fires when every reading of Latency (Average) in the past 30 minutes is 1 second or more. ${READ_FROM_CLOUDWATCH}`,
|
|
714
|
+
category: "Latency",
|
|
715
|
+
provider: AWS,
|
|
716
|
+
resourceTypes: ["AWS::ElasticLoadBalancing::LoadBalancer"],
|
|
717
|
+
metric: awsMetric("AWS/ELB", "Latency"),
|
|
718
|
+
threshold: exports.CLOUD_SLOW_RESPONSE_SECONDS,
|
|
719
|
+
thresholdLabel: "1 second or more",
|
|
720
|
+
incidentDescription: "The load balancer's responses took a second or more on average for 30 minutes. Look at the instances behind it: their CPU, their databases and what changed on them.",
|
|
721
|
+
}),
|
|
722
|
+
failedShare({
|
|
723
|
+
id: "cloud-aws-alb-server-errors",
|
|
724
|
+
name: "Server Errors",
|
|
725
|
+
summary: "5% or more of requests fail with a 5xx error in 30 minutes.",
|
|
726
|
+
description: awsShareDescription("HTTPCode_Target_5XX_Count and HTTPCode_ELB_5XX_Count (Sum) over RequestCount (Sum)"),
|
|
727
|
+
provider: AWS,
|
|
728
|
+
resourceTypes: ["AWS::ElasticLoadBalancingV2::LoadBalancer"],
|
|
729
|
+
failed: [
|
|
730
|
+
awsMetric("AWS/ApplicationELB", "HTTPCode_Target_5XX_Count"),
|
|
731
|
+
awsMetric("AWS/ApplicationELB", "HTTPCode_ELB_5XX_Count"),
|
|
732
|
+
],
|
|
733
|
+
requests: awsMetric("AWS/ApplicationELB", "RequestCount"),
|
|
734
|
+
incidentDescription: "The load balancer, or the targets behind it, answered 5% or more of its requests with a server error. Errors from the targets are their own: look at their logs. A 502, 503 or 504 from the load balancer itself means no healthy target answered in time.",
|
|
735
|
+
}),
|
|
736
|
+
sustainedAtOrAbove({
|
|
737
|
+
id: "cloud-aws-alb-slow-responses",
|
|
738
|
+
name: "Slow Responses",
|
|
739
|
+
summary: "Targets take a second or more on average for 30 minutes.",
|
|
740
|
+
description: `Fires when every reading of TargetResponseTime (Average) in the past 30 minutes is 1 second or more. ${READ_FROM_CLOUDWATCH}`,
|
|
741
|
+
category: "Latency",
|
|
742
|
+
provider: AWS,
|
|
743
|
+
resourceTypes: ["AWS::ElasticLoadBalancingV2::LoadBalancer"],
|
|
744
|
+
metric: awsMetric("AWS/ApplicationELB", "TargetResponseTime"),
|
|
745
|
+
threshold: exports.CLOUD_SLOW_RESPONSE_SECONDS,
|
|
746
|
+
thresholdLabel: "1 second or more",
|
|
747
|
+
incidentDescription: "The targets behind the load balancer took a second or more on average to respond for 30 minutes. Look at the targets: their CPU, their databases and what changed on them.",
|
|
748
|
+
}),
|
|
749
|
+
anyInWindow({
|
|
750
|
+
id: "cloud-aws-natgateway-port-allocation-errors",
|
|
751
|
+
name: "Out of Ports",
|
|
752
|
+
summary: "The gateway runs out of ports for new connections.",
|
|
753
|
+
description: `Fires when ErrorPortAllocation (Sum), totalled over the past 30 minutes, is 1 or more: the NAT gateway could not open a connection for lack of source ports. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
754
|
+
category: "Errors",
|
|
755
|
+
provider: AWS,
|
|
756
|
+
resourceTypes: ["AWS::EC2::NatGateway"],
|
|
757
|
+
metrics: [awsMetric("AWS/NATGateway", "ErrorPortAllocation")],
|
|
758
|
+
thresholdLabel: "1 port allocation error or more",
|
|
759
|
+
incidentDescription: "The NAT gateway ran out of source ports for new connections to one destination. Spread the traffic over more destinations, add a second NAT gateway, or add secondary IP addresses to this one.",
|
|
760
|
+
}),
|
|
761
|
+
breakage({
|
|
762
|
+
id: "cloud-aws-vpn-tunnels-down",
|
|
763
|
+
name: "VPN Tunnels Down",
|
|
764
|
+
summary: "Both tunnels of the VPN connection are down.",
|
|
765
|
+
description: `Fires on the first reading of TunnelState (Maximum, of both tunnels) under 1: no tunnel of the Site-to-Site VPN connection is up. Clears once both stay up for 30 minutes. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
766
|
+
provider: AWS,
|
|
767
|
+
resourceTypes: ["AWS::EC2::VPNConnection"],
|
|
768
|
+
metric: awsMetric("AWS/VPN", "TunnelState"),
|
|
769
|
+
firesBelow: true,
|
|
770
|
+
thresholdLabel: "under 1",
|
|
771
|
+
incidentDescription: "Both tunnels of the Site-to-Site VPN connection are down, so the network behind it is unreachable. Check the customer gateway device on your side - its IKE and IPsec settings, its public address and its logs - and the tunnel details in the AWS console.",
|
|
772
|
+
}),
|
|
773
|
+
sustainedAtOrAbove({
|
|
774
|
+
id: "cloud-aws-cloudfront-server-errors",
|
|
775
|
+
name: "Server Errors",
|
|
776
|
+
summary: "5% or more of requests fail with a 5xx error for 30 minutes.",
|
|
777
|
+
description: `Fires when every reading of 5xxErrorRate (Average, in percent) in the past 30 minutes is at or above 5%. CloudFront publishes the share itself, so it is read a point at a time. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
778
|
+
category: "Errors",
|
|
779
|
+
provider: AWS,
|
|
780
|
+
resourceTypes: ["AWS::CloudFront::Distribution"],
|
|
781
|
+
metric: awsMetric("AWS/CloudFront", "5xxErrorRate"),
|
|
782
|
+
threshold: CloudResourceHealth_1.CLOUD_FAILED_SHARE_WARNING_PERCENT,
|
|
783
|
+
thresholdLabel: `at or above ${CloudResourceHealth_1.CLOUD_FAILED_SHARE_WARNING_PERCENT}%`,
|
|
784
|
+
incidentDescription: "The distribution answered 5% or more of its requests with a server error for 30 minutes. Look at its origins: whether they answer, how fast, and what changed on them.",
|
|
785
|
+
}),
|
|
786
|
+
breakage({
|
|
787
|
+
id: "cloud-aws-route53-health-check-failing",
|
|
788
|
+
name: "Health Check Failing",
|
|
789
|
+
summary: "The health check reports its endpoint unhealthy.",
|
|
790
|
+
description: `Fires on the first reading of HealthCheckStatus (Minimum) under 1: Route 53's checkers found the endpoint unhealthy. Clears once it stays healthy for 30 minutes. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
791
|
+
provider: AWS,
|
|
792
|
+
resourceTypes: ["AWS::Route53::HealthCheck"],
|
|
793
|
+
metric: awsMetric("AWS/Route53", "HealthCheckStatus"),
|
|
794
|
+
firesBelow: true,
|
|
795
|
+
thresholdLabel: "under 1",
|
|
796
|
+
incidentDescription: "The Route 53 health check reports its endpoint unhealthy, so a failover record routes away from it. Open the endpoint the check watches and the check's latest failure reason in the AWS console.",
|
|
797
|
+
}),
|
|
798
|
+
sustainedAtOrAbove({
|
|
799
|
+
id: "cloud-aws-efs-io-limit",
|
|
800
|
+
name: "Near Its I/O Limit",
|
|
801
|
+
summary: "The file system stays at 95% of its I/O limit for 30 minutes.",
|
|
802
|
+
description: `Fires when every reading of PercentIOLimit (Average) in the past 30 minutes is at or above 95%. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
803
|
+
category: "Utilization",
|
|
804
|
+
provider: AWS,
|
|
805
|
+
resourceTypes: ["AWS::EFS::FileSystem"],
|
|
806
|
+
metric: awsMetric("AWS/EFS", "PercentIOLimit"),
|
|
807
|
+
threshold: 95,
|
|
808
|
+
thresholdLabel: "at or above 95%",
|
|
809
|
+
incidentDescription: "The General Purpose file system is at 95% of its I/O limit, so its clients' reads and writes slow down. Move the workload to a Max I/O or an Elastic throughput file system, or spread it over more file systems.",
|
|
810
|
+
}),
|
|
811
|
+
sustainedAtOrAbove({
|
|
812
|
+
id: "cloud-aws-ecs-high-cpu",
|
|
813
|
+
name: "High CPU",
|
|
814
|
+
summary: "CPU stays at 90% or more of what it reserves for 30 minutes.",
|
|
815
|
+
description: `Fires when every reading of CPUUtilization (Average) in the past 30 minutes is at or above 90% of the CPU its tasks reserve. ${READ_FROM_CLOUDWATCH}`,
|
|
816
|
+
category: "Utilization",
|
|
817
|
+
provider: AWS,
|
|
818
|
+
resourceTypes: ["AWS::ECS::Service", "AWS::ECS::Cluster"],
|
|
819
|
+
metric: awsMetric("AWS/ECS", "CPUUtilization"),
|
|
820
|
+
threshold: exports.CLOUD_COMPUTE_CPU_HIGH_PERCENT,
|
|
821
|
+
thresholdLabel: `at or above ${exports.CLOUD_COMPUTE_CPU_HIGH_PERCENT}%`,
|
|
822
|
+
incidentDescription: "The service's tasks used 90% or more of the CPU they reserve for 30 minutes. Scale the service out, or give its task definition more CPU.",
|
|
823
|
+
}),
|
|
824
|
+
sustainedAtOrAbove({
|
|
825
|
+
id: "cloud-aws-ecs-high-memory",
|
|
826
|
+
name: "High Memory",
|
|
827
|
+
summary: "Memory stays at 95% or more of what it reserves for 30 minutes.",
|
|
828
|
+
description: `Fires when every reading of MemoryUtilization (Average) in the past 30 minutes is at or above 95% of the memory its tasks reserve: a task that passes its hard limit is stopped. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
829
|
+
category: "Utilization",
|
|
830
|
+
provider: AWS,
|
|
831
|
+
resourceTypes: ["AWS::ECS::Service", "AWS::ECS::Cluster"],
|
|
832
|
+
metric: awsMetric("AWS/ECS", "MemoryUtilization"),
|
|
833
|
+
threshold: CloudResourceHealth_1.CLOUD_MEMORY_HIGH_PERCENT,
|
|
834
|
+
thresholdLabel: `at or above ${CloudResourceHealth_1.CLOUD_MEMORY_HIGH_PERCENT}%`,
|
|
835
|
+
incidentDescription: "The service's tasks used 95% or more of the memory they reserve for 30 minutes; a task that passes its hard limit is stopped and replaced. Look for a leak, then give the task definition more memory.",
|
|
836
|
+
}),
|
|
837
|
+
failedShare({
|
|
838
|
+
id: "cloud-aws-lambda-errors",
|
|
839
|
+
name: "Function Errors",
|
|
840
|
+
summary: "5% or more of its invocations fail in 30 minutes.",
|
|
841
|
+
description: `Fires when Errors (Sum) is 5% or more of Invocations (Sum), each totalled over the past 30 minutes, however few the invocations: a nightly job or a queue handler is invoked a few times an hour, and fails as surely as a busy function. Totalled, a read-only and a streamed account read the same share. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
842
|
+
provider: AWS,
|
|
843
|
+
resourceTypes: ["AWS::Lambda::Function"],
|
|
844
|
+
failed: [awsMetric("AWS/Lambda", "Errors")],
|
|
845
|
+
requests: awsMetric("AWS/Lambda", "Invocations"),
|
|
846
|
+
withoutRequestFloor: true,
|
|
847
|
+
incidentDescription: "5% or more of the function's invocations failed. Its log group in CloudWatch Logs - or its Logs tab, when the account streams its logs - has each failure's error and stack trace.",
|
|
848
|
+
}),
|
|
849
|
+
anyInWindow({
|
|
850
|
+
id: "cloud-aws-lambda-throttles",
|
|
851
|
+
name: "Function Throttled",
|
|
852
|
+
summary: "Invocations are throttled at the function's concurrency limit.",
|
|
853
|
+
description: `Fires when Throttles (Sum), totalled over the past 30 minutes, is 1 or more: an invocation was refused because the function, or the account's Region, reached its concurrency limit. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
854
|
+
category: "Throttling",
|
|
855
|
+
provider: AWS,
|
|
856
|
+
resourceTypes: ["AWS::Lambda::Function"],
|
|
857
|
+
metrics: [awsMetric("AWS/Lambda", "Throttles")],
|
|
858
|
+
thresholdLabel: "1 throttled invocation or more",
|
|
859
|
+
incidentDescription: "Invocations of the function were throttled: it, or the Region's account limit, ran out of concurrency. Raise its reserved concurrency, ask AWS to raise the account's limit, or slow down what calls it.",
|
|
860
|
+
}),
|
|
861
|
+
anyInWindow({
|
|
862
|
+
id: "cloud-aws-states-executions-failed",
|
|
863
|
+
name: "Executions Failed",
|
|
864
|
+
summary: "An execution of the state machine fails.",
|
|
865
|
+
description: `Fires when ExecutionsFailed (Sum), totalled over the past 30 minutes, is 1 or more. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
866
|
+
category: "Errors",
|
|
867
|
+
provider: AWS,
|
|
868
|
+
resourceTypes: ["AWS::StepFunctions::StateMachine"],
|
|
869
|
+
metrics: [awsMetric("AWS/States", "ExecutionsFailed")],
|
|
870
|
+
thresholdLabel: "1 failed execution or more",
|
|
871
|
+
incidentDescription: "An execution of the state machine failed. Its execution history in the Step Functions console names the state that failed and the error it raised.",
|
|
872
|
+
}),
|
|
873
|
+
sustainedAtOrAbove({
|
|
874
|
+
id: "cloud-aws-rds-high-cpu",
|
|
875
|
+
name: "High CPU",
|
|
876
|
+
summary: "CPU stays at 95% or more for 30 minutes.",
|
|
877
|
+
description: `Fires when every reading of CPUUtilization (Average) in the past 30 minutes is at or above 95%. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
878
|
+
category: "Utilization",
|
|
879
|
+
provider: AWS,
|
|
880
|
+
resourceTypes: ["AWS::RDS::DBInstance", "AWS::RDS::DBCluster"],
|
|
881
|
+
metric: awsMetric("AWS/RDS", "CPUUtilization"),
|
|
882
|
+
threshold: CloudResourceHealth_1.CLOUD_CPU_HIGH_PERCENT,
|
|
883
|
+
thresholdLabel: `at or above ${CloudResourceHealth_1.CLOUD_CPU_HIGH_PERCENT}%`,
|
|
884
|
+
incidentDescription: "The database's CPU stayed at 95% or more for 30 minutes, so its queries queue. Performance Insights names the queries that use it; add an index, move reads to a replica, or scale the instance class up.",
|
|
885
|
+
}),
|
|
886
|
+
define({
|
|
887
|
+
id: "cloud-aws-rds-low-storage",
|
|
888
|
+
name: "Low Free Storage",
|
|
889
|
+
summary: "Free storage stays under 10% of what is allocated for 30 minutes.",
|
|
890
|
+
description: `Fires when every reading of FreeStorageSpace (Average) in the past 30 minutes is under 10% of the instance's allocated storage, as its inventory lists it - the health rules' 90% full. Offered once the account's inventory has listed the instance. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
891
|
+
category: "Storage",
|
|
892
|
+
severity: "Warning",
|
|
893
|
+
provider: AWS,
|
|
894
|
+
resourceTypes: ["AWS::RDS::DBInstance"],
|
|
895
|
+
measure: "sustained",
|
|
896
|
+
queries: [
|
|
897
|
+
{ alias: VALUE, metric: awsMetric("AWS/RDS", "FreeStorageSpace") },
|
|
898
|
+
],
|
|
899
|
+
comparedAlias: VALUE,
|
|
900
|
+
filterType: CriteriaFilter_1.FilterType.LessThan,
|
|
901
|
+
// Replaced by 10% of the instance's own storage (getThreshold).
|
|
902
|
+
threshold: 0,
|
|
903
|
+
thresholdLabel: `under ${exports.CLOUD_RDS_FREE_STORAGE_LOW_PERCENT}% of its allocated storage`,
|
|
904
|
+
requiresAllocatedStorage: true,
|
|
905
|
+
incidentDescription: "The database has less than 10% of its allocated storage free; a database that runs out goes read-only. Turn on storage autoscaling or raise its allocated storage, and look for what grew: tables, indexes, logs or temporary files.",
|
|
906
|
+
}),
|
|
907
|
+
define({
|
|
908
|
+
id: "cloud-aws-rds-connections-near-limit",
|
|
909
|
+
name: "Connections Near the Limit",
|
|
910
|
+
summary: "Connections stay at 90% or more of the instance's limit for 30 minutes.",
|
|
911
|
+
description: `Fires when every reading of DatabaseConnections (Average) in the past 30 minutes is at or above ${exports.CLOUD_CONNECTIONS_HIGH_PERCENT}% of the instance's connection limit: past the limit, new connections are refused. The limit is the default max_connections of its class and engine, as RDS works it out from the class's memory: about 60 on a db.t3.micro running MySQL, about 1,700 on a db.r6g.large running PostgreSQL. If the instance's parameter group sets max_connections, change the threshold to ${exports.CLOUD_CONNECTIONS_HIGH_PERCENT}% of that. Offered for MySQL, MariaDB, PostgreSQL and Aurora once the account's inventory lists the instance's class and engine. ${READ_FROM_CLOUDWATCH}`,
|
|
912
|
+
category: "Utilization",
|
|
913
|
+
severity: "Warning",
|
|
914
|
+
provider: AWS,
|
|
915
|
+
resourceTypes: ["AWS::RDS::DBInstance"],
|
|
916
|
+
measure: "sustained",
|
|
917
|
+
queries: [
|
|
918
|
+
{ alias: VALUE, metric: awsMetric("AWS/RDS", "DatabaseConnections") },
|
|
919
|
+
],
|
|
920
|
+
comparedAlias: VALUE,
|
|
921
|
+
filterType: CriteriaFilter_1.FilterType.GreaterThanOrEqualTo,
|
|
922
|
+
// Replaced by 90% of the instance's own connection limit (getThreshold).
|
|
923
|
+
threshold: 0,
|
|
924
|
+
thresholdLabel: `at or above ${exports.CLOUD_CONNECTIONS_HIGH_PERCENT}% of its connection limit`,
|
|
925
|
+
requiresConnectionLimit: true,
|
|
926
|
+
incidentDescription: "The database held 90% or more of the connections it allows for 30 minutes; past its limit, new connections are refused with a too-many-connections error. Look for clients that open connections without closing or pooling them, put RDS Proxy in front of it, or move it to a class with more memory. If its parameter group sets max_connections, that number is the limit: check it, and change this monitor's threshold to match.",
|
|
927
|
+
}),
|
|
928
|
+
sustainedAtOrAbove({
|
|
929
|
+
id: "cloud-aws-docdb-high-cpu",
|
|
930
|
+
name: "High CPU",
|
|
931
|
+
summary: "CPU stays at 95% or more for 30 minutes.",
|
|
932
|
+
description: `Fires when every reading of CPUUtilization (Average) in the past 30 minutes is at or above 95%. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
933
|
+
category: "Utilization",
|
|
934
|
+
provider: AWS,
|
|
935
|
+
resourceTypes: ["AWS::DocDB::DBInstance", "AWS::DocDB::DBCluster"],
|
|
936
|
+
metric: awsMetric("AWS/DocDB", "CPUUtilization"),
|
|
937
|
+
threshold: CloudResourceHealth_1.CLOUD_CPU_HIGH_PERCENT,
|
|
938
|
+
thresholdLabel: `at or above ${CloudResourceHealth_1.CLOUD_CPU_HIGH_PERCENT}%`,
|
|
939
|
+
incidentDescription: "The DocumentDB instance's CPU stayed at 95% or more for 30 minutes. Its profiler names the operations that use it; add an index, read from a replica, or scale the instance class up.",
|
|
940
|
+
}),
|
|
941
|
+
anyInWindow({
|
|
942
|
+
id: "cloud-aws-dynamodb-throttled",
|
|
943
|
+
name: "Requests Throttled",
|
|
944
|
+
summary: "Reads or writes of the table are throttled.",
|
|
945
|
+
description: `Fires when ReadThrottleEvents and WriteThrottleEvents (Sum), totalled over the past 30 minutes, add up to 1 or more: requests passed the table's provisioned capacity, or a partition's. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
946
|
+
category: "Throttling",
|
|
947
|
+
provider: AWS,
|
|
948
|
+
resourceTypes: ["AWS::DynamoDB::Table"],
|
|
949
|
+
metrics: [
|
|
950
|
+
awsMetric("AWS/DynamoDB", "ReadThrottleEvents"),
|
|
951
|
+
awsMetric("AWS/DynamoDB", "WriteThrottleEvents"),
|
|
952
|
+
],
|
|
953
|
+
thresholdLabel: "1 throttled request or more",
|
|
954
|
+
incidentDescription: "Requests to the table were throttled. Raise its provisioned capacity, turn on auto scaling or on-demand capacity, or spread a hot partition key's load.",
|
|
955
|
+
}),
|
|
956
|
+
sustainedAtOrAbove({
|
|
957
|
+
id: "cloud-aws-elasticache-high-cpu",
|
|
958
|
+
name: "High CPU",
|
|
959
|
+
summary: "CPU stays at 95% or more for 30 minutes.",
|
|
960
|
+
description: `Fires when every reading of CPUUtilization (Average) in the past 30 minutes is at or above 95%. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
961
|
+
category: "Utilization",
|
|
962
|
+
provider: AWS,
|
|
963
|
+
resourceTypes: [
|
|
964
|
+
"AWS::ElastiCache::CacheCluster",
|
|
965
|
+
"AWS::ElastiCache::ReplicationGroup",
|
|
966
|
+
],
|
|
967
|
+
metric: awsMetric("AWS/ElastiCache", "CPUUtilization"),
|
|
968
|
+
threshold: CloudResourceHealth_1.CLOUD_CPU_HIGH_PERCENT,
|
|
969
|
+
thresholdLabel: `at or above ${CloudResourceHealth_1.CLOUD_CPU_HIGH_PERCENT}%`,
|
|
970
|
+
incidentDescription: "The cache's CPU stayed at 95% or more for 30 minutes, so its commands slow down. Look for expensive commands in its slow log, then scale it up or out.",
|
|
971
|
+
}),
|
|
972
|
+
sustainedAtOrAbove({
|
|
973
|
+
id: "cloud-aws-elasticache-high-memory",
|
|
974
|
+
name: "High Memory",
|
|
975
|
+
summary: "Memory stays at 95% or more for 30 minutes.",
|
|
976
|
+
description: `Fires when every reading of DatabaseMemoryUsagePercentage (Average) in the past 30 minutes is at or above 95%: the cache evicts keys, or refuses writes. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
977
|
+
category: "Utilization",
|
|
978
|
+
provider: AWS,
|
|
979
|
+
resourceTypes: [
|
|
980
|
+
"AWS::ElastiCache::CacheCluster",
|
|
981
|
+
"AWS::ElastiCache::ReplicationGroup",
|
|
982
|
+
],
|
|
983
|
+
metric: awsMetric("AWS/ElastiCache", "DatabaseMemoryUsagePercentage"),
|
|
984
|
+
threshold: CloudResourceHealth_1.CLOUD_MEMORY_HIGH_PERCENT,
|
|
985
|
+
thresholdLabel: `at or above ${CloudResourceHealth_1.CLOUD_MEMORY_HIGH_PERCENT}%`,
|
|
986
|
+
incidentDescription: "The cache used 95% or more of its memory for 30 minutes: it evicts keys, or refuses writes if its eviction policy is noeviction. Set expiries on what can expire, or scale it up or out.",
|
|
987
|
+
}),
|
|
988
|
+
sustainedAtOrAbove({
|
|
989
|
+
id: "cloud-aws-redshift-disk-full",
|
|
990
|
+
name: "Disk Nearly Full",
|
|
991
|
+
summary: "Disk use stays at 90% or more for 30 minutes.",
|
|
992
|
+
description: `Fires when every reading of PercentageDiskSpaceUsed (Average) in the past 30 minutes is at or above 90%. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
993
|
+
category: "Storage",
|
|
994
|
+
provider: AWS,
|
|
995
|
+
resourceTypes: ["AWS::Redshift::Cluster"],
|
|
996
|
+
metric: awsMetric("AWS/Redshift", "PercentageDiskSpaceUsed"),
|
|
997
|
+
threshold: CloudResourceHealth_1.CLOUD_STORAGE_HIGH_PERCENT,
|
|
998
|
+
thresholdLabel: `at or above ${CloudResourceHealth_1.CLOUD_STORAGE_HIGH_PERCENT}%`,
|
|
999
|
+
incidentDescription: "The cluster's disks are 90% full or more; queries that spill to disk fail once they fill. Vacuum and drop what is not needed, or resize the cluster.",
|
|
1000
|
+
}),
|
|
1001
|
+
sustainedAtOrAbove({
|
|
1002
|
+
id: "cloud-aws-redshift-high-cpu",
|
|
1003
|
+
name: "High CPU",
|
|
1004
|
+
summary: "CPU stays at 95% or more for 30 minutes.",
|
|
1005
|
+
description: `Fires when every reading of CPUUtilization (Average) in the past 30 minutes is at or above 95%. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
1006
|
+
category: "Utilization",
|
|
1007
|
+
provider: AWS,
|
|
1008
|
+
resourceTypes: ["AWS::Redshift::Cluster"],
|
|
1009
|
+
metric: awsMetric("AWS/Redshift", "CPUUtilization"),
|
|
1010
|
+
threshold: CloudResourceHealth_1.CLOUD_CPU_HIGH_PERCENT,
|
|
1011
|
+
thresholdLabel: `at or above ${CloudResourceHealth_1.CLOUD_CPU_HIGH_PERCENT}%`,
|
|
1012
|
+
incidentDescription: "The cluster's CPU stayed at 95% or more for 30 minutes, so its queries queue. Look at the longest-running queries in its query monitoring, then tune them or resize the cluster.",
|
|
1013
|
+
}),
|
|
1014
|
+
breakage({
|
|
1015
|
+
id: "cloud-aws-opensearch-cluster-red",
|
|
1016
|
+
name: "Cluster Status Red",
|
|
1017
|
+
summary: "The search domain's cluster status turns red.",
|
|
1018
|
+
description: `Fires on the first reading of ClusterStatus.red (Maximum) at 1: a primary shard of an index is not allocated, so its data cannot be searched or written. Clears once the status stays out of red for 30 minutes. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
1019
|
+
provider: AWS,
|
|
1020
|
+
resourceTypes: ["AWS::OpenSearchService::Domain"],
|
|
1021
|
+
metric: awsMetric("AWS/ES", "ClusterStatus.red"),
|
|
1022
|
+
thresholdLabel: "at 1",
|
|
1023
|
+
incidentDescription: "The domain's cluster status is red: a primary shard is unassigned. A node that failed, or disks that are full, are the usual causes; the domain's health in the AWS console names them.",
|
|
1024
|
+
}),
|
|
1025
|
+
sustainedAtOrAbove({
|
|
1026
|
+
id: "cloud-aws-opensearch-high-cpu",
|
|
1027
|
+
name: "High CPU",
|
|
1028
|
+
summary: "CPU stays at 95% or more for 30 minutes.",
|
|
1029
|
+
description: `Fires when every reading of CPUUtilization (Average) in the past 30 minutes is at or above 95%. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
1030
|
+
category: "Utilization",
|
|
1031
|
+
provider: AWS,
|
|
1032
|
+
resourceTypes: ["AWS::OpenSearchService::Domain"],
|
|
1033
|
+
metric: awsMetric("AWS/ES", "CPUUtilization"),
|
|
1034
|
+
threshold: CloudResourceHealth_1.CLOUD_CPU_HIGH_PERCENT,
|
|
1035
|
+
thresholdLabel: `at or above ${CloudResourceHealth_1.CLOUD_CPU_HIGH_PERCENT}%`,
|
|
1036
|
+
incidentDescription: "The domain's CPU stayed at 95% or more for 30 minutes, so its searches and indexing slow down. Look at its slow logs, then add data nodes or move to a larger instance type.",
|
|
1037
|
+
}),
|
|
1038
|
+
ageAtOrAbove({
|
|
1039
|
+
id: "cloud-aws-sqs-oldest-message",
|
|
1040
|
+
name: "Oldest Message Waiting",
|
|
1041
|
+
summary: "The oldest message in the queue waits an hour or more.",
|
|
1042
|
+
description: `Fires on the first reading of ApproximateAgeOfOldestMessage (Maximum) at 3600 seconds or more: nothing has taken a message for an hour, or consumers fall behind. Clears once it is under 3240 seconds again. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
1043
|
+
provider: AWS,
|
|
1044
|
+
resourceTypes: ["AWS::SQS::Queue"],
|
|
1045
|
+
metric: awsMetric("AWS/SQS", "ApproximateAgeOfOldestMessage"),
|
|
1046
|
+
threshold: CloudResourceHealth_1.CLOUD_BACKLOG_AGE_SECONDS,
|
|
1047
|
+
incidentDescription: "A message has waited in the queue for an hour or more. Check that its consumers run and keep up - a consumer that fails on one message leaves it to come back again and again - and give poison messages a dead-letter queue.",
|
|
1048
|
+
}),
|
|
1049
|
+
anyInWindow({
|
|
1050
|
+
id: "cloud-aws-sns-notifications-failed",
|
|
1051
|
+
name: "Deliveries Failed",
|
|
1052
|
+
summary: "A notification of the topic cannot be delivered.",
|
|
1053
|
+
description: `Fires when NumberOfNotificationsFailed (Sum), totalled over the past 30 minutes, is 1 or more. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
1054
|
+
category: "Errors",
|
|
1055
|
+
provider: AWS,
|
|
1056
|
+
resourceTypes: ["AWS::SNS::Topic"],
|
|
1057
|
+
metrics: [awsMetric("AWS/SNS", "NumberOfNotificationsFailed")],
|
|
1058
|
+
thresholdLabel: "1 failed delivery or more",
|
|
1059
|
+
incidentDescription: "SNS could not deliver a notification of the topic to a subscriber. Turn on the topic's delivery status logs to see which endpoint refused it and why.",
|
|
1060
|
+
}),
|
|
1061
|
+
ageAtOrAbove({
|
|
1062
|
+
id: "cloud-aws-kinesis-consumers-behind",
|
|
1063
|
+
name: "Consumers Falling Behind",
|
|
1064
|
+
summary: "The stream's consumers fall an hour or more behind.",
|
|
1065
|
+
description: `Fires on the first reading of GetRecords.IteratorAgeMilliseconds (Maximum) at 3,600,000 milliseconds or more: the oldest record a consumer read was an hour old. Records past the stream's retention are lost. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
1066
|
+
provider: AWS,
|
|
1067
|
+
resourceTypes: ["AWS::Kinesis::Stream"],
|
|
1068
|
+
metric: awsMetric("AWS/Kinesis", "GetRecords.IteratorAgeMilliseconds"),
|
|
1069
|
+
threshold: CloudResourceHealth_1.CLOUD_BACKLOG_AGE_SECONDS * 1000,
|
|
1070
|
+
incidentDescription: "The stream's consumers are an hour or more behind; records older than the stream's retention are lost. Scale the consumers out, or add shards so more of them read at once.",
|
|
1071
|
+
}),
|
|
1072
|
+
sustainedBelow({
|
|
1073
|
+
id: "cloud-aws-firehose-deliveries-failing",
|
|
1074
|
+
name: "Deliveries Failing",
|
|
1075
|
+
summary: "Fewer than 99% of records reach S3 for 30 minutes.",
|
|
1076
|
+
description: `Fires when every reading of DeliveryToS3.Success (Average, the share of records delivered, 0 to 1) in the past 30 minutes is under 0.99. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
1077
|
+
provider: AWS,
|
|
1078
|
+
resourceTypes: ["AWS::KinesisFirehose::DeliveryStream"],
|
|
1079
|
+
metric: awsMetric("AWS/Firehose", "DeliveryToS3.Success"),
|
|
1080
|
+
threshold: 0.99,
|
|
1081
|
+
thresholdLabel: "under 0.99",
|
|
1082
|
+
incidentDescription: "The Firehose stream failed to deliver some records to S3; it retries, then backs them up to its error prefix. Its error logs name the cause: a bucket policy, a KMS key or a transformation function.",
|
|
1083
|
+
}),
|
|
1084
|
+
failedShare({
|
|
1085
|
+
id: "cloud-aws-apigateway-server-errors",
|
|
1086
|
+
name: "Server Errors",
|
|
1087
|
+
summary: "5% or more of requests fail with a 5xx error in 30 minutes.",
|
|
1088
|
+
description: awsShareDescription("5XXError (Sum) over Count (Sum)"),
|
|
1089
|
+
provider: AWS,
|
|
1090
|
+
resourceTypes: ["AWS::ApiGateway::RestApi"],
|
|
1091
|
+
failed: [awsMetric("AWS/ApiGateway", "5XXError")],
|
|
1092
|
+
requests: awsMetric("AWS/ApiGateway", "Count"),
|
|
1093
|
+
incidentDescription: "The API answered 5% or more of its requests with a server error. Its execution logs name the integration that failed: a function that threw, a backend that timed out, or a mapping that broke.",
|
|
1094
|
+
}),
|
|
1095
|
+
sustainedAtOrAbove({
|
|
1096
|
+
id: "cloud-aws-apigateway-slow-responses",
|
|
1097
|
+
name: "Slow Responses",
|
|
1098
|
+
summary: "Requests take a second or more on average for 30 minutes.",
|
|
1099
|
+
description: `Fires when every reading of Latency (Average) in the past 30 minutes is 1,000 milliseconds or more. ${READ_FROM_CLOUDWATCH}`,
|
|
1100
|
+
category: "Latency",
|
|
1101
|
+
provider: AWS,
|
|
1102
|
+
resourceTypes: ["AWS::ApiGateway::RestApi", "AWS::ApiGatewayV2::Api"],
|
|
1103
|
+
metric: awsMetric("AWS/ApiGateway", "Latency"),
|
|
1104
|
+
threshold: exports.CLOUD_SLOW_RESPONSE_SECONDS * 1000,
|
|
1105
|
+
thresholdLabel: "1,000 milliseconds or more",
|
|
1106
|
+
incidentDescription: "The API's requests took a second or more on average for 30 minutes. Most of it is its integrations' time: look at the functions or backends behind it.",
|
|
1107
|
+
}),
|
|
1108
|
+
anyInWindow({
|
|
1109
|
+
id: "cloud-aws-events-failed-invocations",
|
|
1110
|
+
name: "Failed Invocations",
|
|
1111
|
+
summary: "The rule fails to invoke one of its targets.",
|
|
1112
|
+
description: `Fires when FailedInvocations (Sum), totalled over the past 30 minutes, is 1 or more: an event matched the rule, and EventBridge could not deliver it to a target. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
1113
|
+
category: "Errors",
|
|
1114
|
+
provider: AWS,
|
|
1115
|
+
resourceTypes: ["AWS::Events::Rule"],
|
|
1116
|
+
metrics: [awsMetric("AWS/Events", "FailedInvocations")],
|
|
1117
|
+
thresholdLabel: "1 failed invocation or more",
|
|
1118
|
+
incidentDescription: "EventBridge could not invoke a target of the rule. Check the target still exists and that the rule's role may invoke it; give the target a dead-letter queue to keep the events it misses.",
|
|
1119
|
+
}),
|
|
1120
|
+
sustainedAtOrAbove({
|
|
1121
|
+
id: "cloud-aws-amazonmq-high-cpu",
|
|
1122
|
+
name: "High CPU",
|
|
1123
|
+
summary: "The broker's CPU stays at 95% or more for 30 minutes.",
|
|
1124
|
+
description: `Fires when every reading of CpuUtilization (Average) in the past 30 minutes is at or above 95%. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
1125
|
+
category: "Utilization",
|
|
1126
|
+
provider: AWS,
|
|
1127
|
+
resourceTypes: ["AWS::AmazonMQ::Broker"],
|
|
1128
|
+
metric: awsMetric("AWS/AmazonMQ", "CpuUtilization"),
|
|
1129
|
+
threshold: CloudResourceHealth_1.CLOUD_CPU_HIGH_PERCENT,
|
|
1130
|
+
thresholdLabel: `at or above ${CloudResourceHealth_1.CLOUD_CPU_HIGH_PERCENT}%`,
|
|
1131
|
+
incidentDescription: "The broker's CPU stayed at 95% or more for 30 minutes, so messages wait. Look for queues that pile up and consumers that fell behind, or move it to a larger instance type.",
|
|
1132
|
+
}),
|
|
1133
|
+
breakage({
|
|
1134
|
+
id: "cloud-aws-msk-no-active-controller",
|
|
1135
|
+
name: "No Active Controller",
|
|
1136
|
+
summary: "The Kafka cluster has no active controller.",
|
|
1137
|
+
description: `Fires on the first reading of ActiveControllerCount (Maximum, of every broker) under 1: no broker is the cluster's controller, so partitions cannot change leader. Clears once one stays elected for 30 minutes. ${READ_FROM_CLOUDWATCH} ${ON_PAGE_TOO}`,
|
|
1138
|
+
provider: AWS,
|
|
1139
|
+
resourceTypes: ["AWS::MSK::Cluster"],
|
|
1140
|
+
metric: awsMetric("AWS/Kafka", "ActiveControllerCount"),
|
|
1141
|
+
firesBelow: true,
|
|
1142
|
+
thresholdLabel: "under 1",
|
|
1143
|
+
incidentDescription: "The MSK cluster has no active controller, so its partitions cannot elect leaders and its brokers' metadata stops changing. Check the brokers' health in the AWS console and their ZooKeeper or KRaft connections.",
|
|
1144
|
+
}),
|
|
1145
|
+
define({
|
|
1146
|
+
id: "cloud-aws-acm-certificate-expiring",
|
|
1147
|
+
name: "Certificate Expiring",
|
|
1148
|
+
summary: `The certificate expires in ${exports.CLOUD_CERTIFICATE_EXPIRY_DAYS} days or fewer.`,
|
|
1149
|
+
description: `Fires when every reading of DaysToExpiry (Minimum) in the past 2 days is ${exports.CLOUD_CERTIFICATE_EXPIRY_DAYS} or fewer, or the past 2 days hold none: ACM publishes it twice a day, and stops once the certificate expires. ACM renews the certificates it issued 45 to 60 days before they expire, so one with ${exports.CLOUD_CERTIFICATE_EXPIRY_DAYS} days left is imported, not in use, or failing its validation, with a month to fix it. Clears with the first reading after it is renewed or imported again. ${READ_SLOWLY_FROM_CLOUDWATCH}`,
|
|
1150
|
+
category: "Availability",
|
|
1151
|
+
severity: "Warning",
|
|
1152
|
+
provider: AWS,
|
|
1153
|
+
resourceTypes: ["AWS::CertificateManager::Certificate"],
|
|
1154
|
+
measure: "countdown",
|
|
1155
|
+
queries: [
|
|
1156
|
+
{
|
|
1157
|
+
alias: VALUE,
|
|
1158
|
+
metric: awsMetric("AWS/CertificateManager", "DaysToExpiry"),
|
|
1159
|
+
},
|
|
1160
|
+
],
|
|
1161
|
+
comparedAlias: VALUE,
|
|
1162
|
+
filterType: CriteriaFilter_1.FilterType.LessThanOrEqualTo,
|
|
1163
|
+
threshold: exports.CLOUD_CERTIFICATE_EXPIRY_DAYS,
|
|
1164
|
+
thresholdLabel: `${exports.CLOUD_CERTIFICATE_EXPIRY_DAYS} days or fewer`,
|
|
1165
|
+
incidentDescription: "The certificate expires in 30 days or fewer, or ACM stopped publishing its days to expiry because it expired. ACM never renews an imported certificate: import the renewed one over it, which keeps its ARN. One ACM issued renews only while it is in use and its domains still validate: its renewal status in the ACM console says why it did not, and a DNS-validated one needs its CNAME records in place. A certificate deleted on purpose stops being read too: then delete this monitor.",
|
|
1166
|
+
}),
|
|
1167
|
+
];
|
|
1168
|
+
/*
|
|
1169
|
+
* ---------------------------------------------------------------------------
|
|
1170
|
+
* Azure
|
|
1171
|
+
* ---------------------------------------------------------------------------
|
|
1172
|
+
*/
|
|
1173
|
+
function azurePercent(metricName, aggregation = "average") {
|
|
1174
|
+
return azureMetric({
|
|
1175
|
+
metricName,
|
|
1176
|
+
aggregation,
|
|
1177
|
+
aggregationType: MetricsAggregationType_1.default.Avg,
|
|
1178
|
+
legendUnit: "%",
|
|
1179
|
+
});
|
|
1180
|
+
}
|
|
1181
|
+
function azureCount(metricName) {
|
|
1182
|
+
return azureMetric({
|
|
1183
|
+
metricName,
|
|
1184
|
+
aggregation: "total",
|
|
1185
|
+
aggregationType: MetricsAggregationType_1.default.Sum,
|
|
1186
|
+
});
|
|
1187
|
+
}
|
|
1188
|
+
function azureShareDescription(metrics) {
|
|
1189
|
+
return `Fires when 5% or more of the requests of the past 15 minutes failed, of at least 20 requests: ${metrics}, each totalled over the window. ${READ_FROM_AZURE_MONITOR}`;
|
|
1190
|
+
}
|
|
1191
|
+
const AZURE_TEMPLATES = [
|
|
1192
|
+
breakage({
|
|
1193
|
+
id: "cloud-azure-vm-unavailable",
|
|
1194
|
+
name: "VM Unavailable",
|
|
1195
|
+
summary: "The virtual machine stops being available.",
|
|
1196
|
+
description: `Fires on the first reading of VmAvailabilityMetric under 1: Azure found the virtual machine unavailable - stopped, rebooting, or on a host that failed. Clears once it stays available for 15 minutes. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1197
|
+
provider: AZURE,
|
|
1198
|
+
resourceTypes: ["Microsoft.Compute/virtualMachines"],
|
|
1199
|
+
metric: azureMetric({
|
|
1200
|
+
metricName: "VmAvailabilityMetric",
|
|
1201
|
+
aggregation: "average",
|
|
1202
|
+
aggregationType: MetricsAggregationType_1.default.Min,
|
|
1203
|
+
}),
|
|
1204
|
+
firesBelow: true,
|
|
1205
|
+
thresholdLabel: "under 1",
|
|
1206
|
+
incidentDescription: "The virtual machine is unavailable. Its Resource Health in the Azure portal says why: a planned update, a reboot, a stop, or a failure of the host under it.",
|
|
1207
|
+
}),
|
|
1208
|
+
sustainedAtOrAbove({
|
|
1209
|
+
id: "cloud-azure-vm-high-cpu",
|
|
1210
|
+
name: "High CPU",
|
|
1211
|
+
summary: "CPU stays at 90% or more for 15 minutes.",
|
|
1212
|
+
description: `Fires when every reading of Percentage CPU in the past 15 minutes is at or above 90%. A busy VM is often doing its work: this says it has no headroom left. ${READ_FROM_AZURE_MONITOR}`,
|
|
1213
|
+
category: "Utilization",
|
|
1214
|
+
provider: AZURE,
|
|
1215
|
+
resourceTypes: [
|
|
1216
|
+
"Microsoft.Compute/virtualMachines",
|
|
1217
|
+
"Microsoft.Compute/virtualMachineScaleSets",
|
|
1218
|
+
],
|
|
1219
|
+
metric: azurePercent("Percentage CPU"),
|
|
1220
|
+
threshold: exports.CLOUD_COMPUTE_CPU_HIGH_PERCENT,
|
|
1221
|
+
thresholdLabel: `at or above ${exports.CLOUD_COMPUTE_CPU_HIGH_PERCENT}%`,
|
|
1222
|
+
incidentDescription: "The virtual machine's CPU stayed at 90% or more for 15 minutes. Look for a process that runs away or for traffic that grew, then scale out or move to a larger size. A B-series VM that ran out of CPU credits is held at its baseline.",
|
|
1223
|
+
}),
|
|
1224
|
+
failedShare({
|
|
1225
|
+
id: "cloud-azure-appservice-server-errors",
|
|
1226
|
+
name: "Server Errors",
|
|
1227
|
+
summary: "5% or more of requests fail with a 5xx error in 15 minutes.",
|
|
1228
|
+
description: azureShareDescription("Http5xx over Requests"),
|
|
1229
|
+
provider: AZURE,
|
|
1230
|
+
resourceTypes: ["Microsoft.Web/sites"],
|
|
1231
|
+
failed: [azureCount("Http5xx")],
|
|
1232
|
+
requests: azureCount("Requests"),
|
|
1233
|
+
incidentDescription: "The app answered 5% or more of its requests with a server error. Its application logs, or Application Insights, name the errors; look at what was deployed last.",
|
|
1234
|
+
}),
|
|
1235
|
+
sustainedAtOrAbove({
|
|
1236
|
+
id: "cloud-azure-appservice-slow-responses",
|
|
1237
|
+
name: "Slow Responses",
|
|
1238
|
+
summary: "Responses take a second or more on average for 15 minutes.",
|
|
1239
|
+
description: `Fires when every reading of HttpResponseTime (Average) in the past 15 minutes is 1 second or more. ${READ_FROM_AZURE_MONITOR}`,
|
|
1240
|
+
category: "Latency",
|
|
1241
|
+
provider: AZURE,
|
|
1242
|
+
resourceTypes: ["Microsoft.Web/sites"],
|
|
1243
|
+
metric: azureMetric({
|
|
1244
|
+
metricName: "HttpResponseTime",
|
|
1245
|
+
aggregation: "average",
|
|
1246
|
+
aggregationType: MetricsAggregationType_1.default.Avg,
|
|
1247
|
+
legendUnit: "s",
|
|
1248
|
+
}),
|
|
1249
|
+
threshold: exports.CLOUD_SLOW_RESPONSE_SECONDS,
|
|
1250
|
+
thresholdLabel: "1 second or more",
|
|
1251
|
+
incidentDescription: "The app's responses took a second or more on average for 15 minutes. Look at its plan's CPU and memory, and at the databases and services it calls.",
|
|
1252
|
+
}),
|
|
1253
|
+
sustainedAtOrAbove({
|
|
1254
|
+
id: "cloud-azure-appserviceplan-high-cpu",
|
|
1255
|
+
name: "High CPU",
|
|
1256
|
+
summary: "The plan's CPU stays at 90% or more for 15 minutes.",
|
|
1257
|
+
description: `Fires when every reading of CpuPercentage in the past 15 minutes is at or above 90%, across the plan's instances. ${READ_FROM_AZURE_MONITOR}`,
|
|
1258
|
+
category: "Utilization",
|
|
1259
|
+
provider: AZURE,
|
|
1260
|
+
resourceTypes: ["Microsoft.Web/serverfarms"],
|
|
1261
|
+
metric: azurePercent("CpuPercentage"),
|
|
1262
|
+
threshold: exports.CLOUD_COMPUTE_CPU_HIGH_PERCENT,
|
|
1263
|
+
thresholdLabel: `at or above ${exports.CLOUD_COMPUTE_CPU_HIGH_PERCENT}%`,
|
|
1264
|
+
incidentDescription: "The App Service plan's instances used 90% or more of their CPU for 15 minutes, which slows every app on it. Scale the plan out, or up to a larger tier.",
|
|
1265
|
+
}),
|
|
1266
|
+
sustainedAtOrAbove({
|
|
1267
|
+
id: "cloud-azure-appserviceplan-high-memory",
|
|
1268
|
+
name: "High Memory",
|
|
1269
|
+
summary: "The plan's memory stays at 95% or more for 15 minutes.",
|
|
1270
|
+
description: `Fires when every reading of MemoryPercentage in the past 15 minutes is at or above 95%, across the plan's instances. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1271
|
+
category: "Utilization",
|
|
1272
|
+
provider: AZURE,
|
|
1273
|
+
resourceTypes: ["Microsoft.Web/serverfarms"],
|
|
1274
|
+
metric: azurePercent("MemoryPercentage"),
|
|
1275
|
+
threshold: CloudResourceHealth_1.CLOUD_MEMORY_HIGH_PERCENT,
|
|
1276
|
+
thresholdLabel: `at or above ${CloudResourceHealth_1.CLOUD_MEMORY_HIGH_PERCENT}%`,
|
|
1277
|
+
incidentDescription: "The App Service plan's instances used 95% or more of their memory for 15 minutes; apps on it restart when it runs out. Look for an app that leaks, then scale the plan out or up.",
|
|
1278
|
+
}),
|
|
1279
|
+
sustainedAtOrAbove({
|
|
1280
|
+
id: "cloud-azure-sql-storage-full",
|
|
1281
|
+
name: "Storage Nearly Full",
|
|
1282
|
+
summary: "Storage use stays at 90% or more for 15 minutes.",
|
|
1283
|
+
description: `Fires when every reading of storage_percent in the past 15 minutes is at or above 90% of the database's, the pool's or the server's maximum size. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1284
|
+
category: "Storage",
|
|
1285
|
+
provider: AZURE,
|
|
1286
|
+
resourceTypes: [
|
|
1287
|
+
"Microsoft.Sql/servers/databases",
|
|
1288
|
+
"Microsoft.Sql/servers/elasticpools",
|
|
1289
|
+
"Microsoft.DBforPostgreSQL/flexibleServers",
|
|
1290
|
+
"Microsoft.DBforMySQL/flexibleServers",
|
|
1291
|
+
],
|
|
1292
|
+
metric: azurePercent("storage_percent"),
|
|
1293
|
+
threshold: CloudResourceHealth_1.CLOUD_STORAGE_HIGH_PERCENT,
|
|
1294
|
+
thresholdLabel: `at or above ${CloudResourceHealth_1.CLOUD_STORAGE_HIGH_PERCENT}%`,
|
|
1295
|
+
incidentDescription: "The database is 90% full or more; once full it refuses writes. Raise its maximum size or storage, turn on storage autogrow where it has one, and look for what grew.",
|
|
1296
|
+
}),
|
|
1297
|
+
sustainedAtOrAbove({
|
|
1298
|
+
id: "cloud-azure-sql-high-cpu",
|
|
1299
|
+
name: "High CPU",
|
|
1300
|
+
summary: "CPU stays at 95% or more for 15 minutes.",
|
|
1301
|
+
description: `Fires when every reading of cpu_percent in the past 15 minutes is at or above 95%. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1302
|
+
category: "Utilization",
|
|
1303
|
+
provider: AZURE,
|
|
1304
|
+
resourceTypes: [
|
|
1305
|
+
"Microsoft.Sql/servers/databases",
|
|
1306
|
+
"Microsoft.Sql/servers/elasticpools",
|
|
1307
|
+
"Microsoft.DBforPostgreSQL/flexibleServers",
|
|
1308
|
+
"Microsoft.DBforMySQL/flexibleServers",
|
|
1309
|
+
],
|
|
1310
|
+
metric: azurePercent("cpu_percent"),
|
|
1311
|
+
threshold: CloudResourceHealth_1.CLOUD_CPU_HIGH_PERCENT,
|
|
1312
|
+
thresholdLabel: `at or above ${CloudResourceHealth_1.CLOUD_CPU_HIGH_PERCENT}%`,
|
|
1313
|
+
incidentDescription: "The database's CPU stayed at 95% or more for 15 minutes, so its queries queue. Query Performance Insight names the queries that use it; add an index, or scale up its compute.",
|
|
1314
|
+
}),
|
|
1315
|
+
sustainedAtOrAbove({
|
|
1316
|
+
id: "cloud-azure-sql-sessions-high",
|
|
1317
|
+
name: "Sessions Near the Limit",
|
|
1318
|
+
summary: "Sessions stay at 90% or more of the limit for 15 minutes.",
|
|
1319
|
+
description: `Fires when every reading of sessions_percent in the past 15 minutes is at or above 90% of the database's limit; past it, new connections are refused. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1320
|
+
category: "Utilization",
|
|
1321
|
+
provider: AZURE,
|
|
1322
|
+
resourceTypes: ["Microsoft.Sql/servers/databases"],
|
|
1323
|
+
metric: azurePercent("sessions_percent"),
|
|
1324
|
+
threshold: 90,
|
|
1325
|
+
thresholdLabel: "at or above 90%",
|
|
1326
|
+
incidentDescription: "The database holds 90% or more of the sessions its service tier allows; past it, new connections are refused. Look for clients that do not close their connections or pool them, or move to a higher tier.",
|
|
1327
|
+
}),
|
|
1328
|
+
anyInWindow({
|
|
1329
|
+
id: "cloud-azure-sql-failed-connections",
|
|
1330
|
+
name: "Failed Connections",
|
|
1331
|
+
summary: "Connections to the database fail with a system error.",
|
|
1332
|
+
description: `Fires when connection_failed, totalled over the past 15 minutes, is 1 or more: Azure SQL refused a connection for a reason of its own, not a wrong password. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1333
|
+
category: "Errors",
|
|
1334
|
+
provider: AZURE,
|
|
1335
|
+
resourceTypes: ["Microsoft.Sql/servers/databases"],
|
|
1336
|
+
metrics: [azureCount("connection_failed")],
|
|
1337
|
+
thresholdLabel: "1 failed connection or more",
|
|
1338
|
+
incidentDescription: "Connections to the database failed with a system error. Its Resource Health in the Azure portal says whether Azure saw a problem; transient failures during a failover clear by themselves.",
|
|
1339
|
+
}),
|
|
1340
|
+
define({
|
|
1341
|
+
id: "cloud-azure-sql-dtu-high",
|
|
1342
|
+
name: "DTU Usage High",
|
|
1343
|
+
summary: "DTU use stays at 95% or more for 15 minutes.",
|
|
1344
|
+
description: `Fires when every reading of dtu_consumption_percent in the past 15 minutes is at or above 95% of the database's DTUs: its queries wait for CPU, data or log I/O. Offered to a database on the DTU purchasing model, which is the one that reports it. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1345
|
+
category: "Utilization",
|
|
1346
|
+
severity: "Warning",
|
|
1347
|
+
provider: AZURE,
|
|
1348
|
+
resourceTypes: ["Microsoft.Sql/servers/databases"],
|
|
1349
|
+
measure: "sustained",
|
|
1350
|
+
queries: [
|
|
1351
|
+
{ alias: VALUE, metric: azurePercent("dtu_consumption_percent") },
|
|
1352
|
+
],
|
|
1353
|
+
comparedAlias: VALUE,
|
|
1354
|
+
filterType: CriteriaFilter_1.FilterType.GreaterThanOrEqualTo,
|
|
1355
|
+
threshold: 95,
|
|
1356
|
+
thresholdLabel: "at or above 95%",
|
|
1357
|
+
requiresReading: true,
|
|
1358
|
+
incidentDescription: "The database used 95% or more of its DTUs for 15 minutes, so its queries wait. Query Performance Insight names the queries that use them; tune them, or move the database to a larger service objective.",
|
|
1359
|
+
}),
|
|
1360
|
+
anyInWindow({
|
|
1361
|
+
id: "cloud-azure-sql-deadlocks",
|
|
1362
|
+
name: "Deadlocks",
|
|
1363
|
+
summary: "Queries of the database deadlock.",
|
|
1364
|
+
description: `Fires when deadlock, totalled over the past 15 minutes, is 1 or more: two transactions held what the other needed, and Azure SQL ended one of them. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1365
|
+
category: "Errors",
|
|
1366
|
+
provider: AZURE,
|
|
1367
|
+
resourceTypes: ["Microsoft.Sql/servers/databases"],
|
|
1368
|
+
metrics: [azureCount("deadlock")],
|
|
1369
|
+
thresholdLabel: "1 deadlock or more",
|
|
1370
|
+
incidentDescription: "Transactions of the database deadlocked, and Azure SQL rolled one of each pair back. The deadlock graphs in Extended Events name the queries and the locks; access tables in the same order, keep transactions short, or add the index the queries scan for.",
|
|
1371
|
+
}),
|
|
1372
|
+
sustainedAtOrAbove({
|
|
1373
|
+
id: "cloud-azure-sqlmi-high-cpu",
|
|
1374
|
+
name: "High CPU",
|
|
1375
|
+
summary: "The managed instance's CPU stays at 95% or more for 15 minutes.",
|
|
1376
|
+
description: `Fires when every reading of avg_cpu_percent in the past 15 minutes is at or above 95%. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1377
|
+
category: "Utilization",
|
|
1378
|
+
provider: AZURE,
|
|
1379
|
+
resourceTypes: ["Microsoft.Sql/managedInstances"],
|
|
1380
|
+
metric: azurePercent("avg_cpu_percent"),
|
|
1381
|
+
threshold: CloudResourceHealth_1.CLOUD_CPU_HIGH_PERCENT,
|
|
1382
|
+
thresholdLabel: `at or above ${CloudResourceHealth_1.CLOUD_CPU_HIGH_PERCENT}%`,
|
|
1383
|
+
incidentDescription: "The managed instance's CPU stayed at 95% or more for 15 minutes. Query Store names the queries that use it; tune them, or add vCores.",
|
|
1384
|
+
}),
|
|
1385
|
+
sustainedAtOrAbove({
|
|
1386
|
+
id: "cloud-azure-flexible-server-high-memory",
|
|
1387
|
+
name: "High Memory",
|
|
1388
|
+
summary: "Memory stays at 95% or more for 15 minutes.",
|
|
1389
|
+
description: `Fires when every reading of memory_percent in the past 15 minutes is at or above 95%. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1390
|
+
category: "Utilization",
|
|
1391
|
+
provider: AZURE,
|
|
1392
|
+
resourceTypes: [
|
|
1393
|
+
"Microsoft.DBforPostgreSQL/flexibleServers",
|
|
1394
|
+
"Microsoft.DBforMySQL/flexibleServers",
|
|
1395
|
+
],
|
|
1396
|
+
metric: azurePercent("memory_percent"),
|
|
1397
|
+
threshold: CloudResourceHealth_1.CLOUD_MEMORY_HIGH_PERCENT,
|
|
1398
|
+
thresholdLabel: `at or above ${CloudResourceHealth_1.CLOUD_MEMORY_HIGH_PERCENT}%`,
|
|
1399
|
+
incidentDescription: "The server used 95% or more of its memory for 15 minutes; past it, the engine swaps or is restarted. Look at its connections and its largest queries, or move to a size with more memory.",
|
|
1400
|
+
}),
|
|
1401
|
+
anyInWindow({
|
|
1402
|
+
id: "cloud-azure-postgresql-failed-connections",
|
|
1403
|
+
name: "Failed Connections",
|
|
1404
|
+
summary: "Connections to the server fail.",
|
|
1405
|
+
description: `Fires when connections_failed, totalled over the past 15 minutes, is 1 or more. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1406
|
+
category: "Errors",
|
|
1407
|
+
provider: AZURE,
|
|
1408
|
+
resourceTypes: ["Microsoft.DBforPostgreSQL/flexibleServers"],
|
|
1409
|
+
metrics: [azureCount("connections_failed")],
|
|
1410
|
+
thresholdLabel: "1 failed connection or more",
|
|
1411
|
+
incidentDescription: "Connections to the PostgreSQL server failed. A client with a wrong password or one the firewall does not let in fails every time: the server's logs name it. Failures during a restart or a failover clear by themselves.",
|
|
1412
|
+
}),
|
|
1413
|
+
anyInWindow({
|
|
1414
|
+
id: "cloud-azure-mysql-aborted-connections",
|
|
1415
|
+
name: "Connections Aborted",
|
|
1416
|
+
summary: "Attempts to connect to the server fail.",
|
|
1417
|
+
description: `Fires when aborted_connections, totalled over the past 15 minutes, is 1 or more: a client could not connect, for a wrong password, a database it may not use or a handshake that timed out. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1418
|
+
category: "Errors",
|
|
1419
|
+
provider: AZURE,
|
|
1420
|
+
resourceTypes: ["Microsoft.DBforMySQL/flexibleServers"],
|
|
1421
|
+
metrics: [azureCount("aborted_connections")],
|
|
1422
|
+
thresholdLabel: "1 aborted connection or more",
|
|
1423
|
+
incidentDescription: "Attempts to connect to the MySQL server were aborted. A client with a wrong password, or one connecting to a database it may not use, fails every time: the server's error log names it. Attempts that time out point at the network or at a server that is too busy.",
|
|
1424
|
+
}),
|
|
1425
|
+
sustainedAtOrAbove({
|
|
1426
|
+
id: "cloud-azure-cosmos-request-units",
|
|
1427
|
+
name: "Request Units at the Limit",
|
|
1428
|
+
summary: "Request units stay at their limit for 15 minutes.",
|
|
1429
|
+
description: `Fires when every reading of NormalizedRUConsumption in the past 15 minutes is at 100%: the account's busiest partition uses all its throughput, so its requests are throttled with 429s. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1430
|
+
category: "Throttling",
|
|
1431
|
+
provider: AZURE,
|
|
1432
|
+
resourceTypes: ["Microsoft.DocumentDB/databaseAccounts"],
|
|
1433
|
+
metric: azureMetric({
|
|
1434
|
+
metricName: "NormalizedRUConsumption",
|
|
1435
|
+
aggregation: "maximum",
|
|
1436
|
+
aggregationType: MetricsAggregationType_1.default.Max,
|
|
1437
|
+
legendUnit: "%",
|
|
1438
|
+
}),
|
|
1439
|
+
threshold: 100,
|
|
1440
|
+
thresholdLabel: "at 100%",
|
|
1441
|
+
incidentDescription: "A partition of the Cosmos DB account used all its request units for 15 minutes, so requests to it are throttled. Raise the throughput, turn on autoscale, or pick a partition key that spreads the load.",
|
|
1442
|
+
}),
|
|
1443
|
+
sustainedAtOrAbove({
|
|
1444
|
+
id: "cloud-azure-redis-server-load",
|
|
1445
|
+
name: "High Server Load",
|
|
1446
|
+
summary: "Server load stays at 90% or more for 15 minutes.",
|
|
1447
|
+
description: `Fires when every reading of serverLoad in the past 15 minutes is at or above 90%: the cache's threads are busy and its commands slow down. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1448
|
+
category: "Utilization",
|
|
1449
|
+
provider: AZURE,
|
|
1450
|
+
resourceTypes: ["Microsoft.Cache/redis"],
|
|
1451
|
+
metric: azurePercent("serverLoad", "maximum"),
|
|
1452
|
+
threshold: 90,
|
|
1453
|
+
thresholdLabel: "at or above 90%",
|
|
1454
|
+
incidentDescription: "The cache's server load stayed at 90% or more for 15 minutes, so its commands time out. Look for expensive commands, then scale it up or cluster it.",
|
|
1455
|
+
}),
|
|
1456
|
+
sustainedAtOrAbove({
|
|
1457
|
+
id: "cloud-azure-redis-high-memory",
|
|
1458
|
+
name: "High Memory",
|
|
1459
|
+
summary: "Memory stays at 95% or more for 15 minutes.",
|
|
1460
|
+
description: `Fires when every reading of usedmemorypercentage in the past 15 minutes is at or above 95%: the cache evicts keys, or refuses writes. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1461
|
+
category: "Utilization",
|
|
1462
|
+
provider: AZURE,
|
|
1463
|
+
resourceTypes: ["Microsoft.Cache/redis"],
|
|
1464
|
+
metric: azurePercent("usedmemorypercentage", "maximum"),
|
|
1465
|
+
threshold: CloudResourceHealth_1.CLOUD_MEMORY_HIGH_PERCENT,
|
|
1466
|
+
thresholdLabel: `at or above ${CloudResourceHealth_1.CLOUD_MEMORY_HIGH_PERCENT}%`,
|
|
1467
|
+
incidentDescription: "The cache used 95% or more of its memory for 15 minutes. Set expiries on what can expire, or scale it to a larger size.",
|
|
1468
|
+
}),
|
|
1469
|
+
sustainedBelow({
|
|
1470
|
+
id: "cloud-azure-availability-low",
|
|
1471
|
+
name: "Availability Low",
|
|
1472
|
+
summary: "Availability stays under 99.9% for 15 minutes.",
|
|
1473
|
+
description: `Fires when every reading of Availability in the past 15 minutes is under 99.9%: requests to the account or the vault fail for reasons of Azure's own. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1474
|
+
provider: AZURE,
|
|
1475
|
+
resourceTypes: [
|
|
1476
|
+
"Microsoft.Storage/storageAccounts",
|
|
1477
|
+
"Microsoft.KeyVault/vaults",
|
|
1478
|
+
],
|
|
1479
|
+
metric: azurePercent("Availability"),
|
|
1480
|
+
threshold: CloudResourceHealth_1.CLOUD_AVAILABILITY_LOW_PERCENT,
|
|
1481
|
+
thresholdLabel: `under ${CloudResourceHealth_1.CLOUD_AVAILABILITY_LOW_PERCENT}%`,
|
|
1482
|
+
incidentDescription: "Requests failed for 15 minutes for reasons of Azure's own. Its Resource Health and Service Health in the Azure portal say whether Azure is working on it.",
|
|
1483
|
+
}),
|
|
1484
|
+
anyInWindow({
|
|
1485
|
+
id: "cloud-azure-messaging-dead-lettered",
|
|
1486
|
+
name: "Messages Dead-Lettered",
|
|
1487
|
+
summary: "A message is moved to a dead-letter queue.",
|
|
1488
|
+
description: `Fires when DeadletteredMessages (Average) is 1 or more at any reading in the past 15 minutes: a message could not be processed, or expired, and waits in a dead-letter queue until someone looks at it. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1489
|
+
category: "Backlog",
|
|
1490
|
+
provider: AZURE,
|
|
1491
|
+
resourceTypes: ["Microsoft.ServiceBus/namespaces"],
|
|
1492
|
+
metrics: [
|
|
1493
|
+
azureMetric({
|
|
1494
|
+
metricName: "DeadletteredMessages",
|
|
1495
|
+
aggregation: "average",
|
|
1496
|
+
aggregationType: MetricsAggregationType_1.default.Max,
|
|
1497
|
+
}),
|
|
1498
|
+
],
|
|
1499
|
+
thresholdLabel: "1 dead-lettered message or more",
|
|
1500
|
+
incidentDescription: "Messages of the namespace sit in a dead-letter queue: a consumer could not process them, or they expired. Read the dead-letter reason on the messages, fix the cause, then resubmit or remove them.",
|
|
1501
|
+
}),
|
|
1502
|
+
anyInWindow({
|
|
1503
|
+
id: "cloud-azure-messaging-server-errors",
|
|
1504
|
+
name: "Server Errors",
|
|
1505
|
+
summary: "The namespace answers a request with a server error.",
|
|
1506
|
+
description: `Fires when ServerErrors, totalled over the past 15 minutes, is 1 or more. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1507
|
+
category: "Errors",
|
|
1508
|
+
provider: AZURE,
|
|
1509
|
+
resourceTypes: [
|
|
1510
|
+
"Microsoft.ServiceBus/namespaces",
|
|
1511
|
+
"Microsoft.EventHub/namespaces",
|
|
1512
|
+
],
|
|
1513
|
+
metrics: [azureCount("ServerErrors")],
|
|
1514
|
+
thresholdLabel: "1 server error or more",
|
|
1515
|
+
incidentDescription: "The namespace answered requests with a server error of its own. Its Resource Health in the Azure portal says whether Azure saw a problem; clients should retry.",
|
|
1516
|
+
}),
|
|
1517
|
+
anyInWindow({
|
|
1518
|
+
id: "cloud-azure-messaging-throttled",
|
|
1519
|
+
name: "Requests Throttled",
|
|
1520
|
+
summary: "Requests to the namespace are throttled.",
|
|
1521
|
+
description: `Fires when ThrottledRequests, totalled over the past 15 minutes, is 1 or more: the namespace passed what its tier, units or partitions allow. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1522
|
+
category: "Throttling",
|
|
1523
|
+
provider: AZURE,
|
|
1524
|
+
resourceTypes: [
|
|
1525
|
+
"Microsoft.ServiceBus/namespaces",
|
|
1526
|
+
"Microsoft.EventHub/namespaces",
|
|
1527
|
+
],
|
|
1528
|
+
metrics: [azureCount("ThrottledRequests")],
|
|
1529
|
+
thresholdLabel: "1 throttled request or more",
|
|
1530
|
+
incidentDescription: "Requests to the namespace were throttled. Add messaging or throughput units, turn on auto-inflate, or move to a higher tier.",
|
|
1531
|
+
}),
|
|
1532
|
+
anyInWindow({
|
|
1533
|
+
id: "cloud-azure-containerapp-restarts",
|
|
1534
|
+
name: "Replicas Restarting",
|
|
1535
|
+
summary: "A replica of the container app restarts.",
|
|
1536
|
+
description: `Fires when RestartCount, totalled over the past 15 minutes, is 1 or more: a replica crashed, or failed its health probes and was restarted. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1537
|
+
category: "Availability",
|
|
1538
|
+
provider: AZURE,
|
|
1539
|
+
resourceTypes: ["Microsoft.App/containerApps"],
|
|
1540
|
+
metrics: [azureCount("RestartCount")],
|
|
1541
|
+
thresholdLabel: "1 restart or more",
|
|
1542
|
+
incidentDescription: "A replica of the container app restarted. Its console and system logs say whether it crashed, ran out of memory or failed its health probes.",
|
|
1543
|
+
}),
|
|
1544
|
+
sustainedBelow({
|
|
1545
|
+
id: "cloud-azure-loadbalancer-data-path",
|
|
1546
|
+
name: "Data Path Availability Low",
|
|
1547
|
+
summary: "The load balancer's data path stays under 99.9% for 15 minutes.",
|
|
1548
|
+
description: `Fires when every reading of VipAvailability in the past 15 minutes is under 99.9%: Azure's probes through the load balancer's frontend fail. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1549
|
+
provider: AZURE,
|
|
1550
|
+
resourceTypes: ["Microsoft.Network/loadBalancers"],
|
|
1551
|
+
metric: azurePercent("VipAvailability"),
|
|
1552
|
+
threshold: CloudResourceHealth_1.CLOUD_AVAILABILITY_LOW_PERCENT,
|
|
1553
|
+
thresholdLabel: `under ${CloudResourceHealth_1.CLOUD_AVAILABILITY_LOW_PERCENT}%`,
|
|
1554
|
+
incidentDescription: "The load balancer's data path is not fully available: traffic through its frontend fails. Its Resource Health in the Azure portal says whether Azure saw a problem.",
|
|
1555
|
+
}),
|
|
1556
|
+
sustainedBelow({
|
|
1557
|
+
id: "cloud-azure-loadbalancer-health-probes",
|
|
1558
|
+
name: "Health Probes Failing",
|
|
1559
|
+
summary: "Backends fail their health probes for 15 minutes.",
|
|
1560
|
+
description: `Fires when every reading of DipAvailability in the past 15 minutes is under 100%: some of the load balancer's backends fail its health probe, and get no traffic. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1561
|
+
provider: AZURE,
|
|
1562
|
+
resourceTypes: ["Microsoft.Network/loadBalancers"],
|
|
1563
|
+
metric: azurePercent("DipAvailability"),
|
|
1564
|
+
threshold: 100,
|
|
1565
|
+
thresholdLabel: "under 100%",
|
|
1566
|
+
incidentDescription: "Backends of the load balancer failed its health probe for 15 minutes. Check that they answer on the probe's port and path, and that a network security group lets the probe in.",
|
|
1567
|
+
}),
|
|
1568
|
+
sustainedAtOrAbove({
|
|
1569
|
+
id: "cloud-azure-appgateway-unhealthy-hosts",
|
|
1570
|
+
name: "Unhealthy Hosts",
|
|
1571
|
+
summary: "A backend of the gateway is unhealthy for 15 minutes.",
|
|
1572
|
+
description: `Fires when every reading of UnhealthyHostCount in the past 15 minutes is 1 or more. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1573
|
+
category: "Availability",
|
|
1574
|
+
provider: AZURE,
|
|
1575
|
+
resourceTypes: ["Microsoft.Network/applicationGateways"],
|
|
1576
|
+
metric: azureMetric({
|
|
1577
|
+
metricName: "UnhealthyHostCount",
|
|
1578
|
+
aggregation: "average",
|
|
1579
|
+
aggregationType: MetricsAggregationType_1.default.Max,
|
|
1580
|
+
}),
|
|
1581
|
+
threshold: 1,
|
|
1582
|
+
thresholdLabel: "1 or more",
|
|
1583
|
+
incidentDescription: "A backend of the application gateway failed its health probe for 15 minutes and gets no traffic. The gateway's backend health in the Azure portal names it and the probe's answer.",
|
|
1584
|
+
}),
|
|
1585
|
+
failedShare({
|
|
1586
|
+
id: "cloud-azure-appgateway-failed-requests",
|
|
1587
|
+
name: "Failed Requests",
|
|
1588
|
+
summary: "5% or more of the gateway's requests fail in 15 minutes.",
|
|
1589
|
+
description: azureShareDescription("FailedRequests over TotalRequests"),
|
|
1590
|
+
provider: AZURE,
|
|
1591
|
+
resourceTypes: ["Microsoft.Network/applicationGateways"],
|
|
1592
|
+
failed: [azureCount("FailedRequests")],
|
|
1593
|
+
requests: azureCount("TotalRequests"),
|
|
1594
|
+
incidentDescription: "The application gateway failed 5% or more of its requests. Look at its backend health and its access logs for the status codes it returned.",
|
|
1595
|
+
}),
|
|
1596
|
+
breakage({
|
|
1597
|
+
id: "cloud-azure-public-ip-ddos",
|
|
1598
|
+
name: "Under DDoS Attack",
|
|
1599
|
+
summary: "Azure reports the public IP address under a DDoS attack.",
|
|
1600
|
+
description: `Fires on the first reading of IfUnderDDoSAttack at 1: Azure DDoS Protection detected an attack on the address and mitigates it. Clears once 15 minutes pass without one. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1601
|
+
provider: AZURE,
|
|
1602
|
+
resourceTypes: ["Microsoft.Network/publicIPAddresses"],
|
|
1603
|
+
metric: azureMetric({
|
|
1604
|
+
metricName: "IfUnderDDoSAttack",
|
|
1605
|
+
aggregation: "maximum",
|
|
1606
|
+
aggregationType: MetricsAggregationType_1.default.Max,
|
|
1607
|
+
}),
|
|
1608
|
+
thresholdLabel: "at 1",
|
|
1609
|
+
incidentDescription: "Azure DDoS Protection reports the public IP address under attack and mitigates it. Its mitigation reports and flow logs show the traffic; check that the services behind it still answer.",
|
|
1610
|
+
}),
|
|
1611
|
+
sustainedBelow({
|
|
1612
|
+
id: "cloud-azure-firewall-health",
|
|
1613
|
+
name: "Firewall Health Degraded",
|
|
1614
|
+
summary: "The firewall's health stays under 100% for 15 minutes.",
|
|
1615
|
+
description: `Fires when every reading of FirewallHealth in the past 15 minutes is under 100%. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1616
|
+
provider: AZURE,
|
|
1617
|
+
resourceTypes: ["Microsoft.Network/azureFirewalls"],
|
|
1618
|
+
metric: azurePercent("FirewallHealth"),
|
|
1619
|
+
threshold: 100,
|
|
1620
|
+
thresholdLabel: "under 100%",
|
|
1621
|
+
incidentDescription: "The Azure Firewall reports itself less than fully healthy, usually because it runs out of SNAT ports. Its health status reason in the Azure portal names the cause; add public IP addresses or a NAT gateway.",
|
|
1622
|
+
}),
|
|
1623
|
+
sustainedAtOrAbove({
|
|
1624
|
+
id: "cloud-azure-firewall-snat-ports",
|
|
1625
|
+
name: "SNAT Ports Running Out",
|
|
1626
|
+
summary: "SNAT port use stays at 95% or more for 15 minutes.",
|
|
1627
|
+
description: `Fires when every reading of SNATPortUtilization in the past 15 minutes is at or above 95%. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1628
|
+
category: "Utilization",
|
|
1629
|
+
provider: AZURE,
|
|
1630
|
+
resourceTypes: ["Microsoft.Network/azureFirewalls"],
|
|
1631
|
+
metric: azurePercent("SNATPortUtilization"),
|
|
1632
|
+
threshold: 95,
|
|
1633
|
+
thresholdLabel: "at or above 95%",
|
|
1634
|
+
incidentDescription: "The firewall used 95% or more of its SNAT ports for 15 minutes; past it, outbound connections fail. Add public IP addresses to it, or put a NAT gateway on its subnet.",
|
|
1635
|
+
}),
|
|
1636
|
+
sustainedBelow({
|
|
1637
|
+
id: "cloud-azure-nat-gateway-data-path",
|
|
1638
|
+
name: "Data Path Availability Low",
|
|
1639
|
+
summary: "The NAT gateway's data path stays under 99.9% for 15 minutes.",
|
|
1640
|
+
description: `Fires when every reading of DatapathAvailability in the past 15 minutes is under 99.9%. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1641
|
+
provider: AZURE,
|
|
1642
|
+
resourceTypes: ["Microsoft.Network/natGateways"],
|
|
1643
|
+
metric: azurePercent("DatapathAvailability"),
|
|
1644
|
+
threshold: CloudResourceHealth_1.CLOUD_AVAILABILITY_LOW_PERCENT,
|
|
1645
|
+
thresholdLabel: `under ${CloudResourceHealth_1.CLOUD_AVAILABILITY_LOW_PERCENT}%`,
|
|
1646
|
+
incidentDescription: "The NAT gateway's data path is not fully available, so outbound connections from its subnets fail. Its Resource Health in the Azure portal says whether Azure saw a problem.",
|
|
1647
|
+
}),
|
|
1648
|
+
sustainedAtOrAbove({
|
|
1649
|
+
id: "cloud-azure-cdn-server-errors",
|
|
1650
|
+
name: "Server Errors",
|
|
1651
|
+
summary: "5% or more of requests fail with a 5xx error for 15 minutes.",
|
|
1652
|
+
description: `Fires when every reading of Percentage5XX in the past 15 minutes is at or above 5%. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1653
|
+
category: "Errors",
|
|
1654
|
+
provider: AZURE,
|
|
1655
|
+
resourceTypes: ["Microsoft.Cdn/profiles"],
|
|
1656
|
+
metric: azurePercent("Percentage5XX"),
|
|
1657
|
+
threshold: CloudResourceHealth_1.CLOUD_FAILED_SHARE_WARNING_PERCENT,
|
|
1658
|
+
thresholdLabel: `at or above ${CloudResourceHealth_1.CLOUD_FAILED_SHARE_WARNING_PERCENT}%`,
|
|
1659
|
+
incidentDescription: "The profile answered 5% or more of its requests with a server error for 15 minutes. Look at its origins: whether they answer, how fast, and what changed on them.",
|
|
1660
|
+
}),
|
|
1661
|
+
sustainedAtOrAbove({
|
|
1662
|
+
id: "cloud-azure-apim-capacity",
|
|
1663
|
+
name: "Capacity High",
|
|
1664
|
+
summary: "The gateway's capacity stays at 90% or more for 15 minutes.",
|
|
1665
|
+
description: `Fires when every reading of Capacity in the past 15 minutes is at or above 90%. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1666
|
+
category: "Utilization",
|
|
1667
|
+
provider: AZURE,
|
|
1668
|
+
resourceTypes: ["Microsoft.ApiManagement/service"],
|
|
1669
|
+
metric: azurePercent("Capacity"),
|
|
1670
|
+
threshold: 90,
|
|
1671
|
+
thresholdLabel: "at or above 90%",
|
|
1672
|
+
incidentDescription: "The API Management gateway used 90% or more of its capacity for 15 minutes, so its requests slow down. Add units, or turn on autoscale.",
|
|
1673
|
+
}),
|
|
1674
|
+
failedShare({
|
|
1675
|
+
id: "cloud-azure-ai-services-errors",
|
|
1676
|
+
name: "Errors",
|
|
1677
|
+
summary: "5% or more of the calls fail in 15 minutes.",
|
|
1678
|
+
description: azureShareDescription("TotalErrors over TotalCalls"),
|
|
1679
|
+
provider: AZURE,
|
|
1680
|
+
resourceTypes: ["Microsoft.CognitiveServices/accounts"],
|
|
1681
|
+
failed: [azureCount("TotalErrors")],
|
|
1682
|
+
requests: azureCount("TotalCalls"),
|
|
1683
|
+
incidentDescription: "5% or more of the calls to the account failed: refused by its rate limits, or failed on Azure's side. Its metrics split by status code say which.",
|
|
1684
|
+
}),
|
|
1685
|
+
anyInWindow({
|
|
1686
|
+
id: "cloud-azure-logic-runs-failed",
|
|
1687
|
+
name: "Runs Failed",
|
|
1688
|
+
summary: "A run of the logic app fails.",
|
|
1689
|
+
description: `Fires when RunsFailed, totalled over the past 15 minutes, is 1 or more. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1690
|
+
category: "Errors",
|
|
1691
|
+
provider: AZURE,
|
|
1692
|
+
resourceTypes: ["Microsoft.Logic/workflows"],
|
|
1693
|
+
metrics: [azureCount("RunsFailed")],
|
|
1694
|
+
thresholdLabel: "1 failed run or more",
|
|
1695
|
+
incidentDescription: "A run of the logic app failed. Its run history in the Azure portal names the action that failed and the error it returned.",
|
|
1696
|
+
}),
|
|
1697
|
+
anyInWindow({
|
|
1698
|
+
id: "cloud-azure-data-factory-runs-failed",
|
|
1699
|
+
name: "Pipeline Runs Failed",
|
|
1700
|
+
summary: "A pipeline run of the data factory fails.",
|
|
1701
|
+
description: `Fires when PipelineFailedRuns, totalled over the past 15 minutes, is 1 or more. ${READ_FROM_AZURE_MONITOR} ${ON_PAGE_TOO}`,
|
|
1702
|
+
category: "Errors",
|
|
1703
|
+
provider: AZURE,
|
|
1704
|
+
resourceTypes: ["Microsoft.DataFactory/factories"],
|
|
1705
|
+
metrics: [azureCount("PipelineFailedRuns")],
|
|
1706
|
+
thresholdLabel: "1 failed run or more",
|
|
1707
|
+
incidentDescription: "A pipeline run of the data factory failed. Its monitoring in Data Factory Studio names the activity that failed and the error it raised.",
|
|
1708
|
+
}),
|
|
1709
|
+
];
|
|
1710
|
+
/*
|
|
1711
|
+
* ---------------------------------------------------------------------------
|
|
1712
|
+
* Google Cloud
|
|
1713
|
+
* ---------------------------------------------------------------------------
|
|
1714
|
+
*/
|
|
1715
|
+
const GCP_TEMPLATES = [
|
|
1716
|
+
gcpPercentAtOrAbove({
|
|
1717
|
+
id: "cloud-gcp-compute-high-cpu",
|
|
1718
|
+
name: "High CPU",
|
|
1719
|
+
summary: "CPU stays at 90% or more for 15 minutes.",
|
|
1720
|
+
description: `Fires when every reading of compute.googleapis.com/instance/cpu/utilization (0 to 1, made a percent) in the past 15 minutes is at or above 90%. A busy VM is often doing its work: this says it has no headroom left. ${READ_FROM_CLOUD_MONITORING}`,
|
|
1721
|
+
category: "Utilization",
|
|
1722
|
+
resourceTypes: ["gce_instance"],
|
|
1723
|
+
metricType: "compute.googleapis.com/instance/cpu/utilization",
|
|
1724
|
+
threshold: exports.CLOUD_COMPUTE_CPU_HIGH_PERCENT,
|
|
1725
|
+
thresholdLabel: `at or above ${exports.CLOUD_COMPUTE_CPU_HIGH_PERCENT}%`,
|
|
1726
|
+
incidentDescription: "The VM's CPU stayed at 90% or more for 15 minutes. Look for a process that runs away or for traffic that grew, then add VMs to its group or move it to a larger machine type.",
|
|
1727
|
+
}),
|
|
1728
|
+
gcpPercentAtOrAbove({
|
|
1729
|
+
id: "cloud-gcp-cloudsql-disk-full",
|
|
1730
|
+
name: "Disk Nearly Full",
|
|
1731
|
+
summary: "Disk use stays at 90% or more for 15 minutes.",
|
|
1732
|
+
description: `Fires when every reading of cloudsql.googleapis.com/database/disk/utilization (0 to 1, made a percent) in the past 15 minutes is at or above 90%. ${READ_FROM_CLOUD_MONITORING} ${ON_PAGE_TOO}`,
|
|
1733
|
+
category: "Storage",
|
|
1734
|
+
resourceTypes: ["cloudsql_database"],
|
|
1735
|
+
metricType: "cloudsql.googleapis.com/database/disk/utilization",
|
|
1736
|
+
threshold: CloudResourceHealth_1.CLOUD_STORAGE_HIGH_PERCENT,
|
|
1737
|
+
thresholdLabel: `at or above ${CloudResourceHealth_1.CLOUD_STORAGE_HIGH_PERCENT}%`,
|
|
1738
|
+
incidentDescription: "The Cloud SQL instance's disk is 90% full or more; a full disk takes it offline. Turn on automatic storage increases, or raise its storage, and look for what grew.",
|
|
1739
|
+
}),
|
|
1740
|
+
gcpPercentAtOrAbove({
|
|
1741
|
+
id: "cloud-gcp-cloudsql-high-cpu",
|
|
1742
|
+
name: "High CPU",
|
|
1743
|
+
summary: "CPU stays at 95% or more for 15 minutes.",
|
|
1744
|
+
description: `Fires when every reading of cloudsql.googleapis.com/database/cpu/utilization (0 to 1, made a percent) in the past 15 minutes is at or above 95%. ${READ_FROM_CLOUD_MONITORING} ${ON_PAGE_TOO}`,
|
|
1745
|
+
category: "Utilization",
|
|
1746
|
+
resourceTypes: ["cloudsql_database"],
|
|
1747
|
+
metricType: "cloudsql.googleapis.com/database/cpu/utilization",
|
|
1748
|
+
threshold: CloudResourceHealth_1.CLOUD_CPU_HIGH_PERCENT,
|
|
1749
|
+
thresholdLabel: `at or above ${CloudResourceHealth_1.CLOUD_CPU_HIGH_PERCENT}%`,
|
|
1750
|
+
incidentDescription: "The Cloud SQL instance's CPU stayed at 95% or more for 15 minutes. Query Insights names the queries that use it; add an index, or give it more vCPUs.",
|
|
1751
|
+
}),
|
|
1752
|
+
gcpPercentAtOrAbove({
|
|
1753
|
+
id: "cloud-gcp-cloudsql-high-memory",
|
|
1754
|
+
name: "High Memory",
|
|
1755
|
+
summary: "Memory stays at 95% or more for 15 minutes.",
|
|
1756
|
+
description: `Fires when every reading of cloudsql.googleapis.com/database/memory/utilization (0 to 1, made a percent) in the past 15 minutes is at or above 95%. ${READ_FROM_CLOUD_MONITORING} ${ON_PAGE_TOO}`,
|
|
1757
|
+
category: "Utilization",
|
|
1758
|
+
resourceTypes: ["cloudsql_database"],
|
|
1759
|
+
metricType: "cloudsql.googleapis.com/database/memory/utilization",
|
|
1760
|
+
threshold: CloudResourceHealth_1.CLOUD_MEMORY_HIGH_PERCENT,
|
|
1761
|
+
thresholdLabel: `at or above ${CloudResourceHealth_1.CLOUD_MEMORY_HIGH_PERCENT}%`,
|
|
1762
|
+
incidentDescription: "The Cloud SQL instance used 95% or more of its memory for 15 minutes; past it, the database engine is restarted. Look at its connections and its largest queries, or give it more memory.",
|
|
1763
|
+
}),
|
|
1764
|
+
sustainedAtOrAbove({
|
|
1765
|
+
id: "cloud-gcp-lb-slow-responses",
|
|
1766
|
+
name: "Slow Responses",
|
|
1767
|
+
summary: "The 95th percentile of responses takes a second or more.",
|
|
1768
|
+
description: `Fires when every reading of loadbalancing.googleapis.com/https/total_latencies (the 95th percentile, in milliseconds) in the past 15 minutes is 1,000 milliseconds or more. ${READ_FROM_CLOUD_MONITORING}`,
|
|
1769
|
+
category: "Latency",
|
|
1770
|
+
provider: CloudPlatform_1.CloudProvider.GCP,
|
|
1771
|
+
resourceTypes: ["https_lb_rule"],
|
|
1772
|
+
metric: gcpMetric({
|
|
1773
|
+
metricType: "loadbalancing.googleapis.com/https/total_latencies",
|
|
1774
|
+
aggregationType: MetricsAggregationType_1.default.Max,
|
|
1775
|
+
legendUnit: "ms",
|
|
1776
|
+
}),
|
|
1777
|
+
threshold: exports.CLOUD_SLOW_RESPONSE_SECONDS * 1000,
|
|
1778
|
+
thresholdLabel: "1,000 milliseconds or more",
|
|
1779
|
+
incidentDescription: "One response in twenty through the load balancer took a second or more, for 15 minutes. Look at its backends: their health, their CPU and what changed on them.",
|
|
1780
|
+
}),
|
|
1781
|
+
ageAtOrAbove({
|
|
1782
|
+
id: "cloud-gcp-pubsub-oldest-message",
|
|
1783
|
+
name: "Oldest Message Waiting",
|
|
1784
|
+
summary: "The subscription's oldest message waits an hour or more.",
|
|
1785
|
+
description: `Fires on the first reading of pubsub.googleapis.com/subscription/oldest_unacked_message_age at 3600 seconds or more: nothing acknowledged a message for an hour, or subscribers fall behind. ${READ_FROM_CLOUD_MONITORING} ${ON_PAGE_TOO}`,
|
|
1786
|
+
provider: CloudPlatform_1.CloudProvider.GCP,
|
|
1787
|
+
resourceTypes: ["pubsub_subscription"],
|
|
1788
|
+
metric: gcpMetric({
|
|
1789
|
+
metricType: "pubsub.googleapis.com/subscription/oldest_unacked_message_age",
|
|
1790
|
+
aggregationType: MetricsAggregationType_1.default.Max,
|
|
1791
|
+
legendUnit: "s",
|
|
1792
|
+
}),
|
|
1793
|
+
threshold: CloudResourceHealth_1.CLOUD_BACKLOG_AGE_SECONDS,
|
|
1794
|
+
incidentDescription: "A message has waited on the subscription for an hour or more without being acknowledged. Check that its subscribers run and keep up, and give it a dead-letter topic for messages that fail every time.",
|
|
1795
|
+
}),
|
|
1796
|
+
gcpPercentAtOrAbove({
|
|
1797
|
+
id: "cloud-gcp-redis-high-memory",
|
|
1798
|
+
name: "High Memory",
|
|
1799
|
+
summary: "Memory stays at 95% or more for 15 minutes.",
|
|
1800
|
+
description: `Fires when every reading of redis.googleapis.com/stats/memory/usage_ratio (0 to 1, made a percent) in the past 15 minutes is at or above 95%. ${READ_FROM_CLOUD_MONITORING} ${ON_PAGE_TOO}`,
|
|
1801
|
+
category: "Utilization",
|
|
1802
|
+
resourceTypes: ["redis_instance"],
|
|
1803
|
+
metricType: "redis.googleapis.com/stats/memory/usage_ratio",
|
|
1804
|
+
threshold: CloudResourceHealth_1.CLOUD_MEMORY_HIGH_PERCENT,
|
|
1805
|
+
thresholdLabel: `at or above ${CloudResourceHealth_1.CLOUD_MEMORY_HIGH_PERCENT}%`,
|
|
1806
|
+
incidentDescription: "The Memorystore instance used 95% or more of its memory for 15 minutes: it evicts keys, or refuses writes. Set expiries on what can expire, or scale it up.",
|
|
1807
|
+
}),
|
|
1808
|
+
gcpPercentAtOrAbove({
|
|
1809
|
+
id: "cloud-gcp-spanner-high-cpu",
|
|
1810
|
+
name: "High CPU",
|
|
1811
|
+
summary: "CPU stays at 90% or more for 15 minutes.",
|
|
1812
|
+
description: `Fires when every reading of spanner.googleapis.com/instance/cpu/utilization (0 to 1, made a percent) in the past 15 minutes is at or above 90%. ${READ_FROM_CLOUD_MONITORING} ${ON_PAGE_TOO}`,
|
|
1813
|
+
category: "Utilization",
|
|
1814
|
+
resourceTypes: ["spanner_instance"],
|
|
1815
|
+
metricType: "spanner.googleapis.com/instance/cpu/utilization",
|
|
1816
|
+
threshold: 90,
|
|
1817
|
+
thresholdLabel: "at or above 90%",
|
|
1818
|
+
incidentDescription: "The Spanner instance's CPU stayed at 90% or more for 15 minutes, so its transactions slow down. Add compute capacity, or turn on autoscaling.",
|
|
1819
|
+
}),
|
|
1820
|
+
];
|
|
1821
|
+
const CLOUD_ALERT_TEMPLATES = [
|
|
1822
|
+
...AWS_TEMPLATES,
|
|
1823
|
+
...AZURE_TEMPLATES,
|
|
1824
|
+
...GCP_TEMPLATES,
|
|
1825
|
+
];
|
|
1826
|
+
/*
|
|
1827
|
+
* ---------------------------------------------------------------------------
|
|
1828
|
+
* Looking templates up
|
|
1829
|
+
* ---------------------------------------------------------------------------
|
|
1830
|
+
*/
|
|
1831
|
+
function getAllCloudAlertTemplates() {
|
|
1832
|
+
return [...CLOUD_ALERT_TEMPLATES];
|
|
1833
|
+
}
|
|
1834
|
+
function getCloudAlertTemplate(id) {
|
|
1835
|
+
return CLOUD_ALERT_TEMPLATES.find((template) => {
|
|
1836
|
+
return template.id === id;
|
|
1837
|
+
});
|
|
1838
|
+
}
|
|
1839
|
+
function isTypeOf(template, data) {
|
|
1840
|
+
if (template.provider !== data.provider) {
|
|
1841
|
+
return false;
|
|
1842
|
+
}
|
|
1843
|
+
const wanted = data.resourceType.trim().toLowerCase();
|
|
1844
|
+
return template.resourceTypes.some((type) => {
|
|
1845
|
+
return type.toLowerCase() === wanted;
|
|
1846
|
+
});
|
|
1847
|
+
}
|
|
1848
|
+
// Every template of a cloud and resource type, whatever the resource knows.
|
|
1849
|
+
function getCloudAlertTemplatesForType(data) {
|
|
1850
|
+
const provider = (data.provider || "").trim().toLowerCase();
|
|
1851
|
+
const resourceType = (data.resourceType || "").trim();
|
|
1852
|
+
if (!provider || !resourceType) {
|
|
1853
|
+
return [];
|
|
1854
|
+
}
|
|
1855
|
+
return CLOUD_ALERT_TEMPLATES.filter((template) => {
|
|
1856
|
+
return isTypeOf(template, { provider, resourceType });
|
|
1857
|
+
});
|
|
1858
|
+
}
|
|
1859
|
+
// The attributes that select a resource's metrics, or none: only text values.
|
|
1860
|
+
function readCloudTelemetryAttributes(value) {
|
|
1861
|
+
const attributes = {};
|
|
1862
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
1863
|
+
return attributes;
|
|
1864
|
+
}
|
|
1865
|
+
for (const [key, raw] of Object.entries(value)) {
|
|
1866
|
+
if (key && typeof raw === "string" && raw.trim()) {
|
|
1867
|
+
attributes[key] = raw;
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
return attributes;
|
|
1871
|
+
}
|
|
1872
|
+
// An RDS instance's allocated storage in GiB, from its inventory, or null.
|
|
1873
|
+
function readAllocatedStorageGiB(properties) {
|
|
1874
|
+
if (!properties || typeof properties !== "object") {
|
|
1875
|
+
return null;
|
|
1876
|
+
}
|
|
1877
|
+
const raw = properties[exports.CLOUD_ALLOCATED_STORAGE_PROPERTY];
|
|
1878
|
+
if (raw === null || raw === undefined || raw === "") {
|
|
1879
|
+
return null;
|
|
1880
|
+
}
|
|
1881
|
+
const value = Number(raw);
|
|
1882
|
+
return Number.isFinite(value) && value > 0 ? value : null;
|
|
1883
|
+
}
|
|
1884
|
+
/*
|
|
1885
|
+
* The templates that apply to ONE resource: its cloud's and its type's, once
|
|
1886
|
+
* its metrics' attributes are recorded - and, for an AWS type read from
|
|
1887
|
+
* more than one CloudWatch namespace (an ALB and an NLB are one type), the
|
|
1888
|
+
* ones of the namespace its metrics come from. An RDS instance's storage
|
|
1889
|
+
* template waits for the inventory to list its allocated storage, and its
|
|
1890
|
+
* connections template for a connection limit (RdsConnectionLimits).
|
|
1891
|
+
*/
|
|
1892
|
+
function getCloudAlertTemplatesFor(context) {
|
|
1893
|
+
const attributes = readCloudTelemetryAttributes(context.telemetryAttributes);
|
|
1894
|
+
if (Object.keys(attributes).length === 0) {
|
|
1895
|
+
return [];
|
|
1896
|
+
}
|
|
1897
|
+
const namespace = (attributes[CloudMonitoredResource_1.AWS_CLOUDWATCH_NAMESPACE_ATTRIBUTE] || "").toLowerCase();
|
|
1898
|
+
return getCloudAlertTemplatesForType({
|
|
1899
|
+
provider: context.provider,
|
|
1900
|
+
resourceType: context.resourceType,
|
|
1901
|
+
}).filter((template) => {
|
|
1902
|
+
if (template.provider === CloudPlatform_1.CloudProvider.AWS) {
|
|
1903
|
+
const reads = template.queries.every((query) => {
|
|
1904
|
+
return (query.metric.namespace || "").toLowerCase() === namespace;
|
|
1905
|
+
});
|
|
1906
|
+
if (!reads) {
|
|
1907
|
+
return false;
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
if (template.requiresAllocatedStorage) {
|
|
1911
|
+
const allocated = Number(context.allocatedStorageGiB);
|
|
1912
|
+
if (!(Number.isFinite(allocated) && allocated > 0)) {
|
|
1913
|
+
return false;
|
|
1914
|
+
}
|
|
1915
|
+
}
|
|
1916
|
+
if (template.requiresConnectionLimit &&
|
|
1917
|
+
readConnectionLimit(context.connectionLimit) === null) {
|
|
1918
|
+
return false;
|
|
1919
|
+
}
|
|
1920
|
+
if (template.provider === CloudPlatform_1.CloudProvider.Azure &&
|
|
1921
|
+
(context.isReadByConnection || template.requiresReading) &&
|
|
1922
|
+
!template.queries.every((query) => {
|
|
1923
|
+
return hasStoredNameReading({
|
|
1924
|
+
metric: query.metric,
|
|
1925
|
+
readings: context.readings,
|
|
1926
|
+
needsName: context.isReadByConnection === true,
|
|
1927
|
+
});
|
|
1928
|
+
})) {
|
|
1929
|
+
return false;
|
|
1930
|
+
}
|
|
1931
|
+
return true;
|
|
1932
|
+
});
|
|
1933
|
+
}
|
|
1934
|
+
/*
|
|
1935
|
+
* Whether a resource's readings hold one of the metric: with the name it is
|
|
1936
|
+
* stored under, when the read decides that name (an Azure metric read by a
|
|
1937
|
+
* connection). A reading written before readings kept their names has
|
|
1938
|
+
* none: the template waits for the next read.
|
|
1939
|
+
*/
|
|
1940
|
+
function hasStoredNameReading(data) {
|
|
1941
|
+
var _a;
|
|
1942
|
+
const key = getCloudAlertMetricReadingKey(data.metric);
|
|
1943
|
+
const reading = key
|
|
1944
|
+
? (_a = data.readings) === null || _a === void 0 ? void 0 : _a[key]
|
|
1945
|
+
: undefined;
|
|
1946
|
+
if (!reading) {
|
|
1947
|
+
return false;
|
|
1948
|
+
}
|
|
1949
|
+
return !data.needsName || Boolean(reading.metric && reading.metric.trim());
|
|
1950
|
+
}
|
|
1951
|
+
/*
|
|
1952
|
+
* The readings a read keeps of a resource of this type so its templates
|
|
1953
|
+
* read the right names: every metric an Azure template of the type reads
|
|
1954
|
+
* (an AWS or Google Cloud metric's name is fixed, and needs none). Keys as
|
|
1955
|
+
* getCloudReadingKey makes them.
|
|
1956
|
+
*/
|
|
1957
|
+
function getCloudAlertTemplateReadingKeys(data) {
|
|
1958
|
+
return (getReadingKeysByType().get(`${(data.provider || "").trim().toLowerCase()}|${(data.resourceType || "")
|
|
1959
|
+
.trim()
|
|
1960
|
+
.toLowerCase()}`) || NO_READING_KEYS);
|
|
1961
|
+
}
|
|
1962
|
+
const NO_READING_KEYS = new Set();
|
|
1963
|
+
let readingKeysByType = null;
|
|
1964
|
+
// Built once: a read asks it for every datapoint it writes.
|
|
1965
|
+
function getReadingKeysByType() {
|
|
1966
|
+
if (readingKeysByType) {
|
|
1967
|
+
return readingKeysByType;
|
|
1968
|
+
}
|
|
1969
|
+
const byType = new Map();
|
|
1970
|
+
for (const template of CLOUD_ALERT_TEMPLATES) {
|
|
1971
|
+
if (template.provider !== CloudPlatform_1.CloudProvider.Azure) {
|
|
1972
|
+
continue;
|
|
1973
|
+
}
|
|
1974
|
+
for (const type of template.resourceTypes) {
|
|
1975
|
+
const typeKey = `${template.provider}|${type.toLowerCase()}`;
|
|
1976
|
+
const keys = byType.get(typeKey) || new Set();
|
|
1977
|
+
for (const query of template.queries) {
|
|
1978
|
+
const key = getCloudAlertMetricReadingKey(query.metric);
|
|
1979
|
+
if (key) {
|
|
1980
|
+
keys.add(key);
|
|
1981
|
+
}
|
|
1982
|
+
}
|
|
1983
|
+
byType.set(typeKey, keys);
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
readingKeysByType = byType;
|
|
1987
|
+
return byType;
|
|
1988
|
+
}
|
|
1989
|
+
// The resource types some template is for, of one cloud or every cloud.
|
|
1990
|
+
function getCloudResourceTypesWithAlertTemplates(provider) {
|
|
1991
|
+
const types = [];
|
|
1992
|
+
for (const template of CLOUD_ALERT_TEMPLATES) {
|
|
1993
|
+
if (provider && template.provider !== provider) {
|
|
1994
|
+
continue;
|
|
1995
|
+
}
|
|
1996
|
+
for (const type of template.resourceTypes) {
|
|
1997
|
+
if (!types.includes(type)) {
|
|
1998
|
+
types.push(type);
|
|
1999
|
+
}
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
2002
|
+
return types;
|
|
2003
|
+
}
|