@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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import commonJsModule from "./ServerEmailEnvironment.js";
|
|
2
|
+
export default commonJsModule.default;
|
|
3
|
+
export const SERVER_EMAIL_AMAZON_SES_AUTHENTICATION_TYPE_VALUES = commonJsModule.SERVER_EMAIL_AMAZON_SES_AUTHENTICATION_TYPE_VALUES;
|
|
4
|
+
export const SERVER_EMAIL_COLUMNS = commonJsModule.SERVER_EMAIL_COLUMNS;
|
|
5
|
+
export const SERVER_EMAIL_ENVIRONMENT_ROUTE = commonJsModule.SERVER_EMAIL_ENVIRONMENT_ROUTE;
|
|
6
|
+
export const SERVER_EMAIL_ENVIRONMENT_VARIABLES = commonJsModule.SERVER_EMAIL_ENVIRONMENT_VARIABLES;
|
|
7
|
+
export const SERVER_EMAIL_MAILGUN_REGION_VALUES = commonJsModule.SERVER_EMAIL_MAILGUN_REGION_VALUES;
|
|
8
|
+
export const SERVER_EMAIL_SECRET_VARIABLES = commonJsModule.SERVER_EMAIL_SECRET_VARIABLES;
|
|
9
|
+
export const SERVER_EMAIL_SERVER_TYPE_VALUES = commonJsModule.SERVER_EMAIL_SERVER_TYPE_VALUES;
|
|
10
|
+
export const SERVER_EMAIL_SET_BY_ENVIRONMENT_MESSAGE = commonJsModule.SERVER_EMAIL_SET_BY_ENVIRONMENT_MESSAGE;
|
|
11
|
+
export const SERVER_EMAIL_SMTP_AUTH_TYPE_VALUES = commonJsModule.SERVER_EMAIL_SMTP_AUTH_TYPE_VALUES;
|
|
12
|
+
export const SERVER_EMAIL_SMTP_OAUTH_PROVIDER_TYPE_VALUES = commonJsModule.SERVER_EMAIL_SMTP_OAUTH_PROVIDER_TYPE_VALUES;
|
|
13
|
+
export const SERVER_EMAIL_SMTP_TRANSPORT_VALUES = commonJsModule.SERVER_EMAIL_SMTP_TRANSPORT_VALUES;
|
|
14
|
+
export const ServerEmailEnvironmentVariable = commonJsModule.ServerEmailEnvironmentVariable;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import BadDataExceptionWithDetails from "./BadDataExceptionWithDetails.mjs";
|
|
2
|
+
import { AiRunRefusalCode } from "../AI/AiRunRefusal.mjs";
|
|
3
|
+
export default class AiRunRefusalException extends BadDataExceptionWithDetails {
|
|
4
|
+
readonly refusalCode: AiRunRefusalCode;
|
|
5
|
+
constructor(refusalCode: AiRunRefusalCode);
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import BadDataExceptionWithDetails from "./BadDataExceptionWithDetails";
|
|
2
|
+
import { AiRunRefusalCode } from "../AI/AiRunRefusal";
|
|
3
|
+
export default class AiRunRefusalException extends BadDataExceptionWithDetails {
|
|
4
|
+
readonly refusalCode: AiRunRefusalCode;
|
|
5
|
+
constructor(refusalCode: AiRunRefusalCode);
|
|
6
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
const BadDataExceptionWithDetails_1 = __importDefault(require("./BadDataExceptionWithDetails"));
|
|
7
|
+
const AiRunRefusal_1 = require("../AI/AiRunRefusal");
|
|
8
|
+
/*
|
|
9
|
+
* OneUptime AI did not start a run someone asked for (#7359): bad data
|
|
10
|
+
* (400) whose message is the refusal's English sentence, for the API and
|
|
11
|
+
* older Dashboards, with its code beside it -
|
|
12
|
+
* { message: "...", refusalCode: "ai_off" } - for the Dashboard to word
|
|
13
|
+
* in the reader's language.
|
|
14
|
+
*/
|
|
15
|
+
class AiRunRefusalException extends BadDataExceptionWithDetails_1.default {
|
|
16
|
+
constructor(refusalCode) {
|
|
17
|
+
super((0, AiRunRefusal_1.getAiRunRefusalMessage)(refusalCode), {
|
|
18
|
+
[AiRunRefusal_1.AI_RUN_REFUSAL_CODE_FIELD]: refusalCode,
|
|
19
|
+
});
|
|
20
|
+
this.refusalCode = refusalCode;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.default = AiRunRefusalException;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TemplateValues } from "../Translator.mjs";
|
|
2
|
+
export interface RefusalWithValues {
|
|
3
|
+
template: string;
|
|
4
|
+
terms: ReadonlyArray<string>;
|
|
5
|
+
}
|
|
6
|
+
export declare const getRefusalText: (refusal: RefusalWithValues, values: Record<string, string>) => string;
|
|
7
|
+
export declare const readRefusalValues: (refusal: RefusalWithValues, message: string | null | undefined) => TemplateValues | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TemplateValues } from "../Translator";
|
|
2
|
+
export interface RefusalWithValues {
|
|
3
|
+
template: string;
|
|
4
|
+
terms: ReadonlyArray<string>;
|
|
5
|
+
}
|
|
6
|
+
export declare const getRefusalText: (refusal: RefusalWithValues, values: Record<string, string>) => string;
|
|
7
|
+
export declare const readRefusalValues: (refusal: RefusalWithValues, message: string | null | undefined) => TemplateValues | null;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.readRefusalValues = exports.getRefusalText = void 0;
|
|
4
|
+
const Translator_1 = require("../Translator");
|
|
5
|
+
// A {{placeholder}}, read as Common/Types/Translator fills one.
|
|
6
|
+
const PLACEHOLDER = /\{\{\s*([\w.]+)\s*\}\}/g;
|
|
7
|
+
/*
|
|
8
|
+
* The sentence cut at its placeholders: the words before each one, and the
|
|
9
|
+
* words after the last (so one more piece of words than placeholders).
|
|
10
|
+
*/
|
|
11
|
+
const cutAtPlaceholders = (template) => {
|
|
12
|
+
const words = [];
|
|
13
|
+
const placeholders = [];
|
|
14
|
+
let wordsStart = 0;
|
|
15
|
+
for (const match of template.matchAll(PLACEHOLDER)) {
|
|
16
|
+
const start = match.index || 0;
|
|
17
|
+
words.push(template.slice(wordsStart, start));
|
|
18
|
+
placeholders.push(match[1] || "");
|
|
19
|
+
wordsStart = start + match[0].length;
|
|
20
|
+
}
|
|
21
|
+
words.push(template.slice(wordsStart));
|
|
22
|
+
return { words: words, placeholders: placeholders };
|
|
23
|
+
};
|
|
24
|
+
// The refusal as the server answers it: in English, with its values in it.
|
|
25
|
+
const getRefusalText = (refusal, values) => {
|
|
26
|
+
return (0, Translator_1.fillTemplate)(refusal.template, values);
|
|
27
|
+
};
|
|
28
|
+
exports.getRefusalText = getRefusalText;
|
|
29
|
+
/*
|
|
30
|
+
* The values of `refusal` that `message` holds, as the sentence's values -
|
|
31
|
+
* each of `terms` a word to say in the reader's language - or null when
|
|
32
|
+
* `message` is not that refusal. Each value is the text between the words
|
|
33
|
+
* around its placeholder; a placeholder the sentence names twice reads the
|
|
34
|
+
* same text both times, and no value is empty.
|
|
35
|
+
*/
|
|
36
|
+
const readRefusalValues = (refusal, message) => {
|
|
37
|
+
const text = (message || "").trim();
|
|
38
|
+
const { words, placeholders } = cutAtPlaceholders(refusal.template);
|
|
39
|
+
const first = words[0] || "";
|
|
40
|
+
if (placeholders.length === 0 || !text.startsWith(first)) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
const read = {};
|
|
44
|
+
let position = first.length;
|
|
45
|
+
for (let index = 0; index < placeholders.length; index++) {
|
|
46
|
+
const placeholder = placeholders[index] || "";
|
|
47
|
+
const after = words[index + 1] || "";
|
|
48
|
+
const isLast = index === placeholders.length - 1;
|
|
49
|
+
let end = -1;
|
|
50
|
+
if (isLast) {
|
|
51
|
+
end = text.endsWith(after) ? text.length - after.length : -1;
|
|
52
|
+
}
|
|
53
|
+
else if (after) {
|
|
54
|
+
end = text.indexOf(after, position);
|
|
55
|
+
}
|
|
56
|
+
// Two placeholders with no words between them cannot be told apart.
|
|
57
|
+
if (end <= position) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
const value = text.slice(position, end);
|
|
61
|
+
if (read[placeholder] !== undefined && read[placeholder] !== value) {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
read[placeholder] = value;
|
|
65
|
+
position = end + after.length;
|
|
66
|
+
}
|
|
67
|
+
const values = {};
|
|
68
|
+
for (const placeholder of Object.keys(read)) {
|
|
69
|
+
const value = read[placeholder] || "";
|
|
70
|
+
values[placeholder] = refusal.terms.includes(placeholder)
|
|
71
|
+
? (0, Translator_1.translatableTerm)(value)
|
|
72
|
+
: value;
|
|
73
|
+
}
|
|
74
|
+
return values;
|
|
75
|
+
};
|
|
76
|
+
exports.readRefusalValues = readRefusalValues;
|
|
@@ -43,3 +43,16 @@ export interface UnexplainedError {
|
|
|
43
43
|
reference: string | null;
|
|
44
44
|
}
|
|
45
45
|
export declare const readUnexplainedError: (message: string | undefined | null) => UnexplainedError | null;
|
|
46
|
+
export interface UnexplainedErrorReader {
|
|
47
|
+
isCloud: boolean;
|
|
48
|
+
isMasterAdmin: boolean;
|
|
49
|
+
isVisitor?: boolean | undefined;
|
|
50
|
+
}
|
|
51
|
+
export interface UnexplainedErrorExplanation {
|
|
52
|
+
why: string;
|
|
53
|
+
next: string;
|
|
54
|
+
whereToLook: string | null;
|
|
55
|
+
}
|
|
56
|
+
export declare const getExplanationWords: (data: {
|
|
57
|
+
error: UnexplainedError;
|
|
58
|
+
} & UnexplainedErrorReader) => UnexplainedErrorExplanation;
|
|
@@ -43,3 +43,16 @@ export interface UnexplainedError {
|
|
|
43
43
|
reference: string | null;
|
|
44
44
|
}
|
|
45
45
|
export declare const readUnexplainedError: (message: string | undefined | null) => UnexplainedError | null;
|
|
46
|
+
export interface UnexplainedErrorReader {
|
|
47
|
+
isCloud: boolean;
|
|
48
|
+
isMasterAdmin: boolean;
|
|
49
|
+
isVisitor?: boolean | undefined;
|
|
50
|
+
}
|
|
51
|
+
export interface UnexplainedErrorExplanation {
|
|
52
|
+
why: string;
|
|
53
|
+
next: string;
|
|
54
|
+
whereToLook: string | null;
|
|
55
|
+
}
|
|
56
|
+
export declare const getExplanationWords: (data: {
|
|
57
|
+
error: UnexplainedError;
|
|
58
|
+
} & UnexplainedErrorReader) => UnexplainedErrorExplanation;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.readUnexplainedError = exports.getUnexplainedServerErrorMessage = exports.UnexplainedErrorWords = exports.UNEXPLAINED_ERROR_MESSAGES = exports.SERVER_DOWN_MESSAGE = exports.UnexplainedErrorKind = exports.isErrorReference = exports.toErrorReference = exports.ERROR_REFERENCE_LENGTH = exports.ERROR_REFERENCE_FIELD = void 0;
|
|
3
|
+
exports.getExplanationWords = exports.readUnexplainedError = exports.getUnexplainedServerErrorMessage = exports.UnexplainedErrorWords = exports.UNEXPLAINED_ERROR_MESSAGES = exports.SERVER_DOWN_MESSAGE = exports.UnexplainedErrorKind = exports.isErrorReference = exports.toErrorReference = exports.ERROR_REFERENCE_LENGTH = exports.ERROR_REFERENCE_FIELD = void 0;
|
|
4
4
|
const Translator_1 = require("../Translator");
|
|
5
5
|
/*
|
|
6
6
|
* An error nobody explained (#6836): the server failed in a way no message
|
|
@@ -177,3 +177,55 @@ const readUnexplainedError = (message) => {
|
|
|
177
177
|
return null;
|
|
178
178
|
};
|
|
179
179
|
exports.readUnexplainedError = readUnexplainedError;
|
|
180
|
+
/*
|
|
181
|
+
* The English words (translation keys) for each kind, for the reader the
|
|
182
|
+
* page has. ErrorExplanation draws them as a block of their own, and
|
|
183
|
+
* ErrorSentence inside a sentence a card writes around them
|
|
184
|
+
* (Common/UI/Utils/ErrorInSentence): one set of words for both.
|
|
185
|
+
*/
|
|
186
|
+
const getExplanationWords = (data) => {
|
|
187
|
+
const isSelfHostedAdmin = !data.isCloud && data.isMasterAdmin && !data.isVisitor;
|
|
188
|
+
switch (data.error.kind) {
|
|
189
|
+
case UnexplainedErrorKind.ServerWithReference:
|
|
190
|
+
return {
|
|
191
|
+
why: exports.UnexplainedErrorWords.serverWhy,
|
|
192
|
+
next: data.isVisitor
|
|
193
|
+
? exports.UnexplainedErrorWords.serverNext
|
|
194
|
+
: data.isCloud
|
|
195
|
+
? exports.UnexplainedErrorWords.serverNextWithReferenceCloud
|
|
196
|
+
: exports.UnexplainedErrorWords.serverNextWithReferenceSelfHosted,
|
|
197
|
+
whereToLook: isSelfHostedAdmin
|
|
198
|
+
? exports.UnexplainedErrorWords.adminWhereToLookWithReference
|
|
199
|
+
: null,
|
|
200
|
+
};
|
|
201
|
+
case UnexplainedErrorKind.Server:
|
|
202
|
+
return {
|
|
203
|
+
why: exports.UnexplainedErrorWords.serverWhy,
|
|
204
|
+
next: exports.UnexplainedErrorWords.serverNext,
|
|
205
|
+
whereToLook: isSelfHostedAdmin
|
|
206
|
+
? exports.UnexplainedErrorWords.adminWhereToLook
|
|
207
|
+
: null,
|
|
208
|
+
};
|
|
209
|
+
case UnexplainedErrorKind.ServerDown:
|
|
210
|
+
return {
|
|
211
|
+
why: exports.UnexplainedErrorWords.serverDownWhy,
|
|
212
|
+
next: exports.UnexplainedErrorWords.serverDownNext,
|
|
213
|
+
whereToLook: data.isCloud || data.isVisitor
|
|
214
|
+
? null
|
|
215
|
+
: exports.UnexplainedErrorWords.serverDownWhereToLook,
|
|
216
|
+
};
|
|
217
|
+
case UnexplainedErrorKind.Unreachable:
|
|
218
|
+
return {
|
|
219
|
+
why: exports.UnexplainedErrorWords.unreachableWhy,
|
|
220
|
+
next: exports.UnexplainedErrorWords.unreachableNext,
|
|
221
|
+
whereToLook: null,
|
|
222
|
+
};
|
|
223
|
+
default:
|
|
224
|
+
return {
|
|
225
|
+
why: exports.UnexplainedErrorWords.pageWhy,
|
|
226
|
+
next: exports.UnexplainedErrorWords.pageNext,
|
|
227
|
+
whereToLook: null,
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
exports.getExplanationWords = getExplanationWords;
|
|
@@ -5,6 +5,7 @@ export const SERVER_DOWN_MESSAGE = commonJsModule.SERVER_DOWN_MESSAGE;
|
|
|
5
5
|
export const UNEXPLAINED_ERROR_MESSAGES = commonJsModule.UNEXPLAINED_ERROR_MESSAGES;
|
|
6
6
|
export const UnexplainedErrorKind = commonJsModule.UnexplainedErrorKind;
|
|
7
7
|
export const UnexplainedErrorWords = commonJsModule.UnexplainedErrorWords;
|
|
8
|
+
export const getExplanationWords = commonJsModule.getExplanationWords;
|
|
8
9
|
export const getUnexplainedServerErrorMessage = commonJsModule.getUnexplainedServerErrorMessage;
|
|
9
10
|
export const isErrorReference = commonJsModule.isErrorReference;
|
|
10
11
|
export const readUnexplainedError = commonJsModule.readUnexplainedError;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface FileSizeOptions {
|
|
2
|
+
language?: string | undefined;
|
|
3
|
+
}
|
|
4
|
+
export type FormatFileSizeFunction = (bytes: number, options?: FileSizeOptions) => string;
|
|
2
5
|
export declare const formatFileSize: FormatFileSizeFunction;
|
|
3
6
|
export default formatFileSize;
|
package/Types/File/FileSize.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface FileSizeOptions {
|
|
2
|
+
language?: string | undefined;
|
|
3
|
+
}
|
|
4
|
+
export type FormatFileSizeFunction = (bytes: number, options?: FileSizeOptions) => string;
|
|
2
5
|
export declare const formatFileSize: FormatFileSizeFunction;
|
|
3
6
|
export default formatFileSize;
|
package/Types/File/FileSize.js
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* A FILE'S SIZE AS PEOPLE READ IT: "640 B", "48 KB", "1.5 MB".
|
|
4
|
-
*
|
|
5
|
-
* Whole kilobytes under a megabyte, one decimal from a megabyte on: the
|
|
6
|
-
* precision a person compares two files by, never "47.1 KB" beside
|
|
7
|
-
* "240.0 KB". A file under a kilobyte is counted in bytes, so a tiny text
|
|
8
|
-
* file never reads as "0.1 KB" - or as "0 KB", as if it were empty.
|
|
9
|
-
*
|
|
10
|
-
* Every place that lists files says their sizes this way: the Custom Fields
|
|
11
|
-
* card, the file picker a form lists them in, a form's review step.
|
|
12
|
-
*
|
|
13
|
-
* Pure, with no React imports.
|
|
14
|
-
*/
|
|
15
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
3
|
exports.formatFileSize = void 0;
|
|
17
|
-
const
|
|
4
|
+
const DateLanguage_1 = require("../DateLanguage");
|
|
5
|
+
const formatFileSize = (bytes, options) => {
|
|
18
6
|
if (!Number.isFinite(bytes) || bytes < 0) {
|
|
19
7
|
return "";
|
|
20
8
|
}
|
|
9
|
+
const language = options === null || options === void 0 ? void 0 : options.language;
|
|
21
10
|
if (bytes < 1024) {
|
|
22
|
-
return `${Math.floor(bytes)} B`;
|
|
11
|
+
return `${(0, DateLanguage_1.formatReaderFigure)(Math.floor(bytes), { decimals: 0, language })} B`;
|
|
23
12
|
}
|
|
24
13
|
if (bytes < 1024 * 1024) {
|
|
25
|
-
return `${Math.max(1, Math.round(bytes / 1024))
|
|
14
|
+
return `${(0, DateLanguage_1.formatReaderFigure)(Math.max(1, Math.round(bytes / 1024)), {
|
|
15
|
+
decimals: 0,
|
|
16
|
+
language,
|
|
17
|
+
})} KB`;
|
|
26
18
|
}
|
|
27
|
-
|
|
19
|
+
/*
|
|
20
|
+
* Rounded to a tenth as it always was, then written with that tenth
|
|
21
|
+
* only when it is not a whole number: "1 MB", "1.5 MB".
|
|
22
|
+
*/
|
|
23
|
+
const megabytes = Math.round((bytes / (1024 * 1024)) * 10) / 10;
|
|
24
|
+
return `${(0, DateLanguage_1.formatReaderFigure)(megabytes, {
|
|
25
|
+
decimals: 1,
|
|
26
|
+
dropTrailingZeros: true,
|
|
27
|
+
language,
|
|
28
|
+
})} MB`;
|
|
28
29
|
};
|
|
29
30
|
exports.formatFileSize = formatFileSize;
|
|
30
31
|
exports.default = exports.formatFileSize;
|
|
@@ -115,7 +115,7 @@ const SCHEDULED_MAINTENANCE_FIELDS = [
|
|
|
115
115
|
{
|
|
116
116
|
key: "title",
|
|
117
117
|
title: "Title",
|
|
118
|
-
description: "A one-line summary that becomes the
|
|
118
|
+
description: "A one-line summary that becomes the maintenance event's title.",
|
|
119
119
|
defaultLabel: "Title",
|
|
120
120
|
defaultHelpText: "A short summary of the maintenance.",
|
|
121
121
|
inputType: CustomFieldType_1.default.Text,
|
|
@@ -126,7 +126,7 @@ const SCHEDULED_MAINTENANCE_FIELDS = [
|
|
|
126
126
|
{
|
|
127
127
|
key: "description",
|
|
128
128
|
title: "Description",
|
|
129
|
-
description: "Rich text that becomes the
|
|
129
|
+
description: "Rich text that becomes the maintenance event's description.",
|
|
130
130
|
defaultLabel: "Description",
|
|
131
131
|
defaultHelpText: "What will change, and what people should expect.",
|
|
132
132
|
inputType: CustomFieldType_1.default.Markdown,
|
|
@@ -41,8 +41,8 @@ exports.FORM_TARGET_TYPE_TEXT = {
|
|
|
41
41
|
},
|
|
42
42
|
[FormTargetType.ScheduledMaintenance]: {
|
|
43
43
|
title: "Scheduled Maintenance",
|
|
44
|
-
noun: "
|
|
45
|
-
nounWithArticle: "a
|
|
44
|
+
noun: "maintenance event",
|
|
45
|
+
nounWithArticle: "a maintenance event",
|
|
46
46
|
description: "Each submission schedules a maintenance event. Use it for change and maintenance requests.",
|
|
47
47
|
},
|
|
48
48
|
};
|
|
@@ -12,26 +12,42 @@
|
|
|
12
12
|
* OneUptime sends it over OpAMP (the OpenTelemetry Agent Management
|
|
13
13
|
* Protocol).
|
|
14
14
|
*
|
|
15
|
-
* The supervisor phones home to OneUptime (POST
|
|
16
|
-
* with the project's telemetry ingestion
|
|
17
|
-
* header), and OneUptime answers with the
|
|
18
|
-
* first Collector Config of the project
|
|
19
|
-
* default for its operating system. The
|
|
20
|
-
* and whether it applied; a config that
|
|
21
|
-
* to the last one that worked.
|
|
15
|
+
* The supervisor phones home to OneUptime (POST
|
|
16
|
+
* <OneUptime URL>/telemetry/opamp/v1, with the project's telemetry ingestion
|
|
17
|
+
* key in the x-oneuptime-token header), and OneUptime answers with the
|
|
18
|
+
* config the host should run: the first Collector Config of the project
|
|
19
|
+
* that applies to it, or OneUptime's default for its operating system. The
|
|
20
|
+
* host reports which config it runs, and whether it applied; a config that
|
|
21
|
+
* fails on a host is rolled back there to the last one that worked.
|
|
22
22
|
*
|
|
23
23
|
* Plain values on purpose, so the Dashboard, the server and the tests read
|
|
24
24
|
* the same ones.
|
|
25
25
|
*/
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.HOST_COLLECTOR_ERROR_MAX_LENGTH = exports.HOST_COLLECTOR_CONFIG_MAX_BYTES = exports.HOST_COLLECTOR_CONFIG_CHANGED_NOTE = exports.HOST_COLLECTOR_CONFIG_CREATED_NOTE = exports.HostCollectorConfigStatus = exports.HOST_COLLECTOR_OS_NAMES = exports.HOST_COLLECTOR_INSTALLABLE_OS_TYPES = exports.HostCollectorOsType = exports.HOST_COLLECTOR_LABEL_ATTRIBUTE_PREFIX = exports.HOST_COLLECTOR_EXPORTER_ENDPOINT = exports.HOST_COLLECTOR_INGESTION_KEY_REFERENCE = exports.HOST_COLLECTOR_URL_REFERENCE = exports.HOST_COLLECTOR_INGESTION_KEY_ENV = exports.HOST_COLLECTOR_URL_ENV = exports.HOST_COLLECTOR_MACOS_LOG_FILE = exports.HOST_COLLECTOR_MACOS_SERVICE_LABEL = exports.HOST_COLLECTOR_SERVICE_NAME = exports.HOST_COLLECTOR_PINNED_VERSION = exports.HOST_COLLECTOR_WINDOWS_INSTALL_SCRIPT_PATH = exports.HOST_COLLECTOR_INSTALL_SCRIPT_PATH = exports.HOST_COLLECTOR_OPAMP_PATH = void 0;
|
|
27
|
+
exports.HOST_COLLECTOR_ERROR_MAX_LENGTH = exports.HOST_COLLECTOR_CONFIG_MAX_BYTES = exports.HOST_COLLECTOR_CONFIG_CHANGED_NOTE = exports.HOST_COLLECTOR_CONFIG_CREATED_NOTE = exports.HostCollectorConfigStatus = exports.HOST_COLLECTOR_OS_NAMES = exports.HOST_COLLECTOR_INSTALLABLE_OS_TYPES = exports.HostCollectorOsType = exports.HOST_COLLECTOR_LABEL_ATTRIBUTE_PREFIX = exports.HOST_COLLECTOR_EXPORTER_ENDPOINT = exports.HOST_COLLECTOR_INGESTION_KEY_REFERENCE = exports.HOST_COLLECTOR_URL_REFERENCE = exports.HOST_COLLECTOR_INGESTION_KEY_ENV = exports.HOST_COLLECTOR_URL_ENV = exports.HOST_COLLECTOR_MACOS_LOG_FILE = exports.HOST_COLLECTOR_MACOS_SERVICE_LABEL = exports.HOST_COLLECTOR_SERVICE_NAME = exports.HOST_COLLECTOR_PINNED_VERSION = exports.HOST_COLLECTOR_WINDOWS_INSTALL_SCRIPT_PATH = exports.HOST_COLLECTOR_INSTALL_SCRIPT_PATH = exports.HOST_COLLECTOR_OPAMP_PATH = exports.HOST_COLLECTOR_OPAMP_ROUTE = void 0;
|
|
28
28
|
exports.getHostCollectorOsType = getHostCollectorOsType;
|
|
29
29
|
exports.isHostCollectorOsType = isHostCollectorOsType;
|
|
30
30
|
exports.isHostCollectorConfigStatus = isHostCollectorConfigStatus;
|
|
31
31
|
exports.getHostCollectorConfigRestoredNote = getHostCollectorConfigRestoredNote;
|
|
32
32
|
exports.getHostCollectorConfigRestoredVersion = getHostCollectorConfigRestoredVersion;
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
/*
|
|
34
|
+
* Where the supervisor posts its AgentToServer messages (OpAMP over HTTP).
|
|
35
|
+
*
|
|
36
|
+
* The route as the Telemetry router declares it. It is mounted under every
|
|
37
|
+
* telemetry prefix, "/telemetry" and "/", so the App serves both addresses.
|
|
38
|
+
*/
|
|
39
|
+
exports.HOST_COLLECTOR_OPAMP_ROUTE = "/opamp/v1";
|
|
40
|
+
/*
|
|
41
|
+
* The address the installers point the supervisor at: the route under
|
|
42
|
+
* /telemetry, which every OneUptime ingress sends to the App, as the session
|
|
43
|
+
* replay recorder and the Kubernetes cost agent call theirs. The bare route
|
|
44
|
+
* reaches the App only where the ingress has a location for it; on
|
|
45
|
+
* oneuptime.com, where everything else at the root is the marketing site,
|
|
46
|
+
* the installers' first /opamp/v1 answered 404, and the hosts never got a
|
|
47
|
+
* config. Those hosts still ask at /opamp/v1, which the ingress now sends to
|
|
48
|
+
* the App too (Nginx/default.conf.template).
|
|
49
|
+
*/
|
|
50
|
+
exports.HOST_COLLECTOR_OPAMP_PATH = `/telemetry${exports.HOST_COLLECTOR_OPAMP_ROUTE}`;
|
|
35
51
|
/*
|
|
36
52
|
* Where every OneUptime serves the installers (the Docs feature set's static
|
|
37
53
|
* folder), so a self-hosted OneUptime hands out the installer of its own
|
|
@@ -12,6 +12,7 @@ export const HOST_COLLECTOR_LABEL_ATTRIBUTE_PREFIX = commonJsModule.HOST_COLLECT
|
|
|
12
12
|
export const HOST_COLLECTOR_MACOS_LOG_FILE = commonJsModule.HOST_COLLECTOR_MACOS_LOG_FILE;
|
|
13
13
|
export const HOST_COLLECTOR_MACOS_SERVICE_LABEL = commonJsModule.HOST_COLLECTOR_MACOS_SERVICE_LABEL;
|
|
14
14
|
export const HOST_COLLECTOR_OPAMP_PATH = commonJsModule.HOST_COLLECTOR_OPAMP_PATH;
|
|
15
|
+
export const HOST_COLLECTOR_OPAMP_ROUTE = commonJsModule.HOST_COLLECTOR_OPAMP_ROUTE;
|
|
15
16
|
export const HOST_COLLECTOR_OS_NAMES = commonJsModule.HOST_COLLECTOR_OS_NAMES;
|
|
16
17
|
export const HOST_COLLECTOR_PINNED_VERSION = commonJsModule.HOST_COLLECTOR_PINNED_VERSION;
|
|
17
18
|
export const HOST_COLLECTOR_SERVICE_NAME = commonJsModule.HOST_COLLECTOR_SERVICE_NAME;
|
package/Types/ListData.d.mts
CHANGED
|
@@ -7,11 +7,13 @@ export default class ListData {
|
|
|
7
7
|
skip: PositiveNumber;
|
|
8
8
|
limit: PositiveNumber;
|
|
9
9
|
hasMore?: boolean | undefined;
|
|
10
|
+
isCountCapped?: boolean | undefined;
|
|
10
11
|
});
|
|
11
12
|
data: JSONArray;
|
|
12
13
|
count: PositiveNumber;
|
|
13
14
|
skip: PositiveNumber;
|
|
14
15
|
limit: PositiveNumber;
|
|
15
16
|
hasMore?: boolean | undefined;
|
|
17
|
+
isCountCapped?: boolean | undefined;
|
|
16
18
|
toJSON(): JSONObject;
|
|
17
19
|
}
|
package/Types/ListData.d.ts
CHANGED
|
@@ -7,11 +7,13 @@ export default class ListData {
|
|
|
7
7
|
skip: PositiveNumber;
|
|
8
8
|
limit: PositiveNumber;
|
|
9
9
|
hasMore?: boolean | undefined;
|
|
10
|
+
isCountCapped?: boolean | undefined;
|
|
10
11
|
});
|
|
11
12
|
data: JSONArray;
|
|
12
13
|
count: PositiveNumber;
|
|
13
14
|
skip: PositiveNumber;
|
|
14
15
|
limit: PositiveNumber;
|
|
15
16
|
hasMore?: boolean | undefined;
|
|
17
|
+
isCountCapped?: boolean | undefined;
|
|
16
18
|
toJSON(): JSONObject;
|
|
17
19
|
}
|
package/Types/ListData.js
CHANGED
|
@@ -7,6 +7,7 @@ class ListData {
|
|
|
7
7
|
this.skip = obj.skip;
|
|
8
8
|
this.limit = obj.limit;
|
|
9
9
|
this.hasMore = obj.hasMore;
|
|
10
|
+
this.isCountCapped = obj.isCountCapped;
|
|
10
11
|
}
|
|
11
12
|
toJSON() {
|
|
12
13
|
const json = {
|
|
@@ -18,6 +19,9 @@ class ListData {
|
|
|
18
19
|
if (this.hasMore !== undefined) {
|
|
19
20
|
json["hasMore"] = this.hasMore;
|
|
20
21
|
}
|
|
22
|
+
if (this.isCountCapped) {
|
|
23
|
+
json["isCountCapped"] = true;
|
|
24
|
+
}
|
|
21
25
|
return json;
|
|
22
26
|
}
|
|
23
27
|
}
|
|
@@ -73,10 +73,10 @@ class MonitorCriteria extends DatabaseProperty_1.default {
|
|
|
73
73
|
}
|
|
74
74
|
static getValidationError(value, monitorType) {
|
|
75
75
|
if (!value.data) {
|
|
76
|
-
return "
|
|
76
|
+
return "Criteria are required";
|
|
77
77
|
}
|
|
78
78
|
if (value.data.monitorCriteriaInstanceArray.length === 0) {
|
|
79
|
-
return "
|
|
79
|
+
return "Criteria are required";
|
|
80
80
|
}
|
|
81
81
|
for (const criteria of value.data.monitorCriteriaInstanceArray) {
|
|
82
82
|
if (MonitorCriteriaInstance_1.default.getValidationError(criteria, monitorType)) {
|
|
@@ -132,6 +132,15 @@ class MonitorCriteriaInstance extends DatabaseProperty_1.default {
|
|
|
132
132
|
* Dashboard/scripts/i18n/ExtractStrings.ts reads this file as a "keys"
|
|
133
133
|
* root: every template passed to translateTemplate, or marked with
|
|
134
134
|
* translationKey, is a key of the Dashboard's locale files.
|
|
135
|
+
*
|
|
136
|
+
* The server writes them in a person's language too, when it makes a
|
|
137
|
+
* monitor for them (Ask AI's set_up_website_monitoring, #7247): this file
|
|
138
|
+
* is one of the server locale set's DASHBOARD_SHARED_TEXT_SOURCES
|
|
139
|
+
* (Common/Scripts/I18n/ServerLocales), so after changing a sentence here
|
|
140
|
+
* and translating it in the Dashboard's files, run
|
|
141
|
+
* `npm run i18n:server-sync` from the repository's root: it copies the
|
|
142
|
+
* Dashboard's wording into Common/Server/Locales, and
|
|
143
|
+
* Tests/Server/Locales/ServerLocales fails until it is run.
|
|
135
144
|
*/
|
|
136
145
|
static getWordsTranslator(translator) {
|
|
137
146
|
return translator || ENGLISH_WORDS;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare enum MonitorNotCheckedReason {
|
|
2
|
+
MonitoringOff = "monitoringOff",
|
|
3
|
+
MonitorArchived = "monitorArchived"
|
|
4
|
+
}
|
|
5
|
+
export default MonitorNotCheckedReason;
|
|
6
|
+
export declare const MONITOR_NOT_CHECKED_REASONS: ReadonlyArray<MonitorNotCheckedReason>;
|
|
7
|
+
export declare function isMonitorNotCheckedReason(value: unknown): value is MonitorNotCheckedReason;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare enum MonitorNotCheckedReason {
|
|
2
|
+
MonitoringOff = "monitoringOff",
|
|
3
|
+
MonitorArchived = "monitorArchived"
|
|
4
|
+
}
|
|
5
|
+
export default MonitorNotCheckedReason;
|
|
6
|
+
export declare const MONITOR_NOT_CHECKED_REASONS: ReadonlyArray<MonitorNotCheckedReason>;
|
|
7
|
+
export declare function isMonitorNotCheckedReason(value: unknown): value is MonitorNotCheckedReason;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MONITOR_NOT_CHECKED_REASONS = void 0;
|
|
4
|
+
exports.isMonitorNotCheckedReason = isMonitorNotCheckedReason;
|
|
5
|
+
/*
|
|
6
|
+
* Why nothing checks a monitor, when nothing does: its monitoring is turned
|
|
7
|
+
* off (`disableActiveMonitoring`), or it is archived. A monitor that is
|
|
8
|
+
* checked has no reason at all.
|
|
9
|
+
*
|
|
10
|
+
* Decided by MonitoringOff.getNotCheckedReason (Utils/Monitor/MonitoringOff),
|
|
11
|
+
* where archived wins over turned off: unarchiving is what puts the monitor
|
|
12
|
+
* back, and its switch only matters after that. The values travel in JSON
|
|
13
|
+
* (the Network Map's device nodes carry one - NetworkTopology's
|
|
14
|
+
* NetworkTopologyMonitorNotChecked), so they are words, not numbers, and
|
|
15
|
+
* never change once written.
|
|
16
|
+
*/
|
|
17
|
+
var MonitorNotCheckedReason;
|
|
18
|
+
(function (MonitorNotCheckedReason) {
|
|
19
|
+
MonitorNotCheckedReason["MonitoringOff"] = "monitoringOff";
|
|
20
|
+
MonitorNotCheckedReason["MonitorArchived"] = "monitorArchived";
|
|
21
|
+
})(MonitorNotCheckedReason || (MonitorNotCheckedReason = {}));
|
|
22
|
+
exports.default = MonitorNotCheckedReason;
|
|
23
|
+
// Every reason, in the order a reader of a payload should accept them.
|
|
24
|
+
exports.MONITOR_NOT_CHECKED_REASONS = [
|
|
25
|
+
MonitorNotCheckedReason.MonitoringOff,
|
|
26
|
+
MonitorNotCheckedReason.MonitorArchived,
|
|
27
|
+
];
|
|
28
|
+
/*
|
|
29
|
+
* Whether a value read from a payload is one of the reasons. A payload from
|
|
30
|
+
* a newer or an older server may carry anything, so a reader asks this
|
|
31
|
+
* before it names a reason.
|
|
32
|
+
*/
|
|
33
|
+
function isMonitorNotCheckedReason(value) {
|
|
34
|
+
return (typeof value === "string" &&
|
|
35
|
+
exports.MONITOR_NOT_CHECKED_REASONS.includes(value));
|
|
36
|
+
}
|
|
@@ -636,7 +636,7 @@ class MonitorStep extends DatabaseProperty_1.default {
|
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
638
|
if (!value.data.monitorCriteria) {
|
|
639
|
-
return "
|
|
639
|
+
return "Criteria are required";
|
|
640
640
|
}
|
|
641
641
|
if (MonitorCriteria_1.default.getValidationError(value.data.monitorCriteria, monitorType)) {
|
|
642
642
|
return MonitorCriteria_1.default.getValidationError(value.data.monitorCriteria, monitorType);
|
|
@@ -9,6 +9,12 @@ export interface MonitorTemplateSyncField {
|
|
|
9
9
|
* named fields can be preserved; criteria and step identities always sync.
|
|
10
10
|
* Some options preserve related values together to keep credentials and
|
|
11
11
|
* resource selectors consistent.
|
|
12
|
+
*
|
|
13
|
+
* Each field's label and description is a translationKey: the Template sync
|
|
14
|
+
* settings card and its summary line say them in the reader's language (the
|
|
15
|
+
* Dashboard's extractor reads this file as a "keys" root). A field's path is
|
|
16
|
+
* never one: templates store it in doNotSyncFields, and parse() reads it back
|
|
17
|
+
* as written.
|
|
12
18
|
*/
|
|
13
19
|
export default class MonitorTemplateSyncFieldUtil {
|
|
14
20
|
static getFields(monitorType: MonitorType): Array<MonitorTemplateSyncField>;
|
|
@@ -9,6 +9,12 @@ export interface MonitorTemplateSyncField {
|
|
|
9
9
|
* named fields can be preserved; criteria and step identities always sync.
|
|
10
10
|
* Some options preserve related values together to keep credentials and
|
|
11
11
|
* resource selectors consistent.
|
|
12
|
+
*
|
|
13
|
+
* Each field's label and description is a translationKey: the Template sync
|
|
14
|
+
* settings card and its summary line say them in the reader's language (the
|
|
15
|
+
* Dashboard's extractor reads this file as a "keys" root). A field's path is
|
|
16
|
+
* never one: templates store it in doNotSyncFields, and parse() reads it back
|
|
17
|
+
* as written.
|
|
12
18
|
*/
|
|
13
19
|
export default class MonitorTemplateSyncFieldUtil {
|
|
14
20
|
static getFields(monitorType: MonitorType): Array<MonitorTemplateSyncField>;
|