@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
|
@@ -46,9 +46,10 @@ exports.SERVICE_LEVEL_OBJECTIVE_IDS_METRIC_ATTRIBUTE = "serviceLevelObjectiveIds
|
|
|
46
46
|
exports.SERVICE_LEVEL_OBJECTIVE_NAMES_METRIC_ATTRIBUTE = "serviceLevelObjectiveNames";
|
|
47
47
|
/*
|
|
48
48
|
* Numeric encoding of the Status series. Ordered by severity so the Max
|
|
49
|
-
* aggregation surfaces the worst state inside a chart bucket.
|
|
50
|
-
* and Paused have no entry: those guard paths measure nothing,
|
|
51
|
-
* no point rather than a number that would read as a real
|
|
49
|
+
* aggregation surfaces the worst state inside a chart bucket. Waiting,
|
|
50
|
+
* Misconfigured and Paused have no entry: those guard paths measure nothing,
|
|
51
|
+
* so they post no point rather than a number that would read as a real
|
|
52
|
+
* health state.
|
|
52
53
|
*/
|
|
53
54
|
const STATUS_METRIC_VALUES = [
|
|
54
55
|
{ status: SloStatus_1.default.Healthy, value: 0 },
|
|
@@ -190,8 +191,8 @@ class SloMetricTypeUtil {
|
|
|
190
191
|
}
|
|
191
192
|
/*
|
|
192
193
|
* The value posted on the Status series, or null for a status that must not
|
|
193
|
-
* post one (the Misconfigured and Paused guards, and a status the
|
|
194
|
-
* has not computed yet).
|
|
194
|
+
* post one (the Waiting, Misconfigured and Paused guards, and a status the
|
|
195
|
+
* worker has not computed yet).
|
|
195
196
|
*/
|
|
196
197
|
static getStatusMetricValue(status) {
|
|
197
198
|
for (const entry of STATUS_METRIC_VALUES) {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MonitorFirstCheckFields } from "../Monitor/MonitorFirstCheck.mjs";
|
|
2
|
+
import { MonitorPauseFlags } from "../Monitor/MonitorPauseState.mjs";
|
|
3
|
+
export declare const SLO_MONITOR_FIRST_CHECK_SELECT: {
|
|
4
|
+
monitorType: true;
|
|
5
|
+
firstMeasuredAt: true;
|
|
6
|
+
isArchived: true;
|
|
7
|
+
disableActiveMonitoring: true;
|
|
8
|
+
disableActiveMonitoringBecauseOfManualIncident: true;
|
|
9
|
+
disableActiveMonitoringBecauseOfScheduledMaintenanceEvent: true;
|
|
10
|
+
};
|
|
11
|
+
export type SloMonitorFirstCheckFields = MonitorFirstCheckFields & MonitorPauseFlags;
|
|
12
|
+
export type AreSloMonitorsWaitingForFirstCheckFunction = (monitors: Array<SloMonitorFirstCheckFields> | null | undefined) => boolean;
|
|
13
|
+
export declare const areSloMonitorsWaitingForFirstCheck: AreSloMonitorsWaitingForFirstCheckFunction;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MonitorFirstCheckFields } from "../Monitor/MonitorFirstCheck";
|
|
2
|
+
import { MonitorPauseFlags } from "../Monitor/MonitorPauseState";
|
|
3
|
+
export declare const SLO_MONITOR_FIRST_CHECK_SELECT: {
|
|
4
|
+
monitorType: true;
|
|
5
|
+
firstMeasuredAt: true;
|
|
6
|
+
isArchived: true;
|
|
7
|
+
disableActiveMonitoring: true;
|
|
8
|
+
disableActiveMonitoringBecauseOfManualIncident: true;
|
|
9
|
+
disableActiveMonitoringBecauseOfScheduledMaintenanceEvent: true;
|
|
10
|
+
};
|
|
11
|
+
export type SloMonitorFirstCheckFields = MonitorFirstCheckFields & MonitorPauseFlags;
|
|
12
|
+
export type AreSloMonitorsWaitingForFirstCheckFunction = (monitors: Array<SloMonitorFirstCheckFields> | null | undefined) => boolean;
|
|
13
|
+
export declare const areSloMonitorsWaitingForFirstCheck: AreSloMonitorsWaitingForFirstCheckFunction;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.areSloMonitorsWaitingForFirstCheck = exports.SLO_MONITOR_FIRST_CHECK_SELECT = void 0;
|
|
40
|
+
const MonitorFirstCheck_1 = __importDefault(require("../Monitor/MonitorFirstCheck"));
|
|
41
|
+
const MonitorPauseState_1 = __importStar(require("../Monitor/MonitorPauseState"));
|
|
42
|
+
/*
|
|
43
|
+
* A MONITOR UPTIME SLO WAITING FOR ITS MONITORS' FIRST CHECK (issue #9089).
|
|
44
|
+
*
|
|
45
|
+
* An SLO leaves out the time before each monitor's first check (#9031), so
|
|
46
|
+
* an SLO whose monitors nothing has checked yet measures no time. Nothing is
|
|
47
|
+
* set up wrong: the SLO is measured from their first check, so the
|
|
48
|
+
* evaluation worker gives it a status of its own, Waiting (#9354;
|
|
49
|
+
* EvaluateSlos, the zero-data guard in measureMonitorSlo), where it was
|
|
50
|
+
* Misconfigured before. This is the one rule the worker's status and reason
|
|
51
|
+
* and the SLO page's banner all read, so the page never says "waiting for
|
|
52
|
+
* the first check" of an SLO the worker stopped for another reason, or the
|
|
53
|
+
* other way round.
|
|
54
|
+
*
|
|
55
|
+
* Waiting: at least one attached monitor is not paused (archived or with
|
|
56
|
+
* active monitoring off - an SLO whose monitors are all paused is Paused,
|
|
57
|
+
* and says so), and nothing has measured any of those that are not paused
|
|
58
|
+
* (MonitorFirstCheck.isNeverMeasured). A paused monitor is left out either
|
|
59
|
+
* way: nothing checks it now, so its first check is not what the SLO waits
|
|
60
|
+
* for. A monitor read without firstMeasuredAt counts as measured, as it
|
|
61
|
+
* does everywhere, so a read that forgets the column never claims it.
|
|
62
|
+
*/
|
|
63
|
+
// What each attached monitor is read with before this can answer for it.
|
|
64
|
+
exports.SLO_MONITOR_FIRST_CHECK_SELECT = {
|
|
65
|
+
monitorType: true,
|
|
66
|
+
firstMeasuredAt: true,
|
|
67
|
+
...MonitorPauseState_1.MONITOR_PAUSE_FLAGS_SELECT,
|
|
68
|
+
};
|
|
69
|
+
const areSloMonitorsWaitingForFirstCheck = (monitors) => {
|
|
70
|
+
const monitorsNotPaused = (monitors || []).filter((monitor) => {
|
|
71
|
+
return !MonitorPauseState_1.default.isPaused(monitor);
|
|
72
|
+
});
|
|
73
|
+
return (monitorsNotPaused.length > 0 &&
|
|
74
|
+
monitorsNotPaused.every((monitor) => {
|
|
75
|
+
return MonitorFirstCheck_1.default.isNeverMeasured(monitor);
|
|
76
|
+
}));
|
|
77
|
+
};
|
|
78
|
+
exports.areSloMonitorsWaitingForFirstCheck = areSloMonitorsWaitingForFirstCheck;
|
|
@@ -127,6 +127,13 @@ const getSloHeadline = (data) => {
|
|
|
127
127
|
if (data.isEnabled === false) {
|
|
128
128
|
return "Disabled — not being measured";
|
|
129
129
|
}
|
|
130
|
+
/*
|
|
131
|
+
* Set up right, and measured from its monitors' first check (#9354): the
|
|
132
|
+
* banner's own words, never "Cannot be evaluated".
|
|
133
|
+
*/
|
|
134
|
+
if (data.sloStatus === SloStatus_1.default.Waiting) {
|
|
135
|
+
return "Waiting for the first check";
|
|
136
|
+
}
|
|
130
137
|
if (data.sloStatus === SloStatus_1.default.Misconfigured) {
|
|
131
138
|
return "Cannot be evaluated";
|
|
132
139
|
}
|
|
@@ -6,6 +6,9 @@ import SloStatus from "../../Types/ServiceLevelObjective/SloStatus.mjs";
|
|
|
6
6
|
* Healthy -> Green
|
|
7
7
|
* At Risk -> Yellow
|
|
8
8
|
* Budget Exhausted -> Red
|
|
9
|
+
* Waiting -> Blue (set up right, measured from its monitors' first
|
|
10
|
+
* check: worth knowing, needs nothing - the Info
|
|
11
|
+
* tone's blue)
|
|
9
12
|
* Misconfigured -> Gray (nothing to measure — not a reliability signal)
|
|
10
13
|
* Paused -> Gray (deliberately not being measured)
|
|
11
14
|
* unknown/unset -> Gray (the worker has not evaluated the SLO yet, so
|
|
@@ -6,6 +6,9 @@ import SloStatus from "../../Types/ServiceLevelObjective/SloStatus";
|
|
|
6
6
|
* Healthy -> Green
|
|
7
7
|
* At Risk -> Yellow
|
|
8
8
|
* Budget Exhausted -> Red
|
|
9
|
+
* Waiting -> Blue (set up right, measured from its monitors' first
|
|
10
|
+
* check: worth knowing, needs nothing - the Info
|
|
11
|
+
* tone's blue)
|
|
9
12
|
* Misconfigured -> Gray (nothing to measure — not a reliability signal)
|
|
10
13
|
* Paused -> Gray (deliberately not being measured)
|
|
11
14
|
* unknown/unset -> Gray (the worker has not evaluated the SLO yet, so
|
|
@@ -17,6 +17,9 @@ const getSloStatusColor = (status) => {
|
|
|
17
17
|
if (status === SloStatus_1.default.BudgetExhausted) {
|
|
18
18
|
return BrandColors_1.Red;
|
|
19
19
|
}
|
|
20
|
+
if (status === SloStatus_1.default.Waiting) {
|
|
21
|
+
return BrandColors_1.Blue500;
|
|
22
|
+
}
|
|
20
23
|
return BrandColors_1.Gray500;
|
|
21
24
|
};
|
|
22
25
|
exports.getSloStatusColor = getSloStatusColor;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import SloStatus from "../../Types/ServiceLevelObjective/SloStatus.mjs";
|
|
2
|
+
import SloStatusChange from "../../Types/ServiceLevelObjective/SloStatusChange.mjs";
|
|
3
|
+
export declare const SLO_STATUS_POST_MIN_INTERVAL_MINUTES: number;
|
|
4
|
+
export interface SloStatusPost {
|
|
5
|
+
status: SloStatus;
|
|
6
|
+
postedAt: Date;
|
|
7
|
+
}
|
|
8
|
+
export interface SloStatusPostDecision {
|
|
9
|
+
change: SloStatusChange;
|
|
10
|
+
from: SloStatus | null;
|
|
11
|
+
}
|
|
12
|
+
export declare function decideSloStatusPost(data: {
|
|
13
|
+
lastPost: SloStatusPost | null;
|
|
14
|
+
previousStatus: SloStatus | null | undefined;
|
|
15
|
+
newStatus: SloStatus;
|
|
16
|
+
now: Date;
|
|
17
|
+
minIntervalMinutes?: number | undefined;
|
|
18
|
+
}): SloStatusPostDecision | null;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import SloStatus from "../../Types/ServiceLevelObjective/SloStatus";
|
|
2
|
+
import SloStatusChange from "../../Types/ServiceLevelObjective/SloStatusChange";
|
|
3
|
+
export declare const SLO_STATUS_POST_MIN_INTERVAL_MINUTES: number;
|
|
4
|
+
export interface SloStatusPost {
|
|
5
|
+
status: SloStatus;
|
|
6
|
+
postedAt: Date;
|
|
7
|
+
}
|
|
8
|
+
export interface SloStatusPostDecision {
|
|
9
|
+
change: SloStatusChange;
|
|
10
|
+
from: SloStatus | null;
|
|
11
|
+
}
|
|
12
|
+
export declare function decideSloStatusPost(data: {
|
|
13
|
+
lastPost: SloStatusPost | null;
|
|
14
|
+
previousStatus: SloStatus | null | undefined;
|
|
15
|
+
newStatus: SloStatus;
|
|
16
|
+
now: Date;
|
|
17
|
+
minIntervalMinutes?: number | undefined;
|
|
18
|
+
}): SloStatusPostDecision | null;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.SLO_STATUS_POST_MIN_INTERVAL_MINUTES = void 0;
|
|
40
|
+
exports.decideSloStatusPost = decideSloStatusPost;
|
|
41
|
+
const Date_1 = __importDefault(require("../../Types/Date"));
|
|
42
|
+
const SloStatus_1 = require("../../Types/ServiceLevelObjective/SloStatus");
|
|
43
|
+
const SloStatusChange_1 = __importStar(require("../../Types/ServiceLevelObjective/SloStatusChange"));
|
|
44
|
+
/*
|
|
45
|
+
* AN SLO'S STATUS IN SLACK, MICROSOFT TEAMS AND MATTERMOST: WHEN TO SAY IT
|
|
46
|
+
* (#6596).
|
|
47
|
+
*
|
|
48
|
+
* The status already holds back a rolling window that hovers at a line: it
|
|
49
|
+
* leaves At Risk only once the budget is 5 points above the at-risk
|
|
50
|
+
* threshold, and Budget Exhausted only once 2% of the budget is back
|
|
51
|
+
* (SloUtil.computeSloStatus). An unsteady service can still cross those
|
|
52
|
+
* lines several times a day, and a channel that heard each crossing would
|
|
53
|
+
* learn to ignore the SLO. So the channels are told of an SLO's status at
|
|
54
|
+
* most once an interval (SLO_STATUS_POST_MIN_INTERVAL_MINUTES), and what
|
|
55
|
+
* they are told is always where the SLO is now:
|
|
56
|
+
*
|
|
57
|
+
* - a change is said against what the channels last heard, not against
|
|
58
|
+
* the status the evaluation started from: an SLO that went Healthy and
|
|
59
|
+
* came back to At Risk within the interval, after the channels heard
|
|
60
|
+
* "At Risk", says nothing at all;
|
|
61
|
+
* - a change that comes within the interval of the last one waits, and is
|
|
62
|
+
* said by the first evaluation after the interval if the SLO is still
|
|
63
|
+
* there - so the channels' last word is never one the SLO left;
|
|
64
|
+
* - an exhausted budget is said at once, whatever the interval: it is the
|
|
65
|
+
* one change a channel must not hear late, and it cannot repeat until
|
|
66
|
+
* the SLO has left Budget Exhausted and that was said.
|
|
67
|
+
*
|
|
68
|
+
* What the channels last heard is remembered by the server
|
|
69
|
+
* (SloWorkspaceNotifications); with nothing remembered - the first change,
|
|
70
|
+
* or a cache that lost it - the status the evaluation started from stands
|
|
71
|
+
* in for it, and nothing waits.
|
|
72
|
+
*/
|
|
73
|
+
exports.SLO_STATUS_POST_MIN_INTERVAL_MINUTES = 60;
|
|
74
|
+
function decideSloStatusPost(data) {
|
|
75
|
+
var _a;
|
|
76
|
+
// A status that measures nothing says nothing about reliability.
|
|
77
|
+
if ((0, SloStatus_1.isSloUnmeasuredStatus)(data.newStatus)) {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
const heard = data.lastPost
|
|
81
|
+
? data.lastPost.status
|
|
82
|
+
: data.previousStatus || null;
|
|
83
|
+
const change = (0, SloStatusChange_1.getSloStatusChange)(heard, data.newStatus);
|
|
84
|
+
if (!change) {
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
const minIntervalMinutes = (_a = data.minIntervalMinutes) !== null && _a !== void 0 ? _a : exports.SLO_STATUS_POST_MIN_INTERVAL_MINUTES;
|
|
88
|
+
if (data.lastPost &&
|
|
89
|
+
change !== SloStatusChange_1.default.BudgetExhausted &&
|
|
90
|
+
Date_1.default.getDifferenceInMinutes(data.now, data.lastPost.postedAt) <
|
|
91
|
+
minIntervalMinutes) {
|
|
92
|
+
return null;
|
|
93
|
+
}
|
|
94
|
+
return { change: change, from: heard };
|
|
95
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseGridAxisValues = void 0;
|
|
4
|
+
/*
|
|
5
|
+
* A GRID GROUP'S ROWS AND COLUMNS, AS ITS AXIS VALUES LIST THEM.
|
|
6
|
+
*
|
|
7
|
+
* A status page group in grid view names its rows and its columns as comma
|
|
8
|
+
* separated text (StatusPageGroup.rowAxisValues and columnAxisValues). The
|
|
9
|
+
* Dashboard's Resources screen (ResourceExplorer) and the public status page
|
|
10
|
+
* (GroupNestingLayout, the Overview) both read them here, so the two agree on
|
|
11
|
+
* which grids have no rows or columns yet (#9476).
|
|
12
|
+
*
|
|
13
|
+
* A module of its own, which imports nothing: it is all the public page needs
|
|
14
|
+
* of the Resources screen's model, and reading it from that model brought the
|
|
15
|
+
* model, and the group hierarchy its navigator draws, into every status
|
|
16
|
+
* page's first load (packages/Common/Scripts/first-load-budgets.js;
|
|
17
|
+
* Tests/UI/StatusPageOverviewFirstLoadBuild.test.ts holds them out of it).
|
|
18
|
+
*/
|
|
19
|
+
const parseGridAxisValues = (raw) => {
|
|
20
|
+
if (!raw) {
|
|
21
|
+
return [];
|
|
22
|
+
}
|
|
23
|
+
return raw
|
|
24
|
+
.split(",")
|
|
25
|
+
.map((value) => {
|
|
26
|
+
return value.trim();
|
|
27
|
+
})
|
|
28
|
+
.filter((value) => {
|
|
29
|
+
return value.length > 0;
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
exports.parseGridAxisValues = parseGridAxisValues;
|
|
33
|
+
exports.default = exports.parseGridAxisValues;
|
|
@@ -79,12 +79,12 @@ export default class StatusPageGroupHierarchyViewUtil {
|
|
|
79
79
|
statusPageGroups: Array<StatusPageGroup>;
|
|
80
80
|
index?: StatusPageGroupTreeIndex | undefined;
|
|
81
81
|
}): number;
|
|
82
|
-
static
|
|
82
|
+
static getReorderTargetId(data: {
|
|
83
83
|
statusPageGroups: Array<StatusPageGroup>;
|
|
84
84
|
statusPageGroupId: string;
|
|
85
85
|
direction: "up" | "down";
|
|
86
86
|
index?: StatusPageGroupTreeIndex | undefined;
|
|
87
|
-
}):
|
|
87
|
+
}): string | null;
|
|
88
88
|
static getSiblingGroups(data: {
|
|
89
89
|
statusPageGroup: StatusPageGroup;
|
|
90
90
|
statusPageGroups: Array<StatusPageGroup>;
|
|
@@ -79,12 +79,12 @@ export default class StatusPageGroupHierarchyViewUtil {
|
|
|
79
79
|
statusPageGroups: Array<StatusPageGroup>;
|
|
80
80
|
index?: StatusPageGroupTreeIndex | undefined;
|
|
81
81
|
}): number;
|
|
82
|
-
static
|
|
82
|
+
static getReorderTargetId(data: {
|
|
83
83
|
statusPageGroups: Array<StatusPageGroup>;
|
|
84
84
|
statusPageGroupId: string;
|
|
85
85
|
direction: "up" | "down";
|
|
86
86
|
index?: StatusPageGroupTreeIndex | undefined;
|
|
87
|
-
}):
|
|
87
|
+
}): string | null;
|
|
88
88
|
static getSiblingGroups(data: {
|
|
89
89
|
statusPageGroup: StatusPageGroup;
|
|
90
90
|
statusPageGroups: Array<StatusPageGroup>;
|
|
@@ -419,15 +419,20 @@ class StatusPageGroupHierarchyViewUtil {
|
|
|
419
419
|
return height;
|
|
420
420
|
}
|
|
421
421
|
/*
|
|
422
|
-
* The
|
|
423
|
-
* or below it
|
|
422
|
+
* The group whose place a group takes to swap places with the sibling
|
|
423
|
+
* above or below it: that sibling's id, or null when there is none that
|
|
424
|
+
* way.
|
|
424
425
|
*
|
|
425
426
|
* `order` is one flat sequence across the whole status page rather than one
|
|
426
|
-
* per parent, so
|
|
427
|
-
*
|
|
428
|
-
* group's relative position intact
|
|
427
|
+
* per parent, so the move is "take the sibling's place": the server moves
|
|
428
|
+
* the group there and steps everything between the two aside, which keeps
|
|
429
|
+
* every other group's relative position intact (POST
|
|
430
|
+
* /status-page-group/:id/move, Types/Database/MoveInList). Named by id,
|
|
431
|
+
* not by the sibling's number: a page numbered through the API can have
|
|
432
|
+
* two groups at one number, or a group with none, and a move must still
|
|
433
|
+
* swap them.
|
|
429
434
|
*/
|
|
430
|
-
static
|
|
435
|
+
static getReorderTargetId(data) {
|
|
431
436
|
const index = this.resolveIndex(data);
|
|
432
437
|
const group = index.byId.get(data.statusPageGroupId);
|
|
433
438
|
if (!group) {
|
|
@@ -441,14 +446,10 @@ class StatusPageGroupHierarchyViewUtil {
|
|
|
441
446
|
const neighbourId = data.direction === "up"
|
|
442
447
|
? neighbours.previousSiblingId
|
|
443
448
|
: neighbours.nextSiblingId;
|
|
444
|
-
if (!neighbourId) {
|
|
449
|
+
if (!neighbourId || !index.byId.get(neighbourId)) {
|
|
445
450
|
return null;
|
|
446
451
|
}
|
|
447
|
-
|
|
448
|
-
if (!neighbour || typeof neighbour.order !== "number") {
|
|
449
|
-
return null;
|
|
450
|
-
}
|
|
451
|
-
return neighbour.order;
|
|
452
|
+
return neighbourId;
|
|
452
453
|
}
|
|
453
454
|
/*
|
|
454
455
|
* The groups drawn beside this one under the same parent, in render order.
|
|
@@ -65,6 +65,7 @@ export default class StatusPageGroupNestingLayoutUtil {
|
|
|
65
65
|
activeScheduledMaintenanceCount: number;
|
|
66
66
|
activeAnnouncementCount: number;
|
|
67
67
|
}): boolean;
|
|
68
|
+
static isDrawnAsGrid(statusPageGroup: StatusPageGroup | null): boolean;
|
|
68
69
|
static shouldRenderTimeAxis(data: {
|
|
69
70
|
statusPageGroup: StatusPageGroup | null;
|
|
70
71
|
statusPageResources: Array<StatusPageResource>;
|
|
@@ -65,6 +65,7 @@ export default class StatusPageGroupNestingLayoutUtil {
|
|
|
65
65
|
activeScheduledMaintenanceCount: number;
|
|
66
66
|
activeAnnouncementCount: number;
|
|
67
67
|
}): boolean;
|
|
68
|
+
static isDrawnAsGrid(statusPageGroup: StatusPageGroup | null): boolean;
|
|
68
69
|
static shouldRenderTimeAxis(data: {
|
|
69
70
|
statusPageGroup: StatusPageGroup | null;
|
|
70
71
|
statusPageResources: Array<StatusPageResource>;
|
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.StatusPageGroupRollupKind = void 0;
|
|
7
7
|
const StatusPageGroupViewMode_1 = __importDefault(require("../../Types/StatusPage/StatusPageGroupViewMode"));
|
|
8
|
+
const GridAxisValues_1 = __importDefault(require("./GridAxisValues"));
|
|
8
9
|
/*
|
|
9
10
|
* Status page groups nest (Corporate Unit -> Region -> Market -> Site) and the
|
|
10
11
|
* overview page draws that nesting.
|
|
@@ -259,6 +260,24 @@ class StatusPageGroupNestingLayoutUtil {
|
|
|
259
260
|
data.activeScheduledMaintenanceCount === 0 &&
|
|
260
261
|
data.activeAnnouncementCount === 0);
|
|
261
262
|
}
|
|
263
|
+
/*
|
|
264
|
+
* Whether a group's resources are drawn as a grid: it is in grid view, and
|
|
265
|
+
* it has a row and a column to draw. A grid group with no rows or no
|
|
266
|
+
* columns yet has no cells, so the public page draws its resources the way
|
|
267
|
+
* a list group does, or the group's empty line if it has none. Its
|
|
268
|
+
* visitors cannot add the axes, and the error that stood in their place
|
|
269
|
+
* read as the status page failing (#9476). The values are read as the
|
|
270
|
+
* Dashboard's Resources screen reads them (GridAxisValues), so the two
|
|
271
|
+
* agree on which grids have no rows or columns.
|
|
272
|
+
*/
|
|
273
|
+
static isDrawnAsGrid(statusPageGroup) {
|
|
274
|
+
if (!statusPageGroup ||
|
|
275
|
+
statusPageGroup.viewMode !== StatusPageGroupViewMode_1.default.Grid) {
|
|
276
|
+
return false;
|
|
277
|
+
}
|
|
278
|
+
return ((0, GridAxisValues_1.default)(statusPageGroup.rowAxisValues).length > 0 &&
|
|
279
|
+
(0, GridAxisValues_1.default)(statusPageGroup.columnAxisValues).length > 0);
|
|
280
|
+
}
|
|
262
281
|
/*
|
|
263
282
|
* Whether a group draws the time axis under its own resource list.
|
|
264
283
|
*
|
|
@@ -268,15 +287,16 @@ class StatusPageGroupNestingLayoutUtil {
|
|
|
268
287
|
* bars are indented past this one, and they may be collapsed, so an axis up
|
|
269
288
|
* here would be labelling a column that is not there.
|
|
270
289
|
*
|
|
271
|
-
* A group
|
|
272
|
-
* resources are not something a time axis describes.
|
|
290
|
+
* A group drawn as a grid draws a matrix of cells instead of bars, so its
|
|
291
|
+
* resources are not something a time axis describes. A grid group with no
|
|
292
|
+
* rows or columns yet is drawn as a list (isDrawnAsGrid), bars and axis.
|
|
273
293
|
*/
|
|
274
294
|
static shouldRenderTimeAxis(data) {
|
|
275
|
-
var _a, _b
|
|
276
|
-
if ((
|
|
295
|
+
var _a, _b;
|
|
296
|
+
if (this.isDrawnAsGrid(data.statusPageGroup)) {
|
|
277
297
|
return false;
|
|
278
298
|
}
|
|
279
|
-
const groupId = ((
|
|
299
|
+
const groupId = ((_b = (_a = data.statusPageGroup) === null || _a === void 0 ? void 0 : _a._id) === null || _b === void 0 ? void 0 : _b.toString()) || null;
|
|
280
300
|
return (data.statusPageResources.find((resource) => {
|
|
281
301
|
var _a;
|
|
282
302
|
if (!resource.showStatusHistoryChart) {
|
|
@@ -139,11 +139,11 @@ export default class StatusPageResourceExplorerUtil {
|
|
|
139
139
|
static getBulkRemoveConfirmMessage(data: {
|
|
140
140
|
count: number;
|
|
141
141
|
}): string;
|
|
142
|
-
static
|
|
142
|
+
static getReorderTargetId(data: {
|
|
143
143
|
statusPageResources: Array<StatusPageResource>;
|
|
144
144
|
fromIndex: number;
|
|
145
145
|
toIndex: number;
|
|
146
|
-
}):
|
|
146
|
+
}): string | null;
|
|
147
147
|
static getResourcesInNewOrder(data: {
|
|
148
148
|
statusPageResources: Array<StatusPageResource>;
|
|
149
149
|
fromIndex: number;
|
|
@@ -139,11 +139,11 @@ export default class StatusPageResourceExplorerUtil {
|
|
|
139
139
|
static getBulkRemoveConfirmMessage(data: {
|
|
140
140
|
count: number;
|
|
141
141
|
}): string;
|
|
142
|
-
static
|
|
142
|
+
static getReorderTargetId(data: {
|
|
143
143
|
statusPageResources: Array<StatusPageResource>;
|
|
144
144
|
fromIndex: number;
|
|
145
145
|
toIndex: number;
|
|
146
|
-
}):
|
|
146
|
+
}): string | null;
|
|
147
147
|
static getResourcesInNewOrder(data: {
|
|
148
148
|
statusPageResources: Array<StatusPageResource>;
|
|
149
149
|
fromIndex: number;
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.StatusPageResourceSelectionType = void 0;
|
|
7
7
|
const GroupHierarchyView_1 = __importDefault(require("./GroupHierarchyView"));
|
|
8
8
|
const GroupTree_1 = __importDefault(require("./GroupTree"));
|
|
9
|
+
const GridAxisValues_1 = __importDefault(require("./GridAxisValues"));
|
|
9
10
|
const DateLanguage_1 = require("../../Types/DateLanguage");
|
|
10
11
|
/*
|
|
11
12
|
* What the right hand pane is showing. "Ungrouped" is a real place on a status
|
|
@@ -523,17 +524,19 @@ class StatusPageResourceExplorerUtil {
|
|
|
523
524
|
return `Are you sure you want to remove ${data.count.toLocaleString("en-US")} resources from this status page? The monitors themselves are not deleted.`;
|
|
524
525
|
}
|
|
525
526
|
/*
|
|
526
|
-
* The
|
|
527
|
-
*
|
|
527
|
+
* The resource whose place a dragged resource takes: the one standing where
|
|
528
|
+
* it was dropped, by id.
|
|
528
529
|
*
|
|
529
|
-
* The
|
|
530
|
-
*
|
|
531
|
-
*
|
|
532
|
-
*
|
|
530
|
+
* The move is "take the place of the resource currently sitting there"
|
|
531
|
+
* rather than an index - the server moves the resource there and steps the
|
|
532
|
+
* rest of the group aside (POST /status-page-resource/:id/move,
|
|
533
|
+
* Types/Database/MoveInList). Named by id, not by that resource's number:
|
|
534
|
+
* a group numbered through the API can have two resources at one number,
|
|
535
|
+
* or one with none, and a drop must still land where it was made.
|
|
533
536
|
*
|
|
534
537
|
* Null when the move is a no-op or the positions are not real.
|
|
535
538
|
*/
|
|
536
|
-
static
|
|
539
|
+
static getReorderTargetId(data) {
|
|
537
540
|
const { statusPageResources, fromIndex, toIndex } = data;
|
|
538
541
|
if (fromIndex === toIndex) {
|
|
539
542
|
return null;
|
|
@@ -545,10 +548,10 @@ class StatusPageResourceExplorerUtil {
|
|
|
545
548
|
return null;
|
|
546
549
|
}
|
|
547
550
|
const target = statusPageResources[toIndex];
|
|
548
|
-
if (!target || target.
|
|
551
|
+
if (!target || !target.id) {
|
|
549
552
|
return null;
|
|
550
553
|
}
|
|
551
|
-
return target.
|
|
554
|
+
return target.id.toString();
|
|
552
555
|
}
|
|
553
556
|
/*
|
|
554
557
|
* The list as it will look once the move lands, so the row can be drawn where
|
|
@@ -575,20 +578,11 @@ class StatusPageResourceExplorerUtil {
|
|
|
575
578
|
/* Grid groups */
|
|
576
579
|
/* ------------------------------------------------------------------ */
|
|
577
580
|
/*
|
|
578
|
-
* The comma separated axis values a grid group is defined by, as a list
|
|
581
|
+
* The comma separated axis values a grid group is defined by, as a list:
|
|
582
|
+
* read as the public status page reads them (GridAxisValues).
|
|
579
583
|
*/
|
|
580
584
|
static parseAxisValues(raw) {
|
|
581
|
-
|
|
582
|
-
return [];
|
|
583
|
-
}
|
|
584
|
-
return raw
|
|
585
|
-
.split(",")
|
|
586
|
-
.map((value) => {
|
|
587
|
-
return value.trim();
|
|
588
|
-
})
|
|
589
|
-
.filter((value) => {
|
|
590
|
-
return value.length > 0;
|
|
591
|
-
});
|
|
585
|
+
return (0, GridAxisValues_1.default)(raw);
|
|
592
586
|
}
|
|
593
587
|
/*
|
|
594
588
|
* A NUL separator rather than a space or a dash: axis values are free text,
|
|
@@ -2,12 +2,14 @@ import Color, { RGB } from "../../Types/Color.mjs";
|
|
|
2
2
|
export declare const DARK_THEME_CARD: RGB;
|
|
3
3
|
export declare const DARK_THEME_PAGE: RGB;
|
|
4
4
|
export declare const STATUS_TEXT_MINIMUM_CONTRAST: number;
|
|
5
|
+
export declare const STATUS_TEXT_CONTRAST_ON_CARD: number;
|
|
5
6
|
export declare const UPTIME_BAR_MINIMUM_CONTRAST: number;
|
|
6
7
|
/**
|
|
7
8
|
* The colour status text is drawn in on the dark theme: the colour itself
|
|
8
|
-
* when it reads at 4.
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* when it reads at 4.6:1 on the dark card (STATUS_TEXT_CONTRAST_ON_CARD),
|
|
10
|
+
* the nearest lighter shade of it that does otherwise - so it reads at
|
|
11
|
+
* 4.5:1 on every ground it is drawn on. Null for a colour that cannot be
|
|
12
|
+
* read, which the text then keeps as it is.
|
|
11
13
|
*/
|
|
12
14
|
export declare function getStatusTextColorOnDark(color: Color | string | null | undefined): string | null;
|
|
13
15
|
/**
|