@oneuptime/common 16.0.0 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/AnalyticsModels/RumProductAnalyticsEvent.js +15 -6
- package/Models/AnalyticsModels/RumProductAnalyticsSession.js +27 -10
- package/Models/AnalyticsModels/RumProductAnalyticsUser.js +16 -4
- package/Models/AnalyticsModels/RumSession.js +12 -0
- package/Models/DatabaseModels/AlertSeverity.js +12 -3
- package/Models/DatabaseModels/DataAsset.d.mts +1 -0
- package/Models/DatabaseModels/DataAsset.d.ts +1 -0
- package/Models/DatabaseModels/DataAsset.js +23 -0
- package/Models/DatabaseModels/DataBiConnection.d.mts +2 -1
- package/Models/DatabaseModels/DataBiConnection.d.ts +2 -1
- package/Models/DatabaseModels/DataBiConnection.js +15 -0
- package/Models/DatabaseModels/DataCheck.d.mts +3 -0
- package/Models/DatabaseModels/DataCheck.d.ts +3 -0
- package/Models/DatabaseModels/DataCheck.js +49 -0
- package/Models/DatabaseModels/DataDashboard.d.mts +1 -0
- package/Models/DatabaseModels/DataDashboard.d.ts +1 -0
- package/Models/DatabaseModels/DataDashboard.js +15 -0
- package/Models/DatabaseModels/DataPipeline.d.mts +1 -0
- package/Models/DatabaseModels/DataPipeline.d.ts +1 -0
- package/Models/DatabaseModels/DataPipeline.js +25 -0
- package/Models/DatabaseModels/DataPipelineOwnerTeam.d.mts +19 -0
- package/Models/DatabaseModels/DataPipelineOwnerTeam.d.ts +19 -0
- package/Models/DatabaseModels/DataPipelineOwnerTeam.js +477 -0
- package/Models/DatabaseModels/DataPipelineOwnerTeam.mjs +2 -0
- package/Models/DatabaseModels/DataPipelineOwnerUser.d.mts +18 -0
- package/Models/DatabaseModels/DataPipelineOwnerUser.d.ts +18 -0
- package/Models/DatabaseModels/DataPipelineOwnerUser.js +476 -0
- package/Models/DatabaseModels/DataPipelineOwnerUser.mjs +2 -0
- package/Models/DatabaseModels/DataStore.d.mts +1 -0
- package/Models/DatabaseModels/DataStore.d.ts +1 -0
- package/Models/DatabaseModels/DataStore.js +23 -0
- package/Models/DatabaseModels/DataStoreFinding.d.mts +2 -0
- package/Models/DatabaseModels/DataStoreFinding.d.ts +2 -0
- package/Models/DatabaseModels/DataStoreFinding.js +21 -0
- package/Models/DatabaseModels/EmailLog.d.mts +1 -0
- package/Models/DatabaseModels/EmailLog.d.ts +1 -0
- package/Models/DatabaseModels/EmailLog.js +35 -0
- package/Models/DatabaseModels/GlobalConfig.d.mts +5 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +5 -0
- package/Models/DatabaseModels/GlobalConfig.js +128 -0
- package/Models/DatabaseModels/GlobalOidc.d.mts +1 -0
- package/Models/DatabaseModels/GlobalOidc.d.ts +1 -0
- package/Models/DatabaseModels/GlobalOidc.js +29 -0
- package/Models/DatabaseModels/IncidentSeverity.js +12 -3
- package/Models/DatabaseModels/Index.js +6 -0
- package/Models/DatabaseModels/Monitor.js +18 -0
- package/Models/DatabaseModels/NetworkDevice.d.mts +1 -0
- package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
- package/Models/DatabaseModels/NetworkDevice.js +49 -0
- package/Models/DatabaseModels/NetworkDeviceAutoImportRule.js +2 -2
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRule.js +1 -1
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.mts +6 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.d.ts +6 -0
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +156 -1
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayer.js +1 -1
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayerUser.js +1 -1
- package/Models/DatabaseModels/Probe.d.mts +4 -0
- package/Models/DatabaseModels/Probe.d.ts +4 -0
- package/Models/DatabaseModels/Probe.js +100 -0
- package/Models/DatabaseModels/ProductFeedback.d.mts +2 -1
- package/Models/DatabaseModels/ProductFeedback.d.ts +2 -1
- package/Models/DatabaseModels/ProductFeedback.js +34 -2
- package/Models/DatabaseModels/Project.d.mts +4 -1
- package/Models/DatabaseModels/Project.d.ts +4 -1
- package/Models/DatabaseModels/Project.js +147 -7
- package/Models/DatabaseModels/ProjectCallSMSConfig.js +8 -2
- package/Models/DatabaseModels/ProjectOidc.d.mts +1 -0
- package/Models/DatabaseModels/ProjectOidc.d.ts +1 -0
- package/Models/DatabaseModels/ProjectOidc.js +46 -0
- package/Models/DatabaseModels/Reseller.js +8 -2
- package/Models/DatabaseModels/ResellerPlan.js +12 -3
- package/Models/DatabaseModels/RumApplication.d.mts +1 -0
- package/Models/DatabaseModels/RumApplication.d.ts +1 -0
- package/Models/DatabaseModels/RumApplication.js +58 -0
- package/Models/DatabaseModels/RumSessionErasureRequest.d.mts +1 -0
- package/Models/DatabaseModels/RumSessionErasureRequest.d.ts +1 -0
- package/Models/DatabaseModels/RumSessionErasureRequest.js +40 -0
- package/Models/DatabaseModels/SecurityCaseTask.d.mts +1 -0
- package/Models/DatabaseModels/SecurityCaseTask.d.ts +1 -0
- package/Models/DatabaseModels/SecurityCaseTask.js +27 -0
- package/Models/DatabaseModels/ServerEmailLog.d.mts +12 -0
- package/Models/DatabaseModels/ServerEmailLog.d.ts +12 -0
- package/Models/DatabaseModels/ServerEmailLog.js +206 -0
- package/Models/DatabaseModels/ServerEmailLog.mjs +2 -0
- package/Models/DatabaseModels/StatusPageGroup.js +1 -1
- package/Models/DatabaseModels/StatusPageResource.js +1 -1
- package/Models/DatabaseModels/TelemetryException.js +15 -2
- package/Models/DatabaseModels/TelemetryIngestionKey.js +10 -0
- package/Models/DatabaseModels/User.d.mts +3 -0
- package/Models/DatabaseModels/User.d.ts +3 -0
- package/Models/DatabaseModels/User.js +66 -0
- package/Models/DatabaseModels/UserSession.d.mts +1 -0
- package/Models/DatabaseModels/UserSession.d.ts +1 -0
- package/Models/DatabaseModels/UserSession.js +32 -0
- package/Models/DatabaseModels/WorkspaceLiveMessage.js +21 -15
- package/Models/DatabaseModels/WorkspaceNotificationLog.js +17 -9
- package/Models/DatabaseModels/WorkspaceNotificationRule.js +8 -2
- package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
- package/Server/Services/DatabaseService.d.mts +6 -0
- package/Server/Services/DatabaseService.d.ts +6 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.mts +1 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.ts +1 -0
- package/Types/AI/AIActionWords.js +1 -0
- package/Types/AI/AIChatPageContext.d.mts +1 -0
- package/Types/AI/AIChatPageContext.d.ts +1 -0
- package/Types/AI/AIChatPageContext.js +6 -0
- package/Types/AI/AIRunProducts.d.mts +14 -0
- package/Types/AI/AIRunProducts.d.ts +14 -0
- package/Types/AI/AIRunProducts.js +40 -0
- package/Types/AI/AIRunProducts.mjs +2 -0
- package/Types/AI/AskAiRatings.d.mts +31 -0
- package/Types/AI/AskAiRatings.d.ts +31 -0
- package/Types/AI/AskAiRatings.js +173 -0
- package/Types/AI/AskAiRatings.mjs +13 -0
- package/Types/Accounts/SignUpInvitation.d.mts +12 -0
- package/Types/Accounts/SignUpInvitation.d.ts +12 -0
- package/Types/Accounts/SignUpInvitation.js +84 -0
- package/Types/Accounts/SignUpInvitation.mjs +5 -0
- package/Types/Analytics/ActivationMilestone.d.mts +2 -1
- package/Types/Analytics/ActivationMilestone.d.ts +2 -1
- package/Types/Analytics/ActivationMilestone.js +11 -0
- package/Types/Analytics/ProductEvent.d.mts +11 -0
- package/Types/Analytics/ProductEvent.d.ts +11 -0
- package/Types/Analytics/ProductEvent.js +166 -13
- package/Types/Analytics/ProductEvent.mjs +3 -0
- package/Types/Backup/BackupScriptRun.d.mts +17 -0
- package/Types/Backup/BackupScriptRun.d.ts +17 -0
- package/Types/Backup/BackupScriptRun.js +96 -0
- package/Types/Backup/BackupScriptRun.mjs +6 -0
- package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.mts +2 -0
- package/Types/BaseDatabase/DatabaseCommonInteractionProps.d.ts +2 -0
- package/Types/BaseDatabase/ReadAudience.d.mts +9 -0
- package/Types/BaseDatabase/ReadAudience.d.ts +9 -0
- package/Types/BaseDatabase/ReadAudience.js +2 -0
- package/Types/BaseDatabase/ReadAudience.mjs +1 -0
- package/Types/Cloud/CloudKeyMetricGroup.d.mts +17 -0
- package/Types/Cloud/CloudKeyMetricGroup.d.ts +17 -0
- package/Types/Cloud/CloudKeyMetricGroup.js +84 -0
- package/Types/Cloud/CloudKeyMetricGroup.mjs +5 -0
- package/Types/Cloud/CloudKeyMetrics.d.mts +28 -1
- package/Types/Cloud/CloudKeyMetrics.d.ts +28 -1
- package/Types/Cloud/CloudKeyMetrics.js +1209 -206
- package/Types/Cloud/CloudKeyMetrics.mjs +6 -0
- package/Types/Cloud/CloudResourceCatalog.js +43 -12
- package/Types/CloudConnection/CloudConnectionSetupCommands.d.mts +1 -0
- package/Types/CloudConnection/CloudConnectionSetupCommands.d.ts +1 -0
- package/Types/CloudConnection/CloudConnectionSetupCommands.js +49 -6
- package/Types/CloudConnection/CloudConnectionSetupCommands.mjs +1 -0
- package/Types/CloudConnection/CloudStreamTemplate.js +6 -2
- package/Types/CreateFormAddress.d.mts +3 -0
- package/Types/CreateFormAddress.d.ts +3 -0
- package/Types/CreateFormAddress.js +17 -0
- package/Types/CreateFormAddress.mjs +4 -0
- package/Types/DataObservability/DataAssetFreshness.d.mts +5 -0
- package/Types/DataObservability/DataAssetFreshness.d.ts +5 -0
- package/Types/DataObservability/DataAssetFreshness.js +28 -5
- package/Types/DataObservability/DataAssetFreshness.mjs +1 -0
- package/Types/DataObservability/DataBiLineage.d.mts +69 -0
- package/Types/DataObservability/DataBiLineage.d.ts +69 -0
- package/Types/DataObservability/DataBiLineage.js +198 -0
- package/Types/DataObservability/DataBiLineage.mjs +13 -0
- package/Types/DataObservability/DataLineageColumnTrail.d.mts +2 -1
- package/Types/DataObservability/DataLineageColumnTrail.d.ts +2 -1
- package/Types/DataObservability/DataLineageColumnTrail.js +41 -3
- package/Types/DataObservability/DataLineageColumnTrail.mjs +1 -0
- package/Types/DataObservability/DataLineageMap.d.mts +67 -1
- package/Types/DataObservability/DataLineageMap.d.ts +67 -1
- package/Types/DataObservability/DataLineageMap.js +335 -3
- package/Types/DataObservability/DataLineageMap.mjs +14 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.mts +42 -2
- package/Types/DataObservability/DataObservabilityApiTypes.d.ts +42 -2
- package/Types/DataObservability/DataObservabilityApiTypes.js +21 -1
- package/Types/DataObservability/DataObservabilityApiTypes.mjs +4 -0
- package/Types/DataObservability/DataObservabilityAttention.d.mts +5 -0
- package/Types/DataObservability/DataObservabilityAttention.d.ts +5 -0
- package/Types/DataObservability/DataObservabilityAttention.js +48 -1
- package/Types/DataObservability/DataObservabilityAttention.mjs +5 -0
- package/Types/DataObservability/DataPipelineSchedule.d.mts +4 -0
- package/Types/DataObservability/DataPipelineSchedule.d.ts +4 -0
- package/Types/DataObservability/DataPipelineSchedule.js +26 -6
- package/Types/DataObservability/DataPipelineSchedule.mjs +1 -0
- package/Types/DataObservability/DataTableLineage.d.mts +6 -0
- package/Types/DataObservability/DataTableLineage.d.ts +6 -0
- package/Types/DataSecurity/DataSecurityApiTypes.d.mts +24 -0
- package/Types/DataSecurity/DataSecurityApiTypes.d.ts +24 -0
- package/Types/DataSecurity/DataSecurityApiTypes.js +21 -1
- package/Types/DataSecurity/DataSecurityApiTypes.mjs +2 -0
- package/Types/DataSecurity/FindingSampleRecord.d.mts +16 -0
- package/Types/DataSecurity/FindingSampleRecord.d.ts +16 -0
- package/Types/DataSecurity/FindingSampleRecord.js +112 -0
- package/Types/DataSecurity/FindingSampleRecord.mjs +6 -0
- package/Types/Database/AccessControl/PermissionScopeNarrowing.js +6 -0
- package/Types/Database/MoveInList.d.mts +41 -0
- package/Types/Database/MoveInList.d.ts +41 -0
- package/Types/Database/MoveInList.js +177 -0
- package/Types/Database/MoveInList.mjs +4 -0
- package/Types/Email/ServerEmailLog.d.mts +41 -0
- package/Types/Email/ServerEmailLog.d.ts +41 -0
- package/Types/Email/ServerEmailLog.js +136 -0
- package/Types/Email/ServerEmailLog.mjs +11 -0
- package/Types/Exception/ProductSwitchedOffException.d.mts +12 -0
- package/Types/Exception/ProductSwitchedOffException.d.ts +12 -0
- package/Types/Exception/ProductSwitchedOffException.js +38 -0
- package/Types/Exception/ProductSwitchedOffException.mjs +2 -0
- package/Types/Exception/UnexplainedError.d.mts +7 -0
- package/Types/Exception/UnexplainedError.d.ts +7 -0
- package/Types/Exception/UnexplainedError.js +36 -1
- package/Types/Exception/UnexplainedError.mjs +2 -0
- package/Types/InstallationHealth/InstallationHealth.d.mts +39 -0
- package/Types/InstallationHealth/InstallationHealth.d.ts +39 -0
- package/Types/InstallationHealth/InstallationHealth.js +163 -0
- package/Types/Kubernetes/KubernetesHealth.d.mts +16 -0
- package/Types/Kubernetes/KubernetesHealth.d.ts +16 -0
- package/Types/Kubernetes/KubernetesHealth.js +128 -6
- package/Types/Kubernetes/KubernetesHealth.mjs +2 -0
- package/Types/Monitor/CloudAppAlertTemplates.d.mts +3 -13
- package/Types/Monitor/CloudAppAlertTemplates.d.ts +3 -13
- package/Types/Monitor/CloudAppAlertTemplates.js +13 -199
- package/Types/Monitor/CriteriaFilter.d.mts +2 -1
- package/Types/Monitor/CriteriaFilter.d.ts +2 -1
- package/Types/Monitor/CriteriaFilter.js +9 -1
- package/Types/Monitor/CriteriaFilterTerms.js +1 -0
- package/Types/Monitor/MessageQueueAlertTemplates.d.mts +6 -0
- package/Types/Monitor/MessageQueueAlertTemplates.d.ts +6 -0
- package/Types/Monitor/MessageQueueAlertTemplates.js +32 -0
- package/Types/Monitor/MessageQueueAlertTemplates.mjs +2 -0
- package/Types/Monitor/MonitorCriteriaInstance.d.mts +2 -0
- package/Types/Monitor/MonitorCriteriaInstance.d.ts +2 -0
- package/Types/Monitor/MonitorCriteriaInstance.js +52 -0
- package/Types/Monitor/MonitorMetricType.d.mts +2 -1
- package/Types/Monitor/MonitorMetricType.d.ts +2 -1
- package/Types/Monitor/MonitorMetricType.js +1 -0
- package/Types/Monitor/MonitorStepLimit.d.mts +8 -0
- package/Types/Monitor/MonitorStepLimit.d.ts +8 -0
- package/Types/Monitor/MonitorStepLimit.js +62 -0
- package/Types/Monitor/MonitorStepLimit.mjs +3 -0
- package/Types/Monitor/MonitorSteps.js +5 -0
- package/Types/Monitor/MonitorType.js +2 -1
- package/Types/Monitor/ProbeStatusMonitor/ProbeStatusMonitorResponse.d.mts +5 -0
- package/Types/Monitor/ProbeStatusMonitor/ProbeStatusMonitorResponse.d.ts +5 -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 +111 -1
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.mts +7 -1
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.d.ts +7 -1
- package/Types/Monitor/Recommendation/MonitorRecommendationTypes.js +15 -0
- package/Types/Monitor/RequestHealthAlertTemplates.d.mts +66 -0
- package/Types/Monitor/RequestHealthAlertTemplates.d.ts +66 -0
- package/Types/Monitor/RequestHealthAlertTemplates.js +227 -0
- package/Types/Monitor/RequestHealthAlertTemplates.mjs +4 -0
- package/Types/Monitor/ServerlessAlertTemplates.d.mts +23 -0
- package/Types/Monitor/ServerlessAlertTemplates.d.ts +23 -0
- package/Types/Monitor/ServerlessAlertTemplates.js +111 -0
- package/Types/Monitor/ServerlessAlertTemplates.mjs +7 -0
- package/Types/Monitor/ServiceAlertTemplates.d.mts +3 -0
- package/Types/Monitor/ServiceAlertTemplates.d.ts +3 -0
- package/Types/Monitor/ServiceAlertTemplates.js +61 -0
- package/Types/Monitor/ServiceAlertTemplates.mjs +2 -0
- package/Types/Monitor/TelemetryRulePreview.js +18 -6
- package/Types/Monitor/WhoIsTold.d.mts +71 -0
- package/Types/Monitor/WhoIsTold.d.ts +71 -0
- package/Types/Monitor/WhoIsTold.js +348 -121
- package/Types/Monitor/WhoIsTold.mjs +7 -0
- package/Types/NetworkAutomation/RuleRunResult.js +9 -5
- package/Types/NetworkDevice/DiscoveredDevice.d.mts +40 -0
- package/Types/NetworkDevice/DiscoveredDevice.d.ts +40 -0
- package/Types/NetworkDevice/DiscoveredDevice.js +205 -1
- package/Types/NetworkDevice/DiscoveredDevice.mjs +9 -0
- package/Types/NetworkDevice/DiscoveryImport.js +8 -3
- package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.d.mts +26 -3
- package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.d.ts +26 -3
- package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.js +75 -3
- package/Types/NetworkDevice/NetworkDeviceDiscoveredDetails.mjs +2 -0
- package/Types/Notification/WhoWasTold.d.mts +190 -0
- package/Types/Notification/WhoWasTold.d.ts +190 -0
- package/Types/Notification/WhoWasTold.js +662 -0
- package/Types/Notification/WhoWasTold.mjs +16 -0
- package/Types/NotificationRule/PagingLadderDefault.d.mts +75 -0
- package/Types/NotificationRule/PagingLadderDefault.d.ts +75 -0
- package/Types/NotificationRule/PagingLadderDefault.js +529 -0
- package/Types/NotificationRule/PagingLadderDefault.mjs +24 -0
- package/Types/OnCallDutyPolicy/EveryNewEventRules.d.mts +7 -0
- package/Types/OnCallDutyPolicy/EveryNewEventRules.d.ts +7 -0
- package/Types/OnCallDutyPolicy/EveryNewEventRules.js +53 -2
- package/Types/OnCallDutyPolicy/EveryNewEventRules.mjs +3 -0
- package/Types/OnCallDutyPolicy/NotificationSetupToFinish.d.mts +6 -0
- package/Types/OnCallDutyPolicy/NotificationSetupToFinish.d.ts +6 -0
- package/Types/OnCallDutyPolicy/NotificationSetupToFinish.js +27 -0
- package/Types/OnCallDutyPolicy/NotificationSetupToFinish.mjs +3 -0
- package/Types/OnCallDutyPolicy/OnCallFireDrill.d.mts +83 -0
- package/Types/OnCallDutyPolicy/OnCallFireDrill.d.ts +83 -0
- package/Types/OnCallDutyPolicy/OnCallFireDrill.js +105 -0
- package/Types/OnCallDutyPolicy/OnCallFireDrill.mjs +9 -0
- package/Types/OnCallDutyPolicy/OnCallPagePassOn.js +12 -4
- package/Types/OnCallDutyPolicy/OnCallRunLevel.d.mts +12 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.d.ts +12 -0
- package/Types/OnCallDutyPolicy/OnCallRunLevel.js +69 -8
- package/Types/OnCallDutyPolicy/OnCallRunLevel.mjs +3 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +4 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +4 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.js +20 -7
- package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +2 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.mts +2 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.ts +2 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.js +14 -1
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.mjs +2 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.d.mts +7 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.d.ts +7 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.js +63 -1
- package/Types/OnCallDutyPolicy/UserOverrideEdit.mjs +4 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.mts +21 -1
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.ts +21 -1
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.js +46 -2
- package/Types/Permission.d.mts +8 -0
- package/Types/Permission.d.ts +8 -0
- package/Types/Permission.js +84 -0
- package/Types/Probe/ProbeBehind.d.mts +48 -0
- package/Types/Probe/ProbeBehind.d.ts +48 -0
- package/Types/Probe/ProbeBehind.js +196 -0
- package/Types/Probe/ProbeBehind.mjs +6 -0
- package/Types/Product/ProductRecordTables.d.mts +8 -0
- package/Types/Product/ProductRecordTables.d.ts +8 -0
- package/Types/Product/ProductRecordTables.js +847 -0
- package/Types/Product/ProductRecordTables.mjs +5 -0
- package/Types/Product/ProductUsage.d.mts +2 -0
- package/Types/Product/ProductUsage.d.ts +2 -0
- package/Types/Product/ProductUsage.js +41 -6
- package/Types/Product/ProductUsage.mjs +2 -0
- package/Types/Product/ServerProductOffReason.d.mts +4 -0
- package/Types/Product/ServerProductOffReason.d.ts +4 -0
- package/Types/Product/ServerProductOffReason.js +19 -0
- package/Types/Product/ServerProductOffReason.mjs +2 -0
- package/Types/Product/ServerProducts.d.mts +2 -4
- package/Types/Product/ServerProducts.d.ts +2 -4
- package/Types/Product/ServerProducts.js +19 -17
- package/Types/ProductFeedback/ProductFeedback.d.mts +45 -1
- package/Types/ProductFeedback/ProductFeedback.d.ts +45 -1
- package/Types/ProductFeedback/ProductFeedback.js +185 -5
- package/Types/ProductFeedback/ProductFeedback.mjs +11 -0
- package/Types/PushNotification/PushNotificationCategory.d.mts +1 -0
- package/Types/PushNotification/PushNotificationCategory.d.ts +1 -0
- package/Types/PushNotification/PushNotificationCategory.js +17 -6
- package/Types/PushNotification/PushNotificationCategory.mjs +1 -0
- package/Types/Rules/RuleCriteriaFieldRegistry.d.mts +18 -0
- package/Types/Rules/RuleCriteriaFieldRegistry.d.ts +18 -0
- package/Types/Rules/RuleCriteriaFieldRegistry.js +34 -1
- package/Types/Rules/RuleCriteriaFieldRegistry.mjs +4 -0
- package/Types/Rum/ProductAnalytics.d.mts +9 -0
- package/Types/Rum/ProductAnalytics.d.ts +9 -0
- package/Types/Rum/ProductAnalytics.js +56 -8
- package/Types/Rum/ProductAnalytics.mjs +6 -0
- package/Types/Rum/ProductAnalyticsEvents.js +2 -1
- package/Types/Rum/SessionReplay.d.mts +3 -0
- package/Types/Rum/SessionReplay.d.ts +3 -0
- package/Types/Rum/SessionReplay.js +35 -1
- package/Types/Rum/SessionReplay.mjs +2 -0
- package/Types/Runbook/RunbookTriggerType.d.mts +1 -0
- package/Types/Runbook/RunbookTriggerType.d.ts +1 -0
- package/Types/Runbook/RunbookTriggerType.js +19 -1
- package/Types/Runbook/RunbookTriggerType.mjs +1 -0
- package/Types/SSO/IdentityProviderSignOut.d.mts +24 -0
- package/Types/SSO/IdentityProviderSignOut.d.ts +24 -0
- package/Types/SSO/IdentityProviderSignOut.js +124 -0
- package/Types/SSO/IdentityProviderSignOut.mjs +10 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.d.mts +4 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.d.ts +4 -0
- package/Types/SecurityCase/SecurityCaseEventEvidence.js +12 -0
- package/Types/SecurityCase/SecurityCaseMatches.d.mts +78 -0
- package/Types/SecurityCase/SecurityCaseMatches.d.ts +78 -0
- package/Types/SecurityCase/SecurityCaseMatches.js +252 -0
- package/Types/SecurityCase/SecurityCaseMatches.mjs +17 -0
- package/Types/ServerSending/ProjectCanSend.d.mts +10 -0
- package/Types/ServerSending/ProjectCanSend.d.ts +10 -0
- package/Types/ServerSending/ProjectCanSend.js +49 -0
- package/Types/ServerSending/ProjectCanSend.mjs +4 -0
- package/Types/ServerSending/ServerAlerts.d.mts +78 -0
- package/Types/ServerSending/ServerAlerts.d.ts +78 -0
- package/Types/ServerSending/ServerAlerts.js +393 -0
- package/Types/ServerSending/ServerAlerts.mjs +8 -0
- package/Types/ServerSending/ServerSendingStatus.d.mts +6 -0
- package/Types/ServerSending/ServerSendingStatus.d.ts +6 -0
- package/Types/ServerSending/ServerSendingStatus.js +23 -0
- package/Types/ServerSending/ServerSetUpProblem.d.mts +46 -0
- package/Types/ServerSending/ServerSetUpProblem.d.ts +46 -0
- package/Types/ServerSending/ServerSetUpProblem.js +164 -0
- package/Types/ServerSending/ServerSetUpProblem.mjs +6 -0
- package/Types/ServerSetup/ServerSetupChecklist.d.mts +35 -1
- package/Types/ServerSetup/ServerSetupChecklist.d.ts +35 -1
- package/Types/ServerSetup/ServerSetupChecklist.js +270 -33
- package/Types/ServerSetup/ServerSetupChecklist.mjs +5 -0
- package/Types/ServerSetup/ServerTestSend.d.mts +11 -0
- package/Types/ServerSetup/ServerTestSend.d.ts +11 -0
- package/Types/ServerSetup/ServerTestSend.js +60 -3
- package/Types/ServerSetup/ServerTestSend.mjs +2 -0
- package/Types/ServiceLevelObjective/SloStatus.d.mts +3 -0
- package/Types/ServiceLevelObjective/SloStatus.d.ts +3 -0
- package/Types/ServiceLevelObjective/SloStatus.js +38 -0
- package/Types/ServiceLevelObjective/SloStatus.mjs +2 -0
- package/Types/ServiceLevelObjective/SloStatusChange.d.mts +10 -0
- package/Types/ServiceLevelObjective/SloStatusChange.d.ts +10 -0
- package/Types/ServiceLevelObjective/SloStatusChange.js +71 -0
- package/Types/ServiceLevelObjective/SloStatusChange.mjs +5 -0
- package/Types/SetupHealth/SetupHealth.d.mts +31 -3
- package/Types/SetupHealth/SetupHealth.d.ts +31 -3
- package/Types/SetupHealth/SetupHealth.js +333 -4
- package/Types/SetupHealth/SetupHealth.mjs +5 -0
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.js +8 -5
- package/Types/StatusPage/StatusPagePublicName.d.mts +6 -0
- package/Types/StatusPage/StatusPagePublicName.d.ts +6 -0
- package/Types/StatusPage/StatusPagePublicName.js +32 -0
- package/Types/StatusPage/StatusPagePublicName.mjs +3 -0
- package/Types/Team/InvitationEmailsNotSent.d.mts +28 -0
- package/Types/Team/InvitationEmailsNotSent.d.ts +28 -0
- package/Types/Team/InvitationEmailsNotSent.js +261 -0
- package/Types/Team/InvitationEmailsNotSent.mjs +13 -0
- package/Types/Team/ProjectMemberSearch.d.mts +15 -0
- package/Types/Team/ProjectMemberSearch.d.ts +15 -0
- package/Types/Team/ProjectMemberSearch.js +180 -0
- package/Types/Team/ProjectMemberSearch.mjs +10 -0
- package/Types/Team/ProjectRemovalReach.d.mts +15 -0
- package/Types/Team/ProjectRemovalReach.d.ts +15 -0
- package/Types/Team/ProjectRemovalReach.js +154 -0
- package/Types/Team/ProjectRemovalReach.mjs +8 -0
- package/Types/Team/ResendInvitation.d.mts +27 -0
- package/Types/Team/ResendInvitation.d.ts +27 -0
- package/Types/Team/ResendInvitation.js +123 -0
- package/Types/Team/ResendInvitation.mjs +12 -0
- package/Types/UsedBy/UsedBy.d.mts +1 -0
- package/Types/UsedBy/UsedBy.d.ts +1 -0
- package/Types/UsedBy/UsedBy.js +2 -0
- package/Types/UsedBy/UsedByServerProducts.js +1 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +27 -4
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +27 -4
- package/Types/WelcomeChecklist/WelcomeChecklist.js +166 -42
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +8 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +4 -1
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +4 -1
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +175 -33
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.mjs +1 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.d.mts +1 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.d.ts +1 -0
- package/Types/WelcomeChecklist/WelcomeChecklistState.js +30 -1
- package/Types/WelcomeChecklist/WelcomeChecklistState.mjs +1 -0
- package/Types/Workflow/Component.d.mts +0 -1
- package/Types/Workflow/Component.d.ts +0 -1
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +1 -1
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +1 -1
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +23 -0
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +23 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +12 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +12 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +106 -4
- package/Types/Workspace/WorkspaceMessagePayload.d.mts +2 -0
- package/Types/Workspace/WorkspaceMessagePayload.d.ts +2 -0
- package/Types/Workspace/WorkspaceMessagePayload.js +6 -1
- package/Types/Workspace/WorkspaceMessagePayload.mjs +1 -0
- package/UI/Components/Dropdown/Dropdown.d.mts +2 -0
- package/UI/Components/Dropdown/Dropdown.d.ts +2 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.js +6 -1
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.js +6 -1
- package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +4 -1
- package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +4 -1
- package/Utils/Dashboard/MonitorListWidgetFormat.js +9 -4
- package/Utils/DataSecurity/CustomDataTypeDetector.js +3 -1
- package/Utils/DataSecurity/DetectorPrefilter.d.mts +9 -0
- package/Utils/DataSecurity/DetectorPrefilter.d.ts +9 -0
- package/Utils/DataSecurity/DetectorPrefilter.js +471 -0
- package/Utils/DataSecurity/DetectorPrefilter.mjs +6 -0
- package/Utils/DataSecurity/FieldClassifier.d.mts +2 -0
- package/Utils/DataSecurity/FieldClassifier.d.ts +2 -0
- package/Utils/DataSecurity/FieldClassifier.js +38 -8
- package/Utils/DataSecurity/OccurrenceExcerpt.d.mts +22 -0
- package/Utils/DataSecurity/OccurrenceExcerpt.d.ts +22 -0
- package/Utils/DataSecurity/OccurrenceExcerpt.js +270 -0
- package/Utils/DataSecurity/OccurrenceExcerpt.mjs +5 -0
- package/Utils/DataSecurity/TextScanner.d.mts +4 -0
- package/Utils/DataSecurity/TextScanner.d.ts +4 -0
- package/Utils/Monitor/DeviceMonitorDuplicates.d.mts +34 -0
- package/Utils/Monitor/DeviceMonitorDuplicates.d.ts +34 -0
- package/Utils/Monitor/DeviceMonitorDuplicates.js +134 -0
- package/Utils/Monitor/DeviceMonitorDuplicates.mjs +7 -0
- package/Utils/Monitor/DeviceMonitorTemplateUtil.d.mts +4 -0
- package/Utils/Monitor/DeviceMonitorTemplateUtil.d.ts +4 -0
- package/Utils/Monitor/DeviceMonitorTemplateUtil.js +33 -6
- package/Utils/Monitor/MonitorMetricType.js +11 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +21 -3
- package/Utils/Monitor/ProbeFailureCauses.js +4 -1
- package/Utils/Monitor/ProbeStatusMonitorUtil.d.mts +5 -1
- package/Utils/Monitor/ProbeStatusMonitorUtil.d.ts +5 -1
- package/Utils/Monitor/ProbeStatusMonitorUtil.js +106 -0
- package/Utils/NetworkDevice/NetworkDeviceAssetFacts.d.mts +3 -0
- package/Utils/NetworkDevice/NetworkDeviceAssetFacts.d.ts +3 -0
- package/Utils/NetworkDevice/NetworkDeviceAssetFacts.js +33 -4
- package/Utils/NetworkDevice/NetworkDeviceAssetFacts.mjs +1 -0
- package/Utils/NetworkDevice/NetworkDeviceStoredManufacturer.d.mts +33 -0
- package/Utils/NetworkDevice/NetworkDeviceStoredManufacturer.d.ts +33 -0
- package/Utils/NetworkDevice/NetworkDeviceStoredManufacturer.js +105 -0
- package/Utils/NetworkDevice/NetworkDeviceStoredManufacturer.mjs +8 -0
- package/Utils/NetworkDevice/SnmpCredentialUtil.d.mts +5 -0
- package/Utils/NetworkDevice/SnmpCredentialUtil.d.ts +5 -0
- package/Utils/NetworkDevice/SnmpCredentialUtil.js +28 -3
- package/Utils/NetworkDevice/SnmpCredentialUtil.mjs +3 -0
- package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.d.mts +1 -0
- package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.d.ts +1 -0
- package/Utils/NetworkDiscovery/DiscoveredEndpointDeviceBuilder.js +20 -1
- package/Utils/Rules/RuleCriteriaMatcher.d.mts +1 -0
- package/Utils/Rules/RuleCriteriaMatcher.d.ts +1 -0
- package/Utils/Rules/RuleCriteriaMatcher.js +6 -0
- package/Utils/Rules/RuleCriteriaOwnerMatch.d.mts +10 -0
- package/Utils/Rules/RuleCriteriaOwnerMatch.d.ts +10 -0
- package/Utils/Rules/RuleCriteriaOwnerMatch.js +83 -0
- package/Utils/Rules/RuleCriteriaOwnerMatch.mjs +4 -0
- package/Utils/SecurityCase/SecurityCaseMatchRules.d.mts +27 -0
- package/Utils/SecurityCase/SecurityCaseMatchRules.d.ts +27 -0
- package/Utils/SecurityCase/SecurityCaseMatchRules.js +377 -0
- package/Utils/SecurityCase/SecurityCaseMatchRules.mjs +9 -0
- package/Utils/Slo/SloBulkRecommendedPolicy.d.mts +35 -0
- package/Utils/Slo/SloBulkRecommendedPolicy.d.ts +35 -0
- package/Utils/Slo/SloBulkRecommendedPolicy.js +168 -0
- package/Utils/Slo/SloBulkRecommendedPolicy.mjs +6 -0
- package/Utils/Slo/SloBurnRateRuleState.js +3 -6
- package/Utils/Slo/SloErrorBudgetPolicy.d.mts +17 -0
- package/Utils/Slo/SloErrorBudgetPolicy.d.ts +17 -0
- package/Utils/Slo/SloErrorBudgetPolicy.js +72 -1
- package/Utils/Slo/SloErrorBudgetPolicy.mjs +4 -0
- package/Utils/Slo/SloFeedMarkdown.d.mts +5 -2
- package/Utils/Slo/SloFeedMarkdown.d.ts +5 -2
- package/Utils/Slo/SloFeedMarkdown.js +19 -7
- package/Utils/Slo/SloFeedMarkdown.mjs +1 -0
- package/Utils/Slo/SloHealth.d.mts +5 -0
- package/Utils/Slo/SloHealth.d.ts +5 -0
- package/Utils/Slo/SloHealth.js +27 -0
- package/Utils/Slo/SloListWidgetFormat.js +5 -3
- package/Utils/Slo/SloMetricType.js +6 -5
- package/Utils/Slo/SloMonitorsFirstCheck.d.mts +13 -0
- package/Utils/Slo/SloMonitorsFirstCheck.d.ts +13 -0
- package/Utils/Slo/SloMonitorsFirstCheck.js +78 -0
- package/Utils/Slo/SloMonitorsFirstCheck.mjs +3 -0
- package/Utils/Slo/SloOverviewText.js +7 -0
- package/Utils/Slo/SloStatusColor.d.mts +3 -0
- package/Utils/Slo/SloStatusColor.d.ts +3 -0
- package/Utils/Slo/SloStatusColor.js +3 -0
- package/Utils/Slo/SloStatusPosts.d.mts +18 -0
- package/Utils/Slo/SloStatusPosts.d.ts +18 -0
- package/Utils/Slo/SloStatusPosts.js +95 -0
- package/Utils/Slo/SloStatusPosts.mjs +3 -0
- package/Utils/StatusPage/GridAxisValues.d.mts +2 -0
- package/Utils/StatusPage/GridAxisValues.d.ts +2 -0
- package/Utils/StatusPage/GridAxisValues.js +33 -0
- package/Utils/StatusPage/GridAxisValues.mjs +3 -0
- package/Utils/StatusPage/GroupHierarchyView.d.mts +2 -2
- package/Utils/StatusPage/GroupHierarchyView.d.ts +2 -2
- package/Utils/StatusPage/GroupHierarchyView.js +13 -12
- package/Utils/StatusPage/GroupNestingLayout.d.mts +1 -0
- package/Utils/StatusPage/GroupNestingLayout.d.ts +1 -0
- package/Utils/StatusPage/GroupNestingLayout.js +25 -5
- package/Utils/StatusPage/ResourceExplorer.d.mts +2 -2
- package/Utils/StatusPage/ResourceExplorer.d.ts +2 -2
- package/Utils/StatusPage/ResourceExplorer.js +15 -21
- package/Utils/StatusPage/StatusColorsOnDark.d.mts +5 -3
- package/Utils/StatusPage/StatusColorsOnDark.d.ts +5 -3
- package/Utils/StatusPage/StatusColorsOnDark.js +18 -6
- package/Utils/StatusPage/StatusColorsOnDark.mjs +1 -0
- package/Utils/Telemetry/MobileAppFaults.d.mts +8 -0
- package/Utils/Telemetry/MobileAppFaults.d.ts +8 -0
- package/Utils/Telemetry/MobileAppFaults.js +69 -0
- package/Utils/Telemetry/MobileAppFaults.mjs +6 -0
- package/Utils/Workspace/WorkspaceRefusal.d.mts +108 -0
- package/Utils/Workspace/WorkspaceRefusal.d.ts +108 -0
- package/Utils/Workspace/WorkspaceRefusal.js +769 -0
- package/Utils/Workspace/WorkspaceRefusal.mjs +50 -0
- package/package.json +4 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.KUBERNETES_ATTENTION_KIND_ORDER = exports.KUBERNETES_FAILING_WAIT_REASONS = exports.KUBERNETES_REASON_AS_WRITTEN = exports.KubernetesHealthSeverity = exports.KUBERNETES_HEALTH_RECENT_MS = exports.KUBERNETES_HEALTH_GRACE_MS = void 0;
|
|
3
|
+
exports.KubernetesPodStatusBucket = exports.KUBERNETES_ATTENTION_KIND_ORDER = exports.KUBERNETES_FAILING_WAIT_REASONS = exports.KUBERNETES_REASON_AS_WRITTEN = exports.KubernetesHealthSeverity = exports.KUBERNETES_HEALTH_RECENT_MS = exports.KUBERNETES_HEALTH_GRACE_MS = void 0;
|
|
4
4
|
exports.getKubernetesOwners = getKubernetesOwners;
|
|
5
5
|
exports.getDeploymentNameFromReplicaSet = getDeploymentNameFromReplicaSet;
|
|
6
6
|
exports.getDeploymentConfigNameFromReplicationController = getDeploymentConfigNameFromReplicationController;
|
|
@@ -25,6 +25,7 @@ exports.sortKubernetesAttentionFindings = sortKubernetesAttentionFindings;
|
|
|
25
25
|
exports.getNewestKubernetesJobs = getNewestKubernetesJobs;
|
|
26
26
|
exports.getKubernetesAttentionFindings = getKubernetesAttentionFindings;
|
|
27
27
|
exports.assessKubernetesCronJobWithRuns = assessKubernetesCronJobWithRuns;
|
|
28
|
+
exports.getKubernetesPodStatusBucket = getKubernetesPodStatusBucket;
|
|
28
29
|
exports.getKubernetesClusterHealth = getKubernetesClusterHealth;
|
|
29
30
|
/*
|
|
30
31
|
* WHAT IN A KUBERNETES CLUSTER NEEDS SOMEONE, AND HOW BAD IT IS.
|
|
@@ -129,6 +130,8 @@ const REASON_DISK_PRESSURE = translationKey("Disk pressure");
|
|
|
129
130
|
const REASON_PID_PRESSURE = translationKey("PID pressure");
|
|
130
131
|
const REASON_LAST_RESTART = translationKey("Last restart: {{reason}}");
|
|
131
132
|
const REASON_LAST_RESTART_WITH_CODE = translationKey("Last restart: {{reason}}, exit code {{code}}");
|
|
133
|
+
// How a container's own run ended: "Error, exit code 1".
|
|
134
|
+
const REASON_ENDED_WITH_CODE = translationKey("{{reason}}, exit code {{code}}");
|
|
132
135
|
const REASON_CANNOT_BE_SCHEDULED = translationKey("Can't be scheduled");
|
|
133
136
|
const REASON_PENDING = translationKey("Pending");
|
|
134
137
|
const REASON_EVICTED = translationKey("Evicted");
|
|
@@ -219,12 +222,38 @@ function readContainerStatuses(status, key) {
|
|
|
219
222
|
state: readString(container, "state"),
|
|
220
223
|
reason: readString(container, "reason"),
|
|
221
224
|
message: readString(container, "message"),
|
|
225
|
+
exitCode: readNumber(container, "exitCode"),
|
|
222
226
|
lastTerminationReason: readString(container, "lastTerminationReason"),
|
|
223
227
|
lastTerminationExitCode: readNumber(container, "lastTerminationExitCode"),
|
|
224
228
|
lastTerminatedAt: toTime(container["lastTerminatedAt"]),
|
|
225
229
|
};
|
|
226
230
|
});
|
|
227
231
|
}
|
|
232
|
+
/*
|
|
233
|
+
* Since when a pod has not been ready: its Ready condition's last change
|
|
234
|
+
* while it is not True, else its ContainersReady condition's. Null when
|
|
235
|
+
* Kubernetes recorded neither.
|
|
236
|
+
*/
|
|
237
|
+
function notReadySinceOf(conditions) {
|
|
238
|
+
for (const type of ["Ready", "ContainersReady"]) {
|
|
239
|
+
const condition = findCondition(conditions, type);
|
|
240
|
+
if (condition &&
|
|
241
|
+
condition.status !== "True" &&
|
|
242
|
+
condition.lastTransitionTime !== null) {
|
|
243
|
+
return condition.lastTransitionTime;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
return null;
|
|
247
|
+
}
|
|
248
|
+
// A time Kubernetes recorded, or nothing: never NaN, never null.
|
|
249
|
+
function sinceOf(...times) {
|
|
250
|
+
for (const time of times) {
|
|
251
|
+
if (typeof time === "number" && Number.isFinite(time)) {
|
|
252
|
+
return time;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
return undefined;
|
|
256
|
+
}
|
|
228
257
|
/*
|
|
229
258
|
* Waits that mean a container cannot run as it is: it crashes, its image
|
|
230
259
|
* cannot be pulled, or its configuration is wrong. A container waiting in
|
|
@@ -357,8 +386,22 @@ function lastRestartReason(container) {
|
|
|
357
386
|
}
|
|
358
387
|
return text(REASON_LAST_RESTART, { reason: reason });
|
|
359
388
|
}
|
|
389
|
+
/*
|
|
390
|
+
* How a container's own run ended, in Kubernetes' word with its exit code
|
|
391
|
+
* when that says more: "Error, exit code 1". An OOM kill's code (137) and a
|
|
392
|
+
* clean exit's (0) add nothing to the word.
|
|
393
|
+
*/
|
|
394
|
+
function endedReason(word, exitCode) {
|
|
395
|
+
if (exitCode !== null && exitCode !== 0 && !word.endsWith("OOMKilled")) {
|
|
396
|
+
return text(REASON_ENDED_WITH_CODE, {
|
|
397
|
+
reason: word,
|
|
398
|
+
code: String(exitCode),
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
return asWritten(word);
|
|
402
|
+
}
|
|
360
403
|
function assessKubernetesPod(row, options) {
|
|
361
|
-
var _a, _b;
|
|
404
|
+
var _a, _b, _c;
|
|
362
405
|
const clock = clockOf(row, options);
|
|
363
406
|
const status = asObject(row.status);
|
|
364
407
|
const phase = row.phase || readString(status, "phase");
|
|
@@ -368,6 +411,7 @@ function assessKubernetesPod(row, options) {
|
|
|
368
411
|
const podReason = readString(status, "reason");
|
|
369
412
|
const podMessage = readString(status, "message");
|
|
370
413
|
const workload = getKubernetesPodWorkload(row);
|
|
414
|
+
const createdAt = toTime(row.resourceCreationTimestamp);
|
|
371
415
|
if (phase === "Succeeded") {
|
|
372
416
|
return healthy(text(STATUS_COMPLETED), "neutral");
|
|
373
417
|
}
|
|
@@ -391,7 +435,12 @@ function assessKubernetesPod(row, options) {
|
|
|
391
435
|
const word = failing
|
|
392
436
|
? container.reason
|
|
393
437
|
: `Init:${container.reason}`;
|
|
394
|
-
|
|
438
|
+
// A failed init container ended rather than waits: say how.
|
|
439
|
+
const reasons = [
|
|
440
|
+
container.state === "terminated"
|
|
441
|
+
? endedReason(word, container.exitCode)
|
|
442
|
+
: asWritten(word),
|
|
443
|
+
];
|
|
395
444
|
if (container.lastTerminationReason) {
|
|
396
445
|
reasons.push(lastRestartReason(container));
|
|
397
446
|
}
|
|
@@ -401,6 +450,12 @@ function assessKubernetesPod(row, options) {
|
|
|
401
450
|
tone: "danger",
|
|
402
451
|
reasons: reasons,
|
|
403
452
|
message: container.message || undefined,
|
|
453
|
+
/*
|
|
454
|
+
* Since it stopped being ready - the first crash, the first pull that
|
|
455
|
+
* failed - else since its last run ended, else since it was created.
|
|
456
|
+
*/
|
|
457
|
+
since: sinceOf(notReadySinceOf(conditions), container.lastTerminatedAt, createdAt),
|
|
458
|
+
container: container.name || undefined,
|
|
404
459
|
};
|
|
405
460
|
}
|
|
406
461
|
if (phase === "Failed") {
|
|
@@ -433,7 +488,7 @@ function assessKubernetesPod(row, options) {
|
|
|
433
488
|
evicted ? text(REASON_EVICTED) : text(REASON_FAILED),
|
|
434
489
|
];
|
|
435
490
|
if (!evicted && failedContainer) {
|
|
436
|
-
reasons.push(
|
|
491
|
+
reasons.push(endedReason(failedContainer.reason, failedContainer.exitCode));
|
|
437
492
|
}
|
|
438
493
|
const severity = isRecent && (workload === null || workload === void 0 ? void 0 : workload.kind) !== "Job"
|
|
439
494
|
? KubernetesHealthSeverity.Warning
|
|
@@ -445,6 +500,8 @@ function assessKubernetesPod(row, options) {
|
|
|
445
500
|
tone: severity ? "warning" : "neutral",
|
|
446
501
|
reasons: reasons,
|
|
447
502
|
message: podMessage || (failedContainer === null || failedContainer === void 0 ? void 0 : failedContainer.message) || undefined,
|
|
503
|
+
since: sinceOf(failedAt),
|
|
504
|
+
container: (failedContainer === null || failedContainer === void 0 ? void 0 : failedContainer.name) || undefined,
|
|
448
505
|
};
|
|
449
506
|
}
|
|
450
507
|
if (phase === "Pending") {
|
|
@@ -470,6 +527,9 @@ function assessKubernetesPod(row, options) {
|
|
|
470
527
|
message: (unschedulable ? scheduled === null || scheduled === void 0 ? void 0 : scheduled.message : waiting === null || waiting === void 0 ? void 0 : waiting.message) ||
|
|
471
528
|
podMessage ||
|
|
472
529
|
undefined,
|
|
530
|
+
// Pending since the scheduler gave up on it, else since it was made.
|
|
531
|
+
since: sinceOf(unschedulable ? scheduled === null || scheduled === void 0 ? void 0 : scheduled.lastTransitionTime : null, createdAt),
|
|
532
|
+
container: (waiting === null || waiting === void 0 ? void 0 : waiting.name) || undefined,
|
|
473
533
|
};
|
|
474
534
|
}
|
|
475
535
|
if (phase === "Running") {
|
|
@@ -499,7 +559,7 @@ function assessKubernetesPod(row, options) {
|
|
|
499
559
|
});
|
|
500
560
|
const reasons = [];
|
|
501
561
|
if (justEnded) {
|
|
502
|
-
reasons.push(
|
|
562
|
+
reasons.push(endedReason(justEnded.reason, justEnded.exitCode));
|
|
503
563
|
}
|
|
504
564
|
else if (notReadyLong) {
|
|
505
565
|
reasons.push(text(REASON_NOT_READY));
|
|
@@ -520,6 +580,10 @@ function assessKubernetesPod(row, options) {
|
|
|
520
580
|
message: (justEnded === null || justEnded === void 0 ? void 0 : justEnded.message) ||
|
|
521
581
|
(notReadyLong ? ready === null || ready === void 0 ? void 0 : ready.message : undefined) ||
|
|
522
582
|
undefined,
|
|
583
|
+
since: justEnded || notReadyLong
|
|
584
|
+
? sinceOf(notReadySince)
|
|
585
|
+
: sinceOf(oomKilled === null || oomKilled === void 0 ? void 0 : oomKilled.lastTerminatedAt),
|
|
586
|
+
container: ((_c = (justEnded || (notReadyLong ? notReady[0] : undefined) || oomKilled)) === null || _c === void 0 ? void 0 : _c.name) || undefined,
|
|
523
587
|
};
|
|
524
588
|
}
|
|
525
589
|
return notReady.length > 0
|
|
@@ -533,12 +597,13 @@ function assessKubernetesPod(row, options) {
|
|
|
533
597
|
tone: "warning",
|
|
534
598
|
reasons: [text(REASON_UNKNOWN_STATE)],
|
|
535
599
|
message: podMessage || undefined,
|
|
600
|
+
since: sinceOf(notReadySinceOf(conditions)),
|
|
536
601
|
};
|
|
537
602
|
}
|
|
538
603
|
return healthy(text(STATUS_NO_DATA), "neutral");
|
|
539
604
|
}
|
|
540
605
|
function assessKubernetesNode(row) {
|
|
541
|
-
var _a;
|
|
606
|
+
var _a, _b;
|
|
542
607
|
const status = asObject(row.status);
|
|
543
608
|
const spec = asObject(row.spec);
|
|
544
609
|
const conditions = readConditions(status);
|
|
@@ -566,6 +631,7 @@ function assessKubernetesNode(row) {
|
|
|
566
631
|
tone: "danger",
|
|
567
632
|
reasons: reasons,
|
|
568
633
|
message: (ready === null || ready === void 0 ? void 0 : ready.message) || undefined,
|
|
634
|
+
since: sinceOf(ready === null || ready === void 0 ? void 0 : ready.lastTransitionTime),
|
|
569
635
|
};
|
|
570
636
|
}
|
|
571
637
|
if ((network === null || network === void 0 ? void 0 : network.status) === "True") {
|
|
@@ -575,6 +641,7 @@ function assessKubernetesNode(row) {
|
|
|
575
641
|
tone: "danger",
|
|
576
642
|
reasons: [text(REASON_NETWORK_UNAVAILABLE)],
|
|
577
643
|
message: network.message || undefined,
|
|
644
|
+
since: sinceOf(network.lastTransitionTime),
|
|
578
645
|
};
|
|
579
646
|
}
|
|
580
647
|
const pressures = [
|
|
@@ -608,6 +675,7 @@ function assessKubernetesNode(row) {
|
|
|
608
675
|
return text(pressure.word);
|
|
609
676
|
}),
|
|
610
677
|
message: ((_a = findCondition(conditions, first.condition)) === null || _a === void 0 ? void 0 : _a.message) || undefined,
|
|
678
|
+
since: sinceOf((_b = findCondition(conditions, first.condition)) === null || _b === void 0 ? void 0 : _b.lastTransitionTime),
|
|
611
679
|
};
|
|
612
680
|
}
|
|
613
681
|
if (isCordoned) {
|
|
@@ -790,6 +858,7 @@ function assessKubernetesJob(row) {
|
|
|
790
858
|
tone: "warning",
|
|
791
859
|
reasons: reasons,
|
|
792
860
|
message: failed.message || undefined,
|
|
861
|
+
since: sinceOf(failed.lastTransitionTime),
|
|
793
862
|
};
|
|
794
863
|
}
|
|
795
864
|
const complete = conditions.some((condition) => {
|
|
@@ -1262,8 +1331,61 @@ function assessKubernetesCronJobWithRuns(cronJob, jobs) {
|
|
|
1262
1331
|
}),
|
|
1263
1332
|
],
|
|
1264
1333
|
message: run.message,
|
|
1334
|
+
since: run.since,
|
|
1265
1335
|
};
|
|
1266
1336
|
}
|
|
1337
|
+
/*
|
|
1338
|
+
* ---------------------------------------------------------------------------
|
|
1339
|
+
* How a pod counts in its cluster's hero
|
|
1340
|
+
* ---------------------------------------------------------------------------
|
|
1341
|
+
*
|
|
1342
|
+
* Each pod once, by what kubectl's STATUS column would say of it: a pod
|
|
1343
|
+
* whose container cannot run reads "CrashLoopBackOff" or "ImagePullBackOff"
|
|
1344
|
+
* there, not "Running" or "Pending", although that is still its phase. The
|
|
1345
|
+
* hero counted phases, so "71 Running" held the pods that crash-looped
|
|
1346
|
+
* (#9537). A pod that cannot run is exactly one the rules call critical, so
|
|
1347
|
+
* the server counts it from the verdict ingest stored (healthSeverity) and
|
|
1348
|
+
* names it by the same word this returns
|
|
1349
|
+
* (KubernetesResourceService.getInventorySummary).
|
|
1350
|
+
*/
|
|
1351
|
+
var KubernetesPodStatusBucket;
|
|
1352
|
+
(function (KubernetesPodStatusBucket) {
|
|
1353
|
+
KubernetesPodStatusBucket["Running"] = "running";
|
|
1354
|
+
KubernetesPodStatusBucket["Pending"] = "pending";
|
|
1355
|
+
// A container that cannot run: the bucket's reason says which word.
|
|
1356
|
+
KubernetesPodStatusBucket["CannotRun"] = "cannotRun";
|
|
1357
|
+
KubernetesPodStatusBucket["Failed"] = "failed";
|
|
1358
|
+
KubernetesPodStatusBucket["Succeeded"] = "succeeded";
|
|
1359
|
+
// Kubernetes' own Unknown phase: the pod's node stopped reporting it.
|
|
1360
|
+
KubernetesPodStatusBucket["Unknown"] = "unknown";
|
|
1361
|
+
// No phase recorded yet: nothing to say, and never a problem.
|
|
1362
|
+
KubernetesPodStatusBucket["NoData"] = "noData";
|
|
1363
|
+
})(KubernetesPodStatusBucket || (exports.KubernetesPodStatusBucket = KubernetesPodStatusBucket = {}));
|
|
1364
|
+
function getKubernetesPodStatusBucket(row, options) {
|
|
1365
|
+
var _a;
|
|
1366
|
+
const assessment = assessKubernetesPod(row, options);
|
|
1367
|
+
if (assessment.severity === KubernetesHealthSeverity.Critical) {
|
|
1368
|
+
return {
|
|
1369
|
+
bucket: KubernetesPodStatusBucket.CannotRun,
|
|
1370
|
+
reason: ((_a = assessment.status.values) === null || _a === void 0 ? void 0 : _a["reason"]) || undefined,
|
|
1371
|
+
};
|
|
1372
|
+
}
|
|
1373
|
+
const phase = row.phase || readString(asObject(row.status), "phase");
|
|
1374
|
+
switch (phase) {
|
|
1375
|
+
case "Running":
|
|
1376
|
+
return { bucket: KubernetesPodStatusBucket.Running };
|
|
1377
|
+
case "Pending":
|
|
1378
|
+
return { bucket: KubernetesPodStatusBucket.Pending };
|
|
1379
|
+
case "Failed":
|
|
1380
|
+
return { bucket: KubernetesPodStatusBucket.Failed };
|
|
1381
|
+
case "Succeeded":
|
|
1382
|
+
return { bucket: KubernetesPodStatusBucket.Succeeded };
|
|
1383
|
+
case "Unknown":
|
|
1384
|
+
return { bucket: KubernetesPodStatusBucket.Unknown };
|
|
1385
|
+
default:
|
|
1386
|
+
return { bucket: KubernetesPodStatusBucket.NoData };
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1267
1389
|
/*
|
|
1268
1390
|
* The cluster's health from what needs attention in it: anything critical
|
|
1269
1391
|
* makes it Unhealthy, anything else Degraded, nothing Healthy.
|
|
@@ -5,6 +5,7 @@ export const KUBERNETES_HEALTH_GRACE_MS = commonJsModule.KUBERNETES_HEALTH_GRACE
|
|
|
5
5
|
export const KUBERNETES_HEALTH_RECENT_MS = commonJsModule.KUBERNETES_HEALTH_RECENT_MS;
|
|
6
6
|
export const KUBERNETES_REASON_AS_WRITTEN = commonJsModule.KUBERNETES_REASON_AS_WRITTEN;
|
|
7
7
|
export const KubernetesHealthSeverity = commonJsModule.KubernetesHealthSeverity;
|
|
8
|
+
export const KubernetesPodStatusBucket = commonJsModule.KubernetesPodStatusBucket;
|
|
8
9
|
export const assessKubernetesAutoscaler = commonJsModule.assessKubernetesAutoscaler;
|
|
9
10
|
export const assessKubernetesCronJob = commonJsModule.assessKubernetesCronJob;
|
|
10
11
|
export const assessKubernetesCronJobWithRuns = commonJsModule.assessKubernetesCronJobWithRuns;
|
|
@@ -26,6 +27,7 @@ export const getKubernetesClusterHealth = commonJsModule.getKubernetesClusterHea
|
|
|
26
27
|
export const getKubernetesHealthSeverity = commonJsModule.getKubernetesHealthSeverity;
|
|
27
28
|
export const getKubernetesJobCronJob = commonJsModule.getKubernetesJobCronJob;
|
|
28
29
|
export const getKubernetesOwners = commonJsModule.getKubernetesOwners;
|
|
30
|
+
export const getKubernetesPodStatusBucket = commonJsModule.getKubernetesPodStatusBucket;
|
|
29
31
|
export const getKubernetesPodWorkload = commonJsModule.getKubernetesPodWorkload;
|
|
30
32
|
export const getNewestKubernetesJobs = commonJsModule.getNewestKubernetesJobs;
|
|
31
33
|
export const kubernetesObjectKey = commonJsModule.kubernetesObjectKey;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import Dictionary from "../Dictionary.mjs";
|
|
2
2
|
import ObjectID from "../ObjectID.mjs";
|
|
3
|
-
import
|
|
4
|
-
import MonitorType from "./MonitorType.mjs";
|
|
3
|
+
import { RequestHealthAlertTemplate, RequestHealthAlertTemplateSeverity } from "./RequestHealthAlertTemplates.mjs";
|
|
5
4
|
export type CloudAppAlertTemplateCategory = "Errors" | "Latency" | "Throughput";
|
|
6
|
-
export type CloudAppAlertTemplateSeverity =
|
|
5
|
+
export type CloudAppAlertTemplateSeverity = RequestHealthAlertTemplateSeverity;
|
|
7
6
|
export interface CloudAppAlertTemplateArgs {
|
|
8
7
|
cloudAppId: string;
|
|
9
8
|
telemetryFilters: Dictionary<string>;
|
|
@@ -13,16 +12,7 @@ export interface CloudAppAlertTemplateArgs {
|
|
|
13
12
|
defaultAlertSeverityId: ObjectID;
|
|
14
13
|
monitorName: string;
|
|
15
14
|
}
|
|
16
|
-
export
|
|
17
|
-
id: string;
|
|
18
|
-
name: string;
|
|
19
|
-
summary: string;
|
|
20
|
-
description: string;
|
|
21
|
-
category: CloudAppAlertTemplateCategory;
|
|
22
|
-
severity: CloudAppAlertTemplateSeverity;
|
|
23
|
-
monitorType: MonitorType;
|
|
24
|
-
getMonitorStep: (args: CloudAppAlertTemplateArgs) => MonitorStep;
|
|
25
|
-
}
|
|
15
|
+
export type CloudAppAlertTemplate = RequestHealthAlertTemplate<CloudAppAlertTemplateCategory, CloudAppAlertTemplateArgs>;
|
|
26
16
|
export declare const CLOUD_APP_PLATFORM_FILTER: string;
|
|
27
17
|
export declare const CLOUD_APP_REQUEST_DURATION_METRIC: string;
|
|
28
18
|
export declare function readCloudAppTelemetryFilters(value: unknown): Dictionary<string>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import Dictionary from "../Dictionary";
|
|
2
2
|
import ObjectID from "../ObjectID";
|
|
3
|
-
import
|
|
4
|
-
import MonitorType from "./MonitorType";
|
|
3
|
+
import { RequestHealthAlertTemplate, RequestHealthAlertTemplateSeverity } from "./RequestHealthAlertTemplates";
|
|
5
4
|
export type CloudAppAlertTemplateCategory = "Errors" | "Latency" | "Throughput";
|
|
6
|
-
export type CloudAppAlertTemplateSeverity =
|
|
5
|
+
export type CloudAppAlertTemplateSeverity = RequestHealthAlertTemplateSeverity;
|
|
7
6
|
export interface CloudAppAlertTemplateArgs {
|
|
8
7
|
cloudAppId: string;
|
|
9
8
|
telemetryFilters: Dictionary<string>;
|
|
@@ -13,16 +12,7 @@ export interface CloudAppAlertTemplateArgs {
|
|
|
13
12
|
defaultAlertSeverityId: ObjectID;
|
|
14
13
|
monitorName: string;
|
|
15
14
|
}
|
|
16
|
-
export
|
|
17
|
-
id: string;
|
|
18
|
-
name: string;
|
|
19
|
-
summary: string;
|
|
20
|
-
description: string;
|
|
21
|
-
category: CloudAppAlertTemplateCategory;
|
|
22
|
-
severity: CloudAppAlertTemplateSeverity;
|
|
23
|
-
monitorType: MonitorType;
|
|
24
|
-
getMonitorStep: (args: CloudAppAlertTemplateArgs) => MonitorStep;
|
|
25
|
-
}
|
|
15
|
+
export type CloudAppAlertTemplate = RequestHealthAlertTemplate<CloudAppAlertTemplateCategory, CloudAppAlertTemplateArgs>;
|
|
26
16
|
export declare const CLOUD_APP_PLATFORM_FILTER: string;
|
|
27
17
|
export declare const CLOUD_APP_REQUEST_DURATION_METRIC: string;
|
|
28
18
|
export declare function readCloudAppTelemetryFilters(value: unknown): Dictionary<string>;
|
|
@@ -10,16 +10,9 @@ exports.getAllCloudAppAlertTemplates = getAllCloudAppAlertTemplates;
|
|
|
10
10
|
exports.getCloudAppAlertTemplate = getCloudAppAlertTemplate;
|
|
11
11
|
exports.getCloudAppAlertTemplatesFor = getCloudAppAlertTemplatesFor;
|
|
12
12
|
const Span_1 = require("../../Models/AnalyticsModels/Span");
|
|
13
|
-
const FilterCondition_1 = __importDefault(require("../Filter/FilterCondition"));
|
|
14
13
|
const MetricsAggregationType_1 = __importDefault(require("../Metrics/MetricsAggregationType"));
|
|
15
|
-
const ObjectID_1 = __importDefault(require("../ObjectID"));
|
|
16
|
-
const RollingTime_1 = __importDefault(require("../RollingTime/RollingTime"));
|
|
17
14
|
const CriteriaFilter_1 = require("./CriteriaFilter");
|
|
18
|
-
const
|
|
19
|
-
const MonitorCriteriaInstance_1 = __importDefault(require("./MonitorCriteriaInstance"));
|
|
20
|
-
const MonitorStep_1 = __importDefault(require("./MonitorStep"));
|
|
21
|
-
const MonitorType_1 = __importDefault(require("./MonitorType"));
|
|
22
|
-
const RecommendationCriteriaBuilder_1 = require("./Recommendation/RecommendationCriteriaBuilder");
|
|
15
|
+
const RequestHealthAlertTemplates_1 = require("./RequestHealthAlertTemplates");
|
|
23
16
|
// The attribute an app's platform names it by is part of its own filter.
|
|
24
17
|
const RESOURCE_PREFIX = "resource.";
|
|
25
18
|
// The environment's platform: an app's filter always holds it.
|
|
@@ -32,16 +25,7 @@ exports.CLOUD_APP_REQUEST_DURATION_METRIC = "http.server.request.duration";
|
|
|
32
25
|
* app's own attributes - a platform alone is every app of the environment.
|
|
33
26
|
*/
|
|
34
27
|
function readCloudAppTelemetryFilters(value) {
|
|
35
|
-
|
|
36
|
-
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
37
|
-
return filters;
|
|
38
|
-
}
|
|
39
|
-
for (const [key, raw] of Object.entries(value)) {
|
|
40
|
-
if (key.trim() && typeof raw === "string" && raw.trim()) {
|
|
41
|
-
filters[key.trim()] = raw;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return filters;
|
|
28
|
+
return (0, RequestHealthAlertTemplates_1.readRequestHealthTelemetryFilters)(value);
|
|
45
29
|
}
|
|
46
30
|
function isCloudAppTelemetryScoped(filters) {
|
|
47
31
|
const read = readCloudAppTelemetryFilters(filters);
|
|
@@ -55,191 +39,21 @@ function isCloudAppTelemetryScoped(filters) {
|
|
|
55
39
|
key !== "resource.cloud.region");
|
|
56
40
|
});
|
|
57
41
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
offlineMonitorStatusId: args.offlineMonitorStatusId,
|
|
64
|
-
defaultIncidentSeverityId: args.defaultIncidentSeverityId,
|
|
65
|
-
defaultAlertSeverityId: args.defaultAlertSeverityId,
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
/*
|
|
69
|
-
* A span count over a window, and its mirror: the pair a count needs, so a
|
|
70
|
-
* monitor that fired comes back online once the count is back.
|
|
71
|
-
*/
|
|
72
|
-
function buildSpanCountCriteria(data) {
|
|
73
|
-
const title = `[App] ${data.template.name} - ${data.args.monitorName}`;
|
|
74
|
-
const unhealthy = new MonitorCriteriaInstance_1.default();
|
|
75
|
-
unhealthy.data = {
|
|
76
|
-
id: ObjectID_1.default.generate().toString(),
|
|
77
|
-
monitorStatusId: data.args.offlineMonitorStatusId,
|
|
78
|
-
filterCondition: FilterCondition_1.default.Any,
|
|
79
|
-
filters: [
|
|
80
|
-
{
|
|
81
|
-
checkOn: CriteriaFilter_1.CheckOn.SpanCount,
|
|
82
|
-
filterType: data.unhealthyFilterType,
|
|
83
|
-
value: data.threshold,
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
incidents: [
|
|
87
|
-
{
|
|
88
|
-
title: title,
|
|
89
|
-
description: data.incidentDescription,
|
|
90
|
-
incidentSeverityId: data.args.defaultIncidentSeverityId,
|
|
91
|
-
autoResolveIncident: true,
|
|
92
|
-
id: ObjectID_1.default.generate().toString(),
|
|
93
|
-
onCallPolicyIds: [],
|
|
94
|
-
},
|
|
95
|
-
],
|
|
96
|
-
alerts: [
|
|
97
|
-
{
|
|
98
|
-
title: title,
|
|
99
|
-
description: data.incidentDescription,
|
|
100
|
-
alertSeverityId: data.args.defaultAlertSeverityId,
|
|
101
|
-
autoResolveAlert: true,
|
|
102
|
-
id: ObjectID_1.default.generate().toString(),
|
|
103
|
-
onCallPolicyIds: [],
|
|
104
|
-
},
|
|
105
|
-
],
|
|
106
|
-
changeMonitorStatus: true,
|
|
107
|
-
createIncidents: true,
|
|
108
|
-
createAlerts: true,
|
|
109
|
-
name: data.criteriaName,
|
|
110
|
-
description: data.criteriaDescription,
|
|
111
|
-
};
|
|
112
|
-
const healthy = new MonitorCriteriaInstance_1.default();
|
|
113
|
-
healthy.data = {
|
|
114
|
-
id: ObjectID_1.default.generate().toString(),
|
|
115
|
-
monitorStatusId: data.args.onlineMonitorStatusId,
|
|
116
|
-
filterCondition: FilterCondition_1.default.Any,
|
|
117
|
-
filters: [
|
|
118
|
-
{
|
|
119
|
-
checkOn: CriteriaFilter_1.CheckOn.SpanCount,
|
|
120
|
-
filterType: (0, RecommendationCriteriaBuilder_1.getRecoveryFilterType)(data.unhealthyFilterType),
|
|
121
|
-
value: data.threshold,
|
|
122
|
-
},
|
|
123
|
-
],
|
|
124
|
-
incidents: [],
|
|
125
|
-
alerts: [],
|
|
126
|
-
changeMonitorStatus: true,
|
|
127
|
-
createIncidents: false,
|
|
128
|
-
createAlerts: false,
|
|
129
|
-
name: "Healthy",
|
|
130
|
-
description: `${data.args.monitorName} is within its recommended threshold.`,
|
|
131
|
-
};
|
|
132
|
-
const criteria = new MonitorCriteria_1.default();
|
|
133
|
-
criteria.data = { monitorCriteriaInstanceArray: [unhealthy, healthy] };
|
|
134
|
-
return criteria;
|
|
135
|
-
}
|
|
42
|
+
// How an app is named in the monitors made for it.
|
|
43
|
+
const CLOUD_APP_SCOPE = {
|
|
44
|
+
titlePrefix: "[App]",
|
|
45
|
+
resourceNoun: "app",
|
|
46
|
+
};
|
|
136
47
|
function spanCountTemplate(data) {
|
|
137
|
-
|
|
138
|
-
id: data.id,
|
|
139
|
-
name: data.name,
|
|
140
|
-
summary: data.summary,
|
|
141
|
-
description: data.description,
|
|
142
|
-
category: data.category,
|
|
143
|
-
severity: data.severity,
|
|
144
|
-
monitorType: MonitorType_1.default.Traces,
|
|
145
|
-
getMonitorStep: (args) => {
|
|
146
|
-
const step = emptyStep(args, MonitorType_1.default.Traces);
|
|
147
|
-
step.setTraceMonitor({
|
|
148
|
-
// The app's own spans, as its Traces tab reads them.
|
|
149
|
-
attributes: { ...readCloudAppTelemetryFilters(args.telemetryFilters) },
|
|
150
|
-
spanName: "",
|
|
151
|
-
spanStatuses: data.spanStatuses,
|
|
152
|
-
telemetryServiceIds: [],
|
|
153
|
-
entityKeys: [],
|
|
154
|
-
lastXSecondsOfSpans: data.lastXSecondsOfSpans,
|
|
155
|
-
});
|
|
156
|
-
step.setMonitorCriteria(buildSpanCountCriteria({
|
|
157
|
-
args,
|
|
158
|
-
template,
|
|
159
|
-
unhealthyFilterType: data.unhealthyFilterType,
|
|
160
|
-
threshold: data.threshold,
|
|
161
|
-
criteriaName: data.criteriaName,
|
|
162
|
-
criteriaDescription: data.criteriaDescription,
|
|
163
|
-
incidentDescription: data.incidentDescription,
|
|
164
|
-
}));
|
|
165
|
-
return step;
|
|
166
|
-
},
|
|
167
|
-
};
|
|
168
|
-
return template;
|
|
48
|
+
return (0, RequestHealthAlertTemplates_1.buildSpanCountAlertTemplate)({ ...data, scope: CLOUD_APP_SCOPE });
|
|
169
49
|
}
|
|
170
|
-
/*
|
|
171
|
-
* A latency percentile of the app's requests, held for five minutes: a
|
|
172
|
-
* property of the app, so read over every instance, never per instance.
|
|
173
|
-
* Written in milliseconds: the worker converts the histogram's own unit
|
|
174
|
-
* (seconds, by the semantic convention) to the alias's.
|
|
175
|
-
*/
|
|
176
50
|
function latencyTemplate(data) {
|
|
177
|
-
return {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
summary: data.summary,
|
|
181
|
-
description: data.description,
|
|
51
|
+
return (0, RequestHealthAlertTemplates_1.buildRequestLatencyAlertTemplate)({
|
|
52
|
+
...data,
|
|
53
|
+
scope: CLOUD_APP_SCOPE,
|
|
182
54
|
category: "Latency",
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
getMonitorStep: (args) => {
|
|
186
|
-
const step = emptyStep(args, MonitorType_1.default.Metrics);
|
|
187
|
-
step.setMetricMonitor({
|
|
188
|
-
rollingTime: RollingTime_1.default.Past5Minutes,
|
|
189
|
-
metricViewConfig: {
|
|
190
|
-
queryConfigs: [
|
|
191
|
-
{
|
|
192
|
-
metricAliasData: {
|
|
193
|
-
metricVariable: data.alias,
|
|
194
|
-
title: data.name,
|
|
195
|
-
description: data.name,
|
|
196
|
-
legend: data.name,
|
|
197
|
-
legendUnit: "ms",
|
|
198
|
-
},
|
|
199
|
-
metricQueryData: {
|
|
200
|
-
filterData: {
|
|
201
|
-
metricName: exports.CLOUD_APP_REQUEST_DURATION_METRIC,
|
|
202
|
-
attributes: {
|
|
203
|
-
...readCloudAppTelemetryFilters(args.telemetryFilters),
|
|
204
|
-
},
|
|
205
|
-
aggegationType: data.aggregationType,
|
|
206
|
-
aggregateBy: {},
|
|
207
|
-
},
|
|
208
|
-
},
|
|
209
|
-
},
|
|
210
|
-
],
|
|
211
|
-
formulaConfigs: [],
|
|
212
|
-
},
|
|
213
|
-
});
|
|
214
|
-
const criteria = new MonitorCriteria_1.default();
|
|
215
|
-
criteria.data = {
|
|
216
|
-
monitorCriteriaInstanceArray: [
|
|
217
|
-
(0, RecommendationCriteriaBuilder_1.buildUnhealthyCriteriaInstance)({
|
|
218
|
-
offlineMonitorStatusId: args.offlineMonitorStatusId,
|
|
219
|
-
incidentSeverityId: args.defaultIncidentSeverityId,
|
|
220
|
-
alertSeverityId: args.defaultAlertSeverityId,
|
|
221
|
-
monitorName: args.monitorName,
|
|
222
|
-
metricAlias: data.alias,
|
|
223
|
-
filterType: CriteriaFilter_1.FilterType.GreaterThanOrEqualTo,
|
|
224
|
-
value: data.thresholdMs,
|
|
225
|
-
incidentTitle: `[App] ${data.name} - ${args.monitorName}`,
|
|
226
|
-
incidentDescription: data.incidentDescription,
|
|
227
|
-
criteriaName: `${data.name} - ${data.thresholdLabel} or worse`,
|
|
228
|
-
criteriaDescription: `Triggers when ${exports.CLOUD_APP_REQUEST_DURATION_METRIC} stays at ${data.thresholdLabel} or worse for the whole evaluation window.`,
|
|
229
|
-
resourceNoun: "app",
|
|
230
|
-
}),
|
|
231
|
-
(0, RecommendationCriteriaBuilder_1.buildHealthyCriteriaInstance)({
|
|
232
|
-
onlineMonitorStatusId: args.onlineMonitorStatusId,
|
|
233
|
-
metricAlias: data.alias,
|
|
234
|
-
filterType: CriteriaFilter_1.FilterType.LessThan,
|
|
235
|
-
value: data.thresholdMs,
|
|
236
|
-
}),
|
|
237
|
-
],
|
|
238
|
-
};
|
|
239
|
-
step.setMonitorCriteria(criteria);
|
|
240
|
-
return step;
|
|
241
|
-
},
|
|
242
|
-
};
|
|
55
|
+
metricName: exports.CLOUD_APP_REQUEST_DURATION_METRIC,
|
|
56
|
+
});
|
|
243
57
|
}
|
|
244
58
|
const CLOUD_APP_ALERT_TEMPLATES = [
|
|
245
59
|
spanCountTemplate({
|
|
@@ -114,7 +114,8 @@ export declare enum CheckOn {
|
|
|
114
114
|
ExternalStatusPageActiveIncidents = "External Status Page Active Incidents",
|
|
115
115
|
ExternalStatusPageResponseTime = "External Status Page Response Time (in ms)",
|
|
116
116
|
ConnectedProbes = "Connected Probes",
|
|
117
|
-
DisconnectedProbes = "Disconnected Probes"
|
|
117
|
+
DisconnectedProbes = "Disconnected Probes",
|
|
118
|
+
ProbesBehind = "Probes Behind"
|
|
118
119
|
}
|
|
119
120
|
export interface ServerMonitorOptions {
|
|
120
121
|
diskPath?: string | undefined;
|
|
@@ -114,7 +114,8 @@ export declare enum CheckOn {
|
|
|
114
114
|
ExternalStatusPageActiveIncidents = "External Status Page Active Incidents",
|
|
115
115
|
ExternalStatusPageResponseTime = "External Status Page Response Time (in ms)",
|
|
116
116
|
ConnectedProbes = "Connected Probes",
|
|
117
|
-
DisconnectedProbes = "Disconnected Probes"
|
|
117
|
+
DisconnectedProbes = "Disconnected Probes",
|
|
118
|
+
ProbesBehind = "Probes Behind"
|
|
118
119
|
}
|
|
119
120
|
export interface ServerMonitorOptions {
|
|
120
121
|
diskPath?: string | undefined;
|
|
@@ -243,6 +243,13 @@ var CheckOn;
|
|
|
243
243
|
*/
|
|
244
244
|
CheckOn["ConnectedProbes"] = "Connected Probes";
|
|
245
245
|
CheckOn["DisconnectedProbes"] = "Disconnected Probes";
|
|
246
|
+
/*
|
|
247
|
+
* How many of them are connected but behind: their monitors checked, or
|
|
248
|
+
* their network devices polled, later than their interval
|
|
249
|
+
* (Types/Probe/ProbeBehind, kept once a minute by Probe:UpdateBehind,
|
|
250
|
+
* OneUptime issue #9501). A disconnected probe is never behind.
|
|
251
|
+
*/
|
|
252
|
+
CheckOn["ProbesBehind"] = "Probes Behind";
|
|
246
253
|
})(CheckOn || (exports.CheckOn = CheckOn = {}));
|
|
247
254
|
var EvaluateOverTimeType;
|
|
248
255
|
(function (EvaluateOverTimeType) {
|
|
@@ -709,7 +716,8 @@ class CriteriaFilterUtil {
|
|
|
709
716
|
* three-minute connection cutoff alone would call an outage.
|
|
710
717
|
*/
|
|
711
718
|
checkOn === CheckOn.ConnectedProbes ||
|
|
712
|
-
checkOn === CheckOn.DisconnectedProbes
|
|
719
|
+
checkOn === CheckOn.DisconnectedProbes ||
|
|
720
|
+
checkOn === CheckOn.ProbesBehind);
|
|
713
721
|
}
|
|
714
722
|
}
|
|
715
723
|
exports.CriteriaFilterUtil = CriteriaFilterUtil;
|
|
@@ -130,6 +130,7 @@ exports.CHECK_ON_TERMS = {
|
|
|
130
130
|
[CriteriaFilter_1.CheckOn.ExternalStatusPageResponseTime]: (0, Translator_1.translationKey)("External Status Page Response Time (in ms)"),
|
|
131
131
|
[CriteriaFilter_1.CheckOn.ConnectedProbes]: (0, Translator_1.translationKey)("Connected Probes"),
|
|
132
132
|
[CriteriaFilter_1.CheckOn.DisconnectedProbes]: (0, Translator_1.translationKey)("Disconnected Probes"),
|
|
133
|
+
[CriteriaFilter_1.CheckOn.ProbesBehind]: (0, Translator_1.translationKey)("Probes Behind"),
|
|
133
134
|
};
|
|
134
135
|
exports.FILTER_TYPE_TERMS = {
|
|
135
136
|
[CriteriaFilter_1.FilterType.EqualTo]: (0, Translator_1.translationKey)("Equal To"),
|
|
@@ -211,6 +211,12 @@ export declare function formatMessageQueueThreshold(value: number, unit: string)
|
|
|
211
211
|
* a metric reported in milliseconds).
|
|
212
212
|
*/
|
|
213
213
|
export declare function getMessageQueueAlertPolicy(descriptor: MessageQueueMetricDescriptor): MessageQueueAlertPolicy | null;
|
|
214
|
+
export declare function getAllMessageQueueAlertTemplates(): Array<MessageQueueAlertTemplate>;
|
|
215
|
+
export type MessageQueueObservedSeriesByMetric = Readonly<Record<string, ReadonlyArray<MessageQueueObservedAttributes>>>;
|
|
216
|
+
export declare function getMessageQueueAlertTemplatesFor(data: {
|
|
217
|
+
observedSeriesByMetric?: MessageQueueObservedSeriesByMetric | null | undefined;
|
|
218
|
+
identity?: MessageQueueIdentity | null | undefined;
|
|
219
|
+
}): Array<MessageQueueAlertTemplate>;
|
|
214
220
|
/**
|
|
215
221
|
* The template of one catalog entry, or undefined when the entry has none:
|
|
216
222
|
* where the "Create monitor" link reads its starting threshold, comparison,
|