@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,397 @@
|
|
|
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.SAMPLE_DASHBOARD = exports.SAMPLE_SLO = exports.SAMPLE_SERVICE = exports.SAMPLE_MAINTENANCE = exports.SAMPLE_ON_CALL = exports.SAMPLE_ALERTS = exports.SampleAlertSeverity = exports.SampleAlertState = exports.SAMPLE_INCIDENTS = exports.SampleIncidentSeverity = exports.SampleIncidentState = exports.SAMPLE_STATUS_PAGE = exports.SAMPLE_STATUS_PAGE_GROUPS = exports.SAMPLE_MONITORS = exports.SampleMonitorStatus = exports.SAMPLE_MONITOR_HISTORY_DAYS = exports.MINUTES_IN_A_DAY = void 0;
|
|
7
|
+
const MonitorType_1 = __importDefault(require("../Monitor/MonitorType"));
|
|
8
|
+
/*
|
|
9
|
+
* WHAT A SAMPLE PROJECT HOLDS (issue #6808): "Acme Shop", a small online
|
|
10
|
+
* shop, with one story told through every Essentials product and the
|
|
11
|
+
* telemetry of one service.
|
|
12
|
+
*
|
|
13
|
+
* Ten minutes ago its checkout got slow. A monitor went Degraded, an
|
|
14
|
+
* incident was declared, the on-call policy paged the engineer on call,
|
|
15
|
+
* Maya, who acknowledged it four minutes later and is looking into it;
|
|
16
|
+
* the status page says so to customers. The service behind checkout shows
|
|
17
|
+
* it too: its latency and errors climb in its metrics, its traces and its
|
|
18
|
+
* logs. Two earlier incidents were resolved, one with a postmortem; a few
|
|
19
|
+
* alerts fired; a database upgrade is scheduled; an SLO counts what the
|
|
20
|
+
* slow checkout costs.
|
|
21
|
+
*
|
|
22
|
+
* Every moment is a number of minutes before the sample is made, so it
|
|
23
|
+
* always reads as now, whenever it is made (SampleProjectSeeder adds them
|
|
24
|
+
* to the moment it runs). Pure: the server and the tests read it.
|
|
25
|
+
*/
|
|
26
|
+
exports.MINUTES_IN_A_DAY = 24 * 60;
|
|
27
|
+
// How far back the monitors' history reaches.
|
|
28
|
+
exports.SAMPLE_MONITOR_HISTORY_DAYS = 30;
|
|
29
|
+
var SampleMonitorStatus;
|
|
30
|
+
(function (SampleMonitorStatus) {
|
|
31
|
+
SampleMonitorStatus["Operational"] = "Operational";
|
|
32
|
+
SampleMonitorStatus["Degraded"] = "Degraded";
|
|
33
|
+
SampleMonitorStatus["Offline"] = "Offline";
|
|
34
|
+
})(SampleMonitorStatus || (exports.SampleMonitorStatus = SampleMonitorStatus = {}));
|
|
35
|
+
exports.SAMPLE_MONITORS = [
|
|
36
|
+
{
|
|
37
|
+
key: "storefront",
|
|
38
|
+
name: "Storefront",
|
|
39
|
+
description: "The shop's home page.",
|
|
40
|
+
monitorType: MonitorType_1.default.Website,
|
|
41
|
+
destination: "https://shop.example.com",
|
|
42
|
+
port: null,
|
|
43
|
+
outages: [],
|
|
44
|
+
statusPageGroup: "Website",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
key: "checkout",
|
|
48
|
+
name: "Checkout",
|
|
49
|
+
description: "The page customers pay on.",
|
|
50
|
+
monitorType: MonitorType_1.default.Website,
|
|
51
|
+
destination: "https://shop.example.com/checkout",
|
|
52
|
+
port: null,
|
|
53
|
+
outages: [
|
|
54
|
+
{
|
|
55
|
+
status: SampleMonitorStatus.Offline,
|
|
56
|
+
startsMinutesAgo: 3 * exports.MINUTES_IN_A_DAY + 2,
|
|
57
|
+
endsMinutesAgo: 3 * exports.MINUTES_IN_A_DAY - 40,
|
|
58
|
+
rootCause: "Checkout answered 502 Bad Gateway after release 2.14 went out.",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
status: SampleMonitorStatus.Degraded,
|
|
62
|
+
startsMinutesAgo: 27,
|
|
63
|
+
endsMinutesAgo: null,
|
|
64
|
+
rootCause: "Checkout took longer than 2 seconds to answer.",
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
statusPageGroup: "Website",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
key: "product-images",
|
|
71
|
+
name: "Product Images",
|
|
72
|
+
description: "The CDN that serves product photos.",
|
|
73
|
+
monitorType: MonitorType_1.default.Website,
|
|
74
|
+
destination: "https://images.shop.example.com",
|
|
75
|
+
port: null,
|
|
76
|
+
outages: [],
|
|
77
|
+
statusPageGroup: "Website",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
key: "payments-api",
|
|
81
|
+
name: "Payments API",
|
|
82
|
+
description: "Takes card payments for checkout.",
|
|
83
|
+
monitorType: MonitorType_1.default.API,
|
|
84
|
+
destination: "https://api.shop.example.com/payments/health",
|
|
85
|
+
port: null,
|
|
86
|
+
outages: [
|
|
87
|
+
{
|
|
88
|
+
status: SampleMonitorStatus.Degraded,
|
|
89
|
+
startsMinutesAgo: 9 * exports.MINUTES_IN_A_DAY + 4,
|
|
90
|
+
endsMinutesAgo: 9 * exports.MINUTES_IN_A_DAY - 56,
|
|
91
|
+
rootCause: "The card processor took more than 5 seconds to answer.",
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
statusPageGroup: "API",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
key: "search-api",
|
|
98
|
+
name: "Search API",
|
|
99
|
+
description: "Answers product searches.",
|
|
100
|
+
monitorType: MonitorType_1.default.API,
|
|
101
|
+
destination: "https://api.shop.example.com/search/health",
|
|
102
|
+
port: null,
|
|
103
|
+
outages: [],
|
|
104
|
+
statusPageGroup: "API",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
key: "database",
|
|
108
|
+
name: "Database Host",
|
|
109
|
+
description: "The primary PostgreSQL server.",
|
|
110
|
+
monitorType: MonitorType_1.default.Ping,
|
|
111
|
+
destination: "db-1.shop.example.com",
|
|
112
|
+
port: null,
|
|
113
|
+
outages: [],
|
|
114
|
+
statusPageGroup: null,
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
key: "cache",
|
|
118
|
+
name: "Redis Cache",
|
|
119
|
+
description: "Sessions and carts.",
|
|
120
|
+
monitorType: MonitorType_1.default.Port,
|
|
121
|
+
destination: "cache-1.shop.example.com",
|
|
122
|
+
port: 6379,
|
|
123
|
+
outages: [],
|
|
124
|
+
statusPageGroup: null,
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
key: "certificate",
|
|
128
|
+
name: "Shop Certificate",
|
|
129
|
+
description: "The TLS certificate of shop.example.com.",
|
|
130
|
+
monitorType: MonitorType_1.default.SSLCertificate,
|
|
131
|
+
destination: "https://shop.example.com",
|
|
132
|
+
port: null,
|
|
133
|
+
outages: [],
|
|
134
|
+
statusPageGroup: null,
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
key: "dns",
|
|
138
|
+
name: "Shop DNS",
|
|
139
|
+
description: "Resolves shop.example.com.",
|
|
140
|
+
monitorType: MonitorType_1.default.DNS,
|
|
141
|
+
destination: "shop.example.com",
|
|
142
|
+
port: null,
|
|
143
|
+
outages: [],
|
|
144
|
+
statusPageGroup: null,
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
key: "nightly-backup",
|
|
148
|
+
name: "Nightly Backup",
|
|
149
|
+
description: "The backup job reports here when it finishes.",
|
|
150
|
+
monitorType: MonitorType_1.default.IncomingRequest,
|
|
151
|
+
destination: null,
|
|
152
|
+
port: null,
|
|
153
|
+
outages: [],
|
|
154
|
+
statusPageGroup: null,
|
|
155
|
+
},
|
|
156
|
+
];
|
|
157
|
+
// The groups of the sample's status page, in order.
|
|
158
|
+
exports.SAMPLE_STATUS_PAGE_GROUPS = [
|
|
159
|
+
"Website",
|
|
160
|
+
"API",
|
|
161
|
+
];
|
|
162
|
+
exports.SAMPLE_STATUS_PAGE = {
|
|
163
|
+
name: "Acme Shop Status",
|
|
164
|
+
description: "What customers see: the shop, its checkout and its APIs.",
|
|
165
|
+
pageTitle: "Acme Shop Status",
|
|
166
|
+
pageDescription: "Live status of the Acme Shop website and APIs.",
|
|
167
|
+
};
|
|
168
|
+
var SampleIncidentState;
|
|
169
|
+
(function (SampleIncidentState) {
|
|
170
|
+
SampleIncidentState["Identified"] = "Identified";
|
|
171
|
+
SampleIncidentState["Acknowledged"] = "Acknowledged";
|
|
172
|
+
SampleIncidentState["Resolved"] = "Resolved";
|
|
173
|
+
})(SampleIncidentState || (exports.SampleIncidentState = SampleIncidentState = {}));
|
|
174
|
+
var SampleIncidentSeverity;
|
|
175
|
+
(function (SampleIncidentSeverity) {
|
|
176
|
+
SampleIncidentSeverity["Critical"] = "Critical Incident";
|
|
177
|
+
SampleIncidentSeverity["Major"] = "Major Incident";
|
|
178
|
+
SampleIncidentSeverity["Minor"] = "Minor Incident";
|
|
179
|
+
})(SampleIncidentSeverity || (exports.SampleIncidentSeverity = SampleIncidentSeverity = {}));
|
|
180
|
+
exports.SAMPLE_INCIDENTS = [
|
|
181
|
+
{
|
|
182
|
+
key: "payments-timeouts",
|
|
183
|
+
title: "Payments API timing out",
|
|
184
|
+
description: "Card payments took more than 5 seconds, and some checkouts failed.",
|
|
185
|
+
severity: SampleIncidentSeverity.Major,
|
|
186
|
+
monitorKeys: ["payments-api"],
|
|
187
|
+
declaredMinutesAgo: 9 * exports.MINUTES_IN_A_DAY + 2,
|
|
188
|
+
states: [
|
|
189
|
+
{
|
|
190
|
+
state: SampleIncidentState.Identified,
|
|
191
|
+
minutesAgo: 9 * exports.MINUTES_IN_A_DAY + 2,
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
state: SampleIncidentState.Acknowledged,
|
|
195
|
+
minutesAgo: 9 * exports.MINUTES_IN_A_DAY - 4,
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
state: SampleIncidentState.Resolved,
|
|
199
|
+
minutesAgo: 9 * exports.MINUTES_IN_A_DAY - 56,
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
internalNotes: [
|
|
203
|
+
{
|
|
204
|
+
minutesAgo: 9 * exports.MINUTES_IN_A_DAY - 10,
|
|
205
|
+
authorHandle: "sam.okafor",
|
|
206
|
+
note: "The card processor's status page shows degraded performance in our region. Raising our timeout will not help; switching traffic to the backup processor.",
|
|
207
|
+
},
|
|
208
|
+
],
|
|
209
|
+
publicNotes: [
|
|
210
|
+
{
|
|
211
|
+
minutesAgo: 9 * exports.MINUTES_IN_A_DAY - 8,
|
|
212
|
+
authorHandle: "sam.okafor",
|
|
213
|
+
note: "Some card payments are slow or failing. We are moving payments to our backup processor.",
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
minutesAgo: 9 * exports.MINUTES_IN_A_DAY - 56,
|
|
217
|
+
authorHandle: "sam.okafor",
|
|
218
|
+
note: "Payments are working normally again.",
|
|
219
|
+
},
|
|
220
|
+
],
|
|
221
|
+
rootCause: "The card processor was slow in our region, and checkout waited for it with no fallback.",
|
|
222
|
+
postmortemNote: [
|
|
223
|
+
"## Summary",
|
|
224
|
+
"",
|
|
225
|
+
"For 58 minutes, card payments took more than 5 seconds and about 4% of checkouts failed.",
|
|
226
|
+
"",
|
|
227
|
+
"## What happened",
|
|
228
|
+
"",
|
|
229
|
+
"- The card processor slowed down in our region.",
|
|
230
|
+
"- The Payments API monitor went Degraded and paged the on-call engineer.",
|
|
231
|
+
"- We switched payments to the backup processor, and they recovered.",
|
|
232
|
+
"",
|
|
233
|
+
"## What we will change",
|
|
234
|
+
"",
|
|
235
|
+
"- Fall back to the backup processor automatically after 2 seconds.",
|
|
236
|
+
"- Alert on payment latency, not only on the health check.",
|
|
237
|
+
].join("\n"),
|
|
238
|
+
isPagedByOnCall: false,
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
key: "checkout-release-errors",
|
|
242
|
+
title: "Checkout errors after release 2.14",
|
|
243
|
+
description: "Checkout answered 502 Bad Gateway for every customer after release 2.14.",
|
|
244
|
+
severity: SampleIncidentSeverity.Critical,
|
|
245
|
+
monitorKeys: ["checkout"],
|
|
246
|
+
declaredMinutesAgo: 3 * exports.MINUTES_IN_A_DAY + 1,
|
|
247
|
+
states: [
|
|
248
|
+
{
|
|
249
|
+
state: SampleIncidentState.Identified,
|
|
250
|
+
minutesAgo: 3 * exports.MINUTES_IN_A_DAY + 1,
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
state: SampleIncidentState.Acknowledged,
|
|
254
|
+
minutesAgo: 3 * exports.MINUTES_IN_A_DAY - 2,
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
state: SampleIncidentState.Resolved,
|
|
258
|
+
minutesAgo: 3 * exports.MINUTES_IN_A_DAY - 40,
|
|
259
|
+
},
|
|
260
|
+
],
|
|
261
|
+
internalNotes: [
|
|
262
|
+
{
|
|
263
|
+
minutesAgo: 3 * exports.MINUTES_IN_A_DAY - 12,
|
|
264
|
+
authorHandle: "lena.fischer",
|
|
265
|
+
note: "Release 2.14 changed the checkout service's port. Rolling back.",
|
|
266
|
+
},
|
|
267
|
+
],
|
|
268
|
+
publicNotes: [
|
|
269
|
+
{
|
|
270
|
+
minutesAgo: 3 * exports.MINUTES_IN_A_DAY - 5,
|
|
271
|
+
authorHandle: "lena.fischer",
|
|
272
|
+
note: "Checkout is failing for every customer. We have found the cause and are rolling back.",
|
|
273
|
+
},
|
|
274
|
+
],
|
|
275
|
+
rootCause: "Release 2.14 moved checkout to a port the load balancer did not know.",
|
|
276
|
+
postmortemNote: null,
|
|
277
|
+
isPagedByOnCall: false,
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
key: "checkout-slow",
|
|
281
|
+
title: "Checkout is slow for some customers",
|
|
282
|
+
description: "Checkout takes more than 2 seconds for about one customer in five. Payments still go through.",
|
|
283
|
+
severity: SampleIncidentSeverity.Major,
|
|
284
|
+
monitorKeys: ["checkout"],
|
|
285
|
+
declaredMinutesAgo: 25,
|
|
286
|
+
states: [
|
|
287
|
+
{ state: SampleIncidentState.Identified, minutesAgo: 25 },
|
|
288
|
+
{ state: SampleIncidentState.Acknowledged, minutesAgo: 21 },
|
|
289
|
+
],
|
|
290
|
+
internalNotes: [
|
|
291
|
+
{
|
|
292
|
+
minutesAgo: 18,
|
|
293
|
+
authorHandle: "maya.chen",
|
|
294
|
+
note: "checkout-api's p95 latency went from 300 ms to 1.8 s at the same time as a spike in database connections. Looking at the slow query log.",
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
minutesAgo: 9,
|
|
298
|
+
authorHandle: "maya.chen",
|
|
299
|
+
note: "Found it: the new discount query scans the whole orders table. Adding an index now.",
|
|
300
|
+
},
|
|
301
|
+
],
|
|
302
|
+
publicNotes: [
|
|
303
|
+
{
|
|
304
|
+
minutesAgo: 15,
|
|
305
|
+
authorHandle: "maya.chen",
|
|
306
|
+
note: "Checkout is slow for some customers. Payments still go through, and we are working on a fix.",
|
|
307
|
+
},
|
|
308
|
+
],
|
|
309
|
+
rootCause: null,
|
|
310
|
+
postmortemNote: null,
|
|
311
|
+
isPagedByOnCall: true,
|
|
312
|
+
},
|
|
313
|
+
];
|
|
314
|
+
var SampleAlertState;
|
|
315
|
+
(function (SampleAlertState) {
|
|
316
|
+
SampleAlertState["Identified"] = "Identified";
|
|
317
|
+
SampleAlertState["Acknowledged"] = "Acknowledged";
|
|
318
|
+
SampleAlertState["Resolved"] = "Resolved";
|
|
319
|
+
})(SampleAlertState || (exports.SampleAlertState = SampleAlertState = {}));
|
|
320
|
+
var SampleAlertSeverity;
|
|
321
|
+
(function (SampleAlertSeverity) {
|
|
322
|
+
SampleAlertSeverity["High"] = "High";
|
|
323
|
+
SampleAlertSeverity["Low"] = "Low";
|
|
324
|
+
})(SampleAlertSeverity || (exports.SampleAlertSeverity = SampleAlertSeverity = {}));
|
|
325
|
+
exports.SAMPLE_ALERTS = [
|
|
326
|
+
{
|
|
327
|
+
key: "checkout-error-rate",
|
|
328
|
+
title: "Error rate above 2% on checkout-api",
|
|
329
|
+
description: "checkout-api answered 5xx to more than 2% of requests for 5 minutes.",
|
|
330
|
+
severity: SampleAlertSeverity.High,
|
|
331
|
+
monitorKey: "checkout",
|
|
332
|
+
states: [
|
|
333
|
+
{ state: SampleAlertState.Identified, minutesAgo: 28 },
|
|
334
|
+
{ state: SampleAlertState.Acknowledged, minutesAgo: 22 },
|
|
335
|
+
],
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
key: "checkout-latency",
|
|
339
|
+
title: "p95 latency above 800 ms on checkout-api",
|
|
340
|
+
description: "checkout-api's p95 latency stayed above 800 ms for 5 minutes.",
|
|
341
|
+
severity: SampleAlertSeverity.High,
|
|
342
|
+
monitorKey: "checkout",
|
|
343
|
+
states: [{ state: SampleAlertState.Identified, minutesAgo: 26 }],
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
key: "database-disk",
|
|
347
|
+
title: "Disk space below 15% on db-1",
|
|
348
|
+
description: "The database host's data disk had less than 15% free.",
|
|
349
|
+
severity: SampleAlertSeverity.Low,
|
|
350
|
+
monitorKey: "database",
|
|
351
|
+
states: [
|
|
352
|
+
{ state: SampleAlertState.Identified, minutesAgo: 2 * exports.MINUTES_IN_A_DAY },
|
|
353
|
+
{
|
|
354
|
+
state: SampleAlertState.Resolved,
|
|
355
|
+
minutesAgo: 2 * exports.MINUTES_IN_A_DAY - 35,
|
|
356
|
+
},
|
|
357
|
+
],
|
|
358
|
+
},
|
|
359
|
+
];
|
|
360
|
+
exports.SAMPLE_ON_CALL = {
|
|
361
|
+
policyName: "Acme Shop Production",
|
|
362
|
+
policyDescription: "Pages whoever is on call for the shop, then the engineering manager.",
|
|
363
|
+
scheduleName: "Shop Engineers",
|
|
364
|
+
scheduleDescription: "A weekly rotation of the shop's engineers.",
|
|
365
|
+
layerName: "Weekly Rotation",
|
|
366
|
+
// The engineers of the rotation, in turn: the first is on call this week.
|
|
367
|
+
rotationHandles: ["maya.chen", "sam.okafor", "lena.fischer"],
|
|
368
|
+
firstLevelName: "Engineer on call",
|
|
369
|
+
secondLevelName: "Engineering manager",
|
|
370
|
+
secondLevelHandle: "diego.alvarez",
|
|
371
|
+
escalateAfterInMinutes: 10,
|
|
372
|
+
// How long the engineer on call took to acknowledge the open incident.
|
|
373
|
+
acknowledgedAfterMinutes: 4,
|
|
374
|
+
};
|
|
375
|
+
exports.SAMPLE_MAINTENANCE = {
|
|
376
|
+
title: "Database upgrade to PostgreSQL 17",
|
|
377
|
+
description: "Checkout may be slow for up to 15 minutes while the database fails over.",
|
|
378
|
+
// From 3 days after the sample is made, for an hour.
|
|
379
|
+
startsInMinutes: 3 * exports.MINUTES_IN_A_DAY,
|
|
380
|
+
durationInMinutes: 60,
|
|
381
|
+
monitorKeys: ["checkout", "database"],
|
|
382
|
+
};
|
|
383
|
+
exports.SAMPLE_SERVICE = {
|
|
384
|
+
name: "checkout-api",
|
|
385
|
+
description: "Takes the cart, prices it and asks the Payments API to charge it.",
|
|
386
|
+
};
|
|
387
|
+
exports.SAMPLE_SLO = {
|
|
388
|
+
name: "Checkout availability",
|
|
389
|
+
description: "Checkout is up 99.9% of the time, over 30 days.",
|
|
390
|
+
monitorKey: "checkout",
|
|
391
|
+
targetPercentage: 99.9,
|
|
392
|
+
windowDays: 30,
|
|
393
|
+
};
|
|
394
|
+
exports.SAMPLE_DASHBOARD = {
|
|
395
|
+
name: "Checkout Service",
|
|
396
|
+
description: "Request rate, latency, errors and resources of checkout-api.",
|
|
397
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import commonJsModule from "./SampleProjectContent.js";
|
|
2
|
+
export const MINUTES_IN_A_DAY = commonJsModule.MINUTES_IN_A_DAY;
|
|
3
|
+
export const SAMPLE_ALERTS = commonJsModule.SAMPLE_ALERTS;
|
|
4
|
+
export const SAMPLE_DASHBOARD = commonJsModule.SAMPLE_DASHBOARD;
|
|
5
|
+
export const SAMPLE_INCIDENTS = commonJsModule.SAMPLE_INCIDENTS;
|
|
6
|
+
export const SAMPLE_MAINTENANCE = commonJsModule.SAMPLE_MAINTENANCE;
|
|
7
|
+
export const SAMPLE_MONITORS = commonJsModule.SAMPLE_MONITORS;
|
|
8
|
+
export const SAMPLE_MONITOR_HISTORY_DAYS = commonJsModule.SAMPLE_MONITOR_HISTORY_DAYS;
|
|
9
|
+
export const SAMPLE_ON_CALL = commonJsModule.SAMPLE_ON_CALL;
|
|
10
|
+
export const SAMPLE_SERVICE = commonJsModule.SAMPLE_SERVICE;
|
|
11
|
+
export const SAMPLE_SLO = commonJsModule.SAMPLE_SLO;
|
|
12
|
+
export const SAMPLE_STATUS_PAGE = commonJsModule.SAMPLE_STATUS_PAGE;
|
|
13
|
+
export const SAMPLE_STATUS_PAGE_GROUPS = commonJsModule.SAMPLE_STATUS_PAGE_GROUPS;
|
|
14
|
+
export const SampleAlertSeverity = commonJsModule.SampleAlertSeverity;
|
|
15
|
+
export const SampleAlertState = commonJsModule.SampleAlertState;
|
|
16
|
+
export const SampleIncidentSeverity = commonJsModule.SampleIncidentSeverity;
|
|
17
|
+
export const SampleIncidentState = commonJsModule.SampleIncidentState;
|
|
18
|
+
export const SampleMonitorStatus = commonJsModule.SampleMonitorStatus;
|
|
@@ -145,7 +145,7 @@ class MaintenanceCalendar {
|
|
|
145
145
|
static getCalendarDescription(data) {
|
|
146
146
|
const name = MaintenanceCalendar.cleanLine(data.name);
|
|
147
147
|
const intro = data.audience === MaintenanceCalendarAudience.Team
|
|
148
|
-
? `Every
|
|
148
|
+
? `Every maintenance event in ${name || "this project"}.`
|
|
149
149
|
: `Scheduled maintenance on ${name || "this status page"}.`;
|
|
150
150
|
const notes = (data.notes || [])
|
|
151
151
|
.map((note) => {
|
|
@@ -16,8 +16,13 @@ export interface ServerSendingHealthEntry {
|
|
|
16
16
|
lastFailedAt: string | null;
|
|
17
17
|
failingSince: string | null;
|
|
18
18
|
lastFailure: string | null;
|
|
19
|
+
settingsFingerprint?: string | undefined;
|
|
19
20
|
}
|
|
20
21
|
export type ServerSendingHealth = Partial<Record<ServerSendingChannel, ServerSendingHealthEntry>>;
|
|
22
|
+
export interface ServerSendingSettingsFingerprints {
|
|
23
|
+
current: string;
|
|
24
|
+
unmarked: string;
|
|
25
|
+
}
|
|
21
26
|
export interface ServerChannelStatus {
|
|
22
27
|
channel: ServerSendingChannel;
|
|
23
28
|
state: ServerSendingState;
|
|
@@ -41,6 +46,8 @@ export default class ServerSendingStatusUtil {
|
|
|
41
46
|
static readEntry(value: unknown): ServerSendingHealthEntry;
|
|
42
47
|
static readHealth(value: unknown): ServerSendingHealth;
|
|
43
48
|
static getEntry(health: ServerSendingHealth, channel: ServerSendingChannel): ServerSendingHealthEntry;
|
|
49
|
+
static getCurrentEntry(health: ServerSendingHealth, channel: ServerSendingChannel, fingerprints: ServerSendingSettingsFingerprints | null): ServerSendingHealthEntry;
|
|
50
|
+
static withSettingsFingerprint(entry: ServerSendingHealthEntry, fingerprints: ServerSendingSettingsFingerprints | null): ServerSendingHealthEntry;
|
|
44
51
|
static getState(data: {
|
|
45
52
|
isSetUp: boolean;
|
|
46
53
|
entry: ServerSendingHealthEntry;
|
|
@@ -16,8 +16,13 @@ export interface ServerSendingHealthEntry {
|
|
|
16
16
|
lastFailedAt: string | null;
|
|
17
17
|
failingSince: string | null;
|
|
18
18
|
lastFailure: string | null;
|
|
19
|
+
settingsFingerprint?: string | undefined;
|
|
19
20
|
}
|
|
20
21
|
export type ServerSendingHealth = Partial<Record<ServerSendingChannel, ServerSendingHealthEntry>>;
|
|
22
|
+
export interface ServerSendingSettingsFingerprints {
|
|
23
|
+
current: string;
|
|
24
|
+
unmarked: string;
|
|
25
|
+
}
|
|
21
26
|
export interface ServerChannelStatus {
|
|
22
27
|
channel: ServerSendingChannel;
|
|
23
28
|
state: ServerSendingState;
|
|
@@ -41,6 +46,8 @@ export default class ServerSendingStatusUtil {
|
|
|
41
46
|
static readEntry(value: unknown): ServerSendingHealthEntry;
|
|
42
47
|
static readHealth(value: unknown): ServerSendingHealth;
|
|
43
48
|
static getEntry(health: ServerSendingHealth, channel: ServerSendingChannel): ServerSendingHealthEntry;
|
|
49
|
+
static getCurrentEntry(health: ServerSendingHealth, channel: ServerSendingChannel, fingerprints: ServerSendingSettingsFingerprints | null): ServerSendingHealthEntry;
|
|
50
|
+
static withSettingsFingerprint(entry: ServerSendingHealthEntry, fingerprints: ServerSendingSettingsFingerprints | null): ServerSendingHealthEntry;
|
|
44
51
|
static getState(data: {
|
|
45
52
|
isSetUp: boolean;
|
|
46
53
|
entry: ServerSendingHealthEntry;
|
|
@@ -22,7 +22,10 @@
|
|
|
22
22
|
* from its settings - the same rules the Notification service sends by - and
|
|
23
23
|
* from what the server remembers of its own last sends (GlobalConfig.
|
|
24
24
|
* serverSendingHealth, written by the senders). Saving a channel's settings
|
|
25
|
-
* starts it again at untested
|
|
25
|
+
* starts it again at untested, and so do the settings of SMS, calls or
|
|
26
|
+
* email changing without a save, when the GLOBAL_TWILIO_ or GLOBAL_EMAIL_
|
|
27
|
+
* environment variables set them: what was learned with the settings
|
|
28
|
+
* before is not read as these ones' (settingsFingerprint).
|
|
26
29
|
*
|
|
27
30
|
* Who reads what:
|
|
28
31
|
*
|
|
@@ -95,6 +98,17 @@ const readText = (value) => {
|
|
|
95
98
|
const text = value.trim();
|
|
96
99
|
return text ? text.slice(0, exports.MAX_SERVER_SENDING_FAILURE_LENGTH) : null;
|
|
97
100
|
};
|
|
101
|
+
// The longest fingerprint kept: the server writes 64 hex characters.
|
|
102
|
+
const MAX_SETTINGS_FINGERPRINT_LENGTH = 128;
|
|
103
|
+
const readFingerprint = (value) => {
|
|
104
|
+
if (typeof value !== "string") {
|
|
105
|
+
return undefined;
|
|
106
|
+
}
|
|
107
|
+
const fingerprint = value.trim();
|
|
108
|
+
return fingerprint && fingerprint.length <= MAX_SETTINGS_FINGERPRINT_LENGTH
|
|
109
|
+
? fingerprint
|
|
110
|
+
: undefined;
|
|
111
|
+
};
|
|
98
112
|
const readCount = (value) => {
|
|
99
113
|
return typeof value === "number" && Number.isFinite(value) && value > 0
|
|
100
114
|
? Math.floor(value)
|
|
@@ -109,12 +123,17 @@ class ServerSendingStatusUtil {
|
|
|
109
123
|
if (!isObject(value)) {
|
|
110
124
|
return Object.assign({}, EMPTY_ENTRY);
|
|
111
125
|
}
|
|
112
|
-
|
|
126
|
+
const entry = {
|
|
113
127
|
lastSucceededAt: readDate(value["lastSucceededAt"]),
|
|
114
128
|
lastFailedAt: readDate(value["lastFailedAt"]),
|
|
115
129
|
failingSince: readDate(value["failingSince"]),
|
|
116
130
|
lastFailure: readText(value["lastFailure"]),
|
|
117
131
|
};
|
|
132
|
+
const settingsFingerprint = readFingerprint(value["settingsFingerprint"]);
|
|
133
|
+
if (settingsFingerprint) {
|
|
134
|
+
entry.settingsFingerprint = settingsFingerprint;
|
|
135
|
+
}
|
|
136
|
+
return entry;
|
|
118
137
|
}
|
|
119
138
|
/*
|
|
120
139
|
* What the server remembers of every channel, read from the stored
|
|
@@ -135,6 +154,34 @@ class ServerSendingStatusUtil {
|
|
|
135
154
|
static getEntry(health, channel) {
|
|
136
155
|
return health[channel] ? Object.assign({}, health[channel]) : Object.assign({}, EMPTY_ENTRY);
|
|
137
156
|
}
|
|
157
|
+
/*
|
|
158
|
+
* A channel's entry as it describes the settings the channel sends with
|
|
159
|
+
* now: one learned with other settings says nothing about these, and is
|
|
160
|
+
* read as nothing remembered (untested). An entry without a fingerprint
|
|
161
|
+
* counts as learned with `unmarked`. With no fingerprints - a channel
|
|
162
|
+
* whose settings change only when they are saved, which forgets the
|
|
163
|
+
* entry - every entry is current.
|
|
164
|
+
*/
|
|
165
|
+
static getCurrentEntry(health, channel, fingerprints) {
|
|
166
|
+
const entry = ServerSendingStatusUtil.getEntry(health, channel);
|
|
167
|
+
if (!fingerprints) {
|
|
168
|
+
return entry;
|
|
169
|
+
}
|
|
170
|
+
const learnedWith = entry.settingsFingerprint || fingerprints.unmarked;
|
|
171
|
+
return learnedWith === fingerprints.current ? entry : Object.assign({}, EMPTY_ENTRY);
|
|
172
|
+
}
|
|
173
|
+
/*
|
|
174
|
+
* The entry, marked with the settings it is learned with now: left
|
|
175
|
+
* unmarked for a channel with no fingerprints.
|
|
176
|
+
*/
|
|
177
|
+
static withSettingsFingerprint(entry, fingerprints) {
|
|
178
|
+
const marked = Object.assign({}, entry);
|
|
179
|
+
delete marked.settingsFingerprint;
|
|
180
|
+
if (fingerprints) {
|
|
181
|
+
marked.settingsFingerprint = fingerprints.current;
|
|
182
|
+
}
|
|
183
|
+
return marked;
|
|
184
|
+
}
|
|
138
185
|
/*
|
|
139
186
|
* Where a channel stands: not set up whatever it remembers, then failing
|
|
140
187
|
* while its sends fail, working once one went out, and untested before.
|
|
@@ -48,7 +48,7 @@ const ServerSendingStatus_1 = __importStar(require("../ServerSending/ServerSendi
|
|
|
48
48
|
* - required: email, HTTPS, who can sign up;
|
|
49
49
|
* - recommended: SMS and calls, a probe that reports, backups, update
|
|
50
50
|
* checks;
|
|
51
|
-
* - optional: browser push, an
|
|
51
|
+
* - optional: browser push, an LLM provider, single sign-on.
|
|
52
52
|
*
|
|
53
53
|
* Whether each is done is worked out from the server's real state on every
|
|
54
54
|
* read (Server/Utils/ServerSetup/ServerSetupChecklist reads the facts and
|
|
@@ -207,7 +207,7 @@ exports.SERVER_SETUP_CHECKS = [
|
|
|
207
207
|
{
|
|
208
208
|
id: ServerSetupCheckId.AiProvider,
|
|
209
209
|
tier: ServerSetupCheckTier.Optional,
|
|
210
|
-
title: (0, Translator_1.translationKey)("
|
|
210
|
+
title: (0, Translator_1.translationKey)("LLM provider"),
|
|
211
211
|
adminPath: exports.SERVER_SETUP_ADMIN_PATHS.llmProviders,
|
|
212
212
|
choice: null,
|
|
213
213
|
tests: [],
|
|
@@ -270,7 +270,7 @@ exports.SERVER_SETUP_STATUS_WORDS = {
|
|
|
270
270
|
[ServerSetupStatus.Done]: (0, Translator_1.translationKey)("Set up: people can get alerts as browser notifications."),
|
|
271
271
|
},
|
|
272
272
|
[ServerSetupCheckId.AiProvider]: {
|
|
273
|
-
[ServerSetupStatus.NotSetUp]: (0, Translator_1.translationKey)("Not set up: add an
|
|
273
|
+
[ServerSetupStatus.NotSetUp]: (0, Translator_1.translationKey)("Not set up: add an LLM provider so projects can use OneUptime AI."),
|
|
274
274
|
[ServerSetupStatus.Done]: (0, Translator_1.translationKey)("Set up: projects can use OneUptime AI."),
|
|
275
275
|
},
|
|
276
276
|
[ServerSetupCheckId.SingleSignOn]: {
|
|
@@ -80,7 +80,7 @@ exports.ROWS_KEPT_ON_DELETE_BY_QUERY = {
|
|
|
80
80
|
ScheduledMaintenanceStateTimeline: {
|
|
81
81
|
parentColumn: "scheduledMaintenanceId",
|
|
82
82
|
keepsHistoryInEffect: false,
|
|
83
|
-
whatStays: "each
|
|
83
|
+
whatStays: "each maintenance event's current state",
|
|
84
84
|
why: "so status pages always show it",
|
|
85
85
|
oneRowByIdCanGo: true,
|
|
86
86
|
},
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type NewIncidentNotifyDefaultColumn = "notifyStatusPageSubscribersOfNewIncidentsByDefault";
|
|
2
|
+
export declare const NEW_INCIDENT_NOTIFY_DEFAULT_COLUMN: NewIncidentNotifyDefaultColumn;
|
|
3
|
+
export interface NewIncidentNotifyDefaultSetting {
|
|
4
|
+
notifyStatusPageSubscribersOfNewIncidentsByDefault?: boolean | null | undefined;
|
|
5
|
+
}
|
|
6
|
+
export default class NewIncidentSubscriberNotificationDefault {
|
|
7
|
+
static isTickedByDefault(project: NewIncidentNotifyDefaultSetting | null | undefined): boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type NewIncidentNotifyDefaultColumn = "notifyStatusPageSubscribersOfNewIncidentsByDefault";
|
|
2
|
+
export declare const NEW_INCIDENT_NOTIFY_DEFAULT_COLUMN: NewIncidentNotifyDefaultColumn;
|
|
3
|
+
export interface NewIncidentNotifyDefaultSetting {
|
|
4
|
+
notifyStatusPageSubscribersOfNewIncidentsByDefault?: boolean | null | undefined;
|
|
5
|
+
}
|
|
6
|
+
export default class NewIncidentSubscriberNotificationDefault {
|
|
7
|
+
static isTickedByDefault(project: NewIncidentNotifyDefaultSetting | null | undefined): boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* WHETHER "NOTIFY STATUS PAGE SUBSCRIBERS" STARTS TICKED WHEN SOMEONE
|
|
4
|
+
* DECLARES AN INCIDENT (#7606).
|
|
5
|
+
*
|
|
6
|
+
* Declare New Incident asks whether status page subscribers are told about
|
|
7
|
+
* the new incident (the incident's
|
|
8
|
+
* shouldStatusPageSubscribersBeNotifiedOnIncidentCreated). The box started
|
|
9
|
+
* ticked in every project, so a team that works on an incident before anyone
|
|
10
|
+
* outside hears of it had to remember to untick it every time - and one
|
|
11
|
+
* forgotten box emailed every subscriber.
|
|
12
|
+
*
|
|
13
|
+
* Each project now says how the box starts:
|
|
14
|
+
* Project.notifyStatusPageSubscribersOfNewIncidentsByDefault, the switch
|
|
15
|
+
* "Notify status page subscribers by default" on Incidents -> Settings ->
|
|
16
|
+
* Subscriber Notifications. It is on for every project, existing and new, so
|
|
17
|
+
* nothing changes until a project owner or admin turns it off. Off, the box
|
|
18
|
+
* starts unticked, and subscribers hear about a new incident only when the
|
|
19
|
+
* person declaring it ticks the box.
|
|
20
|
+
*
|
|
21
|
+
* Only where the box starts moves. What the person declaring leaves it at is
|
|
22
|
+
* what the incident records, and everything after reads that: an incident
|
|
23
|
+
* declared without notifying stays quiet
|
|
24
|
+
* (PublicNoteSubscriberNotificationDefault).
|
|
25
|
+
*
|
|
26
|
+
* People also declare incidents where no box asks: Slack's and Microsoft
|
|
27
|
+
* Teams' Declare Incident forms, and OneUptime AI when someone asks it to.
|
|
28
|
+
* Those follow the switch too, as the box would have started
|
|
29
|
+
* (Server/Utils/StatusPage/NewIncidentSubscriberNotificationDefaultReader):
|
|
30
|
+
* off, they are declared without notifying. Incidents nobody declares by
|
|
31
|
+
* hand - by monitors, the API, Terraform, workflows or a public form - keep
|
|
32
|
+
* their own value, which notifies unless they say otherwise.
|
|
33
|
+
*
|
|
34
|
+
* Shared by the dashboard, which starts the box from it, the server, which
|
|
35
|
+
* declares the chat and AI incidents by it, and their tests.
|
|
36
|
+
*/
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.NEW_INCIDENT_NOTIFY_DEFAULT_COLUMN = void 0;
|
|
39
|
+
exports.NEW_INCIDENT_NOTIFY_DEFAULT_COLUMN = "notifyStatusPageSubscribersOfNewIncidentsByDefault";
|
|
40
|
+
class NewIncidentSubscriberNotificationDefault {
|
|
41
|
+
/*
|
|
42
|
+
* Only an explicit "off" starts the box unticked. A project that could not
|
|
43
|
+
* be read, or that holds no value, starts it ticked, as it always started:
|
|
44
|
+
* when the form cannot tell, it keeps what every project has always had.
|
|
45
|
+
*/
|
|
46
|
+
static isTickedByDefault(project) {
|
|
47
|
+
return (project === null || project === void 0 ? void 0 : project[exports.NEW_INCIDENT_NOTIFY_DEFAULT_COLUMN]) !== false;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.default = NewIncidentSubscriberNotificationDefault;
|