@oneuptime/common 12.0.29 → 12.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/AnalyticsModels/SecurityEvent.ts +48 -16
- package/Models/AnalyticsModels/ThreatIntelIndicator.ts +10 -5
- package/Models/DatabaseModels/AlertSeverity.ts +44 -0
- package/Models/DatabaseModels/DetectionRule.ts +16 -5
- package/Models/DatabaseModels/GoogleSecOpsConnection.ts +14 -5
- package/Models/DatabaseModels/IncidentSeverity.ts +44 -0
- package/Models/DatabaseModels/Index.ts +13 -0
- package/Models/DatabaseModels/NetworkDevice.ts +113 -3
- package/Models/DatabaseModels/NetworkDeviceAutoImportRule.ts +88 -0
- package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.ts +22 -0
- package/Models/DatabaseModels/NetworkDeviceOidTemplate.ts +499 -0
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.ts +43 -0
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleCalendarFeed.ts +662 -0
- package/Models/DatabaseModels/ProjectOnCallCalendarFeed.ts +584 -0
- package/Models/DatabaseModels/ThreatIntelFeed.ts +16 -5
- package/Models/DatabaseModels/UserOnCallCalendarFeed.ts +546 -0
- package/Models/DatabaseModels/UserOnCallShiftReminder.ts +231 -0
- package/Models/DatabaseModels/UserOnCallShiftReminderLog.ts +331 -0
- package/Server/API/GlobalConfigAPI.ts +362 -183
- package/Server/API/OnCallCalendarAPI.ts +2194 -0
- package/Server/API/TelemetryAPI.ts +42 -4
- package/Server/EnvironmentConfig.ts +250 -0
- package/Server/Infrastructure/OnCallCalendarFeedCache.ts +1050 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1790400000000-AddOnCallCalendarFeeds.ts +253 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1790500000000-AddNetworkDeviceOidTemplate.ts +59 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1790600000000-AddAutoImportRuleOidTemplate.ts +25 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +6 -0
- package/Server/Middleware/MultipartFormData.ts +118 -32
- package/Server/Middleware/OnCallCalendarFeedRateLimit.ts +487 -0
- package/Server/Services/AlertEpisodeLabelRuleEngineService.ts +9 -1
- package/Server/Services/AlertEpisodeOnCallRuleEngineService.ts +9 -1
- package/Server/Services/AlertEpisodeOwnerRuleEngineService.ts +9 -1
- package/Server/Services/AlertEpisodePrivacyRuleEngineService.ts +9 -1
- package/Server/Services/AlertGroupingEngineService.ts +9 -1
- package/Server/Services/AlertLabelRuleEngineService.ts +9 -1
- package/Server/Services/AlertOnCallRuleEngineService.ts +9 -1
- package/Server/Services/AlertOwnerRuleEngineService.ts +9 -1
- package/Server/Services/AlertPrivacyRuleEngineService.ts +9 -1
- package/Server/Services/AlertReminderRuleService.ts +9 -1
- package/Server/Services/AutoRemediationRuleEngineService.ts +9 -1
- package/Server/Services/CephClusterLabelRuleEngineService.ts +9 -1
- package/Server/Services/CephClusterOwnerRuleEngineService.ts +9 -1
- package/Server/Services/CloudResourceLabelRuleEngineService.ts +9 -1
- package/Server/Services/CloudResourceOwnerRuleEngineService.ts +9 -1
- package/Server/Services/DashboardLabelRuleEngineService.ts +9 -1
- package/Server/Services/DashboardOwnerRuleEngineService.ts +9 -1
- package/Server/Services/DockerHostLabelRuleEngineService.ts +9 -1
- package/Server/Services/DockerHostOwnerRuleEngineService.ts +9 -1
- package/Server/Services/DockerSwarmClusterLabelRuleEngineService.ts +9 -1
- package/Server/Services/DockerSwarmClusterOwnerRuleEngineService.ts +9 -1
- package/Server/Services/HostLabelRuleEngineService.ts +9 -1
- package/Server/Services/HostOwnerRuleEngineService.ts +9 -1
- package/Server/Services/IncidentEpisodeLabelRuleEngineService.ts +9 -1
- package/Server/Services/IncidentEpisodeOnCallRuleEngineService.ts +9 -1
- package/Server/Services/IncidentEpisodeOwnerRuleEngineService.ts +9 -1
- package/Server/Services/IncidentEpisodePrivacyRuleEngineService.ts +9 -1
- package/Server/Services/IncidentGroupingEngineService.ts +9 -1
- package/Server/Services/IncidentLabelRuleEngineService.ts +9 -1
- package/Server/Services/IncidentOnCallRuleEngineService.ts +9 -1
- package/Server/Services/IncidentOwnerRuleEngineService.ts +9 -1
- package/Server/Services/IncidentPrivacyRuleEngineService.ts +9 -1
- package/Server/Services/IncidentReminderRuleService.ts +9 -1
- package/Server/Services/IncidentSlaRuleService.ts +9 -1
- package/Server/Services/IncomingCallPolicyLabelRuleEngineService.ts +9 -1
- package/Server/Services/IncomingCallPolicyOwnerRuleEngineService.ts +9 -1
- package/Server/Services/Index.ts +14 -0
- package/Server/Services/IoTFleetLabelRuleEngineService.ts +9 -1
- package/Server/Services/IoTFleetOwnerRuleEngineService.ts +9 -1
- package/Server/Services/KubernetesClusterLabelRuleEngineService.ts +9 -1
- package/Server/Services/KubernetesClusterOwnerRuleEngineService.ts +9 -1
- package/Server/Services/KubernetesResourceService.ts +5 -1
- package/Server/Services/MonitorLabelRuleEngineService.ts +9 -1
- package/Server/Services/MonitorOwnerRuleEngineService.ts +9 -1
- package/Server/Services/NetworkDeviceAutoImportRuleEngineService.ts +35 -0
- package/Server/Services/NetworkDeviceAutoImportRuleService.ts +96 -0
- package/Server/Services/NetworkDeviceLabelRuleEngineService.ts +9 -1
- package/Server/Services/NetworkDeviceOidTemplateService.ts +201 -0
- package/Server/Services/NetworkDeviceOwnerRuleEngineService.ts +9 -1
- package/Server/Services/NetworkDeviceService.ts +209 -1
- package/Server/Services/OnCallDutyPolicyEscalationRuleScheduleService.ts +32 -0
- package/Server/Services/OnCallDutyPolicyLabelRuleEngineService.ts +9 -1
- package/Server/Services/OnCallDutyPolicyOwnerRuleEngineService.ts +9 -1
- package/Server/Services/OnCallDutyPolicyScheduleCalendarFeedService.ts +260 -0
- package/Server/Services/OnCallDutyPolicyScheduleLabelRuleEngineService.ts +9 -1
- package/Server/Services/OnCallDutyPolicyScheduleLayerService.ts +70 -3
- package/Server/Services/OnCallDutyPolicyScheduleLayerUserService.ts +138 -3
- package/Server/Services/OnCallDutyPolicyScheduleOwnerRuleEngineService.ts +9 -1
- package/Server/Services/OnCallDutyPolicyScheduleService.ts +1465 -134
- package/Server/Services/OnCallDutyPolicyUserOverrideService.ts +167 -31
- package/Server/Services/PodmanHostLabelRuleEngineService.ts +9 -1
- package/Server/Services/PodmanHostOwnerRuleEngineService.ts +9 -1
- package/Server/Services/ProjectOnCallCalendarFeedService.ts +192 -0
- package/Server/Services/ProxmoxClusterLabelRuleEngineService.ts +9 -1
- package/Server/Services/ProxmoxClusterOwnerRuleEngineService.ts +9 -1
- package/Server/Services/RumApplicationLabelRuleEngineService.ts +9 -1
- package/Server/Services/RumApplicationOwnerRuleEngineService.ts +9 -1
- package/Server/Services/RunbookLabelRuleEngineService.ts +9 -1
- package/Server/Services/RunbookOwnerRuleEngineService.ts +9 -1
- package/Server/Services/RunbookRuleEngineService.ts +9 -1
- package/Server/Services/ScheduledMaintenanceLabelRuleEngineService.ts +9 -1
- package/Server/Services/ScheduledMaintenanceOwnerRuleEngineService.ts +9 -1
- package/Server/Services/ScheduledMaintenanceReminderRuleService.ts +9 -1
- package/Server/Services/ServerlessFunctionLabelRuleEngineService.ts +9 -1
- package/Server/Services/ServerlessFunctionOwnerRuleEngineService.ts +9 -1
- package/Server/Services/ServiceLabelRuleEngineService.ts +9 -1
- package/Server/Services/ServiceOwnerRuleEngineService.ts +9 -1
- package/Server/Services/StatusPageLabelRuleEngineService.ts +9 -1
- package/Server/Services/StatusPageMonitorRuleEngineService.ts +7 -0
- package/Server/Services/StatusPageOwnerRuleEngineService.ts +9 -1
- package/Server/Services/TeamMemberService.ts +489 -1
- package/Server/Services/TeamService.ts +50 -0
- package/Server/Services/TelemetrySourceMapService.ts +266 -23
- package/Server/Services/UserNotificationSettingService.ts +44 -1
- package/Server/Services/UserOnCallCalendarFeedService.ts +159 -0
- package/Server/Services/UserOnCallShiftReminderLogService.ts +151 -0
- package/Server/Services/UserOnCallShiftReminderService.ts +112 -0
- package/Server/Services/UserService.ts +27 -0
- package/Server/Services/WorkflowLabelRuleEngineService.ts +9 -1
- package/Server/Services/WorkflowOwnerRuleEngineService.ts +9 -1
- package/Server/Utils/EnterpriseLicense/EnterpriseLicenseSeatUtil.ts +186 -0
- package/Server/Utils/Monitor/CapturedMetricAttributeUtil.ts +245 -0
- package/Server/Utils/Monitor/Criteria/SnmpMonitorCriteria.ts +21 -2
- package/Server/Utils/Monitor/MonitorMetricUtil.ts +55 -21
- package/Server/Utils/Monitor/MonitorTemplateUtil.ts +32 -0
- package/Server/Utils/Monitor/NetworkDeviceMetricUtil.ts +15 -2
- package/Server/Utils/Monitor/NetworkDeviceWalkUtil.ts +18 -1
- package/Server/Utils/Monitor/NetworkInventoryUtil.ts +10 -0
- package/Server/Utils/Monitor/SeriesResourceLabels.ts +34 -0
- package/Server/Utils/OnCall/CalendarFeedToken.ts +241 -0
- package/Server/Utils/OnCall/OnCallCalendarFeedRenderer.ts +1488 -0
- package/Server/Utils/OnCall/OnCallCalendarFeedUrls.ts +230 -0
- package/Server/Utils/OnCall/OnCallShiftChangeListeners.ts +227 -0
- package/Server/Utils/OnCall/OnCallShiftMaterializer.ts +1127 -0
- package/Server/Utils/OnCall/OnCallShiftReminderListener.ts +174 -0
- package/Server/Utils/OnCall/OnCallShiftReminderRunner.ts +2584 -0
- package/Server/Utils/Response.ts +134 -0
- package/Server/Utils/Rules/RuleEngineRuleRead.ts +48 -0
- package/Server/Utils/StartServer.ts +10 -0
- package/Server/Utils/Telemetry/AppMetrics.ts +51 -0
- package/Server/Utils/Telemetry/ExceptionSanitizer.ts +14 -1
- package/Server/Utils/Telemetry/LogExceptionExtractor.ts +14 -2
- package/Server/Utils/Telemetry/SourceMapResolver.ts +16 -5
- package/Server/Utils/Telemetry/StackTraceParser.ts +399 -0
- package/Tests/App/Dashboard/EventOverlayHook.test.tsx +125 -0
- package/Tests/App/Dashboard/HeaderImageAssets.test.tsx +93 -0
- package/Tests/App/Dashboard/OnCallCalendarFeedLinks.test.tsx +229 -0
- package/Tests/App/Dashboard/OnCallCalendarFeedPlanGate.test.tsx +489 -0
- package/Tests/App/Dashboard/OnCallCalendarFeedSideMenus.test.tsx +149 -0
- package/Tests/App/Dashboard/OnCallCalendarFeedUtil.test.ts +855 -0
- package/Tests/App/Dashboard/OnCallPersonalCalendarFeed.test.tsx +1209 -0
- package/Tests/App/Dashboard/OnCallReadinessSurfaces.test.tsx +3 -3
- package/Tests/App/Dashboard/OnCallSharedCalendarFeedCard.test.tsx +1019 -0
- package/Tests/App/Dashboard/OnCallShiftRemindersAndUpcomingShifts.test.tsx +655 -0
- package/Tests/App/Dashboard/UserElementEmail.test.tsx +12 -4
- package/Tests/App/Dashboard/UserEmailCallSites.test.tsx +1 -1
- package/Tests/App/Dashboard/UserSettingsSetupChecklistModel.test.ts +73 -0
- package/Tests/Models/DatabaseModels/DomainRoleTierCoverage.test.ts +14 -0
- package/Tests/Models/DatabaseModels/ModelRegistryInvariants.test.ts +469 -0
- package/Tests/Models/OnCallCalendarFeedModels.test.ts +642 -0
- package/Tests/Models/OnCallDutyPolicyScheduleCalendarFeed.test.ts +288 -0
- package/Tests/Models/OnCallDutyPolicyScheduleShiftConfigVersion.test.ts +88 -0
- package/Tests/Models/SecurityDomainAccessControl.test.ts +429 -0
- package/Tests/Models/UserOnCallShiftReminderModels.test.ts +368 -0
- package/Tests/Server/API/GlobalConfigLicense.test.ts +657 -0
- package/Tests/Server/API/Helpers.ts +8 -0
- package/Tests/Server/API/OnCallCalendarAPI.test.ts +4461 -0
- package/Tests/Server/API/SecurityEventAttributesAPI.test.ts +84 -6
- package/Tests/Server/API/TelemetryResolveStackTraceAPI.test.ts +805 -0
- package/Tests/Server/EnvironmentConfigOnCallCalendarFeed.test.ts +357 -0
- package/Tests/Server/Infrastructure/OnCallCalendarFeedCache.test.ts +1589 -0
- package/Tests/Server/Infrastructure/Postgres/AddOnCallCalendarFeedsMigration.test.ts +394 -0
- package/Tests/Server/Middleware/IdentityRateLimit.test.ts +1144 -0
- package/Tests/Server/Middleware/MultipartFormData.test.ts +618 -3
- package/Tests/Server/Middleware/OnCallCalendarFeedRateLimit.test.ts +1365 -0
- package/Tests/Server/Services/FeedRetentionConsistency.test.ts +70 -0
- package/Tests/Server/Services/MonitorLabelRuleEngineScale.test.ts +520 -0
- package/Tests/Server/Services/NetworkDeviceOidTemplateService.test.ts +332 -0
- package/Tests/Server/Services/NetworkDeviceOidTemplateWriteGuards.test.ts +409 -0
- package/Tests/Server/Services/OnCallCalendarFeedServices.test.ts +1103 -0
- package/Tests/Server/Services/OnCallDutyPolicyScheduleResolver.test.ts +1037 -0
- package/Tests/Server/Services/OnCallShiftConfigPropagation.test.ts +1270 -0
- package/Tests/Server/Services/RuleEngineRuleFetchLimit.test.ts +239 -0
- package/Tests/Server/Services/TeamDeleteMemberCleanup.test.ts +156 -0
- package/Tests/Server/Services/TeamMemberOnCallCleanup.test.ts +755 -0
- package/Tests/Server/Services/TelemetrySourceMapService.test.ts +1210 -2
- package/Tests/Server/Services/UserNotificationSettingShiftReminderDefaults.test.ts +267 -0
- package/Tests/Server/Services/UserOnCallShiftReminderServices.test.ts +583 -0
- package/Tests/Server/Services/UserServiceSeatLimit.test.ts +182 -0
- package/Tests/Server/Types/AnalyticsDatabase/SecurityEventModelPermission.test.ts +255 -0
- package/Tests/Server/Types/Database/Permissions/OnCallCalendarFeedPermissions.test.ts +254 -0
- package/Tests/Server/Types/Database/Permissions/ReadBlockPermission.test.ts +212 -0
- package/Tests/Server/Types/Database/Permissions/SecurityRoleAccess.test.ts +413 -0
- package/Tests/Server/Utils/CodeRepository.test.ts +689 -0
- package/Tests/Server/Utils/EnterpriseLicense/EnterpriseLicenseSeatUtil.test.ts +495 -0
- package/Tests/Server/Utils/ExceptionSanitizer.test.ts +77 -0
- package/Tests/Server/Utils/Monitor/CapturedMetricAttributeUtil.test.ts +284 -0
- package/Tests/Server/Utils/Monitor/MonitorCustomMetricAttributes.test.ts +503 -0
- package/Tests/Server/Utils/Monitor/MonitorTemplatePrototypePollution.test.ts +106 -0
- package/Tests/Server/Utils/Monitor/NetworkDeviceWalkLogWritePath.test.ts +33 -4
- package/Tests/Server/Utils/Monitor/NetworkDeviceWalkUtil.test.ts +14 -4
- package/Tests/Server/Utils/Monitor/NetworkInventoryUtil.test.ts +44 -0
- package/Tests/Server/Utils/OnCall/CalendarFeedToken.test.ts +467 -0
- package/Tests/Server/Utils/OnCall/OnCallCalendarFeedRenderer.test.ts +2142 -0
- package/Tests/Server/Utils/OnCall/OnCallCalendarFeedUrls.test.ts +278 -0
- package/Tests/Server/Utils/OnCall/OnCallResolverTestHarness.ts +440 -0
- package/Tests/Server/Utils/OnCall/OnCallShiftChangeListeners.test.ts +314 -0
- package/Tests/Server/Utils/OnCall/OnCallShiftMaterializer.test.ts +1502 -0
- package/Tests/Server/Utils/OnCall/OnCallShiftReminderListener.test.ts +491 -0
- package/Tests/Server/Utils/OnCall/OnCallShiftReminderRunner.test.ts +3088 -0
- package/Tests/Server/Utils/OnCall/OnCallShiftReminderTestHarness.ts +910 -0
- package/Tests/Server/Utils/OpenAPISpec.test.ts +536 -0
- package/Tests/Server/Utils/ResponseSendCalendarResponse.test.ts +561 -0
- package/Tests/Server/Utils/Rules/RuleEngineRuleRead.test.ts +115 -0
- package/Tests/Server/Utils/StackTraceParser.test.ts +610 -0
- package/Tests/Server/Utils/StartServerEncryptionSecretWarning.test.ts +64 -0
- package/Tests/Server/Utils/Telemetry/AppMetrics.test.ts +29 -0
- package/Tests/Server/Utils/Telemetry/LogExceptionExtractor.test.ts +0 -0
- package/Tests/Server/Utils/Telemetry/SourceMapLimits.test.ts +656 -0
- package/Tests/Server/Utils/Telemetry/SourceMapResolver.test.ts +100 -0
- package/Tests/Types/Calendar/ICalendar.test.ts +488 -0
- package/Tests/Types/Monitor/SnmpMonitor/SnmpOidListUtil.test.ts +454 -0
- package/Tests/Types/NotificationSetting/NotificationSettingEventType.test.ts +53 -0
- package/Tests/Types/OnCallDutyPolicy/CalendarFeedTestFixtures.ts +310 -0
- package/Tests/Types/OnCallDutyPolicy/CalendarFeedWindow.test.ts +205 -0
- package/Tests/Types/OnCallDutyPolicy/LayerUtilLayerMetaAndIterationCap.test.ts +458 -0
- package/Tests/Types/OnCallDutyPolicy/MaterializedShift.test.ts +197 -0
- package/Tests/Types/OnCallDutyPolicy/OnCallCalendarFeedUtil.test.ts +1986 -0
- package/Tests/Types/OnCallDutyPolicy/ScheduleShiftUtilGroupKey.test.ts +678 -0
- package/Tests/Types/OnCallDutyPolicy/ShiftSeamUtil.test.ts +417 -0
- package/Tests/Types/SecurityRolePermissions.test.ts +193 -0
- package/Tests/UI/Components/Charts/AnnotationLayout.test.ts +773 -0
- package/Tests/UI/Components/Charts/ChartAnnotationRail.test.tsx +789 -0
- package/Tests/UI/Components/Charts/ChartBucketIdentity.test.ts +254 -0
- package/Tests/UI/Components/Charts/TimeAnnotation.test.ts +471 -0
- package/Tests/UI/Components/EditionLabelLicenseRefresh.test.tsx +405 -0
- package/Tests/UI/Components/ErrorMessageRefreshControl.test.tsx +83 -0
- package/Tests/UI/Components/MarkdownConverters.test.ts +686 -0
- package/Tests/UI/Components/ModelTable/BaseModelTableDeleteAndEmptyStates.test.tsx +341 -0
- package/Tests/UI/Components/OrderedStatesList.test.tsx +5 -5
- package/Tests/UI/Components/PendingProjectInvitations.test.tsx +1 -1
- package/Tests/UI/Components/TableSortAndMobileColumns.test.tsx +195 -0
- package/Tests/UI/Components/XAxis.test.ts +270 -5
- package/Tests/UI/Components/XAxisDaylightSaving.test.ts +113 -0
- package/Tests/UI/Styles/ChartFocusRing.test.ts +153 -0
- package/Tests/UI/Styles/ChartFocusRingCoverage.test.tsx +377 -0
- package/Tests/UI/Styles/ThemeStylesheet.ts +162 -0
- package/Tests/UI/Utils/Breadcrumb/fixtures/RealBreadcrumbTrails.ts +10 -0
- package/Tests/UI/Utils/Breadcrumb/fixtures/RealRoutePatterns.ts +2 -0
- package/Tests/Utils/EnterpriseLicenseSeats.test.ts +507 -0
- package/Tests/Utils/NetworkDiscovery/DiscoveredDeviceBuilder.test.ts +951 -1
- package/Tests/Utils/NetworkDiscovery/DiscoveredHostUtil.test.ts +238 -0
- package/Tests/Utils/NetworkDiscovery/DiscoveryReverseDnsChain.test.ts +1056 -0
- package/Tests/Utils/NetworkDiscovery/ReverseDnsNameUtil.test.ts +882 -0
- package/Types/Calendar/ICalendar.ts +442 -0
- package/Types/Date.ts +39 -0
- package/Types/Email/EmailTemplateType.ts +2 -0
- package/Types/Monitor/SnmpMonitor/SnmpOidListUtil.ts +333 -0
- package/Types/NotificationSetting/NotificationSettingEventType.ts +4 -0
- package/Types/OnCallDutyPolicy/CalendarFeedWindow.ts +140 -0
- package/Types/OnCallDutyPolicy/Layer.ts +190 -35
- package/Types/OnCallDutyPolicy/MaterializedShift.ts +274 -0
- package/Types/OnCallDutyPolicy/OnCallCalendarFeedUtil.ts +1415 -0
- package/Types/OnCallDutyPolicy/ScheduleShiftUtil.ts +159 -4
- package/Types/OnCallDutyPolicy/ShiftSeamUtil.ts +106 -0
- package/Types/Permission.ts +96 -0
- package/Types/Rum/SessionReplay.ts +21 -0
- package/Types/Telemetry/SourceMap.ts +8 -0
- package/UI/Components/Charts/ChartLibrary/Annotations/AnnotationHoverCard.tsx +176 -0
- package/UI/Components/Charts/ChartLibrary/Annotations/AnnotationLayout.ts +745 -0
- package/UI/Components/Charts/ChartLibrary/Annotations/ChartAnnotationLayer.tsx +576 -0
- package/UI/Components/Charts/ChartLibrary/Annotations/UseChartAnnotations.tsx +204 -0
- package/UI/Components/Charts/ChartLibrary/AreaChart/AreaChart.tsx +491 -544
- package/UI/Components/Charts/ChartLibrary/BarChart/BarChart.tsx +324 -372
- package/UI/Components/Charts/ChartLibrary/LineChart/LineChart.tsx +487 -540
- package/UI/Components/Charts/ChartLibrary/Types/FormattedReferenceRegion.ts +7 -3
- package/UI/Components/Charts/ChartLibrary/Types/FormattedTimeReferenceLine.ts +14 -3
- package/UI/Components/Charts/Types/ChartEventKind.ts +13 -0
- package/UI/Components/Charts/Types/ReferenceRegionProps.ts +6 -0
- package/UI/Components/Charts/Types/TimeReferenceLineProps.ts +20 -3
- package/UI/Components/Charts/Utils/TimeAnnotation.ts +69 -35
- package/UI/Components/Charts/Utils/XAxis.ts +125 -18
- package/UI/Components/EditionLabel/EditionLabel.tsx +280 -26
- package/UI/Components/ErrorMessage/ErrorMessage.tsx +21 -10
- package/UI/Components/Feed/FeedItem.tsx +4 -5
- package/UI/Components/Header/HeaderIconDropdownButton.tsx +1 -2
- package/UI/Components/Header/UserProfile/UserProfile.tsx +1 -2
- package/UI/Components/Image/Image.tsx +20 -3
- package/UI/Components/Markdown.tsx/MarkdownConverters.ts +0 -0
- package/UI/Components/MemberRoleAssignment/MemberRoleAssignment.tsx +1 -2
- package/UI/Components/ModelTable/BaseModelTable.tsx +150 -24
- package/UI/Components/Table/TableHeader.tsx +64 -48
- package/UI/Components/Table/TableRow.tsx +13 -3
- package/UI/Styles/Theme.css +38 -0
- package/Utils/EnterpriseLicense/EnterpriseLicenseSeats.ts +271 -0
- package/Utils/NetworkDiscovery/AutoImportRuleMatcher.ts +6 -0
- package/Utils/NetworkDiscovery/DiscoveredDeviceBuilder.ts +141 -10
- package/Utils/NetworkDiscovery/DiscoveredHostUtil.ts +55 -3
- package/Utils/NetworkDiscovery/ReverseDnsNameUtil.ts +151 -0
- package/Utils/Rules/RuleEngineLimits.ts +32 -0
- package/build/dist/Models/AnalyticsModels/SecurityEvent.js +48 -16
- package/build/dist/Models/AnalyticsModels/SecurityEvent.js.map +1 -1
- package/build/dist/Models/AnalyticsModels/ThreatIntelIndicator.js +10 -5
- package/build/dist/Models/AnalyticsModels/ThreatIntelIndicator.js.map +1 -1
- package/build/dist/Models/DatabaseModels/AlertSeverity.js +46 -1
- package/build/dist/Models/DatabaseModels/AlertSeverity.js.map +1 -1
- package/build/dist/Models/DatabaseModels/DetectionRule.js +16 -5
- package/build/dist/Models/DatabaseModels/DetectionRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/GoogleSecOpsConnection.js +14 -5
- package/build/dist/Models/DatabaseModels/GoogleSecOpsConnection.js.map +1 -1
- package/build/dist/Models/DatabaseModels/IncidentSeverity.js +46 -1
- package/build/dist/Models/DatabaseModels/IncidentSeverity.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Index.js +13 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/NetworkDevice.js +115 -3
- package/build/dist/Models/DatabaseModels/NetworkDevice.js.map +1 -1
- package/build/dist/Models/DatabaseModels/NetworkDeviceAutoImportRule.js +88 -0
- package/build/dist/Models/DatabaseModels/NetworkDeviceAutoImportRule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/NetworkDeviceDiscoveryScan.js.map +1 -1
- package/build/dist/Models/DatabaseModels/NetworkDeviceOidTemplate.js +519 -0
- package/build/dist/Models/DatabaseModels/NetworkDeviceOidTemplate.js.map +1 -0
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicySchedule.js +44 -0
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicySchedule.js.map +1 -1
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyScheduleCalendarFeed.js +699 -0
- package/build/dist/Models/DatabaseModels/OnCallDutyPolicyScheduleCalendarFeed.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ProjectOnCallCalendarFeed.js +620 -0
- package/build/dist/Models/DatabaseModels/ProjectOnCallCalendarFeed.js.map +1 -0
- package/build/dist/Models/DatabaseModels/ThreatIntelFeed.js +16 -5
- package/build/dist/Models/DatabaseModels/ThreatIntelFeed.js.map +1 -1
- package/build/dist/Models/DatabaseModels/UserOnCallCalendarFeed.js +585 -0
- package/build/dist/Models/DatabaseModels/UserOnCallCalendarFeed.js.map +1 -0
- package/build/dist/Models/DatabaseModels/UserOnCallShiftReminder.js +247 -0
- package/build/dist/Models/DatabaseModels/UserOnCallShiftReminder.js.map +1 -0
- package/build/dist/Models/DatabaseModels/UserOnCallShiftReminderLog.js +355 -0
- package/build/dist/Models/DatabaseModels/UserOnCallShiftReminderLog.js.map +1 -0
- package/build/dist/Server/API/GlobalConfigAPI.js +293 -176
- package/build/dist/Server/API/GlobalConfigAPI.js.map +1 -1
- package/build/dist/Server/API/OnCallCalendarAPI.js +1371 -0
- package/build/dist/Server/API/OnCallCalendarAPI.js.map +1 -0
- package/build/dist/Server/API/TelemetryAPI.js +31 -3
- package/build/dist/Server/API/TelemetryAPI.js.map +1 -1
- package/build/dist/Server/EnvironmentConfig.js +185 -0
- package/build/dist/Server/EnvironmentConfig.js.map +1 -1
- package/build/dist/Server/Infrastructure/OnCallCalendarFeedCache.js +663 -0
- package/build/dist/Server/Infrastructure/OnCallCalendarFeedCache.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1790400000000-AddOnCallCalendarFeeds.js +103 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1790400000000-AddOnCallCalendarFeeds.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1790500000000-AddNetworkDeviceOidTemplate.js +26 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1790500000000-AddNetworkDeviceOidTemplate.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1790600000000-AddAutoImportRuleOidTemplate.js +14 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1790600000000-AddAutoImportRuleOidTemplate.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +6 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Middleware/MultipartFormData.js +93 -28
- package/build/dist/Server/Middleware/MultipartFormData.js.map +1 -1
- package/build/dist/Server/Middleware/OnCallCalendarFeedRateLimit.js +342 -0
- package/build/dist/Server/Middleware/OnCallCalendarFeedRateLimit.js.map +1 -0
- package/build/dist/Server/Services/AlertEpisodeLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/AlertEpisodeLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/AlertEpisodeOnCallRuleEngineService.js +8 -1
- package/build/dist/Server/Services/AlertEpisodeOnCallRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/AlertEpisodeOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/AlertEpisodeOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/AlertEpisodePrivacyRuleEngineService.js +8 -1
- package/build/dist/Server/Services/AlertEpisodePrivacyRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/AlertGroupingEngineService.js +8 -1
- package/build/dist/Server/Services/AlertGroupingEngineService.js.map +1 -1
- package/build/dist/Server/Services/AlertLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/AlertLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/AlertOnCallRuleEngineService.js +8 -1
- package/build/dist/Server/Services/AlertOnCallRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/AlertOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/AlertOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/AlertPrivacyRuleEngineService.js +8 -1
- package/build/dist/Server/Services/AlertPrivacyRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/AlertReminderRuleService.js +8 -1
- package/build/dist/Server/Services/AlertReminderRuleService.js.map +1 -1
- package/build/dist/Server/Services/AutoRemediationRuleEngineService.js +8 -1
- package/build/dist/Server/Services/AutoRemediationRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/CephClusterLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/CephClusterLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/CephClusterOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/CephClusterOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/CloudResourceLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/CloudResourceLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/CloudResourceOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/CloudResourceOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/DashboardLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/DashboardLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/DashboardOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/DashboardOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/DockerHostLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/DockerHostLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/DockerHostOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/DockerHostOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/DockerSwarmClusterLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/DockerSwarmClusterLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/DockerSwarmClusterOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/DockerSwarmClusterOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/HostLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/HostLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/HostOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/HostOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/IncidentEpisodeLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/IncidentEpisodeLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/IncidentEpisodeOnCallRuleEngineService.js +8 -1
- package/build/dist/Server/Services/IncidentEpisodeOnCallRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/IncidentEpisodeOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/IncidentEpisodeOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/IncidentEpisodePrivacyRuleEngineService.js +8 -1
- package/build/dist/Server/Services/IncidentEpisodePrivacyRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/IncidentGroupingEngineService.js +8 -1
- package/build/dist/Server/Services/IncidentGroupingEngineService.js.map +1 -1
- package/build/dist/Server/Services/IncidentLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/IncidentLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/IncidentOnCallRuleEngineService.js +8 -1
- package/build/dist/Server/Services/IncidentOnCallRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/IncidentOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/IncidentOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/IncidentPrivacyRuleEngineService.js +8 -1
- package/build/dist/Server/Services/IncidentPrivacyRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/IncidentReminderRuleService.js +8 -1
- package/build/dist/Server/Services/IncidentReminderRuleService.js.map +1 -1
- package/build/dist/Server/Services/IncidentSlaRuleService.js +8 -1
- package/build/dist/Server/Services/IncidentSlaRuleService.js.map +1 -1
- package/build/dist/Server/Services/IncomingCallPolicyLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/IncomingCallPolicyLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/IncomingCallPolicyOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/IncomingCallPolicyOwnerRuleEngineService.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/IoTFleetLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/IoTFleetLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/IoTFleetOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/IoTFleetOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/KubernetesClusterLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/KubernetesClusterLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/KubernetesClusterOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/KubernetesClusterOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/KubernetesResourceService.js +5 -1
- package/build/dist/Server/Services/KubernetesResourceService.js.map +1 -1
- package/build/dist/Server/Services/MonitorLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/MonitorLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/MonitorOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/MonitorOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/NetworkDeviceAutoImportRuleEngineService.js +30 -21
- package/build/dist/Server/Services/NetworkDeviceAutoImportRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/NetworkDeviceAutoImportRuleService.js +64 -0
- package/build/dist/Server/Services/NetworkDeviceAutoImportRuleService.js.map +1 -1
- package/build/dist/Server/Services/NetworkDeviceLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/NetworkDeviceLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/NetworkDeviceOidTemplateService.js +180 -0
- package/build/dist/Server/Services/NetworkDeviceOidTemplateService.js.map +1 -0
- package/build/dist/Server/Services/NetworkDeviceOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/NetworkDeviceOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/NetworkDeviceService.js +154 -1
- package/build/dist/Server/Services/NetworkDeviceService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleScheduleService.js +20 -0
- package/build/dist/Server/Services/OnCallDutyPolicyEscalationRuleScheduleService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/OnCallDutyPolicyLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/OnCallDutyPolicyOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleCalendarFeedService.js +219 -0
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleCalendarFeedService.js.map +1 -0
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleLayerService.js +47 -3
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleLayerService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleLayerUserService.js +112 -3
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleLayerUserService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleService.js +955 -9
- package/build/dist/Server/Services/OnCallDutyPolicyScheduleService.js.map +1 -1
- package/build/dist/Server/Services/OnCallDutyPolicyUserOverrideService.js +93 -6
- package/build/dist/Server/Services/OnCallDutyPolicyUserOverrideService.js.map +1 -1
- package/build/dist/Server/Services/PodmanHostLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/PodmanHostLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/PodmanHostOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/PodmanHostOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/ProjectOnCallCalendarFeedService.js +157 -0
- package/build/dist/Server/Services/ProjectOnCallCalendarFeedService.js.map +1 -0
- package/build/dist/Server/Services/ProxmoxClusterLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/ProxmoxClusterLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/ProxmoxClusterOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/ProxmoxClusterOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/RumApplicationLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/RumApplicationLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/RumApplicationOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/RumApplicationOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/RunbookLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/RunbookLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/RunbookOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/RunbookOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/RunbookRuleEngineService.js +8 -1
- package/build/dist/Server/Services/RunbookRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/ScheduledMaintenanceLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/ScheduledMaintenanceOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/ScheduledMaintenanceReminderRuleService.js +8 -1
- package/build/dist/Server/Services/ScheduledMaintenanceReminderRuleService.js.map +1 -1
- package/build/dist/Server/Services/ServerlessFunctionLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/ServerlessFunctionLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/ServerlessFunctionOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/ServerlessFunctionOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/ServiceLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/ServiceLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/ServiceOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/ServiceOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/StatusPageLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageMonitorRuleEngineService.js +6 -0
- package/build/dist/Server/Services/StatusPageMonitorRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/StatusPageOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/TeamMemberService.js +396 -1
- package/build/dist/Server/Services/TeamMemberService.js.map +1 -1
- package/build/dist/Server/Services/TeamService.js +43 -0
- package/build/dist/Server/Services/TeamService.js.map +1 -1
- package/build/dist/Server/Services/TelemetrySourceMapService.js +213 -19
- package/build/dist/Server/Services/TelemetrySourceMapService.js.map +1 -1
- package/build/dist/Server/Services/UserNotificationSettingService.js +26 -1
- package/build/dist/Server/Services/UserNotificationSettingService.js.map +1 -1
- package/build/dist/Server/Services/UserOnCallCalendarFeedService.js +140 -0
- package/build/dist/Server/Services/UserOnCallCalendarFeedService.js.map +1 -0
- package/build/dist/Server/Services/UserOnCallShiftReminderLogService.js +116 -0
- package/build/dist/Server/Services/UserOnCallShiftReminderLogService.js.map +1 -0
- package/build/dist/Server/Services/UserOnCallShiftReminderService.js +92 -0
- package/build/dist/Server/Services/UserOnCallShiftReminderService.js.map +1 -0
- package/build/dist/Server/Services/UserService.js +25 -0
- package/build/dist/Server/Services/UserService.js.map +1 -1
- package/build/dist/Server/Services/WorkflowLabelRuleEngineService.js +8 -1
- package/build/dist/Server/Services/WorkflowLabelRuleEngineService.js.map +1 -1
- package/build/dist/Server/Services/WorkflowOwnerRuleEngineService.js +8 -1
- package/build/dist/Server/Services/WorkflowOwnerRuleEngineService.js.map +1 -1
- package/build/dist/Server/Utils/EnterpriseLicense/EnterpriseLicenseSeatUtil.js +145 -0
- package/build/dist/Server/Utils/EnterpriseLicense/EnterpriseLicenseSeatUtil.js.map +1 -0
- package/build/dist/Server/Utils/Monitor/CapturedMetricAttributeUtil.js +201 -0
- package/build/dist/Server/Utils/Monitor/CapturedMetricAttributeUtil.js.map +1 -0
- package/build/dist/Server/Utils/Monitor/Criteria/SnmpMonitorCriteria.js +19 -2
- package/build/dist/Server/Utils/Monitor/Criteria/SnmpMonitorCriteria.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorMetricUtil.js +42 -23
- package/build/dist/Server/Utils/Monitor/MonitorMetricUtil.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorTemplateUtil.js +29 -0
- package/build/dist/Server/Utils/Monitor/MonitorTemplateUtil.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/NetworkDeviceMetricUtil.js +11 -2
- package/build/dist/Server/Utils/Monitor/NetworkDeviceMetricUtil.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/NetworkDeviceWalkUtil.js +16 -1
- package/build/dist/Server/Utils/Monitor/NetworkDeviceWalkUtil.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/NetworkInventoryUtil.js +10 -0
- package/build/dist/Server/Utils/Monitor/NetworkInventoryUtil.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/SeriesResourceLabels.js +33 -0
- package/build/dist/Server/Utils/Monitor/SeriesResourceLabels.js.map +1 -1
- package/build/dist/Server/Utils/OnCall/CalendarFeedToken.js +161 -0
- package/build/dist/Server/Utils/OnCall/CalendarFeedToken.js.map +1 -0
- package/build/dist/Server/Utils/OnCall/OnCallCalendarFeedRenderer.js +983 -0
- package/build/dist/Server/Utils/OnCall/OnCallCalendarFeedRenderer.js.map +1 -0
- package/build/dist/Server/Utils/OnCall/OnCallCalendarFeedUrls.js +155 -0
- package/build/dist/Server/Utils/OnCall/OnCallCalendarFeedUrls.js.map +1 -0
- package/build/dist/Server/Utils/OnCall/OnCallShiftChangeListeners.js +145 -0
- package/build/dist/Server/Utils/OnCall/OnCallShiftChangeListeners.js.map +1 -0
- package/build/dist/Server/Utils/OnCall/OnCallShiftMaterializer.js +752 -0
- package/build/dist/Server/Utils/OnCall/OnCallShiftMaterializer.js.map +1 -0
- package/build/dist/Server/Utils/OnCall/OnCallShiftReminderListener.js +92 -0
- package/build/dist/Server/Utils/OnCall/OnCallShiftReminderListener.js.map +1 -0
- package/build/dist/Server/Utils/OnCall/OnCallShiftReminderRunner.js +1786 -0
- package/build/dist/Server/Utils/OnCall/OnCallShiftReminderRunner.js.map +1 -0
- package/build/dist/Server/Utils/Response.js +97 -0
- package/build/dist/Server/Utils/Response.js.map +1 -1
- package/build/dist/Server/Utils/Rules/RuleEngineRuleRead.js +37 -0
- package/build/dist/Server/Utils/Rules/RuleEngineRuleRead.js.map +1 -0
- package/build/dist/Server/Utils/StartServer.js +9 -1
- package/build/dist/Server/Utils/StartServer.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/AppMetrics.js +41 -0
- package/build/dist/Server/Utils/Telemetry/AppMetrics.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/ExceptionSanitizer.js +12 -1
- package/build/dist/Server/Utils/Telemetry/ExceptionSanitizer.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/LogExceptionExtractor.js +14 -2
- package/build/dist/Server/Utils/Telemetry/LogExceptionExtractor.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/SourceMapResolver.js +15 -5
- package/build/dist/Server/Utils/Telemetry/SourceMapResolver.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/StackTraceParser.js +307 -0
- package/build/dist/Server/Utils/Telemetry/StackTraceParser.js.map +1 -1
- package/build/dist/Types/Calendar/ICalendar.js +290 -0
- package/build/dist/Types/Calendar/ICalendar.js.map +1 -0
- package/build/dist/Types/Date.js +27 -0
- package/build/dist/Types/Date.js.map +1 -1
- package/build/dist/Types/Email/EmailTemplateType.js +2 -0
- package/build/dist/Types/Email/EmailTemplateType.js.map +1 -1
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpOidListUtil.js +253 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpOidListUtil.js.map +1 -0
- package/build/dist/Types/NotificationSetting/NotificationSettingEventType.js +3 -0
- package/build/dist/Types/NotificationSetting/NotificationSettingEventType.js.map +1 -1
- package/build/dist/Types/OnCallDutyPolicy/CalendarFeedWindow.js +97 -0
- package/build/dist/Types/OnCallDutyPolicy/CalendarFeedWindow.js.map +1 -0
- package/build/dist/Types/OnCallDutyPolicy/Layer.js +113 -19
- package/build/dist/Types/OnCallDutyPolicy/Layer.js.map +1 -1
- package/build/dist/Types/OnCallDutyPolicy/MaterializedShift.js +134 -0
- package/build/dist/Types/OnCallDutyPolicy/MaterializedShift.js.map +1 -0
- package/build/dist/Types/OnCallDutyPolicy/OnCallCalendarFeedUtil.js +800 -0
- package/build/dist/Types/OnCallDutyPolicy/OnCallCalendarFeedUtil.js.map +1 -0
- package/build/dist/Types/OnCallDutyPolicy/ScheduleShiftUtil.js +97 -3
- package/build/dist/Types/OnCallDutyPolicy/ScheduleShiftUtil.js.map +1 -1
- package/build/dist/Types/OnCallDutyPolicy/ShiftSeamUtil.js +77 -0
- package/build/dist/Types/OnCallDutyPolicy/ShiftSeamUtil.js.map +1 -0
- package/build/dist/Types/Permission.js +86 -0
- package/build/dist/Types/Permission.js.map +1 -1
- package/build/dist/Types/Rum/SessionReplay.js +19 -0
- package/build/dist/Types/Rum/SessionReplay.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartLibrary/Annotations/AnnotationHoverCard.js +83 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Annotations/AnnotationHoverCard.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Annotations/AnnotationLayout.js +531 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Annotations/AnnotationLayout.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Annotations/ChartAnnotationLayer.js +264 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Annotations/ChartAnnotationLayer.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Annotations/UseChartAnnotations.js +122 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Annotations/UseChartAnnotations.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/AreaChart/AreaChart.js +213 -233
- package/build/dist/UI/Components/Charts/ChartLibrary/AreaChart/AreaChart.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartLibrary/BarChart/BarChart.js +139 -152
- package/build/dist/UI/Components/Charts/ChartLibrary/BarChart/BarChart.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartLibrary/LineChart/LineChart.js +212 -232
- package/build/dist/UI/Components/Charts/ChartLibrary/LineChart/LineChart.js.map +1 -1
- package/build/dist/UI/Components/Charts/Types/ChartEventKind.js +14 -0
- package/build/dist/UI/Components/Charts/Types/ChartEventKind.js.map +1 -0
- package/build/dist/UI/Components/Charts/Utils/TimeAnnotation.js +57 -28
- package/build/dist/UI/Components/Charts/Utils/TimeAnnotation.js.map +1 -1
- package/build/dist/UI/Components/Charts/Utils/XAxis.js +103 -17
- package/build/dist/UI/Components/Charts/Utils/XAxis.js.map +1 -1
- package/build/dist/UI/Components/EditionLabel/EditionLabel.js +198 -23
- package/build/dist/UI/Components/EditionLabel/EditionLabel.js.map +1 -1
- package/build/dist/UI/Components/ErrorMessage/ErrorMessage.js +15 -5
- package/build/dist/UI/Components/ErrorMessage/ErrorMessage.js.map +1 -1
- package/build/dist/UI/Components/Feed/FeedItem.js +4 -5
- package/build/dist/UI/Components/Feed/FeedItem.js.map +1 -1
- package/build/dist/UI/Components/Header/HeaderIconDropdownButton.js +1 -2
- package/build/dist/UI/Components/Header/HeaderIconDropdownButton.js.map +1 -1
- package/build/dist/UI/Components/Header/UserProfile/UserProfile.js.map +1 -1
- package/build/dist/UI/Components/Image/Image.js +6 -1
- package/build/dist/UI/Components/Image/Image.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/MemberRoleAssignment/MemberRoleAssignment.js +1 -2
- package/build/dist/UI/Components/MemberRoleAssignment/MemberRoleAssignment.js.map +1 -1
- package/build/dist/UI/Components/ModelTable/BaseModelTable.js +104 -23
- package/build/dist/UI/Components/ModelTable/BaseModelTable.js.map +1 -1
- package/build/dist/UI/Components/Table/TableHeader.js +20 -22
- package/build/dist/UI/Components/Table/TableHeader.js.map +1 -1
- package/build/dist/UI/Components/Table/TableRow.js +13 -4
- package/build/dist/UI/Components/Table/TableRow.js.map +1 -1
- package/build/dist/Utils/EnterpriseLicense/EnterpriseLicenseSeats.js +153 -0
- package/build/dist/Utils/EnterpriseLicense/EnterpriseLicenseSeats.js.map +1 -0
- package/build/dist/Utils/NetworkDiscovery/AutoImportRuleMatcher.js.map +1 -1
- package/build/dist/Utils/NetworkDiscovery/DiscoveredDeviceBuilder.js +127 -7
- package/build/dist/Utils/NetworkDiscovery/DiscoveredDeviceBuilder.js.map +1 -1
- package/build/dist/Utils/NetworkDiscovery/DiscoveredHostUtil.js +50 -3
- package/build/dist/Utils/NetworkDiscovery/DiscoveredHostUtil.js.map +1 -1
- package/build/dist/Utils/NetworkDiscovery/ReverseDnsNameUtil.js +132 -0
- package/build/dist/Utils/NetworkDiscovery/ReverseDnsNameUtil.js.map +1 -0
- package/build/dist/Utils/Rules/RuleEngineLimits.js +31 -0
- package/build/dist/Utils/Rules/RuleEngineLimits.js.map +1 -0
- package/jest.config.json +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnnotationLayout.js","sourceRoot":"","sources":["../../../../../../../UI/Components/Charts/ChartLibrary/Annotations/AnnotationLayout.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,4BAA4B,CAAC;AAIxD;;;;;GAKG;AAEH,2EAA2E;AAC3E,MAAM,CAAC,MAAM,kBAAkB,GAAW,EAAE,CAAC;AAE7C,kDAAkD;AAClD,MAAM,CAAC,MAAM,kBAAkB,GAAW,EAAE,CAAC;AAE7C,qEAAqE;AACrE,MAAM,CAAC,MAAM,QAAQ,GAAW,CAAC,C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AC,SAAS,mCAAI,CAAC,CAAC;IAC9C,MAAM,KAAK,GAAW,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;IACxD,MAAM,OAAO,GAAW,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAErE;;;OAGG;IACH,IAAI,OAAO,IAAI,SAAS,EAAE,CAAC;QACzB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,SAAS,CAAC,EAAE,OAAO,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ZIndexLayer, useChartWidth, usePlotArea, useXAxisTicks, } from "recharts";
|
|
3
|
+
import { MARKER_RAIL_HEIGHT, REGION_RAIL_HEIGHT, SINGLE_MARKER_CHIP_SIZE, buildCategoryXResolver, clusterMarkers, getChipWidth, getMarkerRailY, getRegionRailY, positionMarkers, positionRegions, truncateLabelToWidth, } from "./AnnotationLayout";
|
|
4
|
+
/** Ring drawn around a chip so overlapping chips still read as separate. */
|
|
5
|
+
const CHIP_RING = "var(--ou-chart-marker-ring, #ffffff)";
|
|
6
|
+
const HAIRLINE_OPACITY = 0.34;
|
|
7
|
+
const HAIRLINE_OPACITY_HOVERED = 0.85;
|
|
8
|
+
const REGION_FILL_OPACITY = 0.1;
|
|
9
|
+
const REGION_FILL_OPACITY_HOVERED = 0.2;
|
|
10
|
+
/** Font size of the label inside a region pill. */
|
|
11
|
+
const REGION_LABEL_FONT_SIZE = 9;
|
|
12
|
+
/** Padding either side of a region pill's label. */
|
|
13
|
+
const REGION_LABEL_INSET = 6;
|
|
14
|
+
/** How far a chip's invisible hit area extends past the chip itself. */
|
|
15
|
+
const HIT_AREA_PADDING = 3;
|
|
16
|
+
/*
|
|
17
|
+
* SVG has no z-index, and recharts portals each layer into its own DOM
|
|
18
|
+
* node, so paint order comes from these rather than from where the JSX
|
|
19
|
+
* sits. Region bands go under every series (recharts draws areas at 100,
|
|
20
|
+
* bars at 300, lines at 400); hairlines go over the filled marks but under
|
|
21
|
+
* the lines, so the data stays the brightest thing on the chart; the rail
|
|
22
|
+
* itself goes above everything, including the active dot at 1200.
|
|
23
|
+
*/
|
|
24
|
+
const REGION_BAND_Z_INDEX = 50;
|
|
25
|
+
const HAIRLINE_Z_INDEX = 350;
|
|
26
|
+
const RAIL_Z_INDEX = 1300;
|
|
27
|
+
function isActivationKey(key) {
|
|
28
|
+
return key === "Enter" || key === " " || key === "Spacebar";
|
|
29
|
+
}
|
|
30
|
+
/*
|
|
31
|
+
* A press that reaches the chart starts a drag-to-select. Chips and pills
|
|
32
|
+
* are targets in their own right, so their presses stop there — otherwise
|
|
33
|
+
* clicking one both navigates and leaves a stray selection behind.
|
|
34
|
+
*/
|
|
35
|
+
function stopPress(event) {
|
|
36
|
+
event.stopPropagation();
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Everything the annotation rail draws inside the chart's SVG: shaded
|
|
40
|
+
* region bands and their pills, one hairline per marker cluster, and the
|
|
41
|
+
* clickable chips that top them.
|
|
42
|
+
*
|
|
43
|
+
* Rendered as a plain child of the recharts chart — recharts 3 hands any
|
|
44
|
+
* child the chart context, so the hooks here return the real geometry and
|
|
45
|
+
* the rail stays pinned to the plot through every resize, with no
|
|
46
|
+
* measurement round-trip through React state.
|
|
47
|
+
*/
|
|
48
|
+
const ChartAnnotationLayer = (props) => {
|
|
49
|
+
const plotArea = usePlotArea();
|
|
50
|
+
const ticks = useXAxisTicks();
|
|
51
|
+
const chartWidth = useChartWidth();
|
|
52
|
+
/*
|
|
53
|
+
* clipPath ids are document-global. Two charts on one dashboard would
|
|
54
|
+
* otherwise both define `ou-region-clip-region-0-…`, and every region
|
|
55
|
+
* label on the page would be clipped to whichever chart rendered last.
|
|
56
|
+
*/
|
|
57
|
+
const clipNamespace = React.useId();
|
|
58
|
+
const { formattedTimeReferenceLines, formattedReferenceRegions, categoryLabels, axisPaddingPx, scaleKind, hoveredId, onHoverChange, isClickSuppressed, } = props;
|
|
59
|
+
const resolveX = React.useMemo(() => {
|
|
60
|
+
if (!plotArea) {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
return buildCategoryXResolver({
|
|
64
|
+
ticks: ticks,
|
|
65
|
+
categoryLabels,
|
|
66
|
+
plotArea,
|
|
67
|
+
axisPaddingPx,
|
|
68
|
+
scaleKind,
|
|
69
|
+
});
|
|
70
|
+
}, [ticks, categoryLabels, plotArea, axisPaddingPx, scaleKind]);
|
|
71
|
+
const regions = React.useMemo(() => {
|
|
72
|
+
if (!(formattedReferenceRegions === null || formattedReferenceRegions === void 0 ? void 0 : formattedReferenceRegions.length) || !resolveX) {
|
|
73
|
+
return [];
|
|
74
|
+
}
|
|
75
|
+
return positionRegions({ regions: formattedReferenceRegions, resolveX });
|
|
76
|
+
}, [formattedReferenceRegions, resolveX]);
|
|
77
|
+
const clusters = React.useMemo(() => {
|
|
78
|
+
if (!(formattedTimeReferenceLines === null || formattedTimeReferenceLines === void 0 ? void 0 : formattedTimeReferenceLines.length) || !resolveX) {
|
|
79
|
+
return [];
|
|
80
|
+
}
|
|
81
|
+
const positioned = positionMarkers({
|
|
82
|
+
markers: formattedTimeReferenceLines,
|
|
83
|
+
resolveX,
|
|
84
|
+
});
|
|
85
|
+
return clusterMarkers({ positioned });
|
|
86
|
+
}, [formattedTimeReferenceLines, resolveX]);
|
|
87
|
+
if (!plotArea || !resolveX) {
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
const plotBottom = plotArea.y + plotArea.height;
|
|
91
|
+
const markerRailY = getMarkerRailY(plotArea.y);
|
|
92
|
+
/*
|
|
93
|
+
* Whether the rail reserved a marker strip, which is what the chart's
|
|
94
|
+
* margin/legend padding was sized from — not whether any marker survived
|
|
95
|
+
* positioning. Markers that all fall outside the window still bought
|
|
96
|
+
* their row, and measuring from a row that is not there would drop the
|
|
97
|
+
* region pill onto the plot.
|
|
98
|
+
*/
|
|
99
|
+
const reservedMarkerStrip = Boolean(formattedTimeReferenceLines === null || formattedTimeReferenceLines === void 0 ? void 0 : formattedTimeReferenceLines.length);
|
|
100
|
+
const regionRailY = getRegionRailY(plotArea.y, reservedMarkerStrip);
|
|
101
|
+
const width = chartWidth !== null && chartWidth !== void 0 ? chartWidth : plotArea.x + plotArea.width;
|
|
102
|
+
const canClick = () => {
|
|
103
|
+
return !(isClickSuppressed === null || isClickSuppressed === void 0 ? void 0 : isClickSuppressed());
|
|
104
|
+
};
|
|
105
|
+
return (React.createElement(React.Fragment, null,
|
|
106
|
+
React.createElement(ZIndexLayer, { zIndex: REGION_BAND_Z_INDEX },
|
|
107
|
+
React.createElement("g", { className: "oneuptime-chart-annotation-bands", style: { pointerEvents: "none" } }, regions.map((positioned) => {
|
|
108
|
+
return (React.createElement("rect", { key: positioned.id, "data-testid": "chart-annotation-region-band", x: positioned.x1, y: plotArea.y, width: positioned.x2 - positioned.x1, height: plotArea.height, fill: positioned.color, fillOpacity: hoveredId === positioned.id
|
|
109
|
+
? REGION_FILL_OPACITY_HOVERED
|
|
110
|
+
: REGION_FILL_OPACITY }));
|
|
111
|
+
}))),
|
|
112
|
+
React.createElement(ZIndexLayer, { zIndex: HAIRLINE_Z_INDEX },
|
|
113
|
+
React.createElement("g", { className: "oneuptime-chart-annotation-lines", style: { pointerEvents: "none" } },
|
|
114
|
+
regions.map((positioned) => {
|
|
115
|
+
const isHovered = hoveredId === positioned.id;
|
|
116
|
+
/*
|
|
117
|
+
* Edges rather than a full border: a boxed region reads as a
|
|
118
|
+
* second chart frame, two hairlines read as "this span".
|
|
119
|
+
*/
|
|
120
|
+
return (React.createElement("g", { key: positioned.id },
|
|
121
|
+
React.createElement("line", { x1: positioned.x1, x2: positioned.x1, y1: plotArea.y, y2: plotBottom, stroke: positioned.color, strokeWidth: 1, strokeOpacity: isHovered ? 0.8 : 0.45 }),
|
|
122
|
+
React.createElement("line", { x1: positioned.x2, x2: positioned.x2, y1: plotArea.y, y2: plotBottom, stroke: positioned.color, strokeWidth: 1, strokeOpacity: isHovered ? 0.8 : 0.45 })));
|
|
123
|
+
}),
|
|
124
|
+
clusters.map((cluster) => {
|
|
125
|
+
const isHovered = hoveredId === cluster.id;
|
|
126
|
+
return (React.createElement("line", Object.assign({ key: cluster.id, "data-testid": "chart-annotation-hairline", x1: cluster.xPixel, x2: cluster.xPixel, y1: plotArea.y, y2: plotBottom, stroke: cluster.color, strokeWidth: isHovered ? 1.5 : 1, strokeOpacity: isHovered ? HAIRLINE_OPACITY_HOVERED : HAIRLINE_OPACITY }, (cluster.strokeDasharray
|
|
127
|
+
? { strokeDasharray: cluster.strokeDasharray }
|
|
128
|
+
: {}))));
|
|
129
|
+
}))),
|
|
130
|
+
React.createElement(ZIndexLayer, { zIndex: RAIL_Z_INDEX },
|
|
131
|
+
React.createElement("g", { className: "oneuptime-chart-annotations", "data-testid": "chart-annotation-layer" },
|
|
132
|
+
regions.map((positioned) => {
|
|
133
|
+
const isHovered = hoveredId === positioned.id;
|
|
134
|
+
const regionWidth = positioned.x2 - positioned.x1;
|
|
135
|
+
const label = positioned.region.original.label;
|
|
136
|
+
const clipId = `ou-region-clip-${clipNamespace}-${positioned.id}`;
|
|
137
|
+
/*
|
|
138
|
+
* Cut to the pill rather than clipped by it: a hard edge
|
|
139
|
+
* mid-glyph reads as a rendering fault, an ellipsis reads as a
|
|
140
|
+
* name that did not fit. The clip path stays as a backstop for
|
|
141
|
+
* the estimate.
|
|
142
|
+
*/
|
|
143
|
+
const shownLabel = label
|
|
144
|
+
? truncateLabelToWidth({
|
|
145
|
+
label,
|
|
146
|
+
maxWidthPx: regionWidth - REGION_LABEL_INSET * 2,
|
|
147
|
+
fontSizePx: REGION_LABEL_FONT_SIZE,
|
|
148
|
+
})
|
|
149
|
+
: null;
|
|
150
|
+
const hover = {
|
|
151
|
+
id: positioned.id,
|
|
152
|
+
anchorX: positioned.x1 + regionWidth / 2,
|
|
153
|
+
anchorY: regionRailY + REGION_RAIL_HEIGHT,
|
|
154
|
+
chartWidth: width,
|
|
155
|
+
markers: [],
|
|
156
|
+
region: positioned.region,
|
|
157
|
+
heading: label || "Window",
|
|
158
|
+
};
|
|
159
|
+
const onActivate = positioned.region.original.onClick;
|
|
160
|
+
return (React.createElement("g", { key: positioned.id, "data-testid": "chart-annotation-region", "data-annotation-label": label || "", role: onActivate ? "button" : "img", tabIndex: 0, "aria-label": label ? `Window: ${label}` : "Highlighted window on the chart", style: { cursor: onActivate ? "pointer" : "default" }, onMouseEnter: () => {
|
|
161
|
+
onHoverChange(hover);
|
|
162
|
+
}, onFocus: () => {
|
|
163
|
+
onHoverChange(hover);
|
|
164
|
+
}, onMouseLeave: () => {
|
|
165
|
+
onHoverChange(null);
|
|
166
|
+
}, onBlur: () => {
|
|
167
|
+
onHoverChange(null);
|
|
168
|
+
}, onMouseDown: stopPress, onClick: (event) => {
|
|
169
|
+
event.stopPropagation();
|
|
170
|
+
if (!canClick()) {
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
onActivate === null || onActivate === void 0 ? void 0 : onActivate();
|
|
174
|
+
}, onKeyDown: (event) => {
|
|
175
|
+
if (!isActivationKey(event.key)) {
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
event.preventDefault();
|
|
179
|
+
event.stopPropagation();
|
|
180
|
+
onActivate === null || onActivate === void 0 ? void 0 : onActivate();
|
|
181
|
+
} },
|
|
182
|
+
React.createElement("rect", { x: positioned.x1, y: regionRailY, width: regionWidth, height: REGION_RAIL_HEIGHT, rx: 3, fill: positioned.color, fillOpacity: isHovered ? 0.26 : 0.16, stroke: positioned.color, strokeOpacity: isHovered ? 0.9 : 0.55, strokeWidth: 1 }),
|
|
183
|
+
shownLabel ? (React.createElement(React.Fragment, null,
|
|
184
|
+
React.createElement("clipPath", { id: clipId },
|
|
185
|
+
React.createElement("rect", { x: positioned.x1 + 3, y: regionRailY, width: Math.max(regionWidth - 6, 0), height: REGION_RAIL_HEIGHT })),
|
|
186
|
+
React.createElement("text", { clipPath: `url(#${clipId})`, x: positioned.x1 + REGION_LABEL_INSET, y: regionRailY + REGION_RAIL_HEIGHT - 3.5, fontSize: REGION_LABEL_FONT_SIZE, fontWeight: 600, fill: positioned.color, style: { pointerEvents: "none" } }, shownLabel))) : null));
|
|
187
|
+
}),
|
|
188
|
+
clusters.map((cluster) => {
|
|
189
|
+
var _a;
|
|
190
|
+
const isHovered = hoveredId === cluster.id;
|
|
191
|
+
const count = cluster.markers.length;
|
|
192
|
+
const chipWidth = getChipWidth(count);
|
|
193
|
+
const chipX = cluster.xPixel - chipWidth / 2;
|
|
194
|
+
const chipCentreY = markerRailY + MARKER_RAIL_HEIGHT / 2;
|
|
195
|
+
const hover = {
|
|
196
|
+
id: cluster.id,
|
|
197
|
+
anchorX: cluster.xPixel,
|
|
198
|
+
anchorY: markerRailY + MARKER_RAIL_HEIGHT,
|
|
199
|
+
chartWidth: width,
|
|
200
|
+
markers: cluster.markers,
|
|
201
|
+
heading: cluster.formattedX,
|
|
202
|
+
};
|
|
203
|
+
const firstLabel = ((_a = cluster.markers[0]) === null || _a === void 0 ? void 0 : _a.original.label) || "Event";
|
|
204
|
+
const ariaLabel = count > 1
|
|
205
|
+
? `${count} events at ${cluster.formattedX}`
|
|
206
|
+
: `${firstLabel} at ${cluster.formattedX}`;
|
|
207
|
+
const activate = () => {
|
|
208
|
+
var _a, _b, _c;
|
|
209
|
+
/*
|
|
210
|
+
* One event goes straight through; a cluster has no single
|
|
211
|
+
* destination, so it opens its card and lets the reader pick.
|
|
212
|
+
*/
|
|
213
|
+
if (count === 1) {
|
|
214
|
+
(_c = (_a = cluster.markers[0]) === null || _a === void 0 ? void 0 : (_b = _a.original).onClick) === null || _c === void 0 ? void 0 : _c.call(_b);
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
onHoverChange(hover);
|
|
218
|
+
};
|
|
219
|
+
return (React.createElement("g", { key: cluster.id, "data-testid": "chart-annotation-marker" },
|
|
220
|
+
React.createElement("line", { x1: cluster.xPixel, x2: cluster.xPixel, y1: markerRailY + MARKER_RAIL_HEIGHT, y2: plotArea.y, stroke: cluster.color, strokeWidth: 1, strokeOpacity: isHovered ? 0.9 : 0.55, style: { pointerEvents: "none" } }),
|
|
221
|
+
React.createElement("g", { "data-testid": "chart-annotation-chip", "data-annotation-count": String(count), "data-annotation-kind": cluster.kind, role: "button", tabIndex: 0, "aria-label": ariaLabel, style: { cursor: "pointer" }, onMouseEnter: () => {
|
|
222
|
+
onHoverChange(hover);
|
|
223
|
+
}, onFocus: () => {
|
|
224
|
+
onHoverChange(hover);
|
|
225
|
+
}, onMouseLeave: () => {
|
|
226
|
+
onHoverChange(null);
|
|
227
|
+
}, onBlur: () => {
|
|
228
|
+
onHoverChange(null);
|
|
229
|
+
}, onMouseDown: stopPress, onClick: (event) => {
|
|
230
|
+
// An annotation click must never also pin a time bucket.
|
|
231
|
+
event.stopPropagation();
|
|
232
|
+
if (!canClick()) {
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
activate();
|
|
236
|
+
}, onKeyDown: (event) => {
|
|
237
|
+
var _a, _b, _c;
|
|
238
|
+
if (!isActivationKey(event.key)) {
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
event.preventDefault();
|
|
242
|
+
event.stopPropagation();
|
|
243
|
+
if (count === 1) {
|
|
244
|
+
(_c = (_a = cluster.markers[0]) === null || _a === void 0 ? void 0 : (_b = _a.original).onClick) === null || _c === void 0 ? void 0 : _c.call(_b);
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
onHoverChange(Object.assign(Object.assign({}, hover), { takeFocus: true }));
|
|
248
|
+
} },
|
|
249
|
+
React.createElement("rect", { x: chipX - 5, y: Math.max(0, markerRailY - HIT_AREA_PADDING), width: chipWidth + 10, height: MARKER_RAIL_HEIGHT +
|
|
250
|
+
HIT_AREA_PADDING +
|
|
251
|
+
Math.min(HIT_AREA_PADDING, markerRailY), fill: "transparent" }),
|
|
252
|
+
React.createElement("rect", { x: chipX, y: markerRailY +
|
|
253
|
+
(MARKER_RAIL_HEIGHT - SINGLE_MARKER_CHIP_SIZE) / 2, width: chipWidth, height: SINGLE_MARKER_CHIP_SIZE, rx: SINGLE_MARKER_CHIP_SIZE / 2, fill: cluster.color, stroke: CHIP_RING, strokeWidth: isHovered ? 2.5 : 1.5 }),
|
|
254
|
+
count > 1 ? (React.createElement("text", { x: cluster.xPixel, y: chipCentreY + 3.2, textAnchor: "middle", fontSize: 9, fontWeight: 700, fill: "#ffffff", style: { pointerEvents: "none" } }, count)) : (
|
|
255
|
+
/*
|
|
256
|
+
* Sits on the chip's own colour, not on the chart
|
|
257
|
+
* surface, so it must not follow the ring token that
|
|
258
|
+
* flips with the theme.
|
|
259
|
+
*/
|
|
260
|
+
React.createElement("circle", { cx: cluster.xPixel, cy: chipCentreY, r: 2.2, fill: "#ffffff", fillOpacity: 0.9, style: { pointerEvents: "none" } })))));
|
|
261
|
+
})))));
|
|
262
|
+
};
|
|
263
|
+
export default ChartAnnotationLayer;
|
|
264
|
+
//# sourceMappingURL=ChartAnnotationLayer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartAnnotationLayer.js","sourceRoot":"","sources":["../../../../../../../UI/Components/Charts/ChartLibrary/Annotations/ChartAnnotationLayer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,WAAW,EACX,aAAa,EACb,WAAW,EACX,aAAa,GACd,MAAM,UAAU,CAAC;AAGlB,OAAO,EAIL,kBAAkB,EAIlB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,cAAc,EACd,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,oBAAoB,GACrB,MAAM,oBAAoB,CAAC;AA+C5B,4EAA4E;AAC5E,MA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C,CACF,CACL,CAAC;gBACJ,CAAC,CAAC,CACA,CACQ,CACb,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import AnnotationHoverCard from "./AnnotationHoverCard";
|
|
3
|
+
import ChartAnnotationLayer from "./ChartAnnotationLayer";
|
|
4
|
+
import { getChartMarginTop, getRailHeight, } from "./AnnotationLayout";
|
|
5
|
+
/*
|
|
6
|
+
* Leaving the card open for a beat after the pointer leaves a chip is what
|
|
7
|
+
* makes the chip -> card journey possible at all: the gap between them is
|
|
8
|
+
* unavoidable (the card must clear the chip's ring), and a card that shut
|
|
9
|
+
* the instant the pointer crossed it could never be clicked.
|
|
10
|
+
*/
|
|
11
|
+
const HOVER_CLOSE_DELAY_MS = 140;
|
|
12
|
+
/**
|
|
13
|
+
* Wires the annotation rail into a chart: the in-SVG layer, the HTML hover
|
|
14
|
+
* card that goes with it, and the top margin the rail needs.
|
|
15
|
+
*
|
|
16
|
+
* Lives here rather than in each chart so line, area and bar charts draw
|
|
17
|
+
* event markers identically — the three used to carry their own copy of
|
|
18
|
+
* the annotation JSX, and had already drifted apart.
|
|
19
|
+
*/
|
|
20
|
+
export default function useChartAnnotations(input) {
|
|
21
|
+
var _a, _b, _c;
|
|
22
|
+
const [hover, setHover] = React.useState(null);
|
|
23
|
+
const closeTimeoutRef = React.useRef(null);
|
|
24
|
+
const cancelPendingClose = React.useCallback(() => {
|
|
25
|
+
if (closeTimeoutRef.current !== null) {
|
|
26
|
+
clearTimeout(closeTimeoutRef.current);
|
|
27
|
+
closeTimeoutRef.current = null;
|
|
28
|
+
}
|
|
29
|
+
}, []);
|
|
30
|
+
React.useEffect(() => {
|
|
31
|
+
return () => {
|
|
32
|
+
if (closeTimeoutRef.current !== null) {
|
|
33
|
+
clearTimeout(closeTimeoutRef.current);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
}, []);
|
|
37
|
+
const onHoverChange = React.useCallback((next) => {
|
|
38
|
+
cancelPendingClose();
|
|
39
|
+
if (next) {
|
|
40
|
+
setHover(next);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
closeTimeoutRef.current = setTimeout(() => {
|
|
44
|
+
closeTimeoutRef.current = null;
|
|
45
|
+
setHover(null);
|
|
46
|
+
}, HOVER_CLOSE_DELAY_MS);
|
|
47
|
+
}, [cancelPendingClose]);
|
|
48
|
+
const markerCount = ((_a = input.formattedTimeReferenceLines) === null || _a === void 0 ? void 0 : _a.length) || 0;
|
|
49
|
+
const regionCount = ((_b = input.formattedReferenceRegions) === null || _b === void 0 ? void 0 : _b.length) || 0;
|
|
50
|
+
const hasMarkers = markerCount > 0;
|
|
51
|
+
const hasRegions = regionCount > 0;
|
|
52
|
+
const hasAnnotations = hasMarkers || hasRegions;
|
|
53
|
+
const marginTop = getChartMarginTop({
|
|
54
|
+
hasMarkers,
|
|
55
|
+
hasRegions,
|
|
56
|
+
hasTopLegend: input.hasTopLegend,
|
|
57
|
+
});
|
|
58
|
+
const railHeight = getRailHeight({ hasMarkers, hasRegions });
|
|
59
|
+
/*
|
|
60
|
+
* A hover left over from a previous window would point at a chip that no
|
|
61
|
+
* longer exists, so annotations changing closes the card.
|
|
62
|
+
*
|
|
63
|
+
* Keyed on WHERE the annotations sit, not on array identity: a caller
|
|
64
|
+
* passing an inline array literal (IncidentRootCauseMetricChart does)
|
|
65
|
+
* hands over a referentially-new-but-equal array on every render, and an
|
|
66
|
+
* identity-keyed effect would then shut the card on every parent render
|
|
67
|
+
* — which a dashboard's auto-refresh tick makes constant.
|
|
68
|
+
*/
|
|
69
|
+
const annotationSignature = React.useMemo(() => {
|
|
70
|
+
const markerPart = (input.formattedTimeReferenceLines || [])
|
|
71
|
+
.map((marker) => {
|
|
72
|
+
return marker.bucketIndex;
|
|
73
|
+
})
|
|
74
|
+
.join(",");
|
|
75
|
+
const regionPart = (input.formattedReferenceRegions || [])
|
|
76
|
+
.map((region) => {
|
|
77
|
+
return `${region.startBucketIndex}-${region.endBucketIndex}`;
|
|
78
|
+
})
|
|
79
|
+
.join(",");
|
|
80
|
+
return `${markerPart}|${regionPart}`;
|
|
81
|
+
}, [input.formattedTimeReferenceLines, input.formattedReferenceRegions]);
|
|
82
|
+
React.useEffect(() => {
|
|
83
|
+
cancelPendingClose();
|
|
84
|
+
setHover(null);
|
|
85
|
+
}, [annotationSignature, cancelPendingClose]);
|
|
86
|
+
/*
|
|
87
|
+
* The card is positioned from the chip's coordinates at the moment it
|
|
88
|
+
* opened. A resize moves every chip and leaves the card pointing at
|
|
89
|
+
* nothing, so it closes rather than lying about which event it describes.
|
|
90
|
+
*/
|
|
91
|
+
React.useEffect(() => {
|
|
92
|
+
if (typeof window === "undefined") {
|
|
93
|
+
return undefined;
|
|
94
|
+
}
|
|
95
|
+
const onResize = () => {
|
|
96
|
+
cancelPendingClose();
|
|
97
|
+
setHover(null);
|
|
98
|
+
};
|
|
99
|
+
window.addEventListener("resize", onResize);
|
|
100
|
+
return () => {
|
|
101
|
+
window.removeEventListener("resize", onResize);
|
|
102
|
+
};
|
|
103
|
+
}, [cancelPendingClose]);
|
|
104
|
+
if (!hasAnnotations) {
|
|
105
|
+
return {
|
|
106
|
+
hasAnnotations,
|
|
107
|
+
marginTop,
|
|
108
|
+
railHeight,
|
|
109
|
+
layer: null,
|
|
110
|
+
overlay: null,
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
const layer = (React.createElement(ChartAnnotationLayer, { formattedTimeReferenceLines: input.formattedTimeReferenceLines, formattedReferenceRegions: input.formattedReferenceRegions, categoryLabels: input.categoryLabels, axisPaddingPx: input.axisPaddingPx, scaleKind: input.scaleKind, hoveredId: (_c = hover === null || hover === void 0 ? void 0 : hover.id) !== null && _c !== void 0 ? _c : null, onHoverChange: onHoverChange, isClickSuppressed: input.isClickSuppressed }));
|
|
114
|
+
const overlay = hover ? (React.createElement(AnnotationHoverCard, { hover: hover, onMouseEnter: cancelPendingClose, onMouseLeave: () => {
|
|
115
|
+
onHoverChange(null);
|
|
116
|
+
}, onDismiss: () => {
|
|
117
|
+
cancelPendingClose();
|
|
118
|
+
setHover(null);
|
|
119
|
+
} })) : null;
|
|
120
|
+
return { hasAnnotations, marginTop, railHeight, layer, overlay };
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=UseChartAnnotations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UseChartAnnotations.js","sourceRoot":"","sources":["../../../../../../../UI/Components/Charts/ChartLibrary/Annotations/UseChartAnnotations.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AACxD,OAAO,oBAAyC,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAEL,iBAAiB,EACjB,aAAa,GACd,MAAM,oBAAoB,CAAC;AAE5B;;;;;GAKG;AACH,MAAM,oBAAoB,GAAW,GAAG,CAAC;AAuCzC;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CACzC,KAA+B;;IAE/B,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAyB,IAAI,CAAC,CAAC;IAEvE,MAAM,eAAe,GAET,KAAK,CAAC,MAAM,CAAuC,IAAI,CAAC,CAAC;IAErE,MAAM,kBAAkB,GAAe,KAAK,CAAC,WAAW,CAAC,GAAS,EAAE;QAClE,IAAI,eAAe,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;YACrC,YAAY,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;YACtC,eAAe,CAAC,OAAO,GAAG,IAAI,CAAC;QACjC,CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,KAAK,CAAC,SAAS,CAAC,GAAiB,EAAE;QACjC,OAAO,GAAS,EAAE;YAChB,IAAI,eAAe,CAAC,OAAO,KAAK,IA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