@oneuptime/common 14.0.109 → 14.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/AnalyticsModels/SecurityEvent.js +1 -1
- package/Models/DatabaseModels/AIInsight.js +2 -2
- package/Models/DatabaseModels/AIRunRecording.d.mts +12 -0
- package/Models/DatabaseModels/AIRunRecording.d.ts +12 -0
- package/Models/DatabaseModels/AIRunRecording.js +181 -0
- package/Models/DatabaseModels/AIRunRecording.mjs +2 -0
- package/Models/DatabaseModels/Alert.js +20 -4
- package/Models/DatabaseModels/AlertEpisode.js +2 -2
- package/Models/DatabaseModels/AlertEpisodeOnCallRule.js +3 -3
- package/Models/DatabaseModels/AlertGroupingRule.d.mts +1 -0
- package/Models/DatabaseModels/AlertGroupingRule.d.ts +1 -0
- package/Models/DatabaseModels/AlertGroupingRule.js +48 -2
- package/Models/DatabaseModels/AlertOnCallRule.js +3 -3
- package/Models/DatabaseModels/AlertSeverity.js +13 -4
- package/Models/DatabaseModels/AlertState.js +1 -1
- package/Models/DatabaseModels/CallLog.js +12 -12
- package/Models/DatabaseModels/DataStore.js +9 -0
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.mts +2 -0
- package/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel.d.ts +2 -0
- package/Models/DatabaseModels/EmailLog.js +14 -14
- package/Models/DatabaseModels/Form.js +3 -3
- package/Models/DatabaseModels/FormSubmission.js +6 -6
- package/Models/DatabaseModels/GlobalConfig.d.mts +1 -0
- package/Models/DatabaseModels/GlobalConfig.d.ts +1 -0
- package/Models/DatabaseModels/GlobalConfig.js +74 -45
- package/Models/DatabaseModels/Incident.js +20 -4
- package/Models/DatabaseModels/IncidentEpisode.js +2 -2
- package/Models/DatabaseModels/IncidentEpisodeOnCallRule.js +3 -3
- package/Models/DatabaseModels/IncidentGroupingRule.d.mts +1 -0
- package/Models/DatabaseModels/IncidentGroupingRule.d.ts +1 -0
- package/Models/DatabaseModels/IncidentGroupingRule.js +48 -2
- package/Models/DatabaseModels/IncidentOnCallRule.js +3 -3
- package/Models/DatabaseModels/IncidentSeverity.js +13 -4
- package/Models/DatabaseModels/IncidentSlaRule.js +2 -2
- package/Models/DatabaseModels/IncidentState.js +1 -1
- package/Models/DatabaseModels/IncidentTemplate.js +2 -2
- package/Models/DatabaseModels/Index.js +4 -0
- package/Models/DatabaseModels/InventoryItem.js +11 -0
- package/Models/DatabaseModels/Monitor.js +54 -20
- package/Models/DatabaseModels/MonitorNetworkDevice.d.mts +11 -0
- package/Models/DatabaseModels/MonitorNetworkDevice.d.ts +11 -0
- package/Models/DatabaseModels/MonitorNetworkDevice.js +189 -0
- package/Models/DatabaseModels/MonitorNetworkDevice.mjs +2 -0
- package/Models/DatabaseModels/MonitorProbe.js +22 -5
- package/Models/DatabaseModels/NetworkDevice.d.mts +1 -0
- package/Models/DatabaseModels/NetworkDevice.d.ts +1 -0
- package/Models/DatabaseModels/NetworkDevice.js +64 -7
- package/Models/DatabaseModels/NetworkEndpoint.d.mts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.d.ts +1 -0
- package/Models/DatabaseModels/NetworkEndpoint.js +39 -7
- package/Models/DatabaseModels/NetworkInterface.js +5 -5
- package/Models/DatabaseModels/OnCallDutyPolicy.js +4 -2
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRule.js +1 -1
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleSchedule.js +8 -5
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleTeam.js +5 -2
- package/Models/DatabaseModels/OnCallDutyPolicyEscalationRuleUser.js +5 -2
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLog.js +28 -11
- package/Models/DatabaseModels/OnCallDutyPolicyExecutionLogTimeline.js +10 -7
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.mts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.ts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.js +16 -11
- package/Models/DatabaseModels/OnCallDutyPolicyOwnerTeam.js +7 -4
- package/Models/DatabaseModels/OnCallDutyPolicyOwnerUser.js +7 -4
- package/Models/DatabaseModels/OnCallDutyPolicySchedule.js +6 -3
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleCalendarFeed.js +4 -4
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayer.js +3 -3
- package/Models/DatabaseModels/OnCallDutyPolicyScheduleLayerUser.js +6 -6
- package/Models/DatabaseModels/OnCallDutyPolicyTimeLog.js +9 -6
- package/Models/DatabaseModels/OnCallDutyPolicyUserOverride.js +35 -7
- package/Models/DatabaseModels/OpenStackCloudCheck.js +8 -1
- package/Models/DatabaseModels/Project.d.mts +3 -0
- package/Models/DatabaseModels/Project.d.ts +3 -0
- package/Models/DatabaseModels/Project.js +142 -5
- package/Models/DatabaseModels/ProjectCallSMSConfig.js +3 -1
- package/Models/DatabaseModels/ProjectSmtpConfig.js +2 -0
- package/Models/DatabaseModels/ProxmoxCluster.d.mts +1 -0
- package/Models/DatabaseModels/ProxmoxCluster.d.ts +1 -0
- package/Models/DatabaseModels/ProxmoxCluster.js +52 -3
- package/Models/DatabaseModels/PublicNoteApprovalRequest.js +3 -3
- package/Models/DatabaseModels/PublicNoteApprovalStep.js +1 -1
- package/Models/DatabaseModels/PushNotificationLog.js +12 -12
- package/Models/DatabaseModels/Reseller.js +8 -2
- package/Models/DatabaseModels/ResellerPlan.js +8 -2
- package/Models/DatabaseModels/RunbookExecution.js +2 -2
- package/Models/DatabaseModels/RunbookRule.js +6 -6
- package/Models/DatabaseModels/ScheduledMaintenance.js +9 -6
- package/Models/DatabaseModels/ScheduledMaintenanceCalendarFeed.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceInternalNote.js +7 -4
- package/Models/DatabaseModels/ScheduledMaintenanceLabelRule.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js +7 -7
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +3 -3
- package/Models/DatabaseModels/ScheduledMaintenanceOwnerRule.js +6 -6
- package/Models/DatabaseModels/ScheduledMaintenanceOwnerTeam.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenanceOwnerUser.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenancePublicNote.js +10 -7
- package/Models/DatabaseModels/ScheduledMaintenanceReminderRule.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +5 -5
- package/Models/DatabaseModels/Service.js +1 -1
- package/Models/DatabaseModels/ServiceLevelObjectiveBurnRateRule.js +4 -4
- package/Models/DatabaseModels/ServiceLevelObjectiveErrorBudgetPolicyTier.js +4 -4
- package/Models/DatabaseModels/SmsLog.js +12 -12
- package/Models/DatabaseModels/StatusPage.js +5 -5
- package/Models/DatabaseModels/StatusPageSubscriber.js +2 -2
- package/Models/DatabaseModels/TeamMember.js +10 -1
- package/Models/DatabaseModels/TelegramLog.js +12 -12
- package/Models/DatabaseModels/TelemetryIngestionKey.js +8 -5
- package/Models/DatabaseModels/TelemetryIngestionKeyRefusal.js +7 -4
- package/Models/DatabaseModels/User.d.mts +4 -0
- package/Models/DatabaseModels/User.d.ts +4 -0
- package/Models/DatabaseModels/User.js +100 -0
- package/Models/DatabaseModels/UserOnCallLog.js +6 -6
- package/Models/DatabaseModels/UserOnCallLogTimeline.js +3 -3
- package/Models/DatabaseModels/UserOnCallShiftReminderLog.js +2 -2
- package/Models/DatabaseModels/WebhookLog.js +12 -12
- package/Models/DatabaseModels/WhatsAppLog.js +12 -12
- package/Models/DatabaseModels/WorkspaceNotificationLog.js +12 -12
- package/Models/DatabaseModels/WorkspaceNotificationRule.js +36 -1
- package/Models/DatabaseModels/WorkspaceNotificationSummary.js +1 -1
- package/Models/DatabaseModels/WorkspacePublicNoteApprovalMessage.js +3 -3
- package/Server/Services/DatabaseService.d.mts +4 -1
- package/Server/Services/DatabaseService.d.ts +4 -1
- package/Server/Types/Database/CountBy.d.mts +1 -0
- package/Server/Types/Database/CountBy.d.ts +1 -0
- package/Server/Types/Database/UpdateLimit.d.mts +6 -0
- package/Server/Types/Database/UpdateLimit.d.ts +6 -0
- package/Types/AI/AIActionWords.d.mts +25 -1
- package/Types/AI/AIActionWords.d.ts +25 -1
- package/Types/AI/AIActionWords.js +166 -3
- package/Types/AI/AIActionWords.mjs +6 -0
- package/Types/AI/AIChatTypes.d.mts +4 -2
- package/Types/AI/AIChatTypes.d.ts +4 -2
- package/Types/AI/AIChatTypes.js +5 -0
- package/Types/AI/AiOutcomes.d.mts +57 -0
- package/Types/AI/AiOutcomes.d.ts +57 -0
- package/Types/AI/AiOutcomes.js +67 -0
- package/Types/AI/AiOutcomes.mjs +10 -0
- package/Types/AI/AiRunRefusal.d.mts +45 -0
- package/Types/AI/AiRunRefusal.d.ts +45 -0
- package/Types/AI/AiRunRefusal.js +187 -0
- package/Types/AI/AiRunRefusal.mjs +12 -0
- package/Types/AI/InvestigationRecording.d.mts +46 -0
- package/Types/AI/InvestigationRecording.d.ts +46 -0
- package/Types/AI/InvestigationRecording.js +42 -0
- package/Types/AI/InvestigationRecording.mjs +7 -0
- package/Types/API/HTTPResponse.d.mts +3 -0
- package/Types/API/HTTPResponse.d.ts +3 -0
- package/Types/API/HTTPResponse.js +15 -0
- package/Types/Analytics/ProductEvent.d.mts +6 -1
- package/Types/Analytics/ProductEvent.d.ts +6 -1
- package/Types/Analytics/ProductEvent.js +41 -0
- package/Types/AuditLog/AuditLogCoverage.d.mts +1 -0
- package/Types/AuditLog/AuditLogCoverage.d.ts +1 -0
- package/Types/AuditLog/AuditLogCoverage.js +4 -2
- package/Types/BaseDatabase/AggregateBy.d.mts +16 -0
- package/Types/BaseDatabase/AggregateBy.d.ts +16 -0
- package/Types/BaseDatabase/AggregationIntervalUtil.d.mts +16 -1
- package/Types/BaseDatabase/AggregationIntervalUtil.d.ts +16 -1
- package/Types/BaseDatabase/AggregationIntervalUtil.js +92 -2
- package/Types/BaseDatabase/ListResult.d.mts +1 -0
- package/Types/BaseDatabase/ListResult.d.ts +1 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.d.mts +47 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.d.ts +47 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.js +282 -0
- package/Types/CallAndSMS/ServerTwilioEnvironment.mjs +7 -0
- package/Types/Cloud/CloudResourceCatalog.d.mts +2 -0
- package/Types/Cloud/CloudResourceCatalog.d.ts +2 -0
- package/Types/Cloud/CloudResourceCatalog.js +33 -3
- package/Types/Cloud/CloudResourceCatalog.mjs +1 -0
- package/Types/Dashboard/DashboardAutoRefresh.d.mts +1 -0
- package/Types/Dashboard/DashboardAutoRefresh.d.ts +1 -0
- package/Types/Dashboard/DashboardAutoRefresh.js +21 -0
- package/Types/Dashboard/DashboardAutoRefresh.mjs +1 -0
- package/Types/DataObservability/DataCheckSuggestions.d.mts +25 -0
- package/Types/DataObservability/DataCheckSuggestions.d.ts +25 -0
- package/Types/DataObservability/DataCheckSuggestions.js +102 -65
- package/Types/DataObservability/DataCheckSuggestions.mjs +1 -0
- package/Types/Database/TableMetadata.d.mts +2 -0
- package/Types/Database/TableMetadata.d.ts +2 -0
- package/Types/Database/TableMetadata.js +6 -0
- package/Types/Date.d.mts +26 -2
- package/Types/Date.d.ts +26 -2
- package/Types/Date.js +81 -9
- package/Types/Date.mjs +1 -0
- package/Types/DateLanguage.d.mts +2 -0
- package/Types/DateLanguage.d.ts +2 -0
- package/Types/DateLanguage.js +44 -2
- package/Types/DateLanguage.mjs +2 -0
- package/Types/DirectionArrow.d.mts +7 -0
- package/Types/DirectionArrow.d.ts +7 -0
- package/Types/DirectionArrow.js +88 -0
- package/Types/DirectionArrow.mjs +7 -0
- package/Types/Docs/GlossaryTerm.d.mts +1 -0
- package/Types/Docs/GlossaryTerm.d.ts +1 -0
- package/Types/Docs/GlossaryTerm.js +2 -0
- package/Types/Docs/RetiredNames.d.mts +11 -0
- package/Types/Docs/RetiredNames.d.ts +11 -0
- package/Types/Docs/RetiredNames.js +139 -0
- package/Types/Docs/RetiredNames.mjs +3 -0
- package/Types/Email/ServerEmailEnvironment.d.mts +85 -0
- package/Types/Email/ServerEmailEnvironment.d.ts +85 -0
- package/Types/Email/ServerEmailEnvironment.js +793 -0
- package/Types/Email/ServerEmailEnvironment.mjs +14 -0
- package/Types/Exception/AiRunRefusalException.d.mts +6 -0
- package/Types/Exception/AiRunRefusalException.d.ts +6 -0
- package/Types/Exception/AiRunRefusalException.js +23 -0
- package/Types/Exception/AiRunRefusalException.mjs +2 -0
- package/Types/Exception/RefusalWithValues.d.mts +7 -0
- package/Types/Exception/RefusalWithValues.d.ts +7 -0
- package/Types/Exception/RefusalWithValues.js +76 -0
- package/Types/Exception/RefusalWithValues.mjs +3 -0
- package/Types/Exception/UnexplainedError.d.mts +13 -0
- package/Types/Exception/UnexplainedError.d.ts +13 -0
- package/Types/Exception/UnexplainedError.js +53 -1
- package/Types/Exception/UnexplainedError.mjs +1 -0
- package/Types/File/FileSize.d.mts +4 -1
- package/Types/File/FileSize.d.ts +4 -1
- package/Types/File/FileSize.js +18 -17
- package/Types/Form/FormTargetCatalog.js +2 -2
- package/Types/Form/FormTargetType.js +2 -2
- package/Types/HostCollector/HostCollector.d.mts +1 -0
- package/Types/HostCollector/HostCollector.d.ts +1 -0
- package/Types/HostCollector/HostCollector.js +26 -10
- package/Types/HostCollector/HostCollector.mjs +1 -0
- package/Types/ListData.d.mts +2 -0
- package/Types/ListData.d.ts +2 -0
- package/Types/ListData.js +4 -0
- package/Types/Monitor/MonitorCriteria.js +2 -2
- package/Types/Monitor/MonitorCriteriaInstance.js +9 -0
- package/Types/Monitor/MonitorNotCheckedReason.d.mts +7 -0
- package/Types/Monitor/MonitorNotCheckedReason.d.ts +7 -0
- package/Types/Monitor/MonitorNotCheckedReason.js +36 -0
- package/Types/Monitor/MonitorNotCheckedReason.mjs +4 -0
- package/Types/Monitor/MonitorStep.js +1 -1
- package/Types/Monitor/MonitorTemplateSyncField.d.mts +6 -0
- package/Types/Monitor/MonitorTemplateSyncField.d.ts +6 -0
- package/Types/Monitor/MonitorTemplateSyncField.js +106 -64
- package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.mts +1 -0
- package/Types/Monitor/NtpMonitor/NtpMonitorUtil.d.ts +1 -0
- package/Types/Monitor/NtpMonitor/NtpMonitorUtil.js +11 -3
- package/Types/Monitor/SnmpMonitor/NetworkTopology.d.mts +6 -0
- package/Types/Monitor/SnmpMonitor/NetworkTopology.d.ts +6 -0
- package/Types/Monitor/UptimeHistoryLabels.js +2 -2
- package/Types/Monitor/WhoIsTold.d.mts +3 -1
- package/Types/Monitor/WhoIsTold.d.ts +3 -1
- package/Types/Monitor/WhoIsTold.js +2 -1
- package/Types/NotificationRule/PagingLadder.d.mts +137 -0
- package/Types/NotificationRule/PagingLadder.d.ts +137 -0
- package/Types/NotificationRule/PagingLadder.js +682 -0
- package/Types/NotificationRule/PagingLadder.mjs +28 -0
- package/Types/NotificationSetting/NotificationEmailRollupCategory.js +1 -1
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.mts +1 -0
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.d.ts +1 -0
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.js +12 -9
- package/Types/OnCallDutyPolicy/GlobalUserOverrideAccess.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +3 -1
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +3 -1
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +24 -6
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.d.mts +26 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.d.ts +26 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.js +136 -0
- package/Types/OnCallDutyPolicy/OnCallPageLine.mjs +18 -0
- package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.mts +1 -0
- package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.ts +1 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.mts +12 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.d.ts +12 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.js +38 -0
- package/Types/OnCallDutyPolicy/OnCallPolicyStartedByHand.mjs +3 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.mts +44 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +44 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.js +96 -5
- package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +1 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.d.mts +19 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.d.ts +19 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.js +222 -0
- package/Types/OnCallDutyPolicy/OnCallTestPageLine.mjs +6 -0
- package/Types/OnCallDutyPolicy/ScheduleLayerDefaults.js +5 -2
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.mts +92 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.d.ts +92 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.js +512 -0
- package/Types/OnCallDutyPolicy/ScheduleLayersSave.mjs +7 -0
- package/Types/OnCallDutyPolicy/UserOverrideCoverRequest.js +9 -1
- package/Types/OnCallDutyPolicy/UserOverrideEdit.d.mts +23 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.d.ts +23 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.js +105 -0
- package/Types/OnCallDutyPolicy/UserOverrideEdit.mjs +6 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.mts +64 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.d.ts +64 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.js +237 -0
- package/Types/OnCallDutyPolicy/UserOverrideOverlap.mjs +14 -0
- package/Types/Permission.d.mts +2 -2
- package/Types/Permission.d.ts +2 -2
- package/Types/Permission.js +196 -195
- package/Types/Probe/ProbeCapability.d.mts +2 -1
- package/Types/Probe/ProbeCapability.d.ts +2 -1
- package/Types/Probe/ProbeCapability.js +10 -0
- package/Types/Product/ProductCatalog.d.mts +10 -0
- package/Types/Product/ProductCatalog.d.ts +10 -0
- package/Types/Product/ProductCatalog.js +208 -0
- package/Types/Product/ProductCatalog.mjs +6 -0
- package/Types/Product/ProductOfTable.d.mts +3 -0
- package/Types/Product/ProductOfTable.d.ts +3 -0
- package/Types/Product/ProductOfTable.js +68 -0
- package/Types/Product/ProductOfTable.mjs +3 -0
- package/Types/Product/ProjectProductsAnswer.d.mts +3 -0
- package/Types/Product/ProjectProductsAnswer.d.ts +3 -0
- package/Types/Product/ProjectProductsAnswer.js +35 -2
- package/Types/Product/ProjectProductsAnswer.mjs +1 -0
- package/Types/Product/ServerProducts.d.mts +65 -0
- package/Types/Product/ServerProducts.d.ts +65 -0
- package/Types/Product/ServerProducts.js +383 -0
- package/Types/Product/ServerProducts.mjs +26 -0
- package/Types/Product/ServerProductsAnswer.d.mts +21 -0
- package/Types/Product/ServerProductsAnswer.d.ts +21 -0
- package/Types/Product/ServerProductsAnswer.js +78 -0
- package/Types/Product/ServerProductsAnswer.mjs +5 -0
- package/Types/ProductFeedback/ProductFeedback.d.mts +3 -1
- package/Types/ProductFeedback/ProductFeedback.d.ts +3 -1
- package/Types/ProductFeedback/ProductFeedback.js +8 -0
- package/Types/ReaderLanguage.d.mts +1 -0
- package/Types/ReaderLanguage.d.ts +1 -0
- package/Types/ReaderLanguage.js +13 -1
- package/Types/ReaderLanguage.mjs +1 -0
- package/Types/Rules/RuleRun.js +2 -2
- package/Types/Rum/SessionReplayCustomEvents.d.mts +1 -0
- package/Types/Rum/SessionReplayCustomEvents.d.ts +1 -0
- package/Types/SampleProject/SampleProject.d.mts +54 -0
- package/Types/SampleProject/SampleProject.d.ts +54 -0
- package/Types/SampleProject/SampleProject.js +177 -0
- package/Types/SampleProject/SampleProject.mjs +22 -0
- package/Types/SampleProject/SampleProjectContent.d.mts +127 -0
- package/Types/SampleProject/SampleProjectContent.d.ts +127 -0
- package/Types/SampleProject/SampleProjectContent.js +397 -0
- package/Types/SampleProject/SampleProjectContent.mjs +18 -0
- package/Types/ScheduledMaintenance/MaintenanceCalendar.js +1 -1
- package/Types/ServerSending/ServerSendingStatus.d.mts +7 -0
- package/Types/ServerSending/ServerSendingStatus.d.ts +7 -0
- package/Types/ServerSending/ServerSendingStatus.js +49 -2
- package/Types/ServerSetup/ServerSetupChecklist.js +3 -3
- package/Types/StateTimeline/RowsKeptOnDelete.js +1 -1
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.mts +8 -0
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.d.ts +8 -0
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.js +50 -0
- package/Types/StatusPage/NewIncidentSubscriberNotificationDefault.mjs +3 -0
- package/Types/StatusPage/PublicNoteSubscriberNotificationDefault.js +1 -1
- package/Types/Telemetry/CompatibleIngest.d.mts +20 -0
- package/Types/Telemetry/CompatibleIngest.d.ts +20 -0
- package/Types/Telemetry/CompatibleIngest.js +123 -0
- package/Types/Telemetry/CompatibleIngest.mjs +21 -0
- package/Types/Telemetry/TelemetryIngestSurface.d.mts +5 -0
- package/Types/Telemetry/TelemetryIngestSurface.d.ts +5 -0
- package/Types/Telemetry/TelemetryIngestSurface.js +54 -12
- package/Types/TimezoneAlias.d.mts +1 -0
- package/Types/TimezoneAlias.d.ts +1 -0
- package/Types/TimezoneAlias.js +13 -0
- package/Types/Translator.d.mts +1 -0
- package/Types/Translator.d.ts +1 -0
- package/Types/Translator.js +414 -50
- package/Types/Translator.mjs +1 -0
- package/Types/UsedBy/UsedBy.d.mts +103 -0
- package/Types/UsedBy/UsedBy.d.ts +103 -0
- package/Types/UsedBy/UsedBy.js +389 -0
- package/Types/UsedBy/UsedBy.mjs +20 -0
- package/Types/UsedBy/UsedByServerProducts.d.mts +4 -0
- package/Types/UsedBy/UsedByServerProducts.d.ts +4 -0
- package/Types/UsedBy/UsedByServerProducts.js +48 -0
- package/Types/UsedBy/UsedByServerProducts.mjs +3 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.mts +6 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.d.ts +6 -0
- package/Types/WelcomeChecklist/WelcomeChecklist.js +54 -2
- package/Types/WelcomeChecklist/WelcomeChecklist.mjs +4 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.mts +1 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.d.ts +1 -0
- package/Types/WelcomeChecklist/WelcomeChecklistAnswer.js +3 -0
- package/Types/Workflow/PassedOnFields.js +2 -1
- package/Types/Workflow/RunRecord.js +1 -1
- package/Types/Workflow/Templates.js +3 -3
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.mts +2 -0
- package/Types/Workspace/NotificationRules/BaseNotificationRule.d.ts +2 -0
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.mts +28 -1
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +28 -1
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.mts +84 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.d.ts +84 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.js +456 -0
- package/Types/Workspace/NotificationRules/NotificationRuleUpdates.mjs +5 -0
- package/Utils/AI/MeaningMatch.d.mts +36 -0
- package/Utils/AI/MeaningMatch.d.ts +36 -0
- package/Utils/AI/MeaningMatch.js +535 -0
- package/Utils/AI/MeaningMatch.mjs +7 -0
- package/Utils/ArchivableValues.js +1 -1
- package/Utils/AuditLog/AuditLogValues.js +2 -2
- package/Utils/Dashboard/ClockWidgetFormat.d.mts +14 -2
- package/Utils/Dashboard/ClockWidgetFormat.d.ts +14 -2
- package/Utils/Dashboard/ClockWidgetFormat.js +105 -2
- package/Utils/Dashboard/DashboardViewConfigSignature.d.mts +3 -0
- package/Utils/Dashboard/DashboardViewConfigSignature.d.ts +3 -0
- package/Utils/Dashboard/DashboardViewConfigSignature.js +45 -0
- package/Utils/Dashboard/DashboardViewConfigSignature.mjs +3 -0
- package/Utils/Dashboard/ValueWidgetSeries.d.mts +2 -0
- package/Utils/Dashboard/ValueWidgetSeries.d.ts +2 -0
- package/Utils/Dashboard/ValueWidgetSeries.js +75 -0
- package/Utils/DataSecurity/TextScanner.js +2 -2
- package/Utils/DeveloperDocs/AiAssistantExamples.js +4 -4
- package/Utils/DeveloperDocs/CliCommands.d.mts +1 -0
- package/Utils/DeveloperDocs/CliCommands.d.ts +1 -0
- package/Utils/DeveloperDocs/CliCommands.js +2 -1
- package/Utils/DeveloperDocs/CliResources.js +2 -1
- package/Utils/DeveloperDocs/ExampleBuilder.js +1 -1
- package/Utils/DeveloperDocs/ResourceProfiles.js +2 -2
- package/Utils/DeveloperDocs/TerraformSchema.js +3 -1
- package/Utils/GuidedSetup/StatusPageRecords.d.mts +5 -0
- package/Utils/GuidedSetup/StatusPageRecords.d.ts +5 -0
- package/Utils/GuidedSetup/StatusPageRecords.js +27 -2
- package/Utils/GuidedSetup/StatusPageRecords.mjs +1 -0
- package/Utils/GuidedSetup/WebsiteMonitorRecords.js +6 -0
- package/Utils/HostAddressUtil.d.mts +1 -0
- package/Utils/HostAddressUtil.d.ts +1 -0
- package/Utils/HostAddressUtil.js +30 -0
- package/Utils/LinearRegExp/LinearRegExp.js +5 -1
- package/Utils/Markdown/LinkReferenceDefinitions.d.mts +8 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +8 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +1493 -131
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +1 -0
- package/Utils/Markdown/MarkdownTableCell.js +2 -1
- package/Utils/Markdown/OverLongText.js +523 -5
- package/Utils/Markdown/SlowMarkdown.d.mts +14 -0
- package/Utils/Markdown/SlowMarkdown.d.ts +14 -0
- package/Utils/Markdown/SlowMarkdown.js +595 -11
- package/Utils/Markdown/SlowMarkdown.mjs +6 -0
- package/Utils/Milliseconds.d.mts +7 -0
- package/Utils/Milliseconds.d.ts +7 -0
- package/Utils/Milliseconds.js +60 -0
- package/Utils/Milliseconds.mjs +4 -0
- package/Utils/ModelApiName.d.mts +11 -0
- package/Utils/ModelApiName.d.ts +11 -0
- package/Utils/ModelApiName.js +72 -0
- package/Utils/ModelApiName.mjs +5 -0
- package/Utils/Monitor/DeviceMacLearningUtil.d.mts +2 -1
- package/Utils/Monitor/DeviceMacLearningUtil.d.ts +2 -1
- package/Utils/Monitor/DeviceMacLearningUtil.js +26 -0
- package/Utils/Monitor/EndpointAttachmentUtil.d.mts +8 -0
- package/Utils/Monitor/EndpointAttachmentUtil.d.ts +8 -0
- package/Utils/Monitor/EndpointAttachmentUtil.js +97 -22
- package/Utils/Monitor/EndpointAttachmentUtil.mjs +4 -0
- package/Utils/Monitor/ExternalStatusPageReading.d.mts +3 -0
- package/Utils/Monitor/ExternalStatusPageReading.d.ts +3 -0
- package/Utils/Monitor/ExternalStatusPageReading.js +35 -1
- package/Utils/Monitor/ExternalStatusPageReading.mjs +2 -0
- package/Utils/Monitor/InterfaceInventoryUtil.d.mts +40 -0
- package/Utils/Monitor/InterfaceInventoryUtil.d.ts +40 -0
- package/Utils/Monitor/InterfaceInventoryUtil.js +217 -5
- package/Utils/Monitor/InterfaceInventoryUtil.mjs +8 -0
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +63 -29
- package/Utils/Monitor/MonitorOverviewProbeUtil.js +13 -2
- package/Utils/Monitor/MonitorRootCauseWording.d.mts +2 -0
- package/Utils/Monitor/MonitorRootCauseWording.d.ts +2 -0
- package/Utils/Monitor/MonitorRootCauseWording.js +58 -4
- package/Utils/Monitor/MonitorTemplateLinkRefusal.d.mts +9 -0
- package/Utils/Monitor/MonitorTemplateLinkRefusal.d.ts +9 -0
- package/Utils/Monitor/MonitorTemplateLinkRefusal.js +45 -0
- package/Utils/Monitor/MonitorTemplateLinkRefusal.mjs +6 -0
- package/Utils/Monitor/MonitoringOff.d.mts +2 -0
- package/Utils/Monitor/MonitoringOff.d.ts +2 -0
- package/Utils/Monitor/MonitoringOff.js +21 -0
- package/Utils/Monitor/NetworkTopologyUtil.d.mts +2 -1
- package/Utils/Monitor/NetworkTopologyUtil.d.ts +2 -1
- package/Utils/Monitor/NetworkTopologyUtil.js +10 -0
- package/Utils/Monitor/NotOperationalMonitorQuery.d.mts +2 -1
- package/Utils/Monitor/NotOperationalMonitorQuery.d.ts +2 -1
- package/Utils/Monitor/NotOperationalMonitorQuery.js +23 -4
- package/Utils/Monitor/ProbeFailureReading.d.mts +14 -0
- package/Utils/Monitor/ProbeFailureReading.d.ts +14 -0
- package/Utils/Monitor/ProbeFailureReading.js +137 -0
- package/Utils/Monitor/ProbeFailureReading.mjs +7 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.d.mts +9 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.d.ts +9 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.js +15 -0
- package/Utils/NetworkDevice/BoundMonitorNotChecked.mjs +2 -0
- package/Utils/OpenStack/OpenStackCheckName.js +2 -1
- package/Utils/OpenStack/OpenStackLogScrub.js +1 -1
- package/Utils/OpenStack/OpenStackLogs.js +3 -2
- package/Utils/OpenStack/OpenStackTraces.js +2 -1
- package/Utils/Project/NextNumber.js +1 -1
- package/Utils/Project/NotificationChannels.js +5 -5
- package/Utils/Project/ProjectBalance.js +2 -2
- package/Utils/Project/TwilioAccount.js +2 -2
- package/Utils/PromQL/PromQLAst.d.mts +159 -0
- package/Utils/PromQL/PromQLAst.d.ts +159 -0
- package/Utils/PromQL/PromQLAst.js +118 -0
- package/Utils/PromQL/PromQLAst.mjs +12 -0
- package/Utils/PromQL/PromQLDuration.d.mts +2 -0
- package/Utils/PromQL/PromQLDuration.d.ts +2 -0
- package/Utils/PromQL/PromQLDuration.js +78 -0
- package/Utils/PromQL/PromQLDuration.mjs +3 -0
- package/Utils/PromQL/PromQLEngine.d.mts +15 -0
- package/Utils/PromQL/PromQLEngine.d.ts +15 -0
- package/Utils/PromQL/PromQLEngine.js +965 -0
- package/Utils/PromQL/PromQLEngine.mjs +7 -0
- package/Utils/PromQL/PromQLEngineTypes.d.mts +84 -0
- package/Utils/PromQL/PromQLEngineTypes.d.ts +84 -0
- package/Utils/PromQL/PromQLEngineTypes.js +10 -0
- package/Utils/PromQL/PromQLEngineTypes.mjs +2 -0
- package/Utils/PromQL/PromQLError.d.mts +11 -0
- package/Utils/PromQL/PromQLError.d.ts +11 -0
- package/Utils/PromQL/PromQLError.js +27 -0
- package/Utils/PromQL/PromQLError.mjs +3 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.d.mts +8 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.d.ts +8 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.js +773 -0
- package/Utils/PromQL/PromQLFunctionEvaluators.mjs +3 -0
- package/Utils/PromQL/PromQLFunctions.d.mts +10 -0
- package/Utils/PromQL/PromQLFunctions.d.ts +10 -0
- package/Utils/PromQL/PromQLFunctions.js +127 -0
- package/Utils/PromQL/PromQLFunctions.mjs +4 -0
- package/Utils/PromQL/PromQLLabels.d.mts +11 -0
- package/Utils/PromQL/PromQLLabels.d.ts +11 -0
- package/Utils/PromQL/PromQLLabels.js +218 -0
- package/Utils/PromQL/PromQLLabels.mjs +9 -0
- package/Utils/PromQL/PromQLLexer.d.mts +39 -0
- package/Utils/PromQL/PromQLLexer.d.ts +39 -0
- package/Utils/PromQL/PromQLLexer.js +391 -0
- package/Utils/PromQL/PromQLLexer.mjs +3 -0
- package/Utils/PromQL/PromQLMath.d.mts +19 -0
- package/Utils/PromQL/PromQLMath.d.ts +19 -0
- package/Utils/PromQL/PromQLMath.js +200 -0
- package/Utils/PromQL/PromQLMath.mjs +9 -0
- package/Utils/PromQL/PromQLMetricNames.d.mts +21 -0
- package/Utils/PromQL/PromQLMetricNames.d.ts +21 -0
- package/Utils/PromQL/PromQLMetricNames.js +199 -0
- package/Utils/PromQL/PromQLMetricNames.mjs +8 -0
- package/Utils/PromQL/PromQLParser.d.mts +4 -0
- package/Utils/PromQL/PromQLParser.d.ts +4 -0
- package/Utils/PromQL/PromQLParser.js +831 -0
- package/Utils/PromQL/PromQLParser.mjs +4 -0
- package/Utils/PromQL/PromQLRegex.d.mts +9 -0
- package/Utils/PromQL/PromQLRegex.d.ts +9 -0
- package/Utils/PromQL/PromQLRegex.js +74 -0
- package/Utils/PromQL/PromQLRegex.mjs +2 -0
- package/Utils/PromQL/PrometheusResponse.d.mts +25 -0
- package/Utils/PromQL/PrometheusResponse.d.ts +25 -0
- package/Utils/PromQL/PrometheusResponse.js +90 -0
- package/Utils/PromQL/PrometheusResponse.mjs +3 -0
- package/Utils/Rum/PathInSentence.d.mts +5 -0
- package/Utils/Rum/PathInSentence.d.ts +5 -0
- package/Utils/Rum/PathInSentence.js +46 -0
- package/Utils/Rum/PathInSentence.mjs +6 -0
- package/Utils/Rum/UrlScrubber.d.mts +4 -0
- package/Utils/Rum/UrlScrubber.d.ts +4 -0
- package/Utils/Rum/UrlScrubber.js +143 -3
- package/Utils/Rum/UserFlow.d.mts +1 -1
- package/Utils/Rum/UserFlow.d.ts +1 -1
- package/Utils/Rum/UserFlow.js +180 -25
- package/Utils/Rum/UserFlow.mjs +1 -1
- package/Utils/Runbook/RunbookStepsSignature.d.mts +3 -0
- package/Utils/Runbook/RunbookStepsSignature.d.ts +3 -0
- package/Utils/Runbook/RunbookStepsSignature.js +30 -0
- package/Utils/Runbook/RunbookStepsSignature.mjs +3 -0
- package/Utils/ScheduledMaintenanceStart.d.mts +3 -0
- package/Utils/ScheduledMaintenanceStart.d.ts +3 -0
- package/Utils/ScheduledMaintenanceStart.js +9 -0
- package/Utils/Schema/ModelSchema.js +10 -1
- package/Utils/Schema/TypeSchemas.js +6 -0
- package/Utils/Slo/SloDuration.d.mts +5 -2
- package/Utils/Slo/SloDuration.d.ts +5 -2
- package/Utils/Slo/SloDuration.js +11 -6
- package/Utils/Slo/SloHealth.js +1 -1
- package/Utils/StateOrder.js +1 -4
- package/Utils/StateTimeline/StateTimelineRowDelete.js +1 -1
- package/Utils/Telemetry/HeartbeatAvailability.d.mts +4 -0
- package/Utils/Telemetry/HeartbeatAvailability.d.ts +4 -0
- package/Utils/Telemetry/HeartbeatAvailability.js +118 -26
- package/Utils/Uptime/DayUptimeGraphUtil.js +2 -2
- package/Utils/Uptime/UptimeMaintenanceUtil.js +2 -1
- package/Utils/ValueFormatter.d.mts +8 -6
- package/Utils/ValueFormatter.d.ts +8 -6
- package/Utils/ValueFormatter.js +145 -0
- package/package.json +1 -1
package/Utils/Rum/UserFlow.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.DEFAULT_USER_FLOW_OPTIONS = exports.USER_FLOW_MAX_OTHER_PAGES = exports.USER_FLOW_MAX_LOOPS = exports.USER_FLOW_MAX_NEIGHBOURS = exports.USER_FLOW_MAX_PATHS = exports.USER_FLOW_MAX_PATH_LENGTH = exports.USER_FLOW_SAMPLE_SESSIONS = exports.USER_FLOW_DEFAULT_PAGES_PER_STEP = exports.USER_FLOW_MAX_PAGES_PER_STEP = exports.USER_FLOW_MIN_PAGES_PER_STEP = exports.USER_FLOW_DEFAULT_STEPS = exports.USER_FLOW_MAX_STEPS = exports.USER_FLOW_MIN_STEPS = exports.OTHER_PAGES_LABEL = exports.OTHER_PAGES_KEY = void 0;
|
|
4
7
|
exports.isDynamicPathSegment = isDynamicPathSegment;
|
|
5
8
|
exports.toUserFlowPageKey = toUserFlowPageKey;
|
|
6
9
|
exports.spansMultipleHosts = spansMultipleHosts;
|
|
7
10
|
exports.toSessionListUrlPrefix = toSessionListUrlPrefix;
|
|
8
|
-
exports.
|
|
11
|
+
exports.getUserFlowPageText = getUserFlowPageText;
|
|
9
12
|
exports.buildUserFlowJourneys = buildUserFlowJourneys;
|
|
10
13
|
exports.buildUserFlowJourneySteps = buildUserFlowJourneySteps;
|
|
11
14
|
exports.sliceJourneyForMap = sliceJourneyForMap;
|
|
@@ -17,6 +20,8 @@ exports.buildUserFlowSummary = buildUserFlowSummary;
|
|
|
17
20
|
exports.buildUserFlowInsights = buildUserFlowInsights;
|
|
18
21
|
exports.normalizeUserFlowOptions = normalizeUserFlowOptions;
|
|
19
22
|
exports.analyzeUserFlow = analyzeUserFlow;
|
|
23
|
+
const PathInSentence_1 = require("./PathInSentence");
|
|
24
|
+
const UrlScrubber_1 = __importDefault(require("./UrlScrubber"));
|
|
20
25
|
/*
|
|
21
26
|
* The User Flows engine: recorded session journeys in, everything the page
|
|
22
27
|
* draws out - the step-by-step flow map, the most common paths, per-page
|
|
@@ -32,7 +37,9 @@ exports.analyzeUserFlow = analyzeUserFlow;
|
|
|
32
37
|
* - page: a flow-map key. The scrubbed URL without origin, query or
|
|
33
38
|
* trailing slash ("/cart"), optionally with id-shaped segments grouped
|
|
34
39
|
* ("/product/:id"), and with the host kept only when the application
|
|
35
|
-
* spans more than one ("shop.example.com/cart").
|
|
40
|
+
* spans more than one ("shop.example.com/cart"). Escaped as the URL
|
|
41
|
+
* parser escapes it ("/caf%C3%A9"); getUserFlowPageText is what a
|
|
42
|
+
* person reads ("/café").
|
|
36
43
|
* - journey: one session's pages in order, after grouping and hiding,
|
|
37
44
|
* with back-to-back repeats collapsed.
|
|
38
45
|
* - step: a column of the flow map. Step 0 is the session's first page,
|
|
@@ -115,15 +122,17 @@ function parsePageUrl(rawUrl) {
|
|
|
115
122
|
const parsed = new URL(trimmed, RELATIVE_BASE);
|
|
116
123
|
const isRelative = parsed.origin === RELATIVE_BASE && !trimmed.startsWith(RELATIVE_BASE);
|
|
117
124
|
/*
|
|
118
|
-
* A hash router keeps its route in the fragment ("/#/orders"
|
|
119
|
-
*
|
|
120
|
-
*
|
|
125
|
+
* A hash router keeps its route in the fragment ("/#/orders",
|
|
126
|
+
* "/#!/orders"), and the scrubber keeps that route in every URL it
|
|
127
|
+
* stores. The route is the page, so those apps do not collapse onto
|
|
128
|
+
* "/"; the query a route can carry inside the fragment is left out,
|
|
129
|
+
* as a path's query is.
|
|
121
130
|
*/
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
131
|
+
const hashRoute = UrlScrubber_1.default.getHashRoute(parsed.hash);
|
|
132
|
+
return {
|
|
133
|
+
host: isRelative ? "" : parsed.host,
|
|
134
|
+
path: hashRoute === null ? parsed.pathname || "/" : hashRoute,
|
|
135
|
+
};
|
|
127
136
|
}
|
|
128
137
|
catch (_a) {
|
|
129
138
|
return { host: "", path: trimmed };
|
|
@@ -153,10 +162,15 @@ function normalizePath(path, groupDynamicSegments) {
|
|
|
153
162
|
* The flow-map key for one stored URL. Query strings are dropped (the
|
|
154
163
|
* scrubber keeps only redacted allowlisted parameters, which would split
|
|
155
164
|
* one page into two), and the host is kept only when asked.
|
|
165
|
+
*
|
|
166
|
+
* The path is in its one spelling (UrlScrubber.normalizePathSpelling):
|
|
167
|
+
* "/caf%c3%a9", "/cafe%CC%81" and "/caf%C3%A9" are one page, "/a%2Fb" and
|
|
168
|
+
* "/a/b" two. The scrubber stores that spelling; a URL stored before it
|
|
169
|
+
* did is keyed the same way here.
|
|
156
170
|
*/
|
|
157
171
|
function toUserFlowPageKey(rawUrl, options) {
|
|
158
172
|
const parsed = parsePageUrl(rawUrl);
|
|
159
|
-
const path = normalizePath(parsed.path, options.groupDynamicSegments);
|
|
173
|
+
const path = normalizePath(UrlScrubber_1.default.normalizePathSpelling(parsed.path), options.groupDynamicSegments);
|
|
160
174
|
if (options.includeHost && parsed.host) {
|
|
161
175
|
return `${parsed.host}${path}`;
|
|
162
176
|
}
|
|
@@ -182,7 +196,9 @@ function spansMultipleHosts(rawUrls) {
|
|
|
182
196
|
/*
|
|
183
197
|
* The URL-path prefix that selects a page key in the session list's
|
|
184
198
|
* urlPrefix filter: "/product/:id" -> "/product/", host dropped. The list
|
|
185
|
-
* matches prefixes, so a grouped key is widened to its static head.
|
|
199
|
+
* matches prefixes, so a grouped key is widened to its static head. It
|
|
200
|
+
* matches every spelling of the key's path, as a key reads them
|
|
201
|
+
* (SessionReplayReadService's url arms).
|
|
186
202
|
*/
|
|
187
203
|
function toSessionListUrlPrefix(page) {
|
|
188
204
|
if (!page || page === exports.OTHER_PAGES_KEY) {
|
|
@@ -196,8 +212,143 @@ function toSessionListUrlPrefix(page) {
|
|
|
196
212
|
}
|
|
197
213
|
return path;
|
|
198
214
|
}
|
|
199
|
-
|
|
200
|
-
|
|
215
|
+
/* ------------------------------------------------------------------ */
|
|
216
|
+
/* A page as a person reads it */
|
|
217
|
+
/* ------------------------------------------------------------------ */
|
|
218
|
+
// One escaped byte: "%D8".
|
|
219
|
+
const ESCAPED_BYTE_REGEX = /^%[0-9A-Fa-f]{2}$/;
|
|
220
|
+
// A letter, a mark (an accent, a vowel sign) or a digit, of any script.
|
|
221
|
+
const WORD_CHARACTER_REGEX = /^[\p{L}\p{M}\p{N}]$/u;
|
|
222
|
+
// Drawn with no width at all: a filler that looks like nothing, a selector.
|
|
223
|
+
const NO_WIDTH_CHARACTER_REGEX = /^\p{Default_Ignorable_Code_Point}$/u;
|
|
224
|
+
/*
|
|
225
|
+
* ZERO WIDTH NON-JOINER and ZERO WIDTH JOINER have no width either, but
|
|
226
|
+
* they are part of a word: Persian keeps the parts of one word apart
|
|
227
|
+
* with the first, and Hindi parts and joins its letters with both.
|
|
228
|
+
*/
|
|
229
|
+
const WORD_JOINERS = [
|
|
230
|
+
String.fromCharCode(0x200c),
|
|
231
|
+
String.fromCharCode(0x200d),
|
|
232
|
+
];
|
|
233
|
+
/*
|
|
234
|
+
* How many bytes the character led by `byte` takes in UTF-8: 2 to 4, or 0
|
|
235
|
+
* for an ASCII byte, a byte in the middle of a character and a lead UTF-8
|
|
236
|
+
* never writes ("%C0%AF" is "/" written too long, which no decoder takes).
|
|
237
|
+
*/
|
|
238
|
+
function getUtf8Length(byte) {
|
|
239
|
+
if (byte >= 0xc2 && byte <= 0xdf) {
|
|
240
|
+
return 2;
|
|
241
|
+
}
|
|
242
|
+
if (byte >= 0xe0 && byte <= 0xef) {
|
|
243
|
+
return 3;
|
|
244
|
+
}
|
|
245
|
+
if (byte >= 0xf0 && byte <= 0xf4) {
|
|
246
|
+
return 4;
|
|
247
|
+
}
|
|
248
|
+
return 0;
|
|
249
|
+
}
|
|
250
|
+
/*
|
|
251
|
+
* The character `escapes` spell, when it is one a person reads as part of
|
|
252
|
+
* a word; null for anything else, and for bytes that are not UTF-8: a
|
|
253
|
+
* sequence cut short, one written too long, a surrogate
|
|
254
|
+
* (decodeURIComponent refuses each).
|
|
255
|
+
*/
|
|
256
|
+
function decodeWordCharacter(escapes) {
|
|
257
|
+
for (let at = 0; at < escapes.length; at += 3) {
|
|
258
|
+
if (!ESCAPED_BYTE_REGEX.test(escapes.slice(at, at + 3))) {
|
|
259
|
+
return null;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
let character;
|
|
263
|
+
try {
|
|
264
|
+
character = decodeURIComponent(escapes);
|
|
265
|
+
}
|
|
266
|
+
catch (_a) {
|
|
267
|
+
return null;
|
|
268
|
+
}
|
|
269
|
+
if (WORD_JOINERS.includes(character)) {
|
|
270
|
+
return character;
|
|
271
|
+
}
|
|
272
|
+
return WORD_CHARACTER_REGEX.test(character) &&
|
|
273
|
+
!NO_WIDTH_CHARACTER_REGEX.test(character)
|
|
274
|
+
? character
|
|
275
|
+
: null;
|
|
276
|
+
}
|
|
277
|
+
// `path` with each escape of a word's letter decoded (getUserFlowPageText).
|
|
278
|
+
function decodeWordEscapes(path) {
|
|
279
|
+
if (!path.includes("%")) {
|
|
280
|
+
return path;
|
|
281
|
+
}
|
|
282
|
+
let decoded = "";
|
|
283
|
+
let index = 0;
|
|
284
|
+
while (index < path.length) {
|
|
285
|
+
const escape = path.slice(index, index + 3);
|
|
286
|
+
if (!ESCAPED_BYTE_REGEX.test(escape)) {
|
|
287
|
+
decoded += path.charAt(index);
|
|
288
|
+
index += 1;
|
|
289
|
+
continue;
|
|
290
|
+
}
|
|
291
|
+
const length = getUtf8Length(parseInt(escape.slice(1), 16)) * 3;
|
|
292
|
+
const character = length > 0
|
|
293
|
+
? decodeWordCharacter(path.slice(index, index + length))
|
|
294
|
+
: null;
|
|
295
|
+
if (character === null) {
|
|
296
|
+
decoded += escape;
|
|
297
|
+
index += 3;
|
|
298
|
+
continue;
|
|
299
|
+
}
|
|
300
|
+
decoded += character;
|
|
301
|
+
index += length;
|
|
302
|
+
}
|
|
303
|
+
return decoded;
|
|
304
|
+
}
|
|
305
|
+
/*
|
|
306
|
+
* A PAGE AS A PERSON READS IT: what the map, its tooltips, the panel, the
|
|
307
|
+
* tables, the journeys and every sentence about a page draw for its key.
|
|
308
|
+
*
|
|
309
|
+
* A key is the path as the URL parser writes it, and the parser escapes
|
|
310
|
+
* every letter outside ASCII: "/الرئيسية" is "/%D8%A7%D9%84...", "/café"
|
|
311
|
+
* is "/caf%C3%A9". The key stays so. The session list matches it against
|
|
312
|
+
* the stored URLs, which the browser escaped the same way
|
|
313
|
+
* (toSessionListUrlPrefix); the anchor, the hidden pages and the link to
|
|
314
|
+
* this page hold it. Only the words drawn for it are decoded.
|
|
315
|
+
*
|
|
316
|
+
* Only an escape of a letter, a mark or a digit beyond ASCII is decoded:
|
|
317
|
+
* the words of a path in Arabic, Persian, Chinese or with accents, and the
|
|
318
|
+
* joiners inside a Persian or Hindi word. None of them is a separator, so
|
|
319
|
+
* decoding one never changes which page a key names. The same words
|
|
320
|
+
* written two ways - in lower-case escapes ("%c3%a9", as WordPress writes
|
|
321
|
+
* them) and upper-case ones ("%C3%A9"), or with an accent composed and
|
|
322
|
+
* decomposed - are one key, so one row (toUserFlowPageKey). The rest is
|
|
323
|
+
* drawn as written:
|
|
324
|
+
* - an escaped "/", "?", "#" or "%", which would read as a separator, a
|
|
325
|
+
* query, a fragment or another escape: "/a%2Fb" is one page, and not
|
|
326
|
+
* "/a/b", which may be another;
|
|
327
|
+
* - any other escape of an ASCII character, which a key can hold
|
|
328
|
+
* unescaped too: "%20" stays "%20";
|
|
329
|
+
* - punctuation and symbols, among them the signs drawn like a slash
|
|
330
|
+
* ("∕", "/"); spaces, controls and the marks that turn text round,
|
|
331
|
+
* which would move the words drawn round the path; and characters with
|
|
332
|
+
* no width, which would hide part of it;
|
|
333
|
+
* - bytes that are not UTF-8: a lone "%", "%E0%A4" cut short.
|
|
334
|
+
*
|
|
335
|
+
* A path reads from the left on every page, its "/" first, and the Arabic
|
|
336
|
+
* or Persian words in it still read from the right (RFC 3987's
|
|
337
|
+
* bidirectional IRIs, as a browser's address bar draws them). Read the
|
|
338
|
+
* way its letters do, "/الرئيسية" would be drawn "الرئيسية/". So a path
|
|
339
|
+
* with a letter of a script read from the right is set apart, left to
|
|
340
|
+
* right (LRI ... PDI), and reads so wherever it is drawn: in a box of its
|
|
341
|
+
* own, in a sentence, on either side of a transition's arrow, in an
|
|
342
|
+
* option. A path in letters read from the left needs nothing, and comes
|
|
343
|
+
* back exactly as before. The fold comes back as its English name, which
|
|
344
|
+
* the Dashboard words in the reader's language.
|
|
345
|
+
*/
|
|
346
|
+
function getUserFlowPageText(page) {
|
|
347
|
+
if (page === exports.OTHER_PAGES_KEY) {
|
|
348
|
+
return exports.OTHER_PAGES_LABEL;
|
|
349
|
+
}
|
|
350
|
+
// A line read from the left sets a value apart for its right-to-left letters.
|
|
351
|
+
return (0, PathInSentence_1.setPathApartInSentence)(decodeWordEscapes(page));
|
|
201
352
|
}
|
|
202
353
|
/* ------------------------------------------------------------------ */
|
|
203
354
|
/* Journeys */
|
|
@@ -442,7 +593,7 @@ function buildUserFlowGraph(journeys, options) {
|
|
|
442
593
|
id: id,
|
|
443
594
|
step: step,
|
|
444
595
|
page: key,
|
|
445
|
-
label:
|
|
596
|
+
label: getUserFlowPageText(key),
|
|
446
597
|
isOther: isOther,
|
|
447
598
|
otherPages: [],
|
|
448
599
|
sessions: 0,
|
|
@@ -827,7 +978,8 @@ function sessionsNoun(count) {
|
|
|
827
978
|
/*
|
|
828
979
|
* At most one finding per kind, each over the sample floor, ordered by how
|
|
829
980
|
* much they should worry someone. Every number in the copy is one the page
|
|
830
|
-
* also shows, so a finding can always be checked against the map
|
|
981
|
+
* also shows, so a finding can always be checked against the map, and each
|
|
982
|
+
* page is named as the map names it (getUserFlowPageText).
|
|
831
983
|
*/
|
|
832
984
|
function buildUserFlowInsights(journeys, pages, loops) {
|
|
833
985
|
var _a;
|
|
@@ -862,15 +1014,16 @@ function buildUserFlowInsights(journeys, pages, loops) {
|
|
|
862
1014
|
}
|
|
863
1015
|
const count = pick(page);
|
|
864
1016
|
const share = ratio(count, page.sessions);
|
|
1017
|
+
const name = getUserFlowPageText(page.page);
|
|
865
1018
|
insights.push({
|
|
866
1019
|
kind: kind,
|
|
867
1020
|
tone: kind === "error-hotspot" ? "danger" : "warning",
|
|
868
1021
|
title: kind === "error-hotspot"
|
|
869
|
-
? `Errors concentrate on ${
|
|
870
|
-
: `Frustration concentrates on ${
|
|
1022
|
+
? `Errors concentrate on ${name}`
|
|
1023
|
+
: `Frustration concentrates on ${name}`,
|
|
871
1024
|
detail: kind === "error-hotspot"
|
|
872
|
-
? `${formatShare(share)} of the sessions that visited ${
|
|
873
|
-
: `${formatShare(share)} of the sessions that visited ${
|
|
1025
|
+
? `${formatShare(share)} of the sessions that visited ${name} hit an error there (${sessionsNoun(count)}).`
|
|
1026
|
+
: `${formatShare(share)} of the sessions that visited ${name} rage-clicked, dead-clicked or reloaded in frustration there (${sessionsNoun(count)}).`,
|
|
874
1027
|
page: page.page,
|
|
875
1028
|
focusDirection: "forward",
|
|
876
1029
|
sessions: count,
|
|
@@ -908,11 +1061,12 @@ function buildUserFlowInsights(journeys, pages, loops) {
|
|
|
908
1061
|
if (dropOff) {
|
|
909
1062
|
const leftAfterNavigating = dropOff.exits - dropOff.bounces;
|
|
910
1063
|
const share = ratio(leftAfterNavigating, dropOff.sessions - dropOff.bounces);
|
|
1064
|
+
const name = getUserFlowPageText(dropOff.page);
|
|
911
1065
|
insights.push({
|
|
912
1066
|
kind: "drop-off",
|
|
913
1067
|
tone: share >= 0.5 ? "danger" : "warning",
|
|
914
|
-
title: `Journeys end on ${
|
|
915
|
-
detail: `${formatShare(share)} of the sessions that navigated to ${
|
|
1068
|
+
title: `Journeys end on ${name}`,
|
|
1069
|
+
detail: `${formatShare(share)} of the sessions that navigated to ${name} left the application there (${sessionsNoun(leftAfterNavigating)}).`,
|
|
916
1070
|
page: dropOff.page,
|
|
917
1071
|
focusDirection: "backward",
|
|
918
1072
|
sessions: leftAfterNavigating,
|
|
@@ -927,7 +1081,7 @@ function buildUserFlowInsights(journeys, pages, loops) {
|
|
|
927
1081
|
insights.push({
|
|
928
1082
|
kind: "loop",
|
|
929
1083
|
tone: "warning",
|
|
930
|
-
title: `Visitors go back and forth between ${loop.pageA} and ${loop.pageB}`,
|
|
1084
|
+
title: `Visitors go back and forth between ${getUserFlowPageText(loop.pageA)} and ${getUserFlowPageText(loop.pageB)}`,
|
|
931
1085
|
detail: `${formatShare(loop.share)} of sessions (${sessionsNoun(loop.sessions)}) left one of these pages for the other and came straight back - often a sign that what they needed was not where they looked first.`,
|
|
932
1086
|
page: loop.pageA,
|
|
933
1087
|
secondaryPage: loop.pageB,
|
|
@@ -950,11 +1104,12 @@ function buildUserFlowInsights(journeys, pages, loops) {
|
|
|
950
1104
|
entry.entries > 0 &&
|
|
951
1105
|
((_a = byEntries[1]) === null || _a === void 0 ? void 0 : _a.entries) !== entry.entries) {
|
|
952
1106
|
const share = ratio(entry.entries, total);
|
|
1107
|
+
const name = getUserFlowPageText(entry.page);
|
|
953
1108
|
insights.push({
|
|
954
1109
|
kind: "top-entry",
|
|
955
1110
|
tone: "neutral",
|
|
956
|
-
title: `Most sessions start on ${
|
|
957
|
-
detail: `${formatShare(share)} of sessions (${sessionsNoun(entry.entries)}) landed on ${
|
|
1111
|
+
title: `Most sessions start on ${name}`,
|
|
1112
|
+
detail: `${formatShare(share)} of sessions (${sessionsNoun(entry.entries)}) landed on ${name}; ${formatShare(ratio(entry.bounces, entry.entries))} of them saw no other page.`,
|
|
958
1113
|
page: entry.page,
|
|
959
1114
|
focusDirection: "forward",
|
|
960
1115
|
sessions: entry.entries,
|
package/Utils/Rum/UserFlow.mjs
CHANGED
|
@@ -23,7 +23,7 @@ export const buildUserFlowLoops = commonJsModule.buildUserFlowLoops;
|
|
|
23
23
|
export const buildUserFlowPageStats = commonJsModule.buildUserFlowPageStats;
|
|
24
24
|
export const buildUserFlowPaths = commonJsModule.buildUserFlowPaths;
|
|
25
25
|
export const buildUserFlowSummary = commonJsModule.buildUserFlowSummary;
|
|
26
|
-
export const
|
|
26
|
+
export const getUserFlowPageText = commonJsModule.getUserFlowPageText;
|
|
27
27
|
export const isDynamicPathSegment = commonJsModule.isDynamicPathSegment;
|
|
28
28
|
export const normalizeUserFlowOptions = commonJsModule.normalizeUserFlowOptions;
|
|
29
29
|
export const sliceJourneyForMap = commonJsModule.sliceJourneyForMap;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getRunbookStepsSignature = void 0;
|
|
7
|
+
const StableStringify_1 = __importDefault(require("../StableStringify"));
|
|
8
|
+
/*
|
|
9
|
+
* A runbook's steps as Save Steps writes them, in one string: in the order
|
|
10
|
+
* they run, each numbered by its place (Save Steps writes order 0, 1, 2...),
|
|
11
|
+
* with every object's keys sorted and a key left undefined left out, as
|
|
12
|
+
* JSON leaves it out.
|
|
13
|
+
*
|
|
14
|
+
* The same steps give the same string however their objects were built - a
|
|
15
|
+
* step handed back by an editor unchanged, a config spread into a copy in
|
|
16
|
+
* another order. Any change Save Steps would write gives another: a step
|
|
17
|
+
* added, removed, moved or edited, a switch flipped.
|
|
18
|
+
*
|
|
19
|
+
* The Steps page compares its steps with the ones last loaded or saved: a
|
|
20
|
+
* change undone - a step moved and moved back, a switch flipped twice -
|
|
21
|
+
* leaves nothing unsaved, so Save Steps rests, no "Unsaved changes" shows,
|
|
22
|
+
* and leaving asks nothing.
|
|
23
|
+
*/
|
|
24
|
+
const getRunbookStepsSignature = (steps) => {
|
|
25
|
+
return (0, StableStringify_1.default)(steps.map((step, index) => {
|
|
26
|
+
return Object.assign(Object.assign({}, step), { order: index });
|
|
27
|
+
}));
|
|
28
|
+
};
|
|
29
|
+
exports.getRunbookStepsSignature = getRunbookStepsSignature;
|
|
30
|
+
exports.default = exports.getRunbookStepsSignature;
|
|
@@ -57,6 +57,9 @@ export default class ScheduledMaintenanceStartUtil {
|
|
|
57
57
|
states: Array<unknown>;
|
|
58
58
|
state: unknown;
|
|
59
59
|
}): boolean;
|
|
60
|
+
static getScheduledState<T>(data: {
|
|
61
|
+
states: Array<T>;
|
|
62
|
+
}): T | null;
|
|
60
63
|
static getOngoingState<T>(data: {
|
|
61
64
|
states: Array<T>;
|
|
62
65
|
}): T | null;
|
|
@@ -57,6 +57,9 @@ export default class ScheduledMaintenanceStartUtil {
|
|
|
57
57
|
states: Array<unknown>;
|
|
58
58
|
state: unknown;
|
|
59
59
|
}): boolean;
|
|
60
|
+
static getScheduledState<T>(data: {
|
|
61
|
+
states: Array<T>;
|
|
62
|
+
}): T | null;
|
|
60
63
|
static getOngoingState<T>(data: {
|
|
61
64
|
states: Array<T>;
|
|
62
65
|
}): T | null;
|
|
@@ -292,6 +292,15 @@ class ScheduledMaintenanceStartUtil {
|
|
|
292
292
|
return ((0, StateOrder_1.getStateListReachedBuiltIn)(DEFINITION, placed.rows, placed.row) ===
|
|
293
293
|
COMPLETED_FLAG);
|
|
294
294
|
}
|
|
295
|
+
/*
|
|
296
|
+
* The project's scheduled state: the first state from the top flagged
|
|
297
|
+
* scheduled - the one a new event is created in, and the sample project's
|
|
298
|
+
* events start in. Null when the list has none (a project always keeps
|
|
299
|
+
* one; StateOrderGuard refuses deleting it).
|
|
300
|
+
*/
|
|
301
|
+
static getScheduledState(data) {
|
|
302
|
+
return this.getBuiltInState(data.states, SCHEDULED_FLAG);
|
|
303
|
+
}
|
|
295
304
|
/*
|
|
296
305
|
* The project's ongoing state: the first state from the top flagged
|
|
297
306
|
* ongoing - the one an event's start at its time, and Mark as Ongoing,
|
|
@@ -15,6 +15,7 @@ const MonitorSchemas_1 = require("./MonitorSchemas");
|
|
|
15
15
|
const MonitorType_1 = __importDefault(require("../../Types/Monitor/MonitorType"));
|
|
16
16
|
const WorkflowStatus_1 = __importDefault(require("../../Types/Workflow/WorkflowStatus"));
|
|
17
17
|
const CustomFieldType_1 = __importDefault(require("../../Types/CustomField/CustomFieldType"));
|
|
18
|
+
const ModelApiName_1 = require("../ModelApiName");
|
|
18
19
|
/*
|
|
19
20
|
* The text columns an encrypted secret is stored in. An encrypted JSON
|
|
20
21
|
* column holds a map of them, not one string, so it is left as it is.
|
|
@@ -638,8 +639,16 @@ class ModelSchema extends BaseSchema_1.BaseSchema {
|
|
|
638
639
|
if (!tableName) {
|
|
639
640
|
continue;
|
|
640
641
|
}
|
|
642
|
+
/*
|
|
643
|
+
* By the name the API keeps, the one OpenAPI.ts tags the model's
|
|
644
|
+
* endpoints with. A model renamed on screen (#6817: an On-Call Policy
|
|
645
|
+
* Schedule is an On-Call Schedule) keeps its tag, and its screen name
|
|
646
|
+
* here named a tag no endpoint has: the Terraform provider found no
|
|
647
|
+
* resource for the relation, and its docs example was not a list of
|
|
648
|
+
* ids.
|
|
649
|
+
*/
|
|
641
650
|
references[columnKey] = {
|
|
642
|
-
tag: target
|
|
651
|
+
tag: (0, ModelApiName_1.getApiSingularName)(target) || tableName,
|
|
643
652
|
tableName: tableName,
|
|
644
653
|
};
|
|
645
654
|
}
|
|
@@ -70,6 +70,12 @@ function getPhoneSchema() {
|
|
|
70
70
|
}).openapi({
|
|
71
71
|
type: "object",
|
|
72
72
|
description: "Phone object",
|
|
73
|
+
/*
|
|
74
|
+
* Machine-readable marker, as on the DateTime wrapper: the Terraform
|
|
75
|
+
* provider generator writes a phone number as a plain string, compared
|
|
76
|
+
* as OneUptime keeps it (as written, or as its digits).
|
|
77
|
+
*/
|
|
78
|
+
"x-oneuptime-type": JSON_1.ObjectType.Phone,
|
|
73
79
|
example: { _type: JSON_1.ObjectType.Phone, value: "+1-555-123-4567" },
|
|
74
80
|
});
|
|
75
81
|
}
|
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
* one rendering, and so every rounding edge is unit-testable without a
|
|
15
15
|
* DOM.
|
|
16
16
|
*/
|
|
17
|
+
export interface CompactDurationOptions {
|
|
18
|
+
adjacentUnitsOnly?: boolean | undefined;
|
|
19
|
+
}
|
|
17
20
|
/**
|
|
18
21
|
* An unsigned duration as "2d 5h" / "43m 12s" / "45s". Fractional seconds
|
|
19
22
|
* are floored, so a 59.9-second budget renders "59s" rather than rounding
|
|
@@ -22,9 +25,9 @@
|
|
|
22
25
|
* A duration that floors to zero renders "0s" — a real, sayable state —
|
|
23
26
|
* instead of an empty string.
|
|
24
27
|
*/
|
|
25
|
-
export type FormatDurationCompactFunction = (seconds: number) => string;
|
|
28
|
+
export type FormatDurationCompactFunction = (seconds: number, options?: CompactDurationOptions | undefined) => string;
|
|
26
29
|
export declare const formatDurationCompact: FormatDurationCompactFunction;
|
|
27
|
-
export declare const formatDurationCompactInLanguage: (seconds: number, language?: string | undefined) => string;
|
|
30
|
+
export declare const formatDurationCompactInLanguage: (seconds: number, language?: string | undefined, options?: CompactDurationOptions | undefined) => string;
|
|
28
31
|
/**
|
|
29
32
|
* `errorBudgetRemainingSeconds` is SIGNED: negative means the budget is
|
|
30
33
|
* overspent, and that overage is the single most useful number during a
|
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
* one rendering, and so every rounding edge is unit-testable without a
|
|
15
15
|
* DOM.
|
|
16
16
|
*/
|
|
17
|
+
export interface CompactDurationOptions {
|
|
18
|
+
adjacentUnitsOnly?: boolean | undefined;
|
|
19
|
+
}
|
|
17
20
|
/**
|
|
18
21
|
* An unsigned duration as "2d 5h" / "43m 12s" / "45s". Fractional seconds
|
|
19
22
|
* are floored, so a 59.9-second budget renders "59s" rather than rounding
|
|
@@ -22,9 +25,9 @@
|
|
|
22
25
|
* A duration that floors to zero renders "0s" — a real, sayable state —
|
|
23
26
|
* instead of an empty string.
|
|
24
27
|
*/
|
|
25
|
-
export type FormatDurationCompactFunction = (seconds: number) => string;
|
|
28
|
+
export type FormatDurationCompactFunction = (seconds: number, options?: CompactDurationOptions | undefined) => string;
|
|
26
29
|
export declare const formatDurationCompact: FormatDurationCompactFunction;
|
|
27
|
-
export declare const formatDurationCompactInLanguage: (seconds: number, language?: string | undefined) => string;
|
|
30
|
+
export declare const formatDurationCompactInLanguage: (seconds: number, language?: string | undefined, options?: CompactDurationOptions | undefined) => string;
|
|
28
31
|
/**
|
|
29
32
|
* `errorBudgetRemainingSeconds` is SIGNED: negative means the budget is
|
|
30
33
|
* overspent, and that overage is the single most useful number during a
|
package/Utils/Slo/SloDuration.js
CHANGED
|
@@ -38,7 +38,7 @@ const toFiniteNumber = (value) => {
|
|
|
38
38
|
return value;
|
|
39
39
|
};
|
|
40
40
|
// The units a compact duration names, with their counts: [2 d, 5 h].
|
|
41
|
-
const getCompactParts = (seconds) => {
|
|
41
|
+
const getCompactParts = (seconds, options) => {
|
|
42
42
|
let remainingSeconds = Math.floor(Math.abs(seconds));
|
|
43
43
|
const parts = [];
|
|
44
44
|
for (const unit of UNITS) {
|
|
@@ -50,8 +50,13 @@ const getCompactParts = (seconds) => {
|
|
|
50
50
|
* Skip leading zero units ("0d 5h"), but once a larger unit has been
|
|
51
51
|
* emitted a zero is still skipped rather than padded — "2d" is
|
|
52
52
|
* correct for exactly 48 hours, "2d 0h" is not how anyone says it.
|
|
53
|
+
* With adjacentUnitsOnly a zero right after the first unit ends the
|
|
54
|
+
* duration there: "2d", never "2d 30s".
|
|
53
55
|
*/
|
|
54
56
|
if (count <= 0) {
|
|
57
|
+
if (parts.length > 0 && (options === null || options === void 0 ? void 0 : options.adjacentUnitsOnly)) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
55
60
|
continue;
|
|
56
61
|
}
|
|
57
62
|
parts.push({ count: count, suffix: unit.suffix, unit: unit.unit });
|
|
@@ -59,8 +64,8 @@ const getCompactParts = (seconds) => {
|
|
|
59
64
|
}
|
|
60
65
|
return parts;
|
|
61
66
|
};
|
|
62
|
-
const formatDurationCompact = (seconds) => {
|
|
63
|
-
const parts = getCompactParts(seconds);
|
|
67
|
+
const formatDurationCompact = (seconds, options) => {
|
|
68
|
+
const parts = getCompactParts(seconds, options);
|
|
64
69
|
if (parts.length === 0) {
|
|
65
70
|
return "0s";
|
|
66
71
|
}
|
|
@@ -89,12 +94,12 @@ exports.formatDurationCompact = formatDurationCompact;
|
|
|
89
94
|
* formatDurationCompact itself stays English: the SLO pages still glue its
|
|
90
95
|
* text into English sentences of their own.
|
|
91
96
|
*/
|
|
92
|
-
const formatDurationCompactInLanguage = (seconds, language) => {
|
|
97
|
+
const formatDurationCompactInLanguage = (seconds, language, options) => {
|
|
93
98
|
const write = () => {
|
|
94
99
|
return (0, DateLanguage_1.writeInDateDisplayLanguage)(() => {
|
|
95
|
-
return (0, exports.formatDurationCompact)(seconds);
|
|
100
|
+
return (0, exports.formatDurationCompact)(seconds, options);
|
|
96
101
|
}, (_language, locale) => {
|
|
97
|
-
const parts = getCompactParts(seconds).map((part) => {
|
|
102
|
+
const parts = getCompactParts(seconds, options).map((part) => {
|
|
98
103
|
return { count: part.count, unit: part.unit };
|
|
99
104
|
});
|
|
100
105
|
return (0, DateLanguage_1.formatDurationText)({
|
package/Utils/Slo/SloHealth.js
CHANGED
|
@@ -170,7 +170,7 @@ const getSloNotice = (data) => {
|
|
|
170
170
|
return {
|
|
171
171
|
type: SloNoticeType.Info,
|
|
172
172
|
title: "Measurement is paused",
|
|
173
|
-
body: "Every monitor attached to this SLO has active monitoring disabled — by hand, by a manual incident, or by a
|
|
173
|
+
body: "Every monitor attached to this SLO has active monitoring disabled — by hand, by a manual incident, or by a maintenance event — so there is no signal to measure. The SLO resumes automatically when a monitor starts reporting again.",
|
|
174
174
|
action: {
|
|
175
175
|
label: "View monitors",
|
|
176
176
|
target: SloNoticeActionTarget.Monitors,
|
package/Utils/StateOrder.js
CHANGED
|
@@ -96,10 +96,7 @@ exports.STATE_LISTS = {
|
|
|
96
96
|
[StateListType.ScheduledMaintenanceState]: {
|
|
97
97
|
type: StateListType.ScheduledMaintenanceState,
|
|
98
98
|
orderColumn: "order",
|
|
99
|
-
subject: {
|
|
100
|
-
singular: "scheduled maintenance event",
|
|
101
|
-
plural: "scheduled maintenance events",
|
|
102
|
-
},
|
|
99
|
+
subject: { singular: "maintenance event", plural: "maintenance events" },
|
|
103
100
|
builtIns: [
|
|
104
101
|
{ flag: "isScheduledState", role: "scheduled state" },
|
|
105
102
|
{ flag: "isOngoingState", role: "ongoing state" },
|
|
@@ -47,7 +47,7 @@ var StateTimelineRecord;
|
|
|
47
47
|
exports.ONLY_STATE_DELETE_MESSAGES = {
|
|
48
48
|
[StateTimelineRecord.Incident]: "The incident's only state can't be deleted: an incident always has a state. To change it, add a new state.",
|
|
49
49
|
[StateTimelineRecord.Alert]: "The alert's only state can't be deleted: an alert always has a state. To change it, add a new state.",
|
|
50
|
-
[StateTimelineRecord.ScheduledMaintenance]: "The event's only state can't be deleted: a
|
|
50
|
+
[StateTimelineRecord.ScheduledMaintenance]: "The event's only state can't be deleted: a maintenance event always has a state. To change it, add a new state.",
|
|
51
51
|
[StateTimelineRecord.IncidentEpisode]: "The episode's only state can't be deleted: an episode always has a state. To change it, add a new state.",
|
|
52
52
|
[StateTimelineRecord.AlertEpisode]: "The episode's only state can't be deleted: an episode always has a state. To change it, add a new state.",
|
|
53
53
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import AggregatedModel from "../../Types/BaseDatabase/AggregatedModel.mjs";
|
|
2
|
+
import Timezone from "../../Types/Timezone.mjs";
|
|
2
3
|
import { ReceivingGap } from "./ReceivingGaps.mjs";
|
|
3
4
|
export interface HeartbeatAvailabilityPoint {
|
|
4
5
|
x: Date;
|
|
@@ -19,7 +20,10 @@ export declare class HeartbeatAvailabilityUtil {
|
|
|
19
20
|
windowEnd: Date;
|
|
20
21
|
now: Date;
|
|
21
22
|
receivingGaps?: Array<ReceivingGap> | undefined;
|
|
23
|
+
timezone?: Timezone | undefined;
|
|
22
24
|
}): HeartbeatAvailabilityResult;
|
|
25
|
+
private static getSlots;
|
|
26
|
+
private static getNearestSlotIndex;
|
|
23
27
|
private static isNotMonitored;
|
|
24
28
|
private static getBucketTimestamp;
|
|
25
29
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import AggregatedModel from "../../Types/BaseDatabase/AggregatedModel";
|
|
2
|
+
import Timezone from "../../Types/Timezone";
|
|
2
3
|
import { ReceivingGap } from "./ReceivingGaps";
|
|
3
4
|
export interface HeartbeatAvailabilityPoint {
|
|
4
5
|
x: Date;
|
|
@@ -19,7 +20,10 @@ export declare class HeartbeatAvailabilityUtil {
|
|
|
19
20
|
windowEnd: Date;
|
|
20
21
|
now: Date;
|
|
21
22
|
receivingGaps?: Array<ReceivingGap> | undefined;
|
|
23
|
+
timezone?: Timezone | undefined;
|
|
22
24
|
}): HeartbeatAvailabilityResult;
|
|
25
|
+
private static getSlots;
|
|
26
|
+
private static getNearestSlotIndex;
|
|
23
27
|
private static isNotMonitored;
|
|
24
28
|
private static getBucketTimestamp;
|
|
25
29
|
}
|