@oneuptime/common 14.0.10 → 14.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/DatabaseModels/AIConversation.ts +127 -1
- package/Models/DatabaseModels/CephCluster.ts +12 -0
- package/Models/DatabaseModels/CloudResource.ts +12 -0
- package/Models/DatabaseModels/DatabaseServer.ts +12 -0
- package/Models/DatabaseModels/DockerHost.ts +12 -0
- package/Models/DatabaseModels/DockerSwarmCluster.ts +12 -0
- package/Models/DatabaseModels/GlobalOidc.ts +0 -4
- package/Models/DatabaseModels/GlobalOidcProject.ts +0 -4
- package/Models/DatabaseModels/GlobalSso.ts +0 -4
- package/Models/DatabaseModels/GlobalSsoProject.ts +0 -4
- package/Models/DatabaseModels/Host.ts +12 -0
- package/Models/DatabaseModels/IncidentForm.ts +594 -0
- package/Models/DatabaseModels/IncidentFormSubmission.ts +283 -0
- package/Models/DatabaseModels/IncidentTemplate.ts +59 -0
- package/Models/DatabaseModels/Index.ts +14 -0
- package/Models/DatabaseModels/IoTFleet.ts +12 -0
- package/Models/DatabaseModels/KubernetesCluster.ts +12 -0
- package/Models/DatabaseModels/MessageQueue.ts +1102 -0
- package/Models/DatabaseModels/MessageQueueLabelRule.ts +553 -0
- package/Models/DatabaseModels/MessageQueueOwnerRule.ts +633 -0
- package/Models/DatabaseModels/MessageQueueOwnerTeam.ts +491 -0
- package/Models/DatabaseModels/MessageQueueOwnerUser.ts +490 -0
- package/Models/DatabaseModels/PodmanHost.ts +12 -0
- package/Models/DatabaseModels/Project.ts +59 -0
- package/Models/DatabaseModels/ProjectOidc.ts +0 -4
- package/Models/DatabaseModels/ProjectSso.ts +0 -4
- package/Models/DatabaseModels/ProxmoxCluster.ts +12 -0
- package/Models/DatabaseModels/RumApplication.ts +12 -0
- package/Models/DatabaseModels/ServerlessFunction.ts +12 -0
- package/Models/DatabaseModels/Service.ts +12 -0
- package/Models/DatabaseModels/StatusPageOidc.ts +0 -4
- package/Models/DatabaseModels/StatusPageSso.ts +0 -4
- package/Models/DatabaseModels/TeamComplianceSetting.ts +47 -2
- package/Models/DatabaseModels/VMwareVCenter.ts +12 -0
- package/Server/API/AIChatAPI.ts +13 -114
- package/Server/API/AIInvestigationAPI.ts +3 -3
- package/Server/API/AIInvestigationConversationAPI.ts +266 -0
- package/Server/API/IncidentFormAPI.ts +376 -0
- package/Server/API/ProjectOIDC.ts +16 -25
- package/Server/API/ProjectSSO.ts +16 -24
- package/Server/API/StatusPageAPI.ts +42 -77
- package/Server/Enterprise/EnterpriseEdition.ts +93 -28
- package/Server/Enterprise/EnterpriseFeature.ts +25 -3
- package/Server/Enterprise/EnterpriseLicenseSnapshot.ts +1 -1
- package/Server/Enterprise/EnterpriseServerModule.ts +4 -1
- package/Server/EnvironmentConfig.ts +1 -1
- package/Server/Infrastructure/Postgres/SchemaMigrations/1796400000000-AddIncidentForms.ts +129 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1796500000000-AddTeamComplianceRuleNotificationChannels.ts +52 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1796600000000-AddAIInvestigationConversationAndTimeLimits.ts +75 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1796700000000-AddMessageQueueTables.ts +477 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +8 -0
- package/Server/Middleware/IncidentFormRateLimit.ts +847 -0
- package/Server/Middleware/UserAuthorization.ts +16 -38
- package/Server/Services/AIService.ts +10 -13
- package/Server/Services/IncidentCustomFieldService.ts +112 -2
- package/Server/Services/IncidentEpisodeMemberService.ts +24 -4
- package/Server/Services/IncidentEpisodeService.ts +10 -1
- package/Server/Services/IncidentFormService.ts +1566 -0
- package/Server/Services/IncidentFormSubmissionService.ts +97 -0
- package/Server/Services/IncidentGroupingEngineService.ts +45 -8
- package/Server/Services/IncidentService.ts +123 -5
- package/Server/Services/IncidentTemplateService.ts +22 -0
- package/Server/Services/Index.ts +14 -0
- package/Server/Services/MessageQueueLabelRuleEngineService.ts +321 -0
- package/Server/Services/MessageQueueLabelRuleService.ts +14 -0
- package/Server/Services/MessageQueueOwnerRuleEngineService.ts +412 -0
- package/Server/Services/MessageQueueOwnerRuleService.ts +14 -0
- package/Server/Services/MessageQueueOwnerTeamService.ts +62 -0
- package/Server/Services/MessageQueueOwnerUserService.ts +62 -0
- package/Server/Services/MessageQueueService.ts +1463 -0
- package/Server/Services/OpenTelemetryIngestService.ts +37 -4
- package/Server/Services/ProjectService.ts +0 -59
- package/Server/Services/StatusPagePrivateUserService.ts +1 -4
- package/Server/Services/StatusPageService.ts +1 -51
- package/Server/Services/TeamComplianceSettingService.ts +163 -42
- package/Server/Services/UserNotificationRuleService.ts +8 -1
- package/Server/Services/WorkspaceNotificationSummaryService.ts +12 -3
- package/Server/Types/Database/Permissions/CreatePermission.ts +17 -3
- package/Server/Types/Database/Permissions/EditionPermission.ts +140 -38
- package/Server/Types/Database/Permissions/OwnerTableRegistry.ts +16 -0
- package/Server/Types/Database/Permissions/TablePermission.ts +3 -3
- package/Server/Types/Database/Permissions/UpdatePermission.ts +20 -6
- package/Server/Utils/AI/Chat/AgentContextCompactor.ts +200 -0
- package/Server/Utils/AI/Chat/ChatAgentRunner.ts +307 -48
- package/Server/Utils/AI/Chat/ChatRunCancellation.ts +156 -0
- package/Server/Utils/AI/Chat/ObservabilityAssistant.ts +78 -18
- package/Server/Utils/AI/Chat/ObservabilityChatPrompt.ts +1 -1
- package/Server/Utils/AI/Chat/ToolOutputPager.ts +322 -0
- package/Server/Utils/AI/ClusterAccess/KubectlInvestigationToolkit.ts +88 -30
- package/Server/Utils/AI/ClusterAccess/KubectlJobRunner.ts +13 -1
- package/Server/Utils/AI/CodeFix/CodeFixReadiness.ts +0 -32
- package/Server/Utils/AI/CodeFix/FixRunBudget.ts +27 -25
- package/Server/Utils/AI/Remediation/RemediationCommandTools.ts +7 -1
- package/Server/Utils/AI/Remediation/RemediationExecutionRunner.ts +34 -14
- package/Server/Utils/AI/ResourceAccess/InfrastructureInvestigationToolkit.ts +69 -24
- package/Server/Utils/AI/ResourceAccess/ResourceCommandJobRunner.ts +9 -0
- package/Server/Utils/AI/SRE/AIInvestigationEngine.ts +53 -10
- package/Server/Utils/AI/SRE/AlertInvestigationRunner.ts +27 -10
- package/Server/Utils/AI/SRE/IncidentInvestigationRunner.ts +27 -10
- package/Server/Utils/AI/SRE/InvestigationQueue.ts +16 -19
- package/Server/Utils/AI/SRE/InvestigationThread.ts +646 -0
- package/Server/Utils/AI/SRE/InvestigationThreadService.ts +715 -0
- package/Server/Utils/AI/Toolbox/Serializer.ts +10 -3
- package/Server/Utils/EditionEnforcement.ts +19 -202
- package/Server/Utils/LLM/LLMService.ts +259 -63
- package/Server/Utils/RelaxedScimTeamLocksReport.ts +245 -0
- package/Server/Utils/Rules/RuleRun/RuleRunRegistry.ts +25 -0
- package/Server/Utils/SameOriginRequest.ts +203 -0
- package/Server/Utils/TeamMember/ProjectLeaveResourceCleanup.ts +2 -0
- package/Server/Utils/Telemetry/EntityRegistry.ts +4 -1
- package/Server/Utils/Telemetry/MessageQueueDiscovery.ts +1402 -0
- package/Server/Utils/Telemetry/ResourceEntityFilter.ts +4 -1
- package/Server/Utils/VendorAssets.ts +3 -3
- package/Server/Utils/Workspace/MicrosoftTeams/Actions/Incident.ts +3 -1
- package/Server/Utils/Workspace/MicrosoftTeams/Actions/IncidentEpisode.ts +3 -1
- package/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.ts +10 -1
- package/Tests/App/Accounts/IncidentFormPage.test.tsx +2036 -0
- package/Tests/App/Accounts/IncidentFormServerMessages.test.ts +119 -0
- package/Tests/App/Accounts/IncidentFormUtils.test.ts +1157 -0
- package/Tests/App/Accounts/LoginPasskey.test.tsx +6 -4
- package/Tests/App/Accounts/LoginSso.test.tsx +724 -0
- package/Tests/App/AdminDashboard/AdminAuthenticationRequireSso.test.tsx +338 -0
- package/Tests/App/AdminDashboard/AdminAuthenticationSsoCardLocales.test.tsx +331 -0
- package/Tests/App/AdminDashboard/AdminEnterprisePluginPage.test.tsx +47 -33
- package/Tests/App/AdminDashboard/GlobalSsoOidcPages.test.tsx +1021 -0
- package/Tests/App/Dashboard/AffectedResourcesDisplay.test.tsx +876 -78
- package/Tests/App/Dashboard/AffectedResourcesSlo.test.tsx +20 -3
- package/Tests/App/Dashboard/CephProxmoxVMwareDocumentationCards.test.tsx +359 -0
- package/Tests/App/Dashboard/CephSetupGuide.test.ts +961 -0
- package/Tests/App/Dashboard/CloudDocumentationCard.test.tsx +381 -95
- package/Tests/App/Dashboard/CloudSetupGuide.test.ts +1463 -0
- package/Tests/App/Dashboard/ClusterAccessNotice.test.tsx +174 -12
- package/Tests/App/Dashboard/ContainerSetupGuideCards.test.tsx +345 -0
- package/Tests/App/Dashboard/CoreListEmptyStates.test.tsx +501 -0
- package/Tests/App/Dashboard/DashboardLazyPages.test.tsx +0 -1
- package/Tests/App/Dashboard/DatabaseDocumentationCard.test.tsx +400 -0
- package/Tests/App/Dashboard/DatabaseDocumentationMarkdown.test.ts +5 -0
- package/Tests/App/Dashboard/DatabaseSetupGuide.test.ts +1869 -0
- package/Tests/App/Dashboard/DatabaseTelemetryScope.test.ts +44 -0
- package/Tests/App/Dashboard/DatabaseTelemetryTabs.test.tsx +50 -9
- package/Tests/App/Dashboard/DockerSetupGuide.test.ts +899 -0
- package/Tests/App/Dashboard/DockerSwarmSetupGuide.test.ts +964 -0
- package/Tests/App/Dashboard/EnterpriseFeatureUpgrade.test.tsx +141 -7
- package/Tests/App/Dashboard/EnterprisePluginPage.test.tsx +52 -39
- package/Tests/App/Dashboard/EventOverviewPages.test.tsx +7 -1
- package/Tests/App/Dashboard/GettingStartedTaskRoutes.test.tsx +331 -0
- package/Tests/App/Dashboard/HomeOverviewStatsFirstRun.test.tsx +925 -0
- package/Tests/App/Dashboard/HostDocumentationCard.test.tsx +225 -0
- package/Tests/App/Dashboard/HostSetupGuide.test.ts +1183 -0
- package/Tests/App/Dashboard/IdentityEnterpriseShells.test.tsx +69 -45
- package/Tests/App/Dashboard/IncidentCreateTemplateCustomFieldSettings.test.tsx +745 -0
- package/Tests/App/Dashboard/IncidentCreateTemplateOwners.test.tsx +414 -0
- package/Tests/App/Dashboard/IncidentCustomFieldCreateSettingsForm.test.ts +1042 -0
- package/Tests/App/Dashboard/IncidentCustomFieldSettingsCard.test.tsx +1816 -0
- package/Tests/App/Dashboard/IncidentFormPlan.test.ts +89 -0
- package/Tests/App/Dashboard/IncidentFormShareLinkCard.test.tsx +846 -0
- package/Tests/App/Dashboard/IncidentFormsPages.test.tsx +1324 -0
- package/Tests/App/Dashboard/IncidentTemplateCustomFieldSettings.test.tsx +630 -0
- package/Tests/App/Dashboard/IncidentsSideMenu.test.tsx +13 -0
- package/Tests/App/Dashboard/IncomingEmailMonitorLinkVerifyHint.test.tsx +104 -0
- package/Tests/App/Dashboard/InvestigationConversation.test.tsx +1107 -0
- package/Tests/App/Dashboard/InvestigationConversationData.test.ts +546 -0
- package/Tests/App/Dashboard/InvestigationEvidenceList.test.tsx +170 -5
- package/Tests/App/Dashboard/InvestigationNotStarted.test.tsx +207 -2
- package/Tests/App/Dashboard/InvestigationPanel.test.tsx +729 -34
- package/Tests/App/Dashboard/InvestigationPanelStatus.test.tsx +9 -21
- package/Tests/App/Dashboard/InvestigationReportView.test.tsx +274 -37
- package/Tests/App/Dashboard/InvestigationStatusBadge.test.tsx +130 -0
- package/Tests/App/Dashboard/IoTDocumentationCard.test.tsx +218 -0
- package/Tests/App/Dashboard/IoTSetupGuide.test.ts +1124 -0
- package/Tests/App/Dashboard/KubernetesClusterAiAccessSettings.test.ts +20 -6
- package/Tests/App/Dashboard/KubernetesClusterAiDocumentationMarkdown.test.ts +107 -83
- package/Tests/App/Dashboard/KubernetesSetupGuide.test.ts +787 -0
- package/Tests/App/Dashboard/MessageQueueBreadcrumbs.test.tsx +228 -0
- package/Tests/App/Dashboard/MessageQueueBrokerHealth.test.tsx +1538 -0
- package/Tests/App/Dashboard/MessageQueueBrokerHealthMetricChart.test.tsx +969 -0
- package/Tests/App/Dashboard/MessageQueueBrokerHealthReads.test.ts +889 -0
- package/Tests/App/Dashboard/MessageQueueBrokerMetricsReach.test.ts +236 -0
- package/Tests/App/Dashboard/MessageQueueDocumentationCard.test.tsx +479 -0
- package/Tests/App/Dashboard/MessageQueueListPages.test.tsx +1232 -0
- package/Tests/App/Dashboard/MessageQueueMetricDescriptions.test.ts +244 -0
- package/Tests/App/Dashboard/MessageQueueMonitorLink.test.ts +952 -0
- package/Tests/App/Dashboard/MessageQueueMonitorLinkMonitorCreate.test.tsx +859 -0
- package/Tests/App/Dashboard/MessageQueueOverview.test.tsx +1773 -0
- package/Tests/App/Dashboard/MessageQueueOverviewPresentation.test.ts +196 -0
- package/Tests/App/Dashboard/MessageQueuePresentation.test.ts +799 -0
- package/Tests/App/Dashboard/MessageQueueProducersConsumers.test.tsx +680 -0
- package/Tests/App/Dashboard/MessageQueueRoutes.test.tsx +383 -0
- package/Tests/App/Dashboard/MessageQueueRulePages.test.tsx +278 -0
- package/Tests/App/Dashboard/MessageQueueSetupGuide.test.ts +2778 -0
- package/Tests/App/Dashboard/MessageQueueSideMenus.test.tsx +273 -0
- package/Tests/App/Dashboard/MessageQueueSpanPopulations.test.ts +930 -0
- package/Tests/App/Dashboard/MessageQueueSpanStore.ts +351 -0
- package/Tests/App/Dashboard/MessageQueueTelemetryScope.test.ts +375 -0
- package/Tests/App/Dashboard/MessageQueueTelemetryScopeTabs.test.tsx +668 -0
- package/Tests/App/Dashboard/MessageQueueViewPages.test.tsx +685 -0
- package/Tests/App/Dashboard/MonitorAndHomeNotOperationalMenus.test.tsx +342 -0
- package/Tests/App/Dashboard/MonitorCreateFirstRunDefaults.test.tsx +623 -0
- package/Tests/App/Dashboard/MonitorCreateFromMonitorBackedDevice.test.tsx +442 -0
- package/Tests/App/Dashboard/MonitorLogsPageViewSummary.test.tsx +814 -0
- package/Tests/App/Dashboard/MonitorSetupCardBodies.test.tsx +246 -0
- package/Tests/App/Dashboard/NavigationSearchKeywords.test.tsx +8 -0
- package/Tests/App/Dashboard/OnboardingSsoEmptyState.test.tsx +27 -12
- package/Tests/App/Dashboard/PlanGatedPage.test.tsx +292 -0
- package/Tests/App/Dashboard/PodmanSetupGuide.test.ts +948 -0
- package/Tests/App/Dashboard/ProductOrientation.test.tsx +5 -4
- package/Tests/App/Dashboard/ProductSettingsSectionCollapsed.test.tsx +266 -0
- package/Tests/App/Dashboard/ProxmoxSetupGuide.test.ts +1318 -0
- package/Tests/App/Dashboard/ResourceAiAgentAttentionServerParity.test.ts +555 -0
- package/Tests/App/Dashboard/ResourceAiAgentPage.test.tsx +298 -9
- package/Tests/App/Dashboard/ResourceAiAgentStatus.test.ts +453 -0
- package/Tests/App/Dashboard/ResourceArchiveSettings.test.tsx +16 -0
- package/Tests/App/Dashboard/ResourceConnectionGuideCard.test.tsx +444 -0
- package/Tests/App/Dashboard/ResourceConnectionGuideOverviewsInfra.test.tsx +798 -0
- package/Tests/App/Dashboard/ResourceConnectionGuideOverviewsPlatforms.test.tsx +717 -0
- package/Tests/App/Dashboard/ResourceConnectionGuides.test.ts +981 -0
- package/Tests/App/Dashboard/ResourceConnectionState.test.ts +132 -0
- package/Tests/App/Dashboard/RumDocumentationCard.test.tsx +293 -0
- package/Tests/App/Dashboard/RumSessionReplayRetentionSettings.test.tsx +467 -0
- package/Tests/App/Dashboard/RumSetupGuide.test.ts +758 -0
- package/Tests/App/Dashboard/ScheduledMaintenanceOverviewPage.test.tsx +25 -0
- package/Tests/App/Dashboard/ServerlessDocumentationCard.test.tsx +254 -0
- package/Tests/App/Dashboard/ServerlessSetupGuide.test.ts +1074 -0
- package/Tests/App/Dashboard/SetupGuide.test.ts +246 -0
- package/Tests/App/Dashboard/SetupGuideCard.test.tsx +756 -0
- package/Tests/App/Dashboard/SloListSideMenu.test.tsx +120 -0
- package/Tests/App/Dashboard/SsoPages.test.tsx +833 -0
- package/Tests/App/Dashboard/TelemetryDocumentation.test.tsx +253 -0
- package/Tests/App/Dashboard/TelemetryRetentionShells.test.tsx +730 -0
- package/Tests/App/Dashboard/VMwareSetupGuide.test.ts +1033 -0
- package/Tests/App/StatusPage/StatusPageSsoEmptyState.test.tsx +87 -7
- package/Tests/Models/DatabaseModels/DatabaseServerModels.test.ts +28 -9
- package/Tests/Models/DatabaseModels/IncidentFormModel.test.ts +1250 -0
- package/Tests/Models/DatabaseModels/MessageQueueModels.test.ts +1983 -0
- package/Tests/Models/DatabaseModels/StaticRuleCriteriaInheritance.test.ts +4 -2
- package/Tests/Models/DatabaseModels/TeamComplianceSettingModel.test.ts +190 -14
- package/Tests/Models/IncidentTemplateCustomFieldSettingsColumn.test.ts +291 -0
- package/Tests/Server/API/AIInvestigationConversationAPI.test.ts +412 -0
- package/Tests/Server/API/GlobalConfigLicense.test.ts +38 -9
- package/Tests/Server/API/IncidentFormAPI.test.ts +942 -0
- package/Tests/Server/API/IncidentFormPublicRoutes.test.ts +1653 -0
- package/Tests/Server/API/KubernetesClusterAiAccessAPI.test.ts +2 -1
- package/Tests/Server/API/{SsoProviderListingsEdition.test.ts → SsoProviderListings.test.ts} +164 -110
- package/Tests/Server/Enterprise/EnterpriseEdition.test.ts +76 -54
- package/Tests/Server/Enterprise/EnterpriseFeatureActive.test.ts +125 -42
- package/Tests/Server/Enterprise/EnterpriseLicenseSnapshot.test.ts +36 -10
- package/Tests/Server/Enterprise/EnterpriseModelFeatureMap.test.ts +51 -9
- package/Tests/Server/Enterprise/FakeEnterpriseModule.ts +13 -8
- package/Tests/Server/Enterprise/SsoInCommunityEdition.test.ts +540 -0
- package/Tests/Server/Infrastructure/Postgres/AddConfigurableRuleCriteriaMigration.test.ts +3 -0
- package/Tests/Server/Infrastructure/Postgres/AddIncidentFormsMigration.test.ts +438 -0
- package/Tests/Server/Infrastructure/Postgres/AddTeamComplianceRuleNotificationChannelsMigration.test.ts +255 -0
- package/Tests/Server/Infrastructure/Postgres/MessageQueueTablesMigration.test.ts +637 -0
- package/Tests/Server/Middleware/IncidentFormRateLimit.test.ts +1630 -0
- package/Tests/Server/Middleware/UserAuthorization.test.ts +16 -17
- package/Tests/Server/Middleware/UserAuthorizationSsoEnforcement.test.ts +544 -0
- package/Tests/Server/Services/AIServiceDailyBudget.test.ts +37 -8
- package/Tests/Server/Services/IncidentCreatedFeedTitle.test.ts +212 -0
- package/Tests/Server/Services/IncidentCustomFieldDeleteFormQuestions.test.ts +297 -0
- package/Tests/Server/Services/IncidentFormOwnersCreatedNotification.test.ts +497 -0
- package/Tests/Server/Services/IncidentFormPostgres.test.ts +958 -0
- package/Tests/Server/Services/IncidentFormPublicForm.test.ts +1260 -0
- package/Tests/Server/Services/IncidentFormPublicSubmission.test.ts +2520 -0
- package/Tests/Server/Services/IncidentFormRegistration.test.ts +159 -0
- package/Tests/Server/Services/IncidentFormService.test.ts +663 -0
- package/Tests/Server/Services/IncidentFormSubmissionService.test.ts +430 -0
- package/Tests/Server/Services/IncidentFormSubmissionTemplateBranch.test.ts +473 -0
- package/Tests/Server/Services/IncidentGroupingTemplateSubstitution.test.ts +81 -0
- package/Tests/Server/Services/IncidentTemplateCustomFieldSettings.test.ts +262 -0
- package/Tests/Server/Services/IncidentTemplateOwnersOnDeclare.test.ts +566 -0
- package/Tests/Server/Services/IncidentTitleMarkdownSinks.test.ts +640 -0
- package/Tests/Server/Services/LlmLogServiceTokenAggregateParams.test.ts +3 -3
- package/Tests/Server/Services/MessageQueueOwnerServices.test.ts +440 -0
- package/Tests/Server/Services/MessageQueueRegistries.test.ts +577 -0
- package/Tests/Server/Services/MessageQueueRuleEngines.test.ts +900 -0
- package/Tests/Server/Services/MessageQueueService.test.ts +2210 -0
- package/Tests/Server/Services/MessageQueueSqlPostgres.test.ts +1271 -0
- package/Tests/Server/Services/OpenTelemetryResourceRetentionMemo.test.ts +28 -1
- package/Tests/Server/Services/OpenTelemetryRetentionOverrideEdition.test.ts +474 -0
- package/Tests/Server/Services/OpenTelemetryServiceResolutionCache.test.ts +21 -0
- package/Tests/Server/Services/OwnerRowUniqueness.test.ts +3 -0
- package/Tests/Server/Services/ProjectServiceAuditLogLicense.test.ts +0 -1
- package/Tests/Server/Services/RuleRun/LabelRuleEnginesGroupBRun.test.ts +56 -6
- package/Tests/Server/Services/RuleRun/OwnerRuleEnginesGroupBRun.test.ts +30 -1
- package/Tests/Server/Services/SsoRequirementReads.test.ts +454 -0
- package/Tests/Server/Services/SsoRequirementWrites.test.ts +529 -0
- package/Tests/Server/Services/StaticRuleCriteriaRuntimeCoverage.test.ts +3 -3
- package/Tests/Server/Services/StatusPagePrivateUserInvitationPolicy.test.ts +107 -89
- package/Tests/Server/Services/TeamComplianceSettingPostgres.test.ts +1068 -176
- package/Tests/Server/Services/TeamComplianceSettingService.test.ts +1962 -200
- package/Tests/Server/Types/Database/Permissions/EditionPermission.test.ts +654 -297
- package/Tests/Server/Types/Database/Permissions/RetentionOverrideColumns.test.ts +784 -0
- package/Tests/Server/Types/Database/Permissions/SsoScalePlanGate.test.ts +418 -0
- package/Tests/Server/Utils/AI/AIAlertGating.test.ts +0 -1
- package/Tests/Server/Utils/AI/AIInvestigationEngineRunLimits.test.ts +136 -0
- package/Tests/Server/Utils/AI/AIInvestigationQueue.test.ts +15 -14
- package/Tests/Server/Utils/AI/AgentContextCompactor.test.ts +351 -0
- package/Tests/Server/Utils/AI/ChatAgentRunnerSharedThread.test.ts +842 -0
- package/Tests/Server/Utils/AI/ChatRunCancellation.test.ts +195 -0
- package/Tests/Server/Utils/AI/CodeFixReadiness.test.ts +10 -57
- package/Tests/Server/Utils/AI/FixRunBudget.test.ts +20 -24
- package/Tests/Server/Utils/AI/Insights/InvestigationQueueInsightSubject.test.ts +7 -30
- package/Tests/Server/Utils/AI/InvestigationClusterAccessWiring.test.ts +225 -29
- package/Tests/Server/Utils/AI/InvestigationInfrastructureAccessWiring.test.ts +266 -25
- package/Tests/Server/Utils/AI/InvestigationThread.test.ts +580 -0
- package/Tests/Server/Utils/AI/InvestigationThreadService.test.ts +801 -0
- package/Tests/Server/Utils/AI/KubectlInvestigationToolkit.test.ts +525 -43
- package/Tests/Server/Utils/AI/KubectlJobRunner.test.ts +4 -2
- package/Tests/Server/Utils/AI/LLMServiceUnreachableProvider.test.ts +435 -0
- package/Tests/Server/Utils/AI/ObservabilityAssistantLimits.test.ts +462 -0
- package/Tests/Server/Utils/AI/RemediationExecutionRunner.test.ts +14 -25
- package/Tests/Server/Utils/AI/RemediationExecutionRunnerResourceMode.test.ts +2 -0
- package/Tests/Server/Utils/AI/ResourceAccess/InfrastructureInvestigationToolkit.test.ts +297 -15
- package/Tests/Server/Utils/AI/ResourceAccess/ResourceCommandJobRunner.test.ts +10 -6
- package/Tests/Server/Utils/AI/ToolOutputPager.test.ts +382 -0
- package/Tests/Server/Utils/AI/ToolResultSerializer.test.ts +23 -4
- package/Tests/Server/Utils/AI/Toolbox/LogTools.test.ts +25 -6
- package/Tests/Server/Utils/AI/Toolbox/Serializer.test.ts +14 -3
- package/Tests/Server/Utils/EditionEnforcement.test.ts +107 -147
- package/Tests/Server/Utils/{CommunityEditionSsoReport.test.ts → RelaxedScimTeamLocksReport.test.ts} +212 -208
- package/Tests/Server/Utils/SameOriginRequest.test.ts +372 -0
- package/Tests/Server/Utils/Telemetry/EntityRegistry.test.ts +20 -0
- package/Tests/Server/Utils/Telemetry/MessageQueueDiscovery.test.ts +2590 -0
- package/Tests/Server/Utils/Telemetry/MessageQueueSpanQueryTwin.ts +246 -0
- package/Tests/Server/Utils/Telemetry/TelemetryEntity.test.ts +23 -0
- package/Tests/Types/AI/AIAgentRunLimits.test.ts +255 -0
- package/Tests/Types/Code/JsonSyntax.test.ts +1300 -0
- package/Tests/Types/CustomField/CustomFieldCreateSettings.test.ts +1113 -0
- package/Tests/Types/CustomField/CustomFieldMappingCatalog.test.ts +91 -0
- package/Tests/Types/CustomField/CustomFieldValueValidator.test.ts +30 -0
- package/Tests/Types/Incident/IncidentFormIpAllowlist.test.ts +227 -0
- package/Tests/Types/Incident/IncidentFormPublic.test.ts +1916 -0
- package/Tests/Types/MessageQueue/MessageQueueEntityKey.test.ts +916 -0
- package/Tests/Types/MessageQueue/MessageQueueIdentity.test.ts +567 -0
- package/Tests/Types/MessageQueue/MessageQueueManualIdentity.test.ts +686 -0
- package/Tests/Types/MessageQueue/MessageQueueMetricCatalog.test.ts +1726 -0
- package/Tests/Types/MessageQueue/MessageQueueMetricResolution.test.ts +1758 -0
- package/Tests/Types/MessageQueue/MessagingInstrumentationFixtures.test.ts +4686 -0
- package/Tests/Types/MessageQueue/MessagingSystem.test.ts +840 -0
- package/Tests/Types/MessageQueue/MessagingTelemetryFixtures.ts +3287 -0
- package/Tests/Types/MessageQueue/MessagingTelemetryResolver.test.ts +2966 -0
- package/Tests/Types/Monitor/MessageQueueAlertTemplates.test.ts +5401 -0
- package/Tests/Types/Monitor/MetricEngineFold.ts +154 -0
- package/Tests/Types/ResourceAiAgent/ResourceAiAccess.test.ts +5 -3
- package/Tests/Types/Team/ComplianceRule.test.ts +588 -37
- package/Tests/Types/Team/TeamComplianceStatus.test.ts +64 -11
- package/Tests/Types/XML.test.ts +51 -0
- package/Tests/UI/Components/CodeEditor/CodeEditor.test.tsx +2362 -0
- package/Tests/UI/Components/CodeEditor/CodeEditorCommands.test.ts +810 -0
- package/Tests/UI/Components/CodeEditor/CodeEditorHighlight.test.ts +338 -0
- package/Tests/UI/Components/CodeEditor/CodeEditorLanguages.test.ts +222 -0
- package/Tests/UI/Components/CodeEditor/CodeEditorStyles.test.ts +807 -0
- package/Tests/UI/Components/CodeEditor/NoMonaco.test.ts +245 -0
- package/Tests/UI/Components/CodeEditor/YamlEditor.test.tsx +729 -0
- package/Tests/UI/Components/CopyTextButton.test.tsx +76 -0
- package/Tests/UI/Components/EditionLabelLapseCopy.ts +51 -14
- package/Tests/UI/Components/EditionLabelLicenseStatus.test.tsx +131 -23
- package/Tests/UI/Components/ErrorMessageAction.test.tsx +142 -0
- package/Tests/UI/Components/FacetSidebarInScope.test.tsx +459 -0
- package/Tests/UI/Components/FacetValuesInScope.test.ts +270 -0
- package/Tests/UI/Components/Forms/FormFieldCodeEditors.test.tsx +294 -0
- package/Tests/UI/Components/Forms/FormFieldMarkdown.test.tsx +126 -0
- package/Tests/UI/Components/Forms/FormFieldYaml.test.tsx +22 -75
- package/Tests/UI/Components/Forms/ModelFormOnBeforeCreateMiscData.test.tsx +254 -0
- package/Tests/UI/Components/Icon.test.tsx +32 -0
- package/Tests/UI/Components/Input.test.tsx +31 -0
- package/Tests/UI/Components/LockedFilterChipScope.test.tsx +501 -0
- package/Tests/UI/Components/MarkdownConverters.test.ts +253 -1
- package/Tests/UI/Components/MarkdownEditor.test.tsx +2785 -2
- package/Tests/UI/Components/MarkdownEditorHistory.test.ts +243 -0
- package/Tests/UI/Components/MarkdownListEditing.test.ts +1118 -0
- package/Tests/UI/Components/MarkdownPaste.test.ts +1180 -0
- package/Tests/UI/Components/MarkdownViewerCopy.test.tsx +466 -0
- package/Tests/UI/Components/MarkdownVisualEditing.test.ts +1089 -0
- package/Tests/UI/Components/ModelTable/BaseModelTableEmptyStateAction.test.tsx +623 -0
- package/Tests/UI/Components/ResetObjectID.test.tsx +282 -0
- package/Tests/UI/Components/RuleCriteria/RuleCriteriaModelTable.test.tsx +3 -3
- package/Tests/UI/Components/Table/EmptyTableMessage.test.ts +439 -0
- package/Tests/UI/Components/Table/TableEmptyState.test.tsx +352 -0
- package/Tests/UI/Components/TableRowMobileTitles.test.tsx +78 -0
- package/Tests/UI/Components/TextArea.test.tsx +19 -0
- package/Tests/UI/Components/Workflow/ModelColumnEditor.render.test.tsx +12 -29
- package/Tests/UI/Components/fixtures/MarkdownPasteFixtures.ts +460 -0
- package/Tests/UI/EsbuildConfig.test.ts +115 -39
- package/Tests/UI/EsbuildEnterpriseAlias.test.ts +4 -4
- package/Tests/UI/Monitor/MonitorLogSummaryRender.test.tsx +377 -0
- package/Tests/UI/Utils/Breadcrumb/fixtures/RealBreadcrumbTrails.ts +81 -1
- package/Tests/UI/Utils/Breadcrumb/fixtures/RealRoutePatterns.ts +17 -0
- package/Tests/Utils/LabelRuleImportExport.test.ts +5 -0
- package/Tests/Utils/Markdown/DashboardMarkdownRenderer.ts +81 -0
- package/Tests/Utils/Markdown/UntrustedMarkdown.test.ts +1339 -0
- package/Tests/Utils/Monitor/MonitorLogSummaryUtil.test.ts +862 -0
- package/Types/AI/AIAgentRunLimits.ts +146 -0
- package/Types/Code/CodeType.ts +2 -0
- package/Types/Code/JsonSyntax.ts +923 -0
- package/Types/CustomField/CustomFieldCreateSettings.ts +549 -0
- package/Types/CustomField/CustomFieldMappingCatalog.ts +77 -0
- package/Types/CustomField/CustomFieldValueValidator.ts +10 -7
- package/Types/EnterpriseLicense/EnterpriseLicensePeriods.ts +1 -1
- package/Types/Icon/IconProp.ts +2 -0
- package/Types/Incident/IncidentFormIpAllowlist.ts +206 -0
- package/Types/Incident/IncidentFormPublic.ts +1145 -0
- package/Types/Kubernetes/KubernetesClusterAiAccess.ts +10 -3
- package/Types/MessageQueue/MessageQueueIdentity.ts +256 -0
- package/Types/MessageQueue/MessageQueueManualIdentity.ts +325 -0
- package/Types/MessageQueue/MessageQueueMetricCatalog.ts +1357 -0
- package/Types/MessageQueue/MessagingSystem.ts +518 -0
- package/Types/MessageQueue/MessagingTelemetryResolver.ts +2311 -0
- package/Types/Monitor/MessageQueueAlertTemplates.ts +2128 -0
- package/Types/Permission.ts +310 -0
- package/Types/ResourceAiAgent/ResourceAiAccess.ts +10 -4
- package/Types/Rules/RuleCriteriaFieldRegistry.ts +12 -0
- package/Types/Rules/RuleRun.ts +4 -0
- package/Types/Team/ComplianceNotificationChannel.ts +4 -3
- package/Types/Team/ComplianceRule.ts +71 -18
- package/Types/Team/ComplianceRuleType.ts +2 -2
- package/Types/Team/TeamComplianceStatus.ts +6 -2
- package/Types/Telemetry/EntityType.ts +16 -0
- package/Types/Telemetry/LockedFilterDetail.ts +22 -0
- package/Types/XML.ts +26 -0
- package/UI/Components/CodeEditor/CodeEditor.css +379 -0
- package/UI/Components/CodeEditor/CodeEditor.tsx +1128 -294
- package/UI/Components/CodeEditor/CodeEditorCommands.ts +774 -0
- package/UI/Components/CodeEditor/CodeEditorHighlight.ts +106 -0
- package/UI/Components/CodeEditor/CodeEditorLanguages.ts +164 -0
- package/UI/Components/CodeEditor/YamlEditor.tsx +28 -326
- package/UI/Components/CopyTextButton/CopyTextButton.tsx +5 -1
- package/UI/Components/CustomFields/CustomFieldModelFormFields.tsx +6 -25
- package/UI/Components/EditionLabel/EditionLabel.tsx +14 -13
- package/UI/Components/ErrorMessage/ErrorMessage.tsx +11 -1
- package/UI/Components/Forms/Fields/FormField.tsx +8 -0
- package/UI/Components/Forms/Types/Field.ts +8 -0
- package/UI/Components/Icon/Icon.tsx +18 -0
- package/UI/Components/Input/Input.tsx +11 -4
- package/UI/Components/LogsViewer/LogsViewer.tsx +4 -0
- package/UI/Components/LogsViewer/components/LogsFacetSidebar.tsx +21 -3
- package/UI/Components/Markdown.tsx/MarkdownConverters.ts +0 -0
- package/UI/Components/Markdown.tsx/MarkdownEditor.tsx +877 -79
- package/UI/Components/Markdown.tsx/MarkdownEditorHistory.ts +284 -0
- package/UI/Components/Markdown.tsx/MarkdownListEditing.ts +1362 -0
- package/UI/Components/Markdown.tsx/MarkdownPaste.ts +1326 -0
- package/UI/Components/Markdown.tsx/MarkdownViewer.tsx +106 -10
- package/UI/Components/Markdown.tsx/MarkdownVisualEditing.ts +1032 -0
- package/UI/Components/ModelTable/BaseModelTable.tsx +85 -7
- package/UI/Components/ResetObjectID/ResetObjectID.tsx +35 -9
- package/UI/Components/Table/EmptyTableMessage.ts +81 -0
- package/UI/Components/Table/Table.tsx +50 -21
- package/UI/Components/Table/TableRow.tsx +9 -1
- package/UI/Components/TelemetryViewer/FacetVisibility.ts +97 -2
- package/UI/Components/TelemetryViewer/TelemetryViewer.tsx +13 -0
- package/UI/Components/TelemetryViewer/components/LockedFilterChip.tsx +214 -7
- package/UI/Components/TelemetryViewer/components/TelemetryFacetSidebar.tsx +21 -3
- package/UI/Components/TextArea/TextArea.tsx +9 -2
- package/UI/Components/Workflow/ModelFieldPicker.tsx +10 -12
- package/UI/Styles/Theme.css +8 -0
- package/UI/esbuild-config.js +2 -32
- package/Utils/LabelRuleImportExport.ts +2 -0
- package/Utils/Markdown/UntrustedMarkdown.ts +1513 -0
- package/Utils/Monitor/IncomingEmailMonitorRequestUtil.ts +41 -0
- package/Utils/Monitor/MonitorLogSummaryUtil.ts +212 -0
- package/Utils/Telemetry/EntityKey.ts +48 -0
- package/build/dist/Models/DatabaseModels/AIConversation.js +125 -1
- package/build/dist/Models/DatabaseModels/AIConversation.js.map +1 -1
- package/build/dist/Models/DatabaseModels/CephCluster.js +12 -0
- package/build/dist/Models/DatabaseModels/CephCluster.js.map +1 -1
- package/build/dist/Models/DatabaseModels/CloudResource.js +12 -0
- package/build/dist/Models/DatabaseModels/CloudResource.js.map +1 -1
- package/build/dist/Models/DatabaseModels/DatabaseServer.js +12 -0
- package/build/dist/Models/DatabaseModels/DatabaseServer.js.map +1 -1
- package/build/dist/Models/DatabaseModels/DockerHost.js +12 -0
- package/build/dist/Models/DatabaseModels/DockerHost.js.map +1 -1
- package/build/dist/Models/DatabaseModels/DockerSwarmCluster.js +12 -0
- package/build/dist/Models/DatabaseModels/DockerSwarmCluster.js.map +1 -1
- package/build/dist/Models/DatabaseModels/GlobalOidc.js +0 -4
- package/build/dist/Models/DatabaseModels/GlobalOidc.js.map +1 -1
- package/build/dist/Models/DatabaseModels/GlobalOidcProject.js +0 -4
- package/build/dist/Models/DatabaseModels/GlobalOidcProject.js.map +1 -1
- package/build/dist/Models/DatabaseModels/GlobalSso.js +0 -4
- package/build/dist/Models/DatabaseModels/GlobalSso.js.map +1 -1
- package/build/dist/Models/DatabaseModels/GlobalSsoProject.js +0 -4
- package/build/dist/Models/DatabaseModels/GlobalSsoProject.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Host.js +12 -0
- package/build/dist/Models/DatabaseModels/Host.js.map +1 -1
- package/build/dist/Models/DatabaseModels/IncidentForm.js +605 -0
- package/build/dist/Models/DatabaseModels/IncidentForm.js.map +1 -0
- package/build/dist/Models/DatabaseModels/IncidentFormSubmission.js +299 -0
- package/build/dist/Models/DatabaseModels/IncidentFormSubmission.js.map +1 -0
- package/build/dist/Models/DatabaseModels/IncidentTemplate.js +60 -0
- package/build/dist/Models/DatabaseModels/IncidentTemplate.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Index.js +14 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/IoTFleet.js +12 -0
- package/build/dist/Models/DatabaseModels/IoTFleet.js.map +1 -1
- package/build/dist/Models/DatabaseModels/KubernetesCluster.js +12 -0
- package/build/dist/Models/DatabaseModels/KubernetesCluster.js.map +1 -1
- package/build/dist/Models/DatabaseModels/MessageQueue.js +1106 -0
- package/build/dist/Models/DatabaseModels/MessageQueue.js.map +1 -0
- package/build/dist/Models/DatabaseModels/MessageQueueLabelRule.js +562 -0
- package/build/dist/Models/DatabaseModels/MessageQueueLabelRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/MessageQueueOwnerRule.js +643 -0
- package/build/dist/Models/DatabaseModels/MessageQueueOwnerRule.js.map +1 -0
- package/build/dist/Models/DatabaseModels/MessageQueueOwnerTeam.js +506 -0
- package/build/dist/Models/DatabaseModels/MessageQueueOwnerTeam.js.map +1 -0
- package/build/dist/Models/DatabaseModels/MessageQueueOwnerUser.js +505 -0
- package/build/dist/Models/DatabaseModels/MessageQueueOwnerUser.js.map +1 -0
- package/build/dist/Models/DatabaseModels/PodmanHost.js +12 -0
- package/build/dist/Models/DatabaseModels/PodmanHost.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Project.js +61 -0
- package/build/dist/Models/DatabaseModels/Project.js.map +1 -1
- package/build/dist/Models/DatabaseModels/ProjectOidc.js +0 -4
- package/build/dist/Models/DatabaseModels/ProjectOidc.js.map +1 -1
- package/build/dist/Models/DatabaseModels/ProjectSso.js +0 -4
- package/build/dist/Models/DatabaseModels/ProjectSso.js.map +1 -1
- package/build/dist/Models/DatabaseModels/ProxmoxCluster.js +12 -0
- package/build/dist/Models/DatabaseModels/ProxmoxCluster.js.map +1 -1
- package/build/dist/Models/DatabaseModels/RumApplication.js +12 -0
- package/build/dist/Models/DatabaseModels/RumApplication.js.map +1 -1
- package/build/dist/Models/DatabaseModels/ServerlessFunction.js +12 -0
- package/build/dist/Models/DatabaseModels/ServerlessFunction.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Service.js +12 -0
- package/build/dist/Models/DatabaseModels/Service.js.map +1 -1
- package/build/dist/Models/DatabaseModels/StatusPageOidc.js +0 -4
- package/build/dist/Models/DatabaseModels/StatusPageOidc.js.map +1 -1
- package/build/dist/Models/DatabaseModels/StatusPageSso.js +0 -4
- package/build/dist/Models/DatabaseModels/StatusPageSso.js.map +1 -1
- package/build/dist/Models/DatabaseModels/TeamComplianceSetting.js +49 -3
- package/build/dist/Models/DatabaseModels/TeamComplianceSetting.js.map +1 -1
- package/build/dist/Models/DatabaseModels/VMwareVCenter.js +12 -0
- package/build/dist/Models/DatabaseModels/VMwareVCenter.js.map +1 -1
- package/build/dist/Server/API/AIChatAPI.js +9 -103
- package/build/dist/Server/API/AIChatAPI.js.map +1 -1
- package/build/dist/Server/API/AIInvestigationAPI.js +3 -3
- package/build/dist/Server/API/AIInvestigationAPI.js.map +1 -1
- package/build/dist/Server/API/AIInvestigationConversationAPI.js +162 -0
- package/build/dist/Server/API/AIInvestigationConversationAPI.js.map +1 -0
- package/build/dist/Server/API/IncidentFormAPI.js +245 -0
- package/build/dist/Server/API/IncidentFormAPI.js.map +1 -0
- package/build/dist/Server/API/ProjectOIDC.js +16 -24
- package/build/dist/Server/API/ProjectOIDC.js.map +1 -1
- package/build/dist/Server/API/ProjectSSO.js +16 -24
- package/build/dist/Server/API/ProjectSSO.js.map +1 -1
- package/build/dist/Server/API/StatusPageAPI.js +42 -75
- package/build/dist/Server/API/StatusPageAPI.js.map +1 -1
- package/build/dist/Server/Enterprise/EnterpriseEdition.js +79 -25
- package/build/dist/Server/Enterprise/EnterpriseEdition.js.map +1 -1
- package/build/dist/Server/Enterprise/EnterpriseFeature.js +24 -3
- package/build/dist/Server/Enterprise/EnterpriseFeature.js.map +1 -1
- package/build/dist/Server/Enterprise/EnterpriseLicenseSnapshot.js +1 -1
- package/build/dist/Server/Enterprise/EnterpriseServerModule.js.map +1 -1
- package/build/dist/Server/EnvironmentConfig.js +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1796400000000-AddIncidentForms.js +63 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1796400000000-AddIncidentForms.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1796500000000-AddTeamComplianceRuleNotificationChannels.js +41 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1796500000000-AddTeamComplianceRuleNotificationChannels.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1796600000000-AddAIInvestigationConversationAndTimeLimits.js +40 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1796600000000-AddAIInvestigationConversationAndTimeLimits.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1796700000000-AddMessageQueueTables.js +183 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1796700000000-AddMessageQueueTables.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +8 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Middleware/IncidentFormRateLimit.js +559 -0
- package/build/dist/Server/Middleware/IncidentFormRateLimit.js.map +1 -0
- package/build/dist/Server/Middleware/UserAuthorization.js +11 -30
- package/build/dist/Server/Middleware/UserAuthorization.js.map +1 -1
- package/build/dist/Server/Services/AIService.js +10 -13
- package/build/dist/Server/Services/AIService.js.map +1 -1
- package/build/dist/Server/Services/IncidentCustomFieldService.js +83 -0
- package/build/dist/Server/Services/IncidentCustomFieldService.js.map +1 -1
- package/build/dist/Server/Services/IncidentEpisodeMemberService.js +8 -4
- package/build/dist/Server/Services/IncidentEpisodeMemberService.js.map +1 -1
- package/build/dist/Server/Services/IncidentEpisodeService.js +10 -1
- package/build/dist/Server/Services/IncidentEpisodeService.js.map +1 -1
- package/build/dist/Server/Services/IncidentFormService.js +1202 -0
- package/build/dist/Server/Services/IncidentFormService.js.map +1 -0
- package/build/dist/Server/Services/IncidentFormSubmissionService.js +91 -0
- package/build/dist/Server/Services/IncidentFormSubmissionService.js.map +1 -0
- package/build/dist/Server/Services/IncidentGroupingEngineService.js +20 -8
- package/build/dist/Server/Services/IncidentGroupingEngineService.js.map +1 -1
- package/build/dist/Server/Services/IncidentService.js +106 -4
- package/build/dist/Server/Services/IncidentService.js.map +1 -1
- package/build/dist/Server/Services/IncidentTemplateService.js +18 -0
- package/build/dist/Server/Services/IncidentTemplateService.js.map +1 -1
- package/build/dist/Server/Services/Index.js +14 -0
- package/build/dist/Server/Services/Index.js.map +1 -1
- package/build/dist/Server/Services/MessageQueueLabelRuleEngineService.js +262 -0
- package/build/dist/Server/Services/MessageQueueLabelRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/MessageQueueLabelRuleService.js +13 -0
- package/build/dist/Server/Services/MessageQueueLabelRuleService.js.map +1 -0
- package/build/dist/Server/Services/MessageQueueOwnerRuleEngineService.js +334 -0
- package/build/dist/Server/Services/MessageQueueOwnerRuleEngineService.js.map +1 -0
- package/build/dist/Server/Services/MessageQueueOwnerRuleService.js +13 -0
- package/build/dist/Server/Services/MessageQueueOwnerRuleService.js.map +1 -0
- package/build/dist/Server/Services/MessageQueueOwnerTeamService.js +62 -0
- package/build/dist/Server/Services/MessageQueueOwnerTeamService.js.map +1 -0
- package/build/dist/Server/Services/MessageQueueOwnerUserService.js +62 -0
- package/build/dist/Server/Services/MessageQueueOwnerUserService.js.map +1 -0
- package/build/dist/Server/Services/MessageQueueService.js +1140 -0
- package/build/dist/Server/Services/MessageQueueService.js.map +1 -0
- package/build/dist/Server/Services/OpenTelemetryIngestService.js +25 -4
- package/build/dist/Server/Services/OpenTelemetryIngestService.js.map +1 -1
- package/build/dist/Server/Services/ProjectService.js +0 -54
- package/build/dist/Server/Services/ProjectService.js.map +1 -1
- package/build/dist/Server/Services/StatusPagePrivateUserService.js +1 -4
- package/build/dist/Server/Services/StatusPagePrivateUserService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageService.js +0 -46
- package/build/dist/Server/Services/StatusPageService.js.map +1 -1
- package/build/dist/Server/Services/TeamComplianceSettingService.js +120 -31
- package/build/dist/Server/Services/TeamComplianceSettingService.js.map +1 -1
- package/build/dist/Server/Services/UserNotificationRuleService.js +8 -1
- package/build/dist/Server/Services/UserNotificationRuleService.js.map +1 -1
- package/build/dist/Server/Services/WorkspaceNotificationSummaryService.js +12 -3
- package/build/dist/Server/Services/WorkspaceNotificationSummaryService.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/CreatePermission.js +6 -3
- package/build/dist/Server/Types/Database/Permissions/CreatePermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/EditionPermission.js +109 -37
- package/build/dist/Server/Types/Database/Permissions/EditionPermission.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/OwnerTableRegistry.js +16 -0
- package/build/dist/Server/Types/Database/Permissions/OwnerTableRegistry.js.map +1 -1
- package/build/dist/Server/Types/Database/Permissions/TablePermission.js +3 -3
- package/build/dist/Server/Types/Database/Permissions/UpdatePermission.js +9 -6
- package/build/dist/Server/Types/Database/Permissions/UpdatePermission.js.map +1 -1
- package/build/dist/Server/Utils/AI/Chat/AgentContextCompactor.js +128 -0
- package/build/dist/Server/Utils/AI/Chat/AgentContextCompactor.js.map +1 -0
- package/build/dist/Server/Utils/AI/Chat/ChatAgentRunner.js +192 -50
- package/build/dist/Server/Utils/AI/Chat/ChatAgentRunner.js.map +1 -1
- package/build/dist/Server/Utils/AI/Chat/ChatRunCancellation.js +133 -0
- package/build/dist/Server/Utils/AI/Chat/ChatRunCancellation.js.map +1 -0
- package/build/dist/Server/Utils/AI/Chat/ObservabilityAssistant.js +53 -13
- package/build/dist/Server/Utils/AI/Chat/ObservabilityAssistant.js.map +1 -1
- package/build/dist/Server/Utils/AI/Chat/ObservabilityChatPrompt.js +1 -1
- package/build/dist/Server/Utils/AI/Chat/ToolOutputPager.js +206 -0
- package/build/dist/Server/Utils/AI/Chat/ToolOutputPager.js.map +1 -0
- package/build/dist/Server/Utils/AI/ClusterAccess/KubectlInvestigationToolkit.js +53 -26
- package/build/dist/Server/Utils/AI/ClusterAccess/KubectlInvestigationToolkit.js.map +1 -1
- package/build/dist/Server/Utils/AI/ClusterAccess/KubectlJobRunner.js +4 -2
- package/build/dist/Server/Utils/AI/ClusterAccess/KubectlJobRunner.js.map +1 -1
- package/build/dist/Server/Utils/AI/CodeFix/CodeFixReadiness.js +1 -29
- package/build/dist/Server/Utils/AI/CodeFix/CodeFixReadiness.js.map +1 -1
- package/build/dist/Server/Utils/AI/CodeFix/FixRunBudget.js +24 -24
- package/build/dist/Server/Utils/AI/CodeFix/FixRunBudget.js.map +1 -1
- package/build/dist/Server/Utils/AI/Remediation/RemediationCommandTools.js +7 -2
- package/build/dist/Server/Utils/AI/Remediation/RemediationCommandTools.js.map +1 -1
- package/build/dist/Server/Utils/AI/Remediation/RemediationExecutionRunner.js +29 -14
- package/build/dist/Server/Utils/AI/Remediation/RemediationExecutionRunner.js.map +1 -1
- package/build/dist/Server/Utils/AI/ResourceAccess/InfrastructureInvestigationToolkit.js +38 -14
- package/build/dist/Server/Utils/AI/ResourceAccess/InfrastructureInvestigationToolkit.js.map +1 -1
- package/build/dist/Server/Utils/AI/ResourceAccess/ResourceCommandJobRunner.js +2 -0
- package/build/dist/Server/Utils/AI/ResourceAccess/ResourceCommandJobRunner.js.map +1 -1
- package/build/dist/Server/Utils/AI/SRE/AIInvestigationEngine.js +40 -10
- package/build/dist/Server/Utils/AI/SRE/AIInvestigationEngine.js.map +1 -1
- package/build/dist/Server/Utils/AI/SRE/AlertInvestigationRunner.js +19 -7
- package/build/dist/Server/Utils/AI/SRE/AlertInvestigationRunner.js.map +1 -1
- package/build/dist/Server/Utils/AI/SRE/IncidentInvestigationRunner.js +19 -7
- package/build/dist/Server/Utils/AI/SRE/IncidentInvestigationRunner.js.map +1 -1
- package/build/dist/Server/Utils/AI/SRE/InvestigationQueue.js +15 -18
- package/build/dist/Server/Utils/AI/SRE/InvestigationQueue.js.map +1 -1
- package/build/dist/Server/Utils/AI/SRE/InvestigationThread.js +412 -0
- package/build/dist/Server/Utils/AI/SRE/InvestigationThread.js.map +1 -0
- package/build/dist/Server/Utils/AI/SRE/InvestigationThreadService.js +495 -0
- package/build/dist/Server/Utils/AI/SRE/InvestigationThreadService.js.map +1 -0
- package/build/dist/Server/Utils/AI/Toolbox/Serializer.js +10 -3
- package/build/dist/Server/Utils/AI/Toolbox/Serializer.js.map +1 -1
- package/build/dist/Server/Utils/EditionEnforcement.js +20 -158
- package/build/dist/Server/Utils/EditionEnforcement.js.map +1 -1
- package/build/dist/Server/Utils/LLM/LLMService.js +193 -54
- package/build/dist/Server/Utils/LLM/LLMService.js.map +1 -1
- package/build/dist/Server/Utils/RelaxedScimTeamLocksReport.js +160 -0
- package/build/dist/Server/Utils/RelaxedScimTeamLocksReport.js.map +1 -0
- package/build/dist/Server/Utils/Rules/RuleRun/RuleRunRegistry.js +25 -0
- package/build/dist/Server/Utils/Rules/RuleRun/RuleRunRegistry.js.map +1 -1
- package/build/dist/Server/Utils/SameOriginRequest.js +151 -0
- package/build/dist/Server/Utils/SameOriginRequest.js.map +1 -0
- package/build/dist/Server/Utils/TeamMember/ProjectLeaveResourceCleanup.js +2 -0
- package/build/dist/Server/Utils/TeamMember/ProjectLeaveResourceCleanup.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/EntityRegistry.js +4 -1
- package/build/dist/Server/Utils/Telemetry/EntityRegistry.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/MessageQueueDiscovery.js +1015 -0
- package/build/dist/Server/Utils/Telemetry/MessageQueueDiscovery.js.map +1 -0
- package/build/dist/Server/Utils/Telemetry/ResourceEntityFilter.js +4 -1
- package/build/dist/Server/Utils/Telemetry/ResourceEntityFilter.js.map +1 -1
- package/build/dist/Server/Utils/VendorAssets.js +3 -3
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/Incident.js +3 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/Incident.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/IncidentEpisode.js +3 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/Actions/IncidentEpisode.js.map +1 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.js +10 -1
- package/build/dist/Server/Utils/Workspace/MicrosoftTeams/MicrosoftTeams.js.map +1 -1
- package/build/dist/Types/AI/AIAgentRunLimits.js +91 -0
- package/build/dist/Types/AI/AIAgentRunLimits.js.map +1 -0
- package/build/dist/Types/Code/CodeType.js +2 -0
- package/build/dist/Types/Code/CodeType.js.map +1 -1
- package/build/dist/Types/Code/JsonSyntax.js +604 -0
- package/build/dist/Types/Code/JsonSyntax.js.map +1 -0
- package/build/dist/Types/CustomField/CustomFieldCreateSettings.js +310 -0
- package/build/dist/Types/CustomField/CustomFieldCreateSettings.js.map +1 -0
- package/build/dist/Types/CustomField/CustomFieldMappingCatalog.js +38 -0
- package/build/dist/Types/CustomField/CustomFieldMappingCatalog.js.map +1 -1
- package/build/dist/Types/CustomField/CustomFieldValueValidator.js +10 -7
- package/build/dist/Types/CustomField/CustomFieldValueValidator.js.map +1 -1
- package/build/dist/Types/EnterpriseLicense/EnterpriseLicensePeriods.js +1 -1
- package/build/dist/Types/Icon/IconProp.js +2 -0
- package/build/dist/Types/Icon/IconProp.js.map +1 -1
- package/build/dist/Types/Incident/IncidentFormIpAllowlist.js +119 -0
- package/build/dist/Types/Incident/IncidentFormIpAllowlist.js.map +1 -0
- package/build/dist/Types/Incident/IncidentFormPublic.js +678 -0
- package/build/dist/Types/Incident/IncidentFormPublic.js.map +1 -0
- package/build/dist/Types/Kubernetes/KubernetesClusterAiAccess.js +10 -3
- package/build/dist/Types/Kubernetes/KubernetesClusterAiAccess.js.map +1 -1
- package/build/dist/Types/MessageQueue/MessageQueueIdentity.js +184 -0
- package/build/dist/Types/MessageQueue/MessageQueueIdentity.js.map +1 -0
- package/build/dist/Types/MessageQueue/MessageQueueManualIdentity.js +190 -0
- package/build/dist/Types/MessageQueue/MessageQueueManualIdentity.js.map +1 -0
- package/build/dist/Types/MessageQueue/MessageQueueMetricCatalog.js +1057 -0
- package/build/dist/Types/MessageQueue/MessageQueueMetricCatalog.js.map +1 -0
- package/build/dist/Types/MessageQueue/MessagingSystem.js +394 -0
- package/build/dist/Types/MessageQueue/MessagingSystem.js.map +1 -0
- package/build/dist/Types/MessageQueue/MessagingTelemetryResolver.js +1768 -0
- package/build/dist/Types/MessageQueue/MessagingTelemetryResolver.js.map +1 -0
- package/build/dist/Types/Monitor/MessageQueueAlertTemplates.js +1207 -0
- package/build/dist/Types/Monitor/MessageQueueAlertTemplates.js.map +1 -0
- package/build/dist/Types/Permission.js +274 -0
- package/build/dist/Types/Permission.js.map +1 -1
- package/build/dist/Types/ResourceAiAgent/ResourceAiAccess.js +10 -4
- package/build/dist/Types/ResourceAiAgent/ResourceAiAccess.js.map +1 -1
- package/build/dist/Types/Rules/RuleCriteriaFieldRegistry.js +12 -0
- package/build/dist/Types/Rules/RuleCriteriaFieldRegistry.js.map +1 -1
- package/build/dist/Types/Rules/RuleRun.js +4 -0
- package/build/dist/Types/Rules/RuleRun.js.map +1 -1
- package/build/dist/Types/Team/ComplianceNotificationChannel.js +4 -3
- package/build/dist/Types/Team/ComplianceNotificationChannel.js.map +1 -1
- package/build/dist/Types/Team/ComplianceRule.js +48 -14
- package/build/dist/Types/Team/ComplianceRule.js.map +1 -1
- package/build/dist/Types/Team/ComplianceRuleType.js +2 -2
- package/build/dist/Types/Telemetry/EntityType.js +16 -0
- package/build/dist/Types/Telemetry/EntityType.js.map +1 -1
- package/build/dist/Types/XML.js +23 -0
- package/build/dist/Types/XML.js.map +1 -1
- package/build/dist/UI/Components/CodeEditor/CodeEditor.js +641 -266
- package/build/dist/UI/Components/CodeEditor/CodeEditor.js.map +1 -1
- package/build/dist/UI/Components/CodeEditor/CodeEditorCommands.js +464 -0
- package/build/dist/UI/Components/CodeEditor/CodeEditorCommands.js.map +1 -0
- package/build/dist/UI/Components/CodeEditor/CodeEditorHighlight.js +69 -0
- package/build/dist/UI/Components/CodeEditor/CodeEditorHighlight.js.map +1 -0
- package/build/dist/UI/Components/CodeEditor/CodeEditorLanguages.js +108 -0
- package/build/dist/UI/Components/CodeEditor/CodeEditorLanguages.js.map +1 -0
- package/build/dist/UI/Components/CodeEditor/YamlEditor.js +14 -186
- package/build/dist/UI/Components/CodeEditor/YamlEditor.js.map +1 -1
- package/build/dist/UI/Components/CopyTextButton/CopyTextButton.js +5 -1
- package/build/dist/UI/Components/CopyTextButton/CopyTextButton.js.map +1 -1
- package/build/dist/UI/Components/CustomFields/CustomFieldModelFormFields.js +5 -14
- package/build/dist/UI/Components/CustomFields/CustomFieldModelFormFields.js.map +1 -1
- package/build/dist/UI/Components/EditionLabel/EditionLabel.js +14 -13
- package/build/dist/UI/Components/EditionLabel/EditionLabel.js.map +1 -1
- package/build/dist/UI/Components/ErrorMessage/ErrorMessage.js +1 -1
- package/build/dist/UI/Components/ErrorMessage/ErrorMessage.js.map +1 -1
- package/build/dist/UI/Components/Forms/Fields/FormField.js +8 -3
- package/build/dist/UI/Components/Forms/Fields/FormField.js.map +1 -1
- package/build/dist/UI/Components/Icon/Icon.js +8 -0
- package/build/dist/UI/Components/Icon/Icon.js.map +1 -1
- package/build/dist/UI/Components/Input/Input.js +11 -3
- package/build/dist/UI/Components/Input/Input.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/LogsViewer.js +2 -1
- package/build/dist/UI/Components/LogsViewer/LogsViewer.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/components/LogsFacetSidebar.js +14 -4
- package/build/dist/UI/Components/LogsViewer/components/LogsFacetSidebar.js.map +1 -1
- package/build/dist/UI/Components/Markdown.tsx/MarkdownConverters.js +0 -0
- package/build/dist/UI/Components/Markdown.tsx/MarkdownConverters.js.map +1 -1
- package/build/dist/UI/Components/Markdown.tsx/MarkdownEditor.js +710 -65
- package/build/dist/UI/Components/Markdown.tsx/MarkdownEditor.js.map +1 -1
- package/build/dist/UI/Components/Markdown.tsx/MarkdownEditorHistory.js +238 -0
- package/build/dist/UI/Components/Markdown.tsx/MarkdownEditorHistory.js.map +1 -0
- package/build/dist/UI/Components/Markdown.tsx/MarkdownListEditing.js +1028 -0
- package/build/dist/UI/Components/Markdown.tsx/MarkdownListEditing.js.map +1 -0
- package/build/dist/UI/Components/Markdown.tsx/MarkdownPaste.js +1088 -0
- package/build/dist/UI/Components/Markdown.tsx/MarkdownPaste.js.map +1 -0
- package/build/dist/UI/Components/Markdown.tsx/MarkdownViewer.js +70 -10
- package/build/dist/UI/Components/Markdown.tsx/MarkdownViewer.js.map +1 -1
- package/build/dist/UI/Components/Markdown.tsx/MarkdownVisualEditing.js +887 -0
- package/build/dist/UI/Components/Markdown.tsx/MarkdownVisualEditing.js.map +1 -0
- package/build/dist/UI/Components/ModelTable/BaseModelTable.js +57 -6
- package/build/dist/UI/Components/ModelTable/BaseModelTable.js.map +1 -1
- package/build/dist/UI/Components/ResetObjectID/ResetObjectID.js +7 -5
- package/build/dist/UI/Components/ResetObjectID/ResetObjectID.js.map +1 -1
- package/build/dist/UI/Components/Table/EmptyTableMessage.js +51 -0
- package/build/dist/UI/Components/Table/EmptyTableMessage.js.map +1 -0
- package/build/dist/UI/Components/Table/Table.js +30 -11
- package/build/dist/UI/Components/Table/Table.js.map +1 -1
- package/build/dist/UI/Components/Table/TableRow.js +9 -2
- package/build/dist/UI/Components/Table/TableRow.js.map +1 -1
- package/build/dist/UI/Components/TelemetryViewer/FacetVisibility.js +63 -1
- package/build/dist/UI/Components/TelemetryViewer/FacetVisibility.js.map +1 -1
- package/build/dist/UI/Components/TelemetryViewer/TelemetryViewer.js +4 -2
- package/build/dist/UI/Components/TelemetryViewer/TelemetryViewer.js.map +1 -1
- package/build/dist/UI/Components/TelemetryViewer/components/LockedFilterChip.js +91 -10
- package/build/dist/UI/Components/TelemetryViewer/components/LockedFilterChip.js.map +1 -1
- package/build/dist/UI/Components/TelemetryViewer/components/TelemetryFacetSidebar.js +14 -4
- package/build/dist/UI/Components/TelemetryViewer/components/TelemetryFacetSidebar.js.map +1 -1
- package/build/dist/UI/Components/TextArea/TextArea.js +9 -3
- package/build/dist/UI/Components/TextArea/TextArea.js.map +1 -1
- package/build/dist/UI/Components/Workflow/ModelFieldPicker.js +1 -2
- package/build/dist/UI/Components/Workflow/ModelFieldPicker.js.map +1 -1
- package/build/dist/Utils/LabelRuleImportExport.js +2 -0
- package/build/dist/Utils/LabelRuleImportExport.js.map +1 -1
- package/build/dist/Utils/Markdown/UntrustedMarkdown.js +988 -0
- package/build/dist/Utils/Markdown/UntrustedMarkdown.js.map +1 -0
- package/build/dist/Utils/Monitor/IncomingEmailMonitorRequestUtil.js +34 -0
- package/build/dist/Utils/Monitor/IncomingEmailMonitorRequestUtil.js.map +1 -0
- package/build/dist/Utils/Monitor/MonitorLogSummaryUtil.js +148 -0
- package/build/dist/Utils/Monitor/MonitorLogSummaryUtil.js.map +1 -0
- package/build/dist/Utils/Telemetry/EntityKey.js +36 -0
- package/build/dist/Utils/Telemetry/EntityKey.js.map +1 -1
- package/package.json +1 -3
- package/Server/Utils/CommunityEditionSsoReport.ts +0 -361
- package/Tests/App/Accounts/LoginSsoEdition.test.tsx +0 -616
- package/Tests/App/AdminDashboard/AdminAuthenticationSsoEdition.test.tsx +0 -217
- package/Tests/App/AdminDashboard/GlobalSSOEnterpriseShells.test.tsx +0 -271
- package/Tests/App/Dashboard/CloudDocumentationMarkdown.test.ts +0 -215
- package/Tests/App/Dashboard/TelemetryResourceRetentionSettings.test.tsx +0 -784
- package/Tests/Server/Middleware/UserAuthorizationEditionEnforcement.test.ts +0 -518
- package/Tests/Server/Services/SsoRequirementReadMasking.test.ts +0 -419
- package/Tests/Server/Services/SsoRequirementWriteGuard.test.ts +0 -769
- package/Tests/UI/Components/CodeEditor.test.tsx +0 -638
- package/Tests/UI/Components/MonacoLoader.test.ts +0 -67
- package/Tests/UI/Components/MonacoRuntime.test.ts +0 -121
- package/Tests/UI/Components/Telemetry/TelemetryRetentionConfigForm.test.tsx +0 -329
- package/Tests/UI/Components/YamlEditor.test.tsx +0 -847
- package/UI/Components/CodeEditor/MonacoLoader.ts +0 -36
- package/UI/Components/Telemetry/TelemetryRetentionConfigForm.tsx +0 -319
- package/UI/Components/Telemetry/TelemetryRetentionConfigSummary.tsx +0 -223
- package/build/dist/Server/Utils/CommunityEditionSsoReport.js +0 -223
- package/build/dist/Server/Utils/CommunityEditionSsoReport.js.map +0 -1
- package/build/dist/UI/Components/CodeEditor/MonacoLoader.js +0 -34
- package/build/dist/UI/Components/CodeEditor/MonacoLoader.js.map +0 -1
- package/build/dist/UI/Components/Telemetry/TelemetryRetentionConfigForm.js +0 -171
- package/build/dist/UI/Components/Telemetry/TelemetryRetentionConfigForm.js.map +0 -1
- package/build/dist/UI/Components/Telemetry/TelemetryRetentionConfigSummary.js +0 -119
- package/build/dist/UI/Components/Telemetry/TelemetryRetentionConfigSummary.js.map +0 -1
|
@@ -0,0 +1,889 @@
|
|
|
1
|
+
import { beforeEach, describe, expect, jest, test } from "@jest/globals";
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* How a queue's broker metrics are READ, against an emulation of the
|
|
5
|
+
* aggregate endpoint that does what the server does with a request: it
|
|
6
|
+
* buckets the stored points on the interval grid (the window's own
|
|
7
|
+
* interval, or the one pinned), groups them by the request's group-by,
|
|
8
|
+
* folds each group with the request's aggregation, orders the rows newest
|
|
9
|
+
* first, applies the row limit and flags a full page `truncated`
|
|
10
|
+
* (AnalyticsDatabaseService.aggregateBy). What these pin:
|
|
11
|
+
*
|
|
12
|
+
* - a per-period count (aggregation Sum) is never carried into an
|
|
13
|
+
* interval it has no point in: one burst of errors counts once, and the
|
|
14
|
+
* page reads the very query its monitor evaluates (Sum, no group-by);
|
|
15
|
+
* - a per-series read that the row limit cut off is read again at a
|
|
16
|
+
* coarser interval its series fit, so a partitioned topic's chart
|
|
17
|
+
* starts at the start of the range with every partition in every
|
|
18
|
+
* interval; where the fold composes (Max of Max, Sum of Sum) there is
|
|
19
|
+
* one pooled read and nothing to cut off; a read still cut off drops
|
|
20
|
+
* the interval the limit cut through rather than chart a partial total;
|
|
21
|
+
* - a per-period count keeps whole intervals only: the one still filling
|
|
22
|
+
* is never the tile, and a late source's recent intervals wait until
|
|
23
|
+
* its points can have arrived.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
jest.mock("../../../UI/Utils/AnalyticsModelAPI/AnalyticsModelAPI", () => {
|
|
27
|
+
return {
|
|
28
|
+
__esModule: true,
|
|
29
|
+
default: {
|
|
30
|
+
aggregate: (request: unknown): Promise<unknown> => {
|
|
31
|
+
return Promise.resolve(emulateAggregate(request as AggregateRequest));
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
import {
|
|
38
|
+
MESSAGE_QUEUE_SERIES_READ_MAX_WIDENINGS,
|
|
39
|
+
MessageQueueMetricReadPlan,
|
|
40
|
+
MessageQueueTimePoint,
|
|
41
|
+
combineMessageQueueCountSeries,
|
|
42
|
+
fetchMessageQueueCatalogMetricSeries,
|
|
43
|
+
getCompleteMessageQueueCountSeries,
|
|
44
|
+
getMessageQueueCountSettleMs,
|
|
45
|
+
getMessageQueueMetricReadPlan,
|
|
46
|
+
getMessageQueueSeriesReadInterval,
|
|
47
|
+
toMessageQueueBrokerMetricResult,
|
|
48
|
+
} from "../../../../App/FeatureSet/Dashboard/src/Components/MessageQueue/MessageQueueTelemetryQueries";
|
|
49
|
+
import AggregatedModel from "../../../Types/BaseDatabase/AggregatedModel";
|
|
50
|
+
import AggregatedResult from "../../../Types/BaseDatabase/AggregatedResult";
|
|
51
|
+
import AggregationInterval from "../../../Types/BaseDatabase/AggregationInterval";
|
|
52
|
+
import AggregationIntervalUtil from "../../../Types/BaseDatabase/AggregationIntervalUtil";
|
|
53
|
+
import AggregationType from "../../../Types/BaseDatabase/AggregationType";
|
|
54
|
+
import { LIMIT_PER_PROJECT } from "../../../Types/Database/LimitMax";
|
|
55
|
+
import {
|
|
56
|
+
MESSAGE_QUEUE_METRICS,
|
|
57
|
+
MessageQueueMetricDescriptor,
|
|
58
|
+
getMessageQueueMetricDescriptorsByName,
|
|
59
|
+
} from "../../../Types/MessageQueue/MessageQueueMetricCatalog";
|
|
60
|
+
import {
|
|
61
|
+
MessageQueueMetricMonitorSeed,
|
|
62
|
+
getMessageQueueMetricMonitorSeed,
|
|
63
|
+
} from "../../../Types/Monitor/MessageQueueAlertTemplates";
|
|
64
|
+
|
|
65
|
+
interface AggregateRequest {
|
|
66
|
+
modelType: unknown;
|
|
67
|
+
aggregateBy: {
|
|
68
|
+
query: Record<string, unknown>;
|
|
69
|
+
aggregationType: AggregationType;
|
|
70
|
+
aggregationInterval?: AggregationInterval | undefined;
|
|
71
|
+
groupBy?: Record<string, unknown> | undefined;
|
|
72
|
+
groupByAttributeKeys?: Array<string> | undefined;
|
|
73
|
+
startTimestamp: Date;
|
|
74
|
+
endTimestamp: Date;
|
|
75
|
+
limit: number;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// One stored datapoint of the metric the test reads.
|
|
80
|
+
interface StoredPoint {
|
|
81
|
+
time: number;
|
|
82
|
+
value: number;
|
|
83
|
+
attributes: Record<string, string>;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
interface RowGroup {
|
|
87
|
+
time: number;
|
|
88
|
+
attributes: Record<string, string> | null;
|
|
89
|
+
values: Array<number>;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
let stored: Array<StoredPoint> = [];
|
|
93
|
+
let requests: Array<AggregateRequest> = [];
|
|
94
|
+
// A row limit below the request's, for a test that must stay cut off.
|
|
95
|
+
let serverRowLimit: number | null = null;
|
|
96
|
+
|
|
97
|
+
function fold(values: Array<number>, type: AggregationType): number {
|
|
98
|
+
const total: number = values.reduce((sum: number, value: number): number => {
|
|
99
|
+
return sum + value;
|
|
100
|
+
}, 0);
|
|
101
|
+
switch (type) {
|
|
102
|
+
case AggregationType.Max:
|
|
103
|
+
return Math.max(...values);
|
|
104
|
+
case AggregationType.Min:
|
|
105
|
+
return Math.min(...values);
|
|
106
|
+
case AggregationType.Avg:
|
|
107
|
+
return total / values.length;
|
|
108
|
+
case AggregationType.Count:
|
|
109
|
+
return values.length;
|
|
110
|
+
default:
|
|
111
|
+
return total;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function emulateAggregate(request: AggregateRequest): AggregatedResult {
|
|
116
|
+
requests.push(request);
|
|
117
|
+
const by: AggregateRequest["aggregateBy"] = request.aggregateBy;
|
|
118
|
+
const widthMs: number = AggregationIntervalUtil.getAggregationIntervalMs(
|
|
119
|
+
AggregationIntervalUtil.getAggregationIntervalForWindow({
|
|
120
|
+
startDate: by.startTimestamp,
|
|
121
|
+
endDate: by.endTimestamp,
|
|
122
|
+
aggregationInterval: by.aggregationInterval,
|
|
123
|
+
}),
|
|
124
|
+
);
|
|
125
|
+
|
|
126
|
+
const groups: Map<string, RowGroup> = new Map<string, RowGroup>();
|
|
127
|
+
for (const point of stored) {
|
|
128
|
+
if (
|
|
129
|
+
point.time < by.startTimestamp.getTime() ||
|
|
130
|
+
point.time > by.endTimestamp.getTime()
|
|
131
|
+
) {
|
|
132
|
+
continue;
|
|
133
|
+
}
|
|
134
|
+
// toStartOfInterval: the epoch-aligned grid.
|
|
135
|
+
const bucket: number = Math.floor(point.time / widthMs) * widthMs;
|
|
136
|
+
let attributes: Record<string, string> | null = null;
|
|
137
|
+
if (by.groupBy && by.groupBy["attributes"]) {
|
|
138
|
+
attributes = { ...point.attributes };
|
|
139
|
+
} else if (by.groupByAttributeKeys && by.groupByAttributeKeys.length > 0) {
|
|
140
|
+
attributes = {};
|
|
141
|
+
for (const key of by.groupByAttributeKeys) {
|
|
142
|
+
attributes[key] = point.attributes[key] || "";
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
const key: string = `${bucket}|${JSON.stringify(attributes)}`;
|
|
146
|
+
let group: RowGroup | undefined = groups.get(key);
|
|
147
|
+
if (!group) {
|
|
148
|
+
group = { time: bucket, attributes: attributes, values: [] };
|
|
149
|
+
groups.set(key, group);
|
|
150
|
+
}
|
|
151
|
+
group.values.push(point.value);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
const rows: Array<AggregatedModel> = Array.from(groups.values())
|
|
155
|
+
.map((group: RowGroup): AggregatedModel => {
|
|
156
|
+
const row: AggregatedModel = {
|
|
157
|
+
timestamp: new Date(group.time),
|
|
158
|
+
value: fold(group.values, by.aggregationType),
|
|
159
|
+
};
|
|
160
|
+
if (group.attributes) {
|
|
161
|
+
row["attributes"] = group.attributes;
|
|
162
|
+
}
|
|
163
|
+
return row;
|
|
164
|
+
})
|
|
165
|
+
.sort((a: AggregatedModel, b: AggregatedModel): number => {
|
|
166
|
+
return b.timestamp.getTime() - a.timestamp.getTime();
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
const limit: number = Math.min(
|
|
170
|
+
Number(by.limit),
|
|
171
|
+
serverRowLimit === null ? Number.POSITIVE_INFINITY : serverRowLimit,
|
|
172
|
+
);
|
|
173
|
+
const data: Array<AggregatedModel> = rows.slice(0, limit);
|
|
174
|
+
return { data: data, truncated: data.length >= limit };
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
const MINUTE: number = 60 * 1000;
|
|
178
|
+
const PROJECT_ID: string = "8f2a1b3c-4d5e-4f60-9a7b-1c2d3e4f5a6b";
|
|
179
|
+
const KEY: string = "0123456789abcdef";
|
|
180
|
+
// A window in the past, on the fifteen-minute grid: every interval closed.
|
|
181
|
+
const T0: number = Date.UTC(2026, 8, 20, 6, 0, 0);
|
|
182
|
+
|
|
183
|
+
function descriptorOf(
|
|
184
|
+
system: string,
|
|
185
|
+
metricName: string,
|
|
186
|
+
): MessageQueueMetricDescriptor {
|
|
187
|
+
const descriptor: MessageQueueMetricDescriptor | undefined =
|
|
188
|
+
getMessageQueueMetricDescriptorsByName(metricName).find(
|
|
189
|
+
(candidate: MessageQueueMetricDescriptor): boolean => {
|
|
190
|
+
return candidate.system === system;
|
|
191
|
+
},
|
|
192
|
+
);
|
|
193
|
+
if (!descriptor) {
|
|
194
|
+
throw new Error(`No catalog entry ${system}:${metricName}`);
|
|
195
|
+
}
|
|
196
|
+
return descriptor;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
function store(
|
|
200
|
+
time: number,
|
|
201
|
+
value: number,
|
|
202
|
+
attributes: Record<string, string> = {},
|
|
203
|
+
): void {
|
|
204
|
+
stored.push({ time: time, value: value, attributes: attributes });
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
function read(data: {
|
|
208
|
+
descriptor: MessageQueueMetricDescriptor;
|
|
209
|
+
start: number;
|
|
210
|
+
end: number;
|
|
211
|
+
now?: number | undefined;
|
|
212
|
+
}): Promise<Array<MessageQueueTimePoint>> {
|
|
213
|
+
return fetchMessageQueueCatalogMetricSeries({
|
|
214
|
+
projectId: PROJECT_ID,
|
|
215
|
+
keys: [KEY],
|
|
216
|
+
start: new Date(data.start),
|
|
217
|
+
end: new Date(data.end),
|
|
218
|
+
descriptor: data.descriptor,
|
|
219
|
+
now: data.now,
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
function valuesOf(series: Array<MessageQueueTimePoint>): Array<number> {
|
|
224
|
+
return series.map((point: MessageQueueTimePoint): number => {
|
|
225
|
+
return point.y;
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
function minutesOf(series: Array<MessageQueueTimePoint>): Array<number> {
|
|
230
|
+
return series.map((point: MessageQueueTimePoint): number => {
|
|
231
|
+
return (point.x.getTime() - T0) / MINUTE;
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
beforeEach(() => {
|
|
236
|
+
stored = [];
|
|
237
|
+
requests = [];
|
|
238
|
+
serverRowLimit = null;
|
|
239
|
+
});
|
|
240
|
+
|
|
241
|
+
describe("a per-period count is never carried into an interval it has no point in", () => {
|
|
242
|
+
test("Pub/Sub publish requests: one minute of failed requests counts in that minute only", async () => {
|
|
243
|
+
const sendRequests: MessageQueueMetricDescriptor = descriptorOf(
|
|
244
|
+
"gcp_pubsub",
|
|
245
|
+
"pubsub.googleapis.com/topic/send_request_count",
|
|
246
|
+
);
|
|
247
|
+
// A DELTA series per response code: failures only in the minutes with some.
|
|
248
|
+
for (let minute: number = 0; minute < 5; minute++) {
|
|
249
|
+
store(T0 + minute * MINUTE, 100, {
|
|
250
|
+
response_class: "success",
|
|
251
|
+
response_code: "OK",
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
store(T0 + MINUTE, 7, {
|
|
255
|
+
response_class: "deadline_exceeded",
|
|
256
|
+
response_code: "DEADLINE_EXCEEDED",
|
|
257
|
+
});
|
|
258
|
+
|
|
259
|
+
const series: Array<MessageQueueTimePoint> = await read({
|
|
260
|
+
descriptor: sendRequests,
|
|
261
|
+
start: T0,
|
|
262
|
+
end: T0 + 60 * MINUTE,
|
|
263
|
+
});
|
|
264
|
+
|
|
265
|
+
expect(valuesOf(series)).toEqual([100, 107, 100, 100, 100]);
|
|
266
|
+
expect(minutesOf(series)).toEqual([0, 1, 2, 3, 4]);
|
|
267
|
+
|
|
268
|
+
// One pooled Sum: the query the metric's monitor evaluates.
|
|
269
|
+
expect(requests).toHaveLength(1);
|
|
270
|
+
const by: AggregateRequest["aggregateBy"] = requests[0]!.aggregateBy;
|
|
271
|
+
expect(by.aggregationType).toBe(AggregationType.Sum);
|
|
272
|
+
expect(by.groupByAttributeKeys).toBeUndefined();
|
|
273
|
+
expect(by.groupBy).toBeUndefined();
|
|
274
|
+
const seed: MessageQueueMetricMonitorSeed =
|
|
275
|
+
getMessageQueueMetricMonitorSeed(sendRequests)!;
|
|
276
|
+
expect(seed.aggregationType).toBe(by.aggregationType);
|
|
277
|
+
expect(seed.groupByAttributeKeys).toEqual([]);
|
|
278
|
+
});
|
|
279
|
+
|
|
280
|
+
test("Service Bus server errors: a burst is not the newest interval's count", async () => {
|
|
281
|
+
const serverErrors: MessageQueueMetricDescriptor = descriptorOf(
|
|
282
|
+
"servicebus",
|
|
283
|
+
"azure_servererrors_total",
|
|
284
|
+
);
|
|
285
|
+
for (let minute: number = 0; minute < 4; minute++) {
|
|
286
|
+
store(T0 + minute * MINUTE, 1, {
|
|
287
|
+
metadata_operationresult: "ServerBusy",
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
store(T0 + MINUTE, 50, {
|
|
291
|
+
metadata_operationresult: "InternalServerError",
|
|
292
|
+
});
|
|
293
|
+
|
|
294
|
+
const series: Array<MessageQueueTimePoint> = await read({
|
|
295
|
+
descriptor: serverErrors,
|
|
296
|
+
start: T0,
|
|
297
|
+
end: T0 + 60 * MINUTE,
|
|
298
|
+
});
|
|
299
|
+
|
|
300
|
+
expect(valuesOf(series)).toEqual([1, 51, 1, 1]);
|
|
301
|
+
// The tile: the one server error of the newest minute.
|
|
302
|
+
expect(toMessageQueueBrokerMetricResult(serverErrors, series).value).toBe(
|
|
303
|
+
1,
|
|
304
|
+
);
|
|
305
|
+
});
|
|
306
|
+
|
|
307
|
+
test("a count read per series (the busiest one) combines only the series each interval has", async () => {
|
|
308
|
+
const serverErrors: MessageQueueMetricDescriptor = descriptorOf(
|
|
309
|
+
"servicebus",
|
|
310
|
+
"azure_servererrors_total",
|
|
311
|
+
);
|
|
312
|
+
// A catalog entry that shows the busiest operation result, not the total.
|
|
313
|
+
const busiest: MessageQueueMetricDescriptor = {
|
|
314
|
+
...serverErrors,
|
|
315
|
+
seriesCombine: "max",
|
|
316
|
+
};
|
|
317
|
+
expect(getMessageQueueMetricReadPlan(busiest)).toEqual({
|
|
318
|
+
mode: "series",
|
|
319
|
+
aggregationType: AggregationType.Sum,
|
|
320
|
+
groupByAttributeKeys: [...serverErrors.seriesKeys!],
|
|
321
|
+
isPerPeriodCount: true,
|
|
322
|
+
});
|
|
323
|
+
store(T0, 5, { metadata_operationresult: "ServerBusy" });
|
|
324
|
+
for (let minute: number = 0; minute < 4; minute++) {
|
|
325
|
+
store(T0 + minute * MINUTE, 1, {
|
|
326
|
+
metadata_operationresult: "InternalServerError",
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
const series: Array<MessageQueueTimePoint> = await read({
|
|
331
|
+
descriptor: busiest,
|
|
332
|
+
start: T0,
|
|
333
|
+
end: T0 + 60 * MINUTE,
|
|
334
|
+
});
|
|
335
|
+
|
|
336
|
+
// Carried forward, the first minute's 5 would read in the next two.
|
|
337
|
+
expect(valuesOf(series)).toEqual([5, 1, 1, 1]);
|
|
338
|
+
expect(requests[0]!.aggregateBy.groupByAttributeKeys).toEqual(
|
|
339
|
+
serverErrors.seriesKeys,
|
|
340
|
+
);
|
|
341
|
+
});
|
|
342
|
+
|
|
343
|
+
test("combineMessageQueueCountSeries: the series present, summed, the busiest or averaged", () => {
|
|
344
|
+
const result: AggregatedResult = {
|
|
345
|
+
data: [
|
|
346
|
+
{ timestamp: new Date(T0), value: 4, attributes: { code: "a" } },
|
|
347
|
+
{ timestamp: new Date(T0), value: 6, attributes: { code: "b" } },
|
|
348
|
+
{
|
|
349
|
+
timestamp: new Date(T0 + MINUTE),
|
|
350
|
+
value: 3,
|
|
351
|
+
attributes: { code: "a" },
|
|
352
|
+
},
|
|
353
|
+
/*
|
|
354
|
+
* Unreadable rows are skipped. (Rows arrive as JSON, so a timestamp
|
|
355
|
+
* is text until it is read.)
|
|
356
|
+
*/
|
|
357
|
+
{ timestamp: "not a time", value: 9, attributes: { code: "a" } },
|
|
358
|
+
{ timestamp: new Date(T0), value: "x", attributes: { code: "c" } },
|
|
359
|
+
] as unknown as AggregatedResult["data"],
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
expect(valuesOf(combineMessageQueueCountSeries(result, "sum"))).toEqual([
|
|
363
|
+
10, 3,
|
|
364
|
+
]);
|
|
365
|
+
expect(valuesOf(combineMessageQueueCountSeries(result, "max"))).toEqual([
|
|
366
|
+
6, 3,
|
|
367
|
+
]);
|
|
368
|
+
expect(valuesOf(combineMessageQueueCountSeries(result, "avg"))).toEqual([
|
|
369
|
+
5, 3,
|
|
370
|
+
]);
|
|
371
|
+
expect(combineMessageQueueCountSeries(null, "sum")).toEqual([]);
|
|
372
|
+
});
|
|
373
|
+
});
|
|
374
|
+
|
|
375
|
+
describe("the aggregate API's row limit", () => {
|
|
376
|
+
test("Kafka Produced over three hours for a 64-partition topic: read again in five-minute intervals, whole from the start", async () => {
|
|
377
|
+
const produced: MessageQueueMetricDescriptor = descriptorOf(
|
|
378
|
+
"kafka",
|
|
379
|
+
"kafka.partition.current_offset",
|
|
380
|
+
);
|
|
381
|
+
// Each partition's offset grows 10 messages a second.
|
|
382
|
+
for (let minute: number = 0; minute < 180; minute++) {
|
|
383
|
+
for (let partition: number = 0; partition < 64; partition++) {
|
|
384
|
+
store(T0 + minute * MINUTE, 1_000_000 + minute * 600, {
|
|
385
|
+
topic: "orders",
|
|
386
|
+
partition: String(partition),
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
const series: Array<MessageQueueTimePoint> = await read({
|
|
392
|
+
descriptor: produced,
|
|
393
|
+
start: T0,
|
|
394
|
+
end: T0 + 180 * MINUTE,
|
|
395
|
+
});
|
|
396
|
+
|
|
397
|
+
// 64 series × 180 minutes is over the limit: the first read is cut off.
|
|
398
|
+
expect(requests).toHaveLength(2);
|
|
399
|
+
expect(requests[0]!.aggregateBy.aggregationInterval).toBeUndefined();
|
|
400
|
+
expect(requests[0]!.aggregateBy.limit).toBe(LIMIT_PER_PROJECT);
|
|
401
|
+
expect(requests[1]!.aggregateBy.aggregationInterval).toBe(
|
|
402
|
+
AggregationInterval.FiveMinutes,
|
|
403
|
+
);
|
|
404
|
+
expect(requests[1]!.aggregateBy.groupBy).toEqual({ attributes: true });
|
|
405
|
+
|
|
406
|
+
// 640 a second from the first interval that has a predecessor on.
|
|
407
|
+
expect(minutesOf(series)[0]).toBe(5);
|
|
408
|
+
expect(series).toHaveLength(35);
|
|
409
|
+
for (const point of series) {
|
|
410
|
+
expect(point.y).toBeCloseTo(640, 6);
|
|
411
|
+
}
|
|
412
|
+
});
|
|
413
|
+
|
|
414
|
+
test("Kafka partition lag over a day: one pooled read, the laggiest partition from the first interval", async () => {
|
|
415
|
+
const partitionLag: MessageQueueMetricDescriptor = descriptorOf(
|
|
416
|
+
"kafka",
|
|
417
|
+
"kafka.consumer_group.lag",
|
|
418
|
+
);
|
|
419
|
+
// 3 groups × 40 partitions, one point each per fifteen minutes.
|
|
420
|
+
for (let interval: number = 0; interval < 96; interval++) {
|
|
421
|
+
for (let group: number = 0; group < 3; group++) {
|
|
422
|
+
for (let partition: number = 0; partition < 40; partition++) {
|
|
423
|
+
store(
|
|
424
|
+
T0 + interval * 15 * MINUTE,
|
|
425
|
+
group === 2 && partition === 39 ? 5000 : 10,
|
|
426
|
+
{
|
|
427
|
+
topic: "orders",
|
|
428
|
+
group: `g${group}`,
|
|
429
|
+
partition: String(partition),
|
|
430
|
+
},
|
|
431
|
+
);
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
const series: Array<MessageQueueTimePoint> = await read({
|
|
437
|
+
descriptor: partitionLag,
|
|
438
|
+
start: T0,
|
|
439
|
+
end: T0 + 96 * 15 * MINUTE,
|
|
440
|
+
});
|
|
441
|
+
|
|
442
|
+
expect(requests).toHaveLength(1);
|
|
443
|
+
expect(requests[0]!.aggregateBy.aggregationType).toBe(AggregationType.Max);
|
|
444
|
+
expect(requests[0]!.aggregateBy.groupByAttributeKeys).toBeUndefined();
|
|
445
|
+
expect(series).toHaveLength(96);
|
|
446
|
+
expect(minutesOf(series)[0]).toBe(0);
|
|
447
|
+
expect(new Set(valuesOf(series))).toEqual(new Set([5000]));
|
|
448
|
+
});
|
|
449
|
+
|
|
450
|
+
test("Pulsar topic backlog over three hours for 64 partitions: widened, every partition in every interval", async () => {
|
|
451
|
+
const backlog: MessageQueueMetricDescriptor = descriptorOf(
|
|
452
|
+
"pulsar",
|
|
453
|
+
"pulsar_msg_backlog",
|
|
454
|
+
);
|
|
455
|
+
expect(getMessageQueueMetricReadPlan(backlog).mode).toBe("series");
|
|
456
|
+
for (let minute: number = 0; minute < 180; minute++) {
|
|
457
|
+
for (let partition: number = 0; partition < 64; partition++) {
|
|
458
|
+
store(T0 + minute * MINUTE, 100, {
|
|
459
|
+
cluster: "standalone",
|
|
460
|
+
topic: `persistent://public/default/orders-partition-${partition}`,
|
|
461
|
+
partition: String(partition),
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
const series: Array<MessageQueueTimePoint> = await read({
|
|
467
|
+
descriptor: backlog,
|
|
468
|
+
start: T0,
|
|
469
|
+
end: T0 + 180 * MINUTE,
|
|
470
|
+
});
|
|
471
|
+
|
|
472
|
+
expect(requests).toHaveLength(2);
|
|
473
|
+
expect(requests[1]!.aggregateBy.aggregationInterval).toBe(
|
|
474
|
+
AggregationInterval.FiveMinutes,
|
|
475
|
+
);
|
|
476
|
+
expect(requests[1]!.aggregateBy.groupByAttributeKeys).toEqual(
|
|
477
|
+
backlog.seriesKeys,
|
|
478
|
+
);
|
|
479
|
+
expect(minutesOf(series)[0]).toBe(0);
|
|
480
|
+
expect(series).toHaveLength(36);
|
|
481
|
+
expect(new Set(valuesOf(series))).toEqual(new Set([6400]));
|
|
482
|
+
});
|
|
483
|
+
|
|
484
|
+
test("still cut off at the widest interval tried: the interval the limit cut through is dropped, never charted partial", async () => {
|
|
485
|
+
const backlog: MessageQueueMetricDescriptor = descriptorOf(
|
|
486
|
+
"pulsar",
|
|
487
|
+
"pulsar_msg_backlog",
|
|
488
|
+
);
|
|
489
|
+
for (let minute: number = 0; minute < 60; minute++) {
|
|
490
|
+
for (let partition: number = 0; partition < 64; partition++) {
|
|
491
|
+
store(T0 + minute * MINUTE, 100, {
|
|
492
|
+
cluster: "standalone",
|
|
493
|
+
topic: `persistent://public/default/orders-partition-${partition}`,
|
|
494
|
+
partition: String(partition),
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
// Two whole fifteen-minute intervals and part of a third fit.
|
|
499
|
+
serverRowLimit = 150;
|
|
500
|
+
|
|
501
|
+
const series: Array<MessageQueueTimePoint> = await read({
|
|
502
|
+
descriptor: backlog,
|
|
503
|
+
start: T0,
|
|
504
|
+
end: T0 + 60 * MINUTE,
|
|
505
|
+
});
|
|
506
|
+
|
|
507
|
+
expect(requests).toHaveLength(1 + MESSAGE_QUEUE_SERIES_READ_MAX_WIDENINGS);
|
|
508
|
+
expect(
|
|
509
|
+
requests.map((request: AggregateRequest): unknown => {
|
|
510
|
+
return request.aggregateBy.aggregationInterval;
|
|
511
|
+
}),
|
|
512
|
+
).toEqual([
|
|
513
|
+
undefined,
|
|
514
|
+
AggregationInterval.FiveMinutes,
|
|
515
|
+
AggregationInterval.FifteenMinutes,
|
|
516
|
+
]);
|
|
517
|
+
// The newest two intervals, whole; the one the limit cut through is gone.
|
|
518
|
+
expect(minutesOf(series)).toEqual([30, 45]);
|
|
519
|
+
expect(valuesOf(series)).toEqual([6400, 6400]);
|
|
520
|
+
});
|
|
521
|
+
|
|
522
|
+
test("a read that fits is read once, at the window's own interval", async () => {
|
|
523
|
+
const produced: MessageQueueMetricDescriptor = descriptorOf(
|
|
524
|
+
"kafka",
|
|
525
|
+
"kafka.partition.current_offset",
|
|
526
|
+
);
|
|
527
|
+
for (let minute: number = 0; minute < 60; minute++) {
|
|
528
|
+
for (let partition: number = 0; partition < 3; partition++) {
|
|
529
|
+
store(T0 + minute * MINUTE, minute * 60, {
|
|
530
|
+
topic: "orders",
|
|
531
|
+
partition: String(partition),
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
const series: Array<MessageQueueTimePoint> = await read({
|
|
537
|
+
descriptor: produced,
|
|
538
|
+
start: T0,
|
|
539
|
+
end: T0 + 60 * MINUTE,
|
|
540
|
+
});
|
|
541
|
+
|
|
542
|
+
expect(requests).toHaveLength(1);
|
|
543
|
+
expect(series).toHaveLength(59);
|
|
544
|
+
expect(series[0]!.y).toBeCloseTo(3, 6);
|
|
545
|
+
});
|
|
546
|
+
|
|
547
|
+
test("the interval a cut-off read widens to: the finest coarser one its series fit", () => {
|
|
548
|
+
const hour: { start: Date; end: Date } = {
|
|
549
|
+
start: new Date(T0),
|
|
550
|
+
end: new Date(T0 + 60 * MINUTE),
|
|
551
|
+
};
|
|
552
|
+
// 192 series (3 groups × 64 partitions): 61 minutes do not fit, 13 do.
|
|
553
|
+
expect(
|
|
554
|
+
getMessageQueueSeriesReadInterval({
|
|
555
|
+
...hour,
|
|
556
|
+
seriesCount: 192,
|
|
557
|
+
after: AggregationInterval.Minute,
|
|
558
|
+
}),
|
|
559
|
+
).toBe(AggregationInterval.FiveMinutes);
|
|
560
|
+
// Coarser than the interval that was cut off, even when it would fit.
|
|
561
|
+
expect(
|
|
562
|
+
getMessageQueueSeriesReadInterval({
|
|
563
|
+
...hour,
|
|
564
|
+
seriesCount: 1,
|
|
565
|
+
after: AggregationInterval.FiveMinutes,
|
|
566
|
+
}),
|
|
567
|
+
).toBe(AggregationInterval.FifteenMinutes);
|
|
568
|
+
/*
|
|
569
|
+
* A page exactly full reads as cut off: under the limit, not at it
|
|
570
|
+
* (100 series × 13 five-minute intervals is exactly 1,300).
|
|
571
|
+
*/
|
|
572
|
+
expect(
|
|
573
|
+
getMessageQueueSeriesReadInterval({
|
|
574
|
+
...hour,
|
|
575
|
+
seriesCount: 100,
|
|
576
|
+
after: AggregationInterval.Minute,
|
|
577
|
+
limit: 1300,
|
|
578
|
+
}),
|
|
579
|
+
).toBe(AggregationInterval.FifteenMinutes);
|
|
580
|
+
expect(
|
|
581
|
+
getMessageQueueSeriesReadInterval({
|
|
582
|
+
...hour,
|
|
583
|
+
seriesCount: 100,
|
|
584
|
+
after: AggregationInterval.Minute,
|
|
585
|
+
limit: 1301,
|
|
586
|
+
}),
|
|
587
|
+
).toBe(AggregationInterval.FiveMinutes);
|
|
588
|
+
expect(
|
|
589
|
+
getMessageQueueSeriesReadInterval({
|
|
590
|
+
...hour,
|
|
591
|
+
seriesCount: 1_000_000,
|
|
592
|
+
after: AggregationInterval.Minute,
|
|
593
|
+
}),
|
|
594
|
+
).toBeNull();
|
|
595
|
+
expect(
|
|
596
|
+
getMessageQueueSeriesReadInterval({
|
|
597
|
+
...hour,
|
|
598
|
+
seriesCount: 5,
|
|
599
|
+
after: AggregationInterval.Year,
|
|
600
|
+
}),
|
|
601
|
+
).toBeNull();
|
|
602
|
+
});
|
|
603
|
+
});
|
|
604
|
+
|
|
605
|
+
describe("a per-period count keeps its whole intervals only", () => {
|
|
606
|
+
// 10:04, the window a day long: fifteen-minute intervals.
|
|
607
|
+
const NOW: number = Date.UTC(2026, 8, 30, 10, 4, 0);
|
|
608
|
+
const DAY_START: number = NOW - 24 * 60 * MINUTE;
|
|
609
|
+
|
|
610
|
+
test("Service Bus incoming messages over a day: the interval still filling is not the tile", async () => {
|
|
611
|
+
const incoming: MessageQueueMetricDescriptor = descriptorOf(
|
|
612
|
+
"servicebus",
|
|
613
|
+
"azure_incomingmessages_total",
|
|
614
|
+
);
|
|
615
|
+
// 600 a minute, up to 10:01: Azure's newest minutes are still on the way.
|
|
616
|
+
for (
|
|
617
|
+
let time: number = DAY_START;
|
|
618
|
+
time <= Date.UTC(2026, 8, 30, 10, 1, 0);
|
|
619
|
+
time += MINUTE
|
|
620
|
+
) {
|
|
621
|
+
store(time, 600, {});
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
const series: Array<MessageQueueTimePoint> = await read({
|
|
625
|
+
descriptor: incoming,
|
|
626
|
+
start: DAY_START,
|
|
627
|
+
end: NOW,
|
|
628
|
+
now: NOW,
|
|
629
|
+
});
|
|
630
|
+
|
|
631
|
+
// The first interval began before the window, the newest is still open.
|
|
632
|
+
expect(series[0]!.x.getTime()).toBe(DAY_START - 4 * MINUTE + 15 * MINUTE);
|
|
633
|
+
expect(series[series.length - 1]!.x.getTime()).toBe(
|
|
634
|
+
Date.UTC(2026, 8, 30, 9, 45, 0),
|
|
635
|
+
);
|
|
636
|
+
expect(new Set(valuesOf(series))).toEqual(new Set([9000]));
|
|
637
|
+
expect(toMessageQueueBrokerMetricResult(incoming, series).value).toBe(9000);
|
|
638
|
+
});
|
|
639
|
+
|
|
640
|
+
test("CloudWatch's late counts: a wide interval is whole thirty minutes after it closed", async () => {
|
|
641
|
+
const sent: MessageQueueMetricDescriptor = descriptorOf(
|
|
642
|
+
"aws_sqs",
|
|
643
|
+
"amazonaws.com/aws/sqs/numberofmessagessent",
|
|
644
|
+
);
|
|
645
|
+
expect(getMessageQueueSettleMinutes(sent, DAY_START, NOW)).toBe(30);
|
|
646
|
+
// CloudWatch's points up to 09:50: the rest have not been fetched yet.
|
|
647
|
+
for (
|
|
648
|
+
let time: number = DAY_START;
|
|
649
|
+
time <= Date.UTC(2026, 8, 30, 9, 50, 0);
|
|
650
|
+
time += MINUTE
|
|
651
|
+
) {
|
|
652
|
+
store(time, 10, { "Dimensions.QueueName": "orders" });
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
const series: Array<MessageQueueTimePoint> = await read({
|
|
656
|
+
descriptor: sent,
|
|
657
|
+
start: DAY_START,
|
|
658
|
+
end: NOW,
|
|
659
|
+
now: NOW,
|
|
660
|
+
});
|
|
661
|
+
|
|
662
|
+
// 09:15–09:30 closed 34 minutes ago; 09:30–09:45 only 19.
|
|
663
|
+
expect(series[series.length - 1]!.x.getTime()).toBe(
|
|
664
|
+
Date.UTC(2026, 8, 30, 9, 15, 0),
|
|
665
|
+
);
|
|
666
|
+
expect(new Set(valuesOf(series))).toEqual(new Set([150]));
|
|
667
|
+
});
|
|
668
|
+
|
|
669
|
+
test("the same count from a Metric Stream arrives live: only the interval still open waits", async () => {
|
|
670
|
+
const sent: MessageQueueMetricDescriptor = descriptorOf(
|
|
671
|
+
"aws_sqs",
|
|
672
|
+
"numberofmessagessent",
|
|
673
|
+
);
|
|
674
|
+
expect(getMessageQueueSettleMinutes(sent, DAY_START, NOW)).toBe(0);
|
|
675
|
+
for (
|
|
676
|
+
let time: number = DAY_START;
|
|
677
|
+
time <= Date.UTC(2026, 8, 30, 10, 2, 0);
|
|
678
|
+
time += MINUTE
|
|
679
|
+
) {
|
|
680
|
+
store(time, 10, { QueueName: "orders", "resource.service.name": "SQS" });
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
const series: Array<MessageQueueTimePoint> = await read({
|
|
684
|
+
descriptor: sent,
|
|
685
|
+
start: DAY_START,
|
|
686
|
+
end: NOW,
|
|
687
|
+
now: NOW,
|
|
688
|
+
});
|
|
689
|
+
|
|
690
|
+
expect(series[series.length - 1]!.x.getTime()).toBe(
|
|
691
|
+
Date.UTC(2026, 8, 30, 9, 45, 0),
|
|
692
|
+
);
|
|
693
|
+
expect(new Set(valuesOf(series))).toEqual(new Set([150]));
|
|
694
|
+
});
|
|
695
|
+
|
|
696
|
+
test("an hour in one-minute intervals: a minute's point is whole once it is there, late source or not", async () => {
|
|
697
|
+
const sent: MessageQueueMetricDescriptor = descriptorOf(
|
|
698
|
+
"aws_sqs",
|
|
699
|
+
"amazonaws.com/aws/sqs/numberofmessagessent",
|
|
700
|
+
);
|
|
701
|
+
const hourStart: number = NOW - 60 * MINUTE;
|
|
702
|
+
expect(getMessageQueueSettleMinutes(sent, hourStart, NOW)).toBe(0);
|
|
703
|
+
for (
|
|
704
|
+
let time: number = hourStart;
|
|
705
|
+
time <= Date.UTC(2026, 8, 30, 9, 50, 0);
|
|
706
|
+
time += MINUTE
|
|
707
|
+
) {
|
|
708
|
+
store(time, 10, { "Dimensions.QueueName": "orders" });
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
const series: Array<MessageQueueTimePoint> = await read({
|
|
712
|
+
descriptor: sent,
|
|
713
|
+
start: hourStart,
|
|
714
|
+
end: NOW,
|
|
715
|
+
now: NOW,
|
|
716
|
+
});
|
|
717
|
+
|
|
718
|
+
expect(series[series.length - 1]!.x.getTime()).toBe(
|
|
719
|
+
Date.UTC(2026, 8, 30, 9, 50, 0),
|
|
720
|
+
);
|
|
721
|
+
expect(toMessageQueueBrokerMetricResult(sent, series).value).toBe(10);
|
|
722
|
+
});
|
|
723
|
+
|
|
724
|
+
test("a level is never trimmed: its newest value is the tile", async () => {
|
|
725
|
+
const active: MessageQueueMetricDescriptor = descriptorOf(
|
|
726
|
+
"servicebus",
|
|
727
|
+
"azure_activemessages_average",
|
|
728
|
+
);
|
|
729
|
+
store(Date.UTC(2026, 8, 30, 9, 50, 0), 40, {});
|
|
730
|
+
store(Date.UTC(2026, 8, 30, 10, 3, 0), 42, {});
|
|
731
|
+
|
|
732
|
+
const series: Array<MessageQueueTimePoint> = await read({
|
|
733
|
+
descriptor: active,
|
|
734
|
+
start: DAY_START,
|
|
735
|
+
end: NOW,
|
|
736
|
+
now: NOW,
|
|
737
|
+
});
|
|
738
|
+
|
|
739
|
+
expect(valuesOf(series)).toEqual([40, 42]);
|
|
740
|
+
});
|
|
741
|
+
|
|
742
|
+
test("getCompleteMessageQueueCountSeries keeps a series whose every interval is partial", () => {
|
|
743
|
+
const sent: MessageQueueMetricDescriptor = descriptorOf(
|
|
744
|
+
"aws_sqs",
|
|
745
|
+
"amazonaws.com/aws/sqs/numberofmessagessent",
|
|
746
|
+
);
|
|
747
|
+
const partial: Array<MessageQueueTimePoint> = [
|
|
748
|
+
{ x: new Date(Date.UTC(2026, 8, 30, 9, 45, 0)), y: 3 },
|
|
749
|
+
];
|
|
750
|
+
expect(
|
|
751
|
+
getCompleteMessageQueueCountSeries(
|
|
752
|
+
partial,
|
|
753
|
+
sent,
|
|
754
|
+
{ start: new Date(DAY_START), end: new Date(NOW) },
|
|
755
|
+
NOW,
|
|
756
|
+
),
|
|
757
|
+
).toEqual(partial);
|
|
758
|
+
});
|
|
759
|
+
});
|
|
760
|
+
|
|
761
|
+
// The settle time of a count over a window, in whole minutes.
|
|
762
|
+
function getMessageQueueSettleMinutes(
|
|
763
|
+
descriptor: MessageQueueMetricDescriptor,
|
|
764
|
+
start: number,
|
|
765
|
+
end: number,
|
|
766
|
+
): number {
|
|
767
|
+
return Math.round(
|
|
768
|
+
getMessageQueueCountSettleMs(descriptor, {
|
|
769
|
+
start: new Date(start),
|
|
770
|
+
end: new Date(end),
|
|
771
|
+
}) / MINUTE,
|
|
772
|
+
);
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
const GAUGES: Array<[string, MessageQueueMetricDescriptor]> =
|
|
776
|
+
MESSAGE_QUEUE_METRICS.filter(
|
|
777
|
+
(descriptor: MessageQueueMetricDescriptor): boolean => {
|
|
778
|
+
return descriptor.kind === "gauge";
|
|
779
|
+
},
|
|
780
|
+
).map(
|
|
781
|
+
(
|
|
782
|
+
descriptor: MessageQueueMetricDescriptor,
|
|
783
|
+
): [string, MessageQueueMetricDescriptor] => {
|
|
784
|
+
return [`${descriptor.system}:${descriptor.metricName}`, descriptor];
|
|
785
|
+
},
|
|
786
|
+
);
|
|
787
|
+
|
|
788
|
+
describe("the read plan of every catalog metric", () => {
|
|
789
|
+
test.each(
|
|
790
|
+
MESSAGE_QUEUE_METRICS.map(
|
|
791
|
+
(
|
|
792
|
+
descriptor: MessageQueueMetricDescriptor,
|
|
793
|
+
): [string, MessageQueueMetricDescriptor] => {
|
|
794
|
+
return [`${descriptor.system}:${descriptor.metricName}`, descriptor];
|
|
795
|
+
},
|
|
796
|
+
),
|
|
797
|
+
)("%s", (_id: string, descriptor: MessageQueueMetricDescriptor) => {
|
|
798
|
+
const plan: MessageQueueMetricReadPlan =
|
|
799
|
+
getMessageQueueMetricReadPlan(descriptor);
|
|
800
|
+
const seriesKeys: Array<string> = [...(descriptor.seriesKeys || [])];
|
|
801
|
+
|
|
802
|
+
if (descriptor.kind === "counter") {
|
|
803
|
+
expect(plan).toEqual({
|
|
804
|
+
mode: "rate",
|
|
805
|
+
aggregationType: AggregationType.Max,
|
|
806
|
+
groupByAttributeKeys: [],
|
|
807
|
+
isPerPeriodCount: false,
|
|
808
|
+
});
|
|
809
|
+
return;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
const composes: boolean =
|
|
813
|
+
(descriptor.aggregation === AggregationType.Max &&
|
|
814
|
+
descriptor.seriesCombine === "max") ||
|
|
815
|
+
(descriptor.aggregation === AggregationType.Sum &&
|
|
816
|
+
descriptor.seriesCombine === "sum");
|
|
817
|
+
expect(plan.aggregationType).toBe(descriptor.aggregation);
|
|
818
|
+
expect(plan.isPerPeriodCount).toBe(
|
|
819
|
+
descriptor.aggregation === AggregationType.Sum,
|
|
820
|
+
);
|
|
821
|
+
if (seriesKeys.length === 0 || composes) {
|
|
822
|
+
expect(plan.mode).toBe("pooled");
|
|
823
|
+
expect(plan.groupByAttributeKeys).toEqual([]);
|
|
824
|
+
} else {
|
|
825
|
+
expect(plan.mode).toBe("series");
|
|
826
|
+
expect(plan.groupByAttributeKeys).toEqual(seriesKeys);
|
|
827
|
+
}
|
|
828
|
+
});
|
|
829
|
+
|
|
830
|
+
test("every per-period count of the catalog is one pooled read, and so never cut off", () => {
|
|
831
|
+
const counts: Array<MessageQueueMetricDescriptor> =
|
|
832
|
+
MESSAGE_QUEUE_METRICS.filter(
|
|
833
|
+
(descriptor: MessageQueueMetricDescriptor): boolean => {
|
|
834
|
+
return getMessageQueueMetricReadPlan(descriptor).isPerPeriodCount;
|
|
835
|
+
},
|
|
836
|
+
);
|
|
837
|
+
expect(counts.length).toBeGreaterThan(20);
|
|
838
|
+
for (const descriptor of counts) {
|
|
839
|
+
expect([
|
|
840
|
+
descriptor.metricName,
|
|
841
|
+
getMessageQueueMetricReadPlan(descriptor).mode,
|
|
842
|
+
]).toEqual([descriptor.metricName, "pooled"]);
|
|
843
|
+
}
|
|
844
|
+
});
|
|
845
|
+
});
|
|
846
|
+
|
|
847
|
+
describe("a monitor evaluates the number the page shows", () => {
|
|
848
|
+
test.each(GAUGES)(
|
|
849
|
+
"%s: a pooled read is the monitor's own query, unless the seed says otherwise",
|
|
850
|
+
(_id: string, descriptor: MessageQueueMetricDescriptor) => {
|
|
851
|
+
const plan: MessageQueueMetricReadPlan =
|
|
852
|
+
getMessageQueueMetricReadPlan(descriptor);
|
|
853
|
+
const seed: MessageQueueMetricMonitorSeed | null =
|
|
854
|
+
getMessageQueueMetricMonitorSeed(descriptor);
|
|
855
|
+
if (plan.mode !== "pooled" || !seed || seed.note !== null) {
|
|
856
|
+
return;
|
|
857
|
+
}
|
|
858
|
+
expect(seed.aggregationType).toBe(plan.aggregationType);
|
|
859
|
+
expect(seed.groupByAttributeKeys).toEqual([]);
|
|
860
|
+
expect(seed.seriesTotal).toBeNull();
|
|
861
|
+
},
|
|
862
|
+
);
|
|
863
|
+
|
|
864
|
+
test("the Kafka, Pulsar and RocketMQ lags read pooled, as their monitors do", () => {
|
|
865
|
+
for (const [system, metricName] of [
|
|
866
|
+
["kafka", "kafka.consumer_group.lag_sum"],
|
|
867
|
+
["kafka", "kafka.consumer_group.lag"],
|
|
868
|
+
["pulsar", "pulsar_subscription_back_log"],
|
|
869
|
+
["rocketmq", "rocketmq_consumer_lag_messages"],
|
|
870
|
+
["rocketmq", "rocketmq_consumer_ready_messages"],
|
|
871
|
+
] as Array<[string, string]>) {
|
|
872
|
+
const descriptor: MessageQueueMetricDescriptor = descriptorOf(
|
|
873
|
+
system,
|
|
874
|
+
metricName,
|
|
875
|
+
);
|
|
876
|
+
expect([
|
|
877
|
+
metricName,
|
|
878
|
+
getMessageQueueMetricReadPlan(descriptor).mode,
|
|
879
|
+
]).toEqual([metricName, "pooled"]);
|
|
880
|
+
expect(getMessageQueueMetricMonitorSeed(descriptor)).toEqual(
|
|
881
|
+
expect.objectContaining({
|
|
882
|
+
aggregationType: AggregationType.Max,
|
|
883
|
+
groupByAttributeKeys: [],
|
|
884
|
+
note: null,
|
|
885
|
+
}),
|
|
886
|
+
);
|
|
887
|
+
}
|
|
888
|
+
});
|
|
889
|
+
});
|