@oneuptime/common 14.0.110 → 14.2.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/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.d.mts +1 -0
- package/Models/DatabaseModels/Alert.d.ts +1 -0
- package/Models/DatabaseModels/Alert.js +52 -2
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.mts +2 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.d.ts +2 -0
- package/Models/DatabaseModels/AutoRemediationSuggestion.js +62 -0
- package/Models/DatabaseModels/DataStore.js +9 -0
- package/Models/DatabaseModels/EmailLog.js +2 -2
- package/Models/DatabaseModels/Form.js +3 -3
- package/Models/DatabaseModels/FormSubmission.js +4 -4
- package/Models/DatabaseModels/GlobalConfig.js +46 -45
- package/Models/DatabaseModels/Incident.d.mts +1 -0
- package/Models/DatabaseModels/Incident.d.ts +1 -0
- package/Models/DatabaseModels/Incident.js +53 -2
- package/Models/DatabaseModels/IncidentPostmortemActionItem.d.mts +31 -0
- package/Models/DatabaseModels/IncidentPostmortemActionItem.d.ts +31 -0
- package/Models/DatabaseModels/IncidentPostmortemActionItem.js +591 -0
- package/Models/DatabaseModels/IncidentPostmortemActionItem.mjs +3 -0
- package/Models/DatabaseModels/IncidentSlaRule.js +2 -2
- package/Models/DatabaseModels/Index.js +6 -0
- package/Models/DatabaseModels/InventoryItem.js +11 -0
- package/Models/DatabaseModels/Monitor.js +51 -17
- 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.js +23 -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/OnCallDutyPolicyExecutionLog.js +19 -5
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.mts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.d.ts +1 -0
- package/Models/DatabaseModels/OnCallDutyPolicyFeed.js +2 -0
- package/Models/DatabaseModels/OnCallDutyPolicyUserOverride.js +35 -7
- package/Models/DatabaseModels/OpenStackCloudCheck.js +8 -1
- package/Models/DatabaseModels/Project.d.mts +1 -0
- package/Models/DatabaseModels/Project.d.ts +1 -0
- package/Models/DatabaseModels/Project.js +46 -3
- package/Models/DatabaseModels/ProjectCallSMSConfig.js +3 -1
- package/Models/DatabaseModels/ProjectSmtpConfig.js +2 -0
- package/Models/DatabaseModels/PublicNoteApprovalRequest.js +3 -3
- package/Models/DatabaseModels/PublicNoteApprovalStep.js +1 -1
- package/Models/DatabaseModels/RunbookExecution.js +2 -2
- package/Models/DatabaseModels/RunbookRule.js +6 -6
- package/Models/DatabaseModels/ScheduledMaintenance.js +3 -3
- package/Models/DatabaseModels/ScheduledMaintenanceCalendarFeed.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceLabelRule.js +1 -1
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurement.js +7 -7
- package/Models/DatabaseModels/ScheduledMaintenanceMeasurementValue.js +1 -1
- 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 +3 -3
- package/Models/DatabaseModels/ScheduledMaintenanceReminderRule.js +4 -4
- package/Models/DatabaseModels/ScheduledMaintenanceStateTimeline.js +3 -3
- package/Models/DatabaseModels/ScheduledMaintenanceTemplate.js +5 -5
- package/Models/DatabaseModels/TeamMember.js +10 -1
- package/Models/DatabaseModels/TelemetryIngestionKey.js +1 -1
- 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 +28 -2
- package/Types/AI/AIActionWords.d.ts +28 -2
- package/Types/AI/AIActionWords.js +235 -3
- package/Types/AI/AIActionWords.mjs +8 -0
- package/Types/AI/AIChatTypes.d.mts +3 -1
- package/Types/AI/AIChatTypes.d.ts +3 -1
- package/Types/AI/AIReadTableWords.d.mts +192 -0
- package/Types/AI/AIReadTableWords.d.ts +192 -0
- package/Types/AI/AIReadTableWords.js +368 -0
- package/Types/AI/AIReadTableWords.mjs +18 -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 +48 -0
- package/Types/AI/AiRunRefusal.d.ts +48 -0
- package/Types/AI/AiRunRefusal.js +208 -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/AI/ResourceAiAccessPermissions.js +7 -18
- 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/AuditLog/AuditLogActionLabel.js +19 -9
- package/Types/BaseDatabase/AggregateBy.d.mts +16 -0
- package/Types/BaseDatabase/AggregateBy.d.ts +16 -0
- package/Types/BaseDatabase/AggregationIntervalUtil.d.mts +32 -1
- package/Types/BaseDatabase/AggregationIntervalUtil.d.ts +32 -1
- package/Types/BaseDatabase/AggregationIntervalUtil.js +199 -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/CloudResourceHealth.d.mts +30 -1
- package/Types/Cloud/CloudResourceHealth.d.ts +30 -1
- package/Types/Cloud/CloudResourceHealth.js +405 -13
- package/Types/Cloud/CloudResourceHealth.mjs +28 -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/DataCheckRefusals.d.mts +32 -0
- package/Types/DataObservability/DataCheckRefusals.d.ts +32 -0
- package/Types/DataObservability/DataCheckRefusals.js +77 -0
- package/Types/DataObservability/DataCheckRefusals.mjs +8 -0
- package/Types/Database/AccessControl/PermissionScopeNarrowing.js +4 -0
- package/Types/Date.d.mts +8 -1
- package/Types/Date.d.ts +8 -1
- package/Types/Date.js +61 -7
- package/Types/Date.mjs +1 -0
- package/Types/DateLanguage.d.mts +2 -0
- package/Types/DateLanguage.d.ts +2 -0
- package/Types/DateLanguage.js +8 -5
- package/Types/Email/EmailTemplateType.d.mts +1 -0
- package/Types/Email/EmailTemplateType.d.ts +1 -0
- package/Types/Email/EmailTemplateType.js +2 -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/EgressGuardException.js +1 -1
- package/Types/Exception/ErrorMessageRule.d.mts +1 -0
- package/Types/Exception/ErrorMessageRule.d.ts +1 -0
- package/Types/Exception/ErrorMessageRule.js +67 -13
- package/Types/Exception/ErrorMessageRule.mjs +1 -0
- package/Types/Exception/ExceptionMessages.d.mts +2 -0
- package/Types/Exception/ExceptionMessages.d.ts +2 -0
- package/Types/Exception/ExceptionMessages.js +2 -0
- package/Types/Form/FormTargetCatalog.js +2 -2
- package/Types/Form/FormTargetType.js +2 -2
- package/Types/Incident/PostmortemActionItemStatus.d.mts +17 -0
- package/Types/Incident/PostmortemActionItemStatus.d.ts +17 -0
- package/Types/Incident/PostmortemActionItemStatus.js +74 -0
- package/Types/Incident/PostmortemActionItemStatus.mjs +5 -0
- package/Types/JSONFunctions.js +10 -3
- package/Types/Link.d.mts +1 -0
- package/Types/Link.d.ts +1 -0
- package/Types/ListData.d.mts +2 -0
- package/Types/ListData.d.ts +2 -0
- package/Types/ListData.js +4 -0
- package/Types/MeaningKeys.d.mts +4 -0
- package/Types/MeaningKeys.d.ts +4 -0
- package/Types/MeaningKeys.js +74 -0
- package/Types/MeaningKeys.mjs +5 -0
- 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/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 -0
- package/Types/Monitor/WhoIsTold.d.ts +3 -0
- package/Types/Monitor/WhoIsTold.js +63 -13
- package/Types/NoBreakSpaces.d.mts +16 -0
- package/Types/NoBreakSpaces.d.ts +16 -0
- package/Types/NoBreakSpaces.js +419 -0
- package/Types/NoBreakSpaces.mjs +9 -0
- package/Types/NotificationRule/PagingLadder.d.mts +12 -0
- package/Types/NotificationRule/PagingLadder.d.ts +12 -0
- package/Types/NotificationRule/PagingLadder.js +159 -11
- package/Types/NotificationRule/PagingLadder.mjs +3 -0
- 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/OnCallPagePassOn.d.mts +1 -0
- package/Types/OnCallDutyPolicy/OnCallPagePassOn.d.ts +1 -0
- package/Types/OnCallDutyPolicy/OnCallPageRecordGone.d.mts +3 -0
- package/Types/OnCallDutyPolicy/OnCallPageRecordGone.d.ts +3 -0
- package/Types/OnCallDutyPolicy/OnCallPageRecordGone.js +42 -0
- package/Types/OnCallDutyPolicy/OnCallPageRecordGone.mjs +4 -0
- package/Types/OnCallDutyPolicy/OnCallPageWords.d.mts +6 -2
- package/Types/OnCallDutyPolicy/OnCallPageWords.d.ts +6 -2
- package/Types/OnCallDutyPolicy/OnCallPageWords.js +21 -20
- package/Types/OnCallDutyPolicy/OnCallPersonPage.d.mts +4 -0
- package/Types/OnCallDutyPolicy/OnCallPersonPage.d.ts +4 -0
- package/Types/OnCallDutyPolicy/OnCallPersonPage.js +125 -1
- package/Types/OnCallDutyPolicy/OnCallPersonPage.mjs +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 +2 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.d.ts +2 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.js +12 -0
- package/Types/OnCallDutyPolicy/OnCallTestPage.mjs +1 -0
- 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/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/OpenStack/OpenStackCapacity.js +12 -5
- package/Types/Permission.d.mts +4 -0
- package/Types/Permission.d.ts +4 -0
- package/Types/Permission.js +66 -10
- 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/ProductUsage.js +2 -1
- package/Types/Product/ProjectProductsAnswer.js +2 -1
- 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/ResourceAiAgent/AiResourceType.d.mts +1 -0
- package/Types/ResourceAiAgent/AiResourceType.d.ts +1 -0
- package/Types/ResourceAiAgent/AiResourceType.js +12 -0
- package/Types/Rules/RuleRun.js +2 -2
- package/Types/Rum/ProductAnalyticsEventReads.js +10 -1
- package/Types/Rum/ProductAnalyticsEvents.js +13 -1
- package/Types/Rum/SessionReplayCustomEvents.d.mts +4 -1
- package/Types/Rum/SessionReplayCustomEvents.d.ts +4 -1
- package/Types/Rum/SessionReplayCustomEvents.js +12 -0
- package/Types/Rum/SessionReplayCustomEvents.mjs +1 -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/SetupHealth/SetupHealth.d.mts +1 -0
- package/Types/SetupHealth/SetupHealth.d.ts +1 -0
- package/Types/SetupHealth/SetupHealth.js +13 -5
- package/Types/StateTimeline/RowsKeptOnDelete.js +1 -1
- package/Types/StatusPage/DefaultStatusNames.d.mts +11 -3
- package/Types/StatusPage/DefaultStatusNames.d.ts +11 -3
- package/Types/StatusPage/DefaultStatusNames.js +74 -28
- package/Types/StatusPage/DefaultStatusNames.mjs +9 -2
- 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/StatusPage/StateChangeNoteMessage.d.mts +3 -2
- package/Types/StatusPage/StateChangeNoteMessage.d.ts +3 -2
- package/Types/StatusPage/StateChangeNoteMessage.js +16 -13
- 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 +48 -7
- package/Types/Telemetry/TelemetryIngestionKeyType.js +7 -6
- 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 +470 -63
- package/Types/Translator.mjs +1 -0
- package/Types/UserSession/SessionLength.d.mts +33 -0
- package/Types/UserSession/SessionLength.d.ts +33 -0
- package/Types/UserSession/SessionLength.js +134 -5
- package/Types/UserSession/SessionLength.mjs +5 -0
- package/Types/Workflow/RunRecord.js +1 -1
- package/Types/Workflow/Templates.js +2 -2
- package/Types/Workflow/WorkflowStatus.js +21 -10
- 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 +26 -1
- package/Types/Workspace/NotificationRules/NotificationRuleCondition.d.ts +26 -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/InvestigationReport.js +2 -2
- package/Utils/API.d.mts +0 -11
- package/Utils/API.d.ts +0 -11
- package/Utils/API.js +0 -432
- package/Utils/AiRemediation/Resource/ResourceCommandPolicy.js +2 -2
- package/Utils/AiRemediation/VerifiedFixRunbook.d.mts +39 -0
- package/Utils/AiRemediation/VerifiedFixRunbook.d.ts +39 -0
- package/Utils/AiRemediation/VerifiedFixRunbook.js +231 -0
- package/Utils/AiRemediation/VerifiedFixRunbook.mjs +10 -0
- package/Utils/Dashboard/DashboardWidgetSorts.js +11 -2
- package/Utils/Dashboard/MonitorListWidgetFormat.d.mts +2 -1
- package/Utils/Dashboard/MonitorListWidgetFormat.d.ts +2 -1
- package/Utils/Dashboard/MonitorListWidgetFormat.js +5 -3
- 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/DefaultRecordNames.d.mts +6 -0
- package/Utils/DefaultRecordNames.d.ts +6 -0
- package/Utils/DefaultRecordNames.js +122 -0
- package/Utils/DefaultRecordNames.mjs +6 -0
- package/Utils/DeveloperDocs/ExampleBuilder.js +1 -1
- package/Utils/DeveloperDocs/ResourceProfiles.js +2 -2
- package/Utils/Grok/Grok.js +7 -4
- 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/Incident/PostmortemActionItemCodeTask.d.mts +20 -0
- package/Utils/Incident/PostmortemActionItemCodeTask.d.ts +20 -0
- package/Utils/Incident/PostmortemActionItemCodeTask.js +107 -0
- package/Utils/Incident/PostmortemActionItemCodeTask.mjs +10 -0
- package/Utils/Incident/PostmortemActionItemMarkdown.d.mts +39 -0
- package/Utils/Incident/PostmortemActionItemMarkdown.d.ts +39 -0
- package/Utils/Incident/PostmortemActionItemMarkdown.js +118 -0
- package/Utils/Incident/PostmortemActionItemMarkdown.mjs +12 -0
- package/Utils/Incident/PostmortemNoteActionItems.d.mts +29 -0
- package/Utils/Incident/PostmortemNoteActionItems.d.ts +29 -0
- package/Utils/Incident/PostmortemNoteActionItems.js +544 -0
- package/Utils/Incident/PostmortemNoteActionItems.mjs +7 -0
- package/Utils/LinearRegExp/LinearRegExp.js +5 -1
- package/Utils/LookupTable.d.mts +3 -0
- package/Utils/LookupTable.d.ts +3 -0
- package/Utils/LookupTable.js +61 -0
- package/Utils/LookupTable.mjs +3 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.mts +2 -0
- package/Utils/Markdown/LinkReferenceDefinitions.d.ts +2 -0
- package/Utils/Markdown/LinkReferenceDefinitions.js +101 -1
- package/Utils/Markdown/LinkReferenceDefinitions.mjs +2 -0
- package/Utils/Markdown/OverLongText.js +296 -2
- package/Utils/Markdown/SlowMarkdown.d.mts +1 -0
- package/Utils/Markdown/SlowMarkdown.d.ts +1 -0
- package/Utils/Markdown/SlowMarkdown.js +354 -4
- package/Utils/Markdown/SlowMarkdown.mjs +1 -0
- package/Utils/Metrics/MetricFormulaEvaluator.js +10 -4
- package/Utils/Metrics/MetricSeriesFingerprint.js +13 -4
- package/Utils/Metrics/MetricSeriesScope.d.mts +5 -0
- package/Utils/Metrics/MetricSeriesScope.d.ts +5 -0
- package/Utils/Metrics/MetricSeriesScope.js +5 -1
- 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/Monitor/EndpointAttachmentUtil.d.mts +8 -0
- package/Utils/Monitor/EndpointAttachmentUtil.d.ts +8 -0
- package/Utils/Monitor/EndpointAttachmentUtil.js +91 -21
- package/Utils/Monitor/EndpointAttachmentUtil.mjs +4 -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 +5 -0
- package/Utils/Monitor/MonitorRootCauseWording.d.ts +5 -0
- package/Utils/Monitor/MonitorRootCauseWording.js +148 -5
- 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/ProbeAgreementRule.d.mts +10 -0
- package/Utils/Monitor/ProbeAgreementRule.d.ts +10 -0
- package/Utils/Monitor/ProbeAgreementRule.js +58 -0
- package/Utils/Monitor/ProbeAgreementRule.mjs +3 -0
- package/Utils/Monitor/ProbeFailureReading.d.mts +18 -0
- package/Utils/Monitor/ProbeFailureReading.d.ts +18 -0
- package/Utils/Monitor/ProbeFailureReading.js +166 -0
- package/Utils/Monitor/ProbeFailureReading.mjs +8 -0
- package/Utils/Monitor/RequestFailureDescriptions.d.mts +61 -0
- package/Utils/Monitor/RequestFailureDescriptions.d.ts +61 -0
- package/Utils/Monitor/RequestFailureDescriptions.js +252 -0
- package/Utils/Monitor/RequestFailureDescriptions.mjs +6 -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/Project/NextNumber.js +1 -1
- 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 +974 -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 +829 -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/PromQLLabelOrder.d.mts +8 -0
- package/Utils/PromQL/PromQLLabelOrder.d.ts +8 -0
- package/Utils/PromQL/PromQLLabelOrder.js +212 -0
- package/Utils/PromQL/PromQLLabelOrder.mjs +6 -0
- package/Utils/PromQL/PromQLLabels.d.mts +11 -0
- package/Utils/PromQL/PromQLLabels.d.ts +11 -0
- package/Utils/PromQL/PromQLLabels.js +219 -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 +205 -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 +836 -0
- package/Utils/PromQL/PromQLParser.mjs +4 -0
- package/Utils/PromQL/PromQLRegex.d.mts +20 -0
- package/Utils/PromQL/PromQLRegex.d.ts +20 -0
- package/Utils/PromQL/PromQLRegex.js +1014 -0
- package/Utils/PromQL/PromQLRegex.mjs +5 -0
- package/Utils/PromQL/PrometheusResponse.d.mts +25 -0
- package/Utils/PromQL/PrometheusResponse.d.ts +25 -0
- package/Utils/PromQL/PrometheusResponse.js +92 -0
- package/Utils/PromQL/PrometheusResponse.mjs +3 -0
- package/Utils/PromQL/RE2CharacterClass.d.mts +24 -0
- package/Utils/PromQL/RE2CharacterClass.d.ts +24 -0
- package/Utils/PromQL/RE2CharacterClass.js +532 -0
- package/Utils/PromQL/RE2CharacterClass.mjs +16 -0
- package/Utils/RequestFailedDetailsUtil.d.mts +15 -0
- package/Utils/RequestFailedDetailsUtil.d.ts +15 -0
- package/Utils/RequestFailedDetailsUtil.js +452 -0
- package/Utils/RequestFailedDetailsUtil.mjs +2 -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 +5 -1
- package/Utils/Rum/UrlScrubber.d.ts +5 -1
- package/Utils/Rum/UrlScrubber.js +153 -7
- package/Utils/Rum/UserFlow.d.mts +1 -1
- package/Utils/Rum/UserFlow.d.ts +1 -1
- package/Utils/Rum/UserFlow.js +202 -29
- 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/Schema/TypeSchemas.js +6 -0
- package/Utils/SecurityCase/SecurityOverviewMetrics.d.mts +11 -1
- package/Utils/SecurityCase/SecurityOverviewMetrics.d.ts +11 -1
- package/Utils/SecurityCase/SecurityOverviewMetrics.js +99 -17
- package/Utils/SecurityCase/SecurityOverviewMetrics.mjs +3 -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/Sms/OnCallPageSms.d.mts +2 -0
- package/Utils/Sms/OnCallPageSms.d.ts +2 -0
- package/Utils/Sms/OnCallPageSms.js +3 -1
- package/Utils/StateListType.d.mts +11 -0
- package/Utils/StateListType.d.ts +11 -0
- package/Utils/StateListType.js +21 -0
- package/Utils/StateListType.mjs +2 -0
- package/Utils/StateOrder.d.mts +8 -11
- package/Utils/StateOrder.d.ts +8 -11
- package/Utils/StateOrder.js +50 -88
- package/Utils/StateOrder.mjs +2 -0
- package/Utils/StateTimeline/StateTimelineRowDelete.js +1 -1
- package/Utils/Suggestions/ActionItemCodeTaskSuggestion.d.mts +9 -0
- package/Utils/Suggestions/ActionItemCodeTaskSuggestion.d.ts +9 -0
- package/Utils/Suggestions/ActionItemCodeTaskSuggestion.js +25 -0
- package/Utils/Suggestions/ActionItemCodeTaskSuggestion.mjs +2 -0
- package/Utils/Suggestions/VerifiedFixRunbookSuggestion.d.mts +5 -0
- package/Utils/Suggestions/VerifiedFixRunbookSuggestion.d.ts +5 -0
- package/Utils/Suggestions/VerifiedFixRunbookSuggestion.js +39 -0
- package/Utils/Suggestions/VerifiedFixRunbookSuggestion.mjs +2 -0
- package/Utils/Syslog/SyslogMessageParser.js +16 -6
- package/Utils/Telemetry/HeartbeatAvailability.d.mts +4 -0
- package/Utils/Telemetry/HeartbeatAvailability.d.ts +4 -0
- package/Utils/Telemetry/HeartbeatAvailability.js +113 -26
- package/Utils/Uptime/DayUptimeGraphUtil.js +2 -2
- package/Utils/ValueFormatter.d.mts +1 -0
- package/Utils/ValueFormatter.d.ts +1 -0
- package/Utils/ValueFormatter.js +258 -18
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.readPagingLadderSteps = exports.getPagingLadderStepsProblem = exports.isEmptyPagingLadderPlan = exports.getPagingLadderRules = exports.planPagingLadderSave = exports.readPagingLadder = exports.readPagingLadderCells = exports.comparePagingLadderCell = exports.getPagingLadderStepFromRule = exports.normalizePagingLadderSteps = exports.comparePagingLadderSteps = exports.getPagingLadderStepKey = exports.getPagingLadderMethodKey = exports.normalizePagingLadderStep = exports.getPagingLadderCellKey = exports.getLivePagingLadderCells = exports.getPagingLadderCells = exports.readPagingId = exports.getPagingMethodColumnForChannel = exports.getChannelForPagingMethodColumn = exports.isPagingMethodColumn = exports.PAGING_METHOD_COLUMNS = exports.MAX_PAGING_LADDER_WAIT_IN_MINUTES = exports.PAGING_LADDER_WAITS_IN_MINUTES = exports.getSeverityColumnForOnCallRuleKind = exports.PAGING_LADDER_APPLY_ROUTE = exports.PAGING_LADDER_API_PATH = void 0;
|
|
36
|
+
exports.readPagingLadderSteps = exports.getPagingLadderStepsProblem = exports.isEmptyPagingLadderPlan = exports.getPagingLadderStepsForNewCell = exports.getPagingLadderRules = exports.planPagingLadderSave = exports.readPagingLadder = exports.readPagingLadderCells = exports.comparePagingLadderCell = exports.getPagingLadderStepFromRule = exports.getPagingLadderStepsFromRule = exports.normalizePagingLadderSteps = exports.comparePagingLadderSteps = exports.getPagingLadderStepKey = exports.getPagingLadderMethodKey = exports.normalizePagingLadderStep = exports.getPagingLadderCellKey = exports.getLivePagingLadderCells = exports.getPagingLadderCells = exports.readPagingId = exports.getPagingMethodColumnForChannel = exports.getChannelForPagingMethodColumn = exports.isPagingMethodColumn = exports.PAGING_METHOD_COLUMNS = exports.MAX_PAGING_LADDER_WAIT_IN_MINUTES = exports.PAGING_LADDER_WAITS_IN_MINUTES = exports.getSeverityColumnForRuleType = exports.getSeverityColumnForOnCallRuleKind = exports.PAGING_LADDER_APPLY_ROUTE = exports.PAGING_LADDER_API_PATH = void 0;
|
|
37
37
|
const OnCallRuleKind_1 = __importStar(require("./OnCallRuleKind"));
|
|
38
38
|
const PushNotificationLevel_1 = require("./PushNotificationLevel");
|
|
39
39
|
const NotificationRepeat_1 = require("./NotificationRepeat");
|
|
@@ -61,13 +61,16 @@ const OnCallPageChannel_1 = require("../OnCallDutyPolicy/OnCallPageChannel");
|
|
|
61
61
|
* - planPagingLadderSave: the rows to create, change and delete so every
|
|
62
62
|
* live card holds the ladder, keeping the rows that already do.
|
|
63
63
|
* - getPagingLadderRules: the rows a ladder is, for a person with none.
|
|
64
|
+
* - getPagingLadderStepsForNewCell: what a card added later starts with,
|
|
65
|
+
* read from the person's other cards on its tab.
|
|
64
66
|
*
|
|
65
67
|
* Archived severities are left as they are. Nobody picks one again - the
|
|
66
68
|
* server refuses a new rule for one (ArchivedValueCheck) - and the records
|
|
67
69
|
* that keep one still page by its rules, so a ladder neither reads them nor
|
|
68
70
|
* writes them. A severity added later is given the person's rules by the
|
|
69
|
-
* backfill (Workers BackfillNotificationRulesForNewSeverities), which
|
|
70
|
-
*
|
|
71
|
+
* backfill (Workers BackfillNotificationRulesForNewSeverities), which reads
|
|
72
|
+
* them with getPagingLadderStepsForNewCell: a ladder, push settings and
|
|
73
|
+
* all, when they have one.
|
|
71
74
|
*
|
|
72
75
|
* The order of a ladder is its waits: steps fire after their wait, and two
|
|
73
76
|
* with the same wait fire together. Steps with the same wait are listed
|
|
@@ -94,6 +97,16 @@ const getSeverityColumnForOnCallRuleKind = (kind) => {
|
|
|
94
97
|
return SEVERITY_COLUMN_BY_KIND[kind];
|
|
95
98
|
};
|
|
96
99
|
exports.getSeverityColumnForOnCallRuleKind = getSeverityColumnForOnCallRuleKind;
|
|
100
|
+
// The severity column of a rule type, or null for a rule type of no card.
|
|
101
|
+
const getSeverityColumnForRuleType = (ruleType) => {
|
|
102
|
+
for (const kind of OnCallRuleKind_1.ON_CALL_RULE_KINDS) {
|
|
103
|
+
if ((0, OnCallRuleKind_1.getRuleTypeForOnCallRuleKind)(kind) === ruleType) {
|
|
104
|
+
return SEVERITY_COLUMN_BY_KIND[kind];
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return null;
|
|
108
|
+
};
|
|
109
|
+
exports.getSeverityColumnForRuleType = getSeverityColumnForRuleType;
|
|
97
110
|
// The waits the page offers, in minutes; a rule can hold any other.
|
|
98
111
|
exports.PAGING_LADDER_WAITS_IN_MINUTES = [
|
|
99
112
|
0, 5, 10, 15, 30, 60,
|
|
@@ -334,28 +347,39 @@ const normalizePagingLadderSteps = (steps) => {
|
|
|
334
347
|
};
|
|
335
348
|
exports.normalizePagingLadderSteps = normalizePagingLadderSteps;
|
|
336
349
|
/*
|
|
337
|
-
*
|
|
338
|
-
* row ("do not page me here")
|
|
339
|
-
* names two methods (possible through the
|
|
350
|
+
* Every step a rule pages, in the order a rule's columns are read: none
|
|
351
|
+
* for an opt-out row ("do not page me here") or a row that names no
|
|
352
|
+
* method, and two for a row that names two methods (possible through the
|
|
353
|
+
* API), which pages both.
|
|
340
354
|
*/
|
|
341
|
-
const
|
|
355
|
+
const getPagingLadderStepsFromRule = (rule) => {
|
|
342
356
|
if (rule.isOptOut === true) {
|
|
343
|
-
return
|
|
357
|
+
return [];
|
|
344
358
|
}
|
|
359
|
+
const steps = [];
|
|
345
360
|
for (const column of exports.PAGING_METHOD_COLUMNS) {
|
|
346
361
|
const methodId = (0, exports.readPagingId)(rule[column]);
|
|
347
362
|
if (!methodId) {
|
|
348
363
|
continue;
|
|
349
364
|
}
|
|
350
|
-
|
|
365
|
+
steps.push((0, exports.normalizePagingLadderStep)({
|
|
351
366
|
methodColumn: column,
|
|
352
367
|
methodId: methodId,
|
|
353
368
|
notifyAfterMinutes: readWait(rule.notifyAfterMinutes),
|
|
354
369
|
pushNotificationLevel: readPushLevel(rule.pushNotificationLevel),
|
|
355
370
|
repeatEveryMinutes: readRepeat(rule.repeatEveryMinutes),
|
|
356
|
-
});
|
|
371
|
+
}));
|
|
357
372
|
}
|
|
358
|
-
return
|
|
373
|
+
return steps;
|
|
374
|
+
};
|
|
375
|
+
exports.getPagingLadderStepsFromRule = getPagingLadderStepsFromRule;
|
|
376
|
+
/*
|
|
377
|
+
* The step a rule is, or null for a rule that pages nothing: an opt-out
|
|
378
|
+
* row, or a row that names no method. A row that names two methods is read
|
|
379
|
+
* by its first.
|
|
380
|
+
*/
|
|
381
|
+
const getPagingLadderStepFromRule = (rule) => {
|
|
382
|
+
return (0, exports.getPagingLadderStepsFromRule)(rule)[0] || null;
|
|
359
383
|
};
|
|
360
384
|
exports.getPagingLadderStepFromRule = getPagingLadderStepFromRule;
|
|
361
385
|
const getStepsSignature = (steps) => {
|
|
@@ -610,6 +634,130 @@ const getPagingLadderRules = (data) => {
|
|
|
610
634
|
}).create;
|
|
611
635
|
};
|
|
612
636
|
exports.getPagingLadderRules = getPagingLadderRules;
|
|
637
|
+
/*
|
|
638
|
+
* THE RULES OF A CARD ADDED LATER (#7452).
|
|
639
|
+
*
|
|
640
|
+
* A severity the project adds is a new card on two tabs (Incidents and
|
|
641
|
+
* Incident Episodes, or Alerts and Alert Episodes), and nobody has a rule
|
|
642
|
+
* in it yet. The backfill (Workers BackfillNotificationRulesForNewSeverities)
|
|
643
|
+
* gives each person, in each new card, what their other cards on its tab
|
|
644
|
+
* page, read the way How to Reach Me reads them:
|
|
645
|
+
*
|
|
646
|
+
* - The tab's live cards are read. An archived severity's rules, a rule
|
|
647
|
+
* of no card (an episode rule written before episode rules had a
|
|
648
|
+
* severity) and a rule on a severity the project no longer has are not
|
|
649
|
+
* on the page, a ladder leaves them as they are, and mixed in they
|
|
650
|
+
* would make the new card differ from the ladder. They are read only
|
|
651
|
+
* for a person with no rule on any live card of the tab, as all that
|
|
652
|
+
* person has said about it.
|
|
653
|
+
* - Every method and wait those cards page is a step of the new card,
|
|
654
|
+
* once: "Critical: a call at once" and "Minor: email after 15 minutes"
|
|
655
|
+
* give both, so nobody loses a way to be reached.
|
|
656
|
+
* - A push sounds and repeats as it does on most of the cards that send
|
|
657
|
+
* it at that wait; a tie goes to the card first in the grid's order
|
|
658
|
+
* (the most severe). Read without them, every new push rule was
|
|
659
|
+
* Critical and sent once (#7452): a ladder of "push, Standard, every 5
|
|
660
|
+
* minutes" now gives the new card exactly that, so one ladder stays
|
|
661
|
+
* one ladder.
|
|
662
|
+
* - When nothing read pages anything and one of the rules is an opt-out,
|
|
663
|
+
* the new card is muted too: a person who muted the tab is not paged
|
|
664
|
+
* for the severity added to it.
|
|
665
|
+
*
|
|
666
|
+
* Null when the person has no rule on the tab at all: the backfill gives
|
|
667
|
+
* them their verified email, at once.
|
|
668
|
+
*/
|
|
669
|
+
const getPagingLadderStepsForNewCell = (data) => {
|
|
670
|
+
const severityColumn = (0, exports.getSeverityColumnForRuleType)(data.ruleType);
|
|
671
|
+
if (!severityColumn) {
|
|
672
|
+
return null;
|
|
673
|
+
}
|
|
674
|
+
const newSeverityId = (0, exports.readPagingId)(data.severityId);
|
|
675
|
+
const tabRules = data.rules.filter((rule) => {
|
|
676
|
+
return (rule.ruleType === data.ruleType &&
|
|
677
|
+
(0, exports.readPagingId)(rule[severityColumn]) !== newSeverityId);
|
|
678
|
+
});
|
|
679
|
+
if (tabRules.length === 0) {
|
|
680
|
+
return null;
|
|
681
|
+
}
|
|
682
|
+
// The tab's live cards, in the grid's order, each with the person's rules.
|
|
683
|
+
const liveCards = new Map();
|
|
684
|
+
for (const cell of (0, exports.getLivePagingLadderCells)(data.cells)) {
|
|
685
|
+
if (cell.ruleType === data.ruleType && cell.severityId !== newSeverityId) {
|
|
686
|
+
liveCards.set((0, exports.getPagingLadderCellKey)(cell), []);
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
// The rest, by the severity they name ("" for none), in the order given.
|
|
690
|
+
const otherCards = new Map();
|
|
691
|
+
for (const rule of tabRules) {
|
|
692
|
+
const cellKey = getRuleCellKey(rule);
|
|
693
|
+
const liveCard = cellKey
|
|
694
|
+
? liveCards.get(cellKey)
|
|
695
|
+
: undefined;
|
|
696
|
+
if (liveCard) {
|
|
697
|
+
liveCard.push(rule);
|
|
698
|
+
continue;
|
|
699
|
+
}
|
|
700
|
+
const severityId = (0, exports.readPagingId)(rule[severityColumn]);
|
|
701
|
+
const otherCard = otherCards.get(severityId) || [];
|
|
702
|
+
otherCard.push(rule);
|
|
703
|
+
otherCards.set(severityId, otherCard);
|
|
704
|
+
}
|
|
705
|
+
let cards = Array.from(liveCards.values()).filter((card) => {
|
|
706
|
+
return card.length > 0;
|
|
707
|
+
});
|
|
708
|
+
if (cards.length === 0) {
|
|
709
|
+
cards = Array.from(otherCards.values());
|
|
710
|
+
}
|
|
711
|
+
/*
|
|
712
|
+
* Each card votes once for how it sends each method at each wait (a step
|
|
713
|
+
* it says twice is said once), in the order the cards are read.
|
|
714
|
+
*/
|
|
715
|
+
const votesByMethodAndWait = new Map();
|
|
716
|
+
for (const card of cards) {
|
|
717
|
+
const cardSteps = [];
|
|
718
|
+
for (const rule of card) {
|
|
719
|
+
cardSteps.push(...(0, exports.getPagingLadderStepsFromRule)(rule));
|
|
720
|
+
}
|
|
721
|
+
for (const cardStep of (0, exports.normalizePagingLadderSteps)(cardSteps)) {
|
|
722
|
+
const methodAndWaitKey = getMethodAndWaitKey(cardStep);
|
|
723
|
+
const stepKey = (0, exports.getPagingLadderStepKey)(cardStep);
|
|
724
|
+
const votes = votesByMethodAndWait.get(methodAndWaitKey) || [];
|
|
725
|
+
const known = votes.find((vote) => {
|
|
726
|
+
return (0, exports.getPagingLadderStepKey)(vote.step) === stepKey;
|
|
727
|
+
});
|
|
728
|
+
if (known) {
|
|
729
|
+
known.count++;
|
|
730
|
+
}
|
|
731
|
+
else {
|
|
732
|
+
votes.push({ step: cardStep, count: 1 });
|
|
733
|
+
}
|
|
734
|
+
votesByMethodAndWait.set(methodAndWaitKey, votes);
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
const steps = [];
|
|
738
|
+
for (const votes of votesByMethodAndWait.values()) {
|
|
739
|
+
// Most cards win; the first card read wins a tie.
|
|
740
|
+
let winner = votes[0];
|
|
741
|
+
for (const vote of votes) {
|
|
742
|
+
if (vote.count > winner.count) {
|
|
743
|
+
winner = vote;
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
steps.push(Object.assign({}, winner.step));
|
|
747
|
+
}
|
|
748
|
+
if (steps.length > 0) {
|
|
749
|
+
return { steps: steps.sort(exports.comparePagingLadderSteps), isMuted: false };
|
|
750
|
+
}
|
|
751
|
+
return {
|
|
752
|
+
steps: [],
|
|
753
|
+
isMuted: cards.some((card) => {
|
|
754
|
+
return card.some((rule) => {
|
|
755
|
+
return rule.isOptOut === true;
|
|
756
|
+
});
|
|
757
|
+
}),
|
|
758
|
+
};
|
|
759
|
+
};
|
|
760
|
+
exports.getPagingLadderStepsForNewCell = getPagingLadderStepsForNewCell;
|
|
613
761
|
// Whether a plan writes nothing.
|
|
614
762
|
const isEmptyPagingLadderPlan = (plan) => {
|
|
615
763
|
return (plan.create.length === 0 &&
|
|
@@ -14,9 +14,12 @@ export const getPagingLadderMethodKey = commonJsModule.getPagingLadderMethodKey;
|
|
|
14
14
|
export const getPagingLadderRules = commonJsModule.getPagingLadderRules;
|
|
15
15
|
export const getPagingLadderStepFromRule = commonJsModule.getPagingLadderStepFromRule;
|
|
16
16
|
export const getPagingLadderStepKey = commonJsModule.getPagingLadderStepKey;
|
|
17
|
+
export const getPagingLadderStepsForNewCell = commonJsModule.getPagingLadderStepsForNewCell;
|
|
18
|
+
export const getPagingLadderStepsFromRule = commonJsModule.getPagingLadderStepsFromRule;
|
|
17
19
|
export const getPagingLadderStepsProblem = commonJsModule.getPagingLadderStepsProblem;
|
|
18
20
|
export const getPagingMethodColumnForChannel = commonJsModule.getPagingMethodColumnForChannel;
|
|
19
21
|
export const getSeverityColumnForOnCallRuleKind = commonJsModule.getSeverityColumnForOnCallRuleKind;
|
|
22
|
+
export const getSeverityColumnForRuleType = commonJsModule.getSeverityColumnForRuleType;
|
|
20
23
|
export const isEmptyPagingLadderPlan = commonJsModule.isEmptyPagingLadderPlan;
|
|
21
24
|
export const isPagingMethodColumn = commonJsModule.isPagingMethodColumn;
|
|
22
25
|
export const normalizePagingLadderStep = commonJsModule.normalizePagingLadderStep;
|
|
@@ -3,6 +3,7 @@ import Permission from "../Permission.mjs";
|
|
|
3
3
|
export declare const GLOBAL_USER_OVERRIDE_HELD_OPTIONS: Readonly<HeldPermissionsOptions>;
|
|
4
4
|
export declare const GLOBAL_USER_OVERRIDE_ADD_REFUSAL: string;
|
|
5
5
|
export declare const GLOBAL_USER_OVERRIDE_DELETE_REFUSAL: string;
|
|
6
|
+
export declare const GLOBAL_USER_OVERRIDE_EDIT_REFUSAL: string;
|
|
6
7
|
export default class GlobalUserOverrideAccess {
|
|
7
8
|
static mayChange(held: HeldPermissions, permissions: ReadonlyArray<Permission>): boolean;
|
|
8
9
|
}
|
|
@@ -3,6 +3,7 @@ import Permission from "../Permission";
|
|
|
3
3
|
export declare const GLOBAL_USER_OVERRIDE_HELD_OPTIONS: Readonly<HeldPermissionsOptions>;
|
|
4
4
|
export declare const GLOBAL_USER_OVERRIDE_ADD_REFUSAL: string;
|
|
5
5
|
export declare const GLOBAL_USER_OVERRIDE_DELETE_REFUSAL: string;
|
|
6
|
+
export declare const GLOBAL_USER_OVERRIDE_EDIT_REFUSAL: string;
|
|
6
7
|
export default class GlobalUserOverrideAccess {
|
|
7
8
|
static mayChange(held: HeldPermissions, permissions: ReadonlyArray<Permission>): boolean;
|
|
8
9
|
}
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.GLOBAL_USER_OVERRIDE_DELETE_REFUSAL = exports.GLOBAL_USER_OVERRIDE_ADD_REFUSAL = exports.GLOBAL_USER_OVERRIDE_HELD_OPTIONS = void 0;
|
|
6
|
+
exports.GLOBAL_USER_OVERRIDE_EDIT_REFUSAL = exports.GLOBAL_USER_OVERRIDE_DELETE_REFUSAL = exports.GLOBAL_USER_OVERRIDE_ADD_REFUSAL = exports.GLOBAL_USER_OVERRIDE_HELD_OPTIONS = void 0;
|
|
7
7
|
const HeldPermissions_1 = __importDefault(require("../HeldPermissions"));
|
|
8
8
|
/*
|
|
9
9
|
* WHO MAY ADD OR REMOVE A GLOBAL USER OVERRIDE.
|
|
@@ -23,8 +23,9 @@ const HeldPermissions_1 = __importDefault(require("../HeldPermissions"));
|
|
|
23
23
|
* override as easily (issue #5617). Limited to owned policies, they could do
|
|
24
24
|
* neither: a record of no policy belongs to no owner.
|
|
25
25
|
*
|
|
26
|
-
* So adding a global override, or deleting one, takes a
|
|
27
|
-
* (
|
|
26
|
+
* So adding a global override, editing one or deleting one, takes a
|
|
27
|
+
* permission to add (to edit, to delete) user overrides that reaches the
|
|
28
|
+
* whole project
|
|
28
29
|
* (HeldPermissionsUtil, projectWideOnly): not one limited to labels or to
|
|
29
30
|
* owned policies, and not one a team's block with labels takes away from
|
|
30
31
|
* some policies, which the override would reach as well
|
|
@@ -32,9 +33,9 @@ const HeldPermissions_1 = __importDefault(require("../HeldPermissions"));
|
|
|
32
33
|
* team scoped to its own policies keeps adding them there, from each
|
|
33
34
|
* policy's own User Overrides page.
|
|
34
35
|
*
|
|
35
|
-
* The server holds every add and delete of the table to it
|
|
36
|
-
* (OnCallDutyPolicyUserOverrideService), and the dashboard locks Add
|
|
37
|
-
* Delete on the Global User Overrides page by it, with these words
|
|
36
|
+
* The server holds every add, edit and delete of the table to it
|
|
37
|
+
* (OnCallDutyPolicyUserOverrideService), and the dashboard locks Add, Edit
|
|
38
|
+
* and Delete on the Global User Overrides page by it, with these words
|
|
38
39
|
* (UserOverrideTable). Both read the caller's rows by the one rule
|
|
39
40
|
* (HeldPermissions).
|
|
40
41
|
*/
|
|
@@ -58,11 +59,13 @@ const translationKey = (text) => {
|
|
|
58
59
|
*/
|
|
59
60
|
exports.GLOBAL_USER_OVERRIDE_ADD_REFUSAL = translationKey("A global user override applies to every on-call policy in the project, and your permission to add user overrides covers only some of them. Add the override on the policy's own User Overrides page instead.");
|
|
60
61
|
exports.GLOBAL_USER_OVERRIDE_DELETE_REFUSAL = translationKey("A global user override applies to every on-call policy in the project, and your permission to delete user overrides covers only some of them. Someone whose permission covers every policy can delete it.");
|
|
62
|
+
exports.GLOBAL_USER_OVERRIDE_EDIT_REFUSAL = translationKey("A global user override applies to every on-call policy in the project, and your permission to edit user overrides covers only some of them. Someone whose permission covers every policy can edit it.");
|
|
61
63
|
class GlobalUserOverrideAccess {
|
|
62
64
|
/*
|
|
63
|
-
* Whether `held` adds - or, given the table's
|
|
64
|
-
* - a global user override: one of
|
|
65
|
-
* project, and no block on any of them,
|
|
65
|
+
* Whether `held` adds - or, given the table's update or delete
|
|
66
|
+
* permissions, edits or deletes - a global user override: one of
|
|
67
|
+
* `permissions` held over the whole project, and no block on any of them,
|
|
68
|
+
* with labels or without.
|
|
66
69
|
*/
|
|
67
70
|
static mayChange(held, permissions) {
|
|
68
71
|
return HeldPermissions_1.default.holdsAnyOf(held, permissions, exports.GLOBAL_USER_OVERRIDE_HELD_OPTIONS);
|
|
@@ -2,4 +2,5 @@ import commonJsModule from "./GlobalUserOverrideAccess.js";
|
|
|
2
2
|
export default commonJsModule.default;
|
|
3
3
|
export const GLOBAL_USER_OVERRIDE_ADD_REFUSAL = commonJsModule.GLOBAL_USER_OVERRIDE_ADD_REFUSAL;
|
|
4
4
|
export const GLOBAL_USER_OVERRIDE_DELETE_REFUSAL = commonJsModule.GLOBAL_USER_OVERRIDE_DELETE_REFUSAL;
|
|
5
|
+
export const GLOBAL_USER_OVERRIDE_EDIT_REFUSAL = commonJsModule.GLOBAL_USER_OVERRIDE_EDIT_REFUSAL;
|
|
5
6
|
export const GLOBAL_USER_OVERRIDE_HELD_OPTIONS = commonJsModule.GLOBAL_USER_OVERRIDE_HELD_OPTIONS;
|
|
@@ -2,13 +2,14 @@ import ObjectID from "../ObjectID.mjs";
|
|
|
2
2
|
import { OnCallPageAgainRun } from "./OnCallAcknowledgementTimeout.mjs";
|
|
3
3
|
import { OnCallObserverPageRun } from "./OnCallObserverPage.mjs";
|
|
4
4
|
import { OnCallPersonPageRun } from "./OnCallPersonPage.mjs";
|
|
5
|
+
import { OnCallPolicyStartedByHandRun } from "./OnCallPolicyStartedByHand.mjs";
|
|
5
6
|
export declare enum OnCallAcknowledgePageState {
|
|
6
7
|
Open = "Open",
|
|
7
8
|
AcknowledgedByYou = "AcknowledgedByYou",
|
|
8
9
|
AcknowledgedBySomeoneElse = "AcknowledgedBySomeoneElse",
|
|
9
10
|
Resolved = "Resolved"
|
|
10
11
|
}
|
|
11
|
-
export interface OnCallAcknowledgePageRun extends OnCallPageAgainRun, OnCallPersonPageRun, OnCallObserverPageRun {
|
|
12
|
+
export interface OnCallAcknowledgePageRun extends OnCallPageAgainRun, OnCallPersonPageRun, OnCallPolicyStartedByHandRun, OnCallObserverPageRun {
|
|
12
13
|
acknowledgedAt?: Date | string | null | undefined;
|
|
13
14
|
acknowledgedByUserId?: ObjectID | string | null | undefined;
|
|
14
15
|
acknowledgedByUser?: {
|
|
@@ -42,6 +43,7 @@ export interface OnCallAcknowledgePageAnswer {
|
|
|
42
43
|
isByYou?: true | undefined;
|
|
43
44
|
}
|
|
44
45
|
export declare function isOnCallPageEndedOnlyByAnAnswer(run: OnCallAcknowledgePageRun | null | undefined): boolean;
|
|
46
|
+
export declare function isOnCallPageAnsweredAsAPage(run: OnCallAcknowledgePageRun | null | undefined): boolean;
|
|
45
47
|
export declare function getOnCallAcknowledgePageAnswer(facts: OnCallAcknowledgePageFacts): OnCallAcknowledgePageAnswer;
|
|
46
48
|
export declare function isOnCallAcknowledgePageOpen(answer: OnCallAcknowledgePageAnswer): boolean;
|
|
47
49
|
export declare function getOnCallAcknowledgePagePersonName(user: {
|
|
@@ -2,13 +2,14 @@ import ObjectID from "../ObjectID";
|
|
|
2
2
|
import { OnCallPageAgainRun } from "./OnCallAcknowledgementTimeout";
|
|
3
3
|
import { OnCallObserverPageRun } from "./OnCallObserverPage";
|
|
4
4
|
import { OnCallPersonPageRun } from "./OnCallPersonPage";
|
|
5
|
+
import { OnCallPolicyStartedByHandRun } from "./OnCallPolicyStartedByHand";
|
|
5
6
|
export declare enum OnCallAcknowledgePageState {
|
|
6
7
|
Open = "Open",
|
|
7
8
|
AcknowledgedByYou = "AcknowledgedByYou",
|
|
8
9
|
AcknowledgedBySomeoneElse = "AcknowledgedBySomeoneElse",
|
|
9
10
|
Resolved = "Resolved"
|
|
10
11
|
}
|
|
11
|
-
export interface OnCallAcknowledgePageRun extends OnCallPageAgainRun, OnCallPersonPageRun, OnCallObserverPageRun {
|
|
12
|
+
export interface OnCallAcknowledgePageRun extends OnCallPageAgainRun, OnCallPersonPageRun, OnCallPolicyStartedByHandRun, OnCallObserverPageRun {
|
|
12
13
|
acknowledgedAt?: Date | string | null | undefined;
|
|
13
14
|
acknowledgedByUserId?: ObjectID | string | null | undefined;
|
|
14
15
|
acknowledgedByUser?: {
|
|
@@ -42,6 +43,7 @@ export interface OnCallAcknowledgePageAnswer {
|
|
|
42
43
|
isByYou?: true | undefined;
|
|
43
44
|
}
|
|
44
45
|
export declare function isOnCallPageEndedOnlyByAnAnswer(run: OnCallAcknowledgePageRun | null | undefined): boolean;
|
|
46
|
+
export declare function isOnCallPageAnsweredAsAPage(run: OnCallAcknowledgePageRun | null | undefined): boolean;
|
|
45
47
|
export declare function getOnCallAcknowledgePageAnswer(facts: OnCallAcknowledgePageFacts): OnCallAcknowledgePageAnswer;
|
|
46
48
|
export declare function isOnCallAcknowledgePageOpen(answer: OnCallAcknowledgePageAnswer): boolean;
|
|
47
49
|
export declare function getOnCallAcknowledgePagePersonName(user: {
|
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ON_CALL_ACKNOWLEDGE_PAGE_ALREADY_SEEN_TITLE = exports.ON_CALL_ACKNOWLEDGE_PAGE_ALREADY_RESOLVED_TITLE = exports.ON_CALL_ACKNOWLEDGE_PAGE_ALREADY_ACKNOWLEDGED_TITLE = exports.OnCallAcknowledgePageState = void 0;
|
|
7
7
|
exports.isOnCallPageEndedOnlyByAnAnswer = isOnCallPageEndedOnlyByAnAnswer;
|
|
8
|
+
exports.isOnCallPageAnsweredAsAPage = isOnCallPageAnsweredAsAPage;
|
|
8
9
|
exports.getOnCallAcknowledgePageAnswer = getOnCallAcknowledgePageAnswer;
|
|
9
10
|
exports.isOnCallAcknowledgePageOpen = isOnCallAcknowledgePageOpen;
|
|
10
11
|
exports.getOnCallAcknowledgePagePersonName = getOnCallAcknowledgePagePersonName;
|
|
@@ -17,6 +18,7 @@ const OnCallAcknowledgementTimeout_1 = require("./OnCallAcknowledgementTimeout")
|
|
|
17
18
|
const OnCallObserverPage_1 = require("./OnCallObserverPage");
|
|
18
19
|
const OnCallPagePassOn_1 = require("./OnCallPagePassOn");
|
|
19
20
|
const OnCallPersonPage_1 = require("./OnCallPersonPage");
|
|
21
|
+
const OnCallPolicyStartedByHand_1 = require("./OnCallPolicyStartedByHand");
|
|
20
22
|
/*
|
|
21
23
|
* WHAT THE ACKNOWLEDGE PAGE A MESSAGE'S LINK OPENS OFFERS.
|
|
22
24
|
*
|
|
@@ -42,10 +44,11 @@ const OnCallPersonPage_1 = require("./OnCallPersonPage");
|
|
|
42
44
|
* - a responder's page is over once its record is acknowledged - by the
|
|
43
45
|
* one rule, so a state after Acknowledged counts - whoever did it;
|
|
44
46
|
* - a page again (OnCallAcknowledgementTimeout), a page a person asked for
|
|
45
|
-
* (OnCallPersonPage)
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* of them
|
|
47
|
+
* (OnCallPersonPage), a policy a person started by hand
|
|
48
|
+
* (OnCallPolicyStartedByHand) and an observer's page (OnCallObserverPage)
|
|
49
|
+
* are about a record that is often acknowledged already, and go on until
|
|
50
|
+
* one of their people answers them: the record being acknowledged ends
|
|
51
|
+
* none of them.
|
|
49
52
|
*
|
|
50
53
|
* Once it is over, the page says so, with what it is about and the button
|
|
51
54
|
* that opens it in the Dashboard, and no Acknowledge - who took it, and when,
|
|
@@ -73,7 +76,8 @@ var OnCallAcknowledgePageState;
|
|
|
73
76
|
OnCallAcknowledgePageState["AcknowledgedByYou"] = "AcknowledgedByYou";
|
|
74
77
|
/*
|
|
75
78
|
* Somebody else took it: answered the page (a page again, a person's
|
|
76
|
-
* page, an observer's page), or acknowledged the
|
|
79
|
+
* page, a policy started by hand, an observer's page), or acknowledged the
|
|
80
|
+
* record (a responder's).
|
|
77
81
|
*/
|
|
78
82
|
OnCallAcknowledgePageState["AcknowledgedBySomeoneElse"] = "AcknowledgedBySomeoneElse";
|
|
79
83
|
// The record is resolved: every page of it is over.
|
|
@@ -82,13 +86,27 @@ var OnCallAcknowledgePageState;
|
|
|
82
86
|
/*
|
|
83
87
|
* Whether a run goes on until one of its people answers it, or its record is
|
|
84
88
|
* resolved - whoever acknowledges the record: a page again, a page a person
|
|
85
|
-
* asked for, an observer's page.
|
|
89
|
+
* asked for, a policy a person started by hand, an observer's page. The one
|
|
90
|
+
* rule the workers that page end runs by, and everything that says whether a
|
|
91
|
+
* page is still waiting for an answer.
|
|
86
92
|
*/
|
|
87
93
|
function isOnCallPageEndedOnlyByAnAnswer(run) {
|
|
88
94
|
return ((0, OnCallAcknowledgementTimeout_1.isOnCallPageAgainRun)(run) ||
|
|
89
95
|
(0, OnCallPersonPage_1.isOnCallPersonPage)(run) ||
|
|
96
|
+
(0, OnCallPolicyStartedByHand_1.isOnCallPolicyStartedByHand)(run) ||
|
|
90
97
|
(0, OnCallObserverPage_1.isOnCallObserverPage)(run));
|
|
91
98
|
}
|
|
99
|
+
/*
|
|
100
|
+
* Whether a person answers their page of a run as the page it is, once its
|
|
101
|
+
* record is acknowledged: a page again, a page a person asked for, a policy a
|
|
102
|
+
* person started by hand. The record's own Acknowledge is gone then, so the
|
|
103
|
+
* Dashboard and the app offer "Acknowledge again" for it
|
|
104
|
+
* (OnCallAcknowledgementTimeout.acknowledgePagesAgainForRecord). Not an
|
|
105
|
+
* observer's page: an observer says they have seen it instead.
|
|
106
|
+
*/
|
|
107
|
+
function isOnCallPageAnsweredAsAPage(run) {
|
|
108
|
+
return isOnCallPageEndedOnlyByAnAnswer(run) && !(0, OnCallObserverPage_1.isOnCallObserverPage)(run);
|
|
109
|
+
}
|
|
92
110
|
// What the acknowledge page offers, by the rule above.
|
|
93
111
|
function getOnCallAcknowledgePageAnswer(facts) {
|
|
94
112
|
var _a, _b;
|
|
@@ -9,4 +9,5 @@ export const getOnCallAcknowledgePageAnsweredSentence = commonJsModule.getOnCall
|
|
|
9
9
|
export const getOnCallAcknowledgePageMoment = commonJsModule.getOnCallAcknowledgePageMoment;
|
|
10
10
|
export const getOnCallAcknowledgePagePersonName = commonJsModule.getOnCallAcknowledgePagePersonName;
|
|
11
11
|
export const isOnCallAcknowledgePageOpen = commonJsModule.isOnCallAcknowledgePageOpen;
|
|
12
|
+
export const isOnCallPageAnsweredAsAPage = commonJsModule.isOnCallPageAnsweredAsAPage;
|
|
12
13
|
export const isOnCallPageEndedOnlyByAnAnswer = commonJsModule.isOnCallPageEndedOnlyByAnAnswer;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* A PERSON'S PAGE WHOSE INCIDENT, ALERT OR EPISODE IS GONE.
|
|
4
|
+
*
|
|
5
|
+
* A person's on-call log pages them about one record - an incident, an
|
|
6
|
+
* alert, an incident episode or an alert episode - and runs their On-Call
|
|
7
|
+
* Rules ("call me after 10 minutes") until it is acknowledged. A record
|
|
8
|
+
* deleted while some of those rules were still due does not come back:
|
|
9
|
+
* nothing is left to page about, and nobody can acknowledge it. So the log
|
|
10
|
+
* ends there (UserOnCallLog:ExecutePendingExecutions), Completed, saying its
|
|
11
|
+
* record was deleted - the words a page again already ended with when its
|
|
12
|
+
* record was deleted (OnCallAcknowledgementTimeout.getPageAgainOverReason:
|
|
13
|
+
* "incident is deleted").
|
|
14
|
+
*
|
|
15
|
+
* It used to throw a plain Error, which the worker reads as a failure a
|
|
16
|
+
* retry can fix: the log stayed Executing, and was tried, failed and logged
|
|
17
|
+
* an error every minute, forever (issue #8106). Nothing else ends an
|
|
18
|
+
* Executing log: UserOnCallLog:TimeoutStuckExecutions ends Started ones.
|
|
19
|
+
*
|
|
20
|
+
* A log that names no record at all - only a test page has none
|
|
21
|
+
* (OnCallTestPage), and it ends before its record is looked for - is as
|
|
22
|
+
* permanent, and ends the same way.
|
|
23
|
+
*/
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.ON_CALL_PAGE_NAMES_NO_RECORD_MESSAGE = exports.ON_CALL_PAGE_RECORD_DELETED_MESSAGE_START = void 0;
|
|
26
|
+
exports.getOnCallPageRecordDeletedMessage = getOnCallPageRecordDeletedMessage;
|
|
27
|
+
// How a log's message starts when its record was deleted.
|
|
28
|
+
exports.ON_CALL_PAGE_RECORD_DELETED_MESSAGE_START = "Execution completed because ";
|
|
29
|
+
// "Execution completed because this page names no incident, alert or episode."
|
|
30
|
+
exports.ON_CALL_PAGE_NAMES_NO_RECORD_MESSAGE = "Execution completed because this page names no incident, alert or episode.";
|
|
31
|
+
/*
|
|
32
|
+
* "Execution completed because incident is deleted." - for the kind of
|
|
33
|
+
* record the log paged about ("incident", "alert", "incident episode",
|
|
34
|
+
* "alert episode"), or the message for a log that names none.
|
|
35
|
+
*/
|
|
36
|
+
function getOnCallPageRecordDeletedMessage(recordKind) {
|
|
37
|
+
const kind = (recordKind || "").trim();
|
|
38
|
+
if (!kind) {
|
|
39
|
+
return exports.ON_CALL_PAGE_NAMES_NO_RECORD_MESSAGE;
|
|
40
|
+
}
|
|
41
|
+
return `${exports.ON_CALL_PAGE_RECORD_DELETED_MESSAGE_START}${kind} is deleted.`;
|
|
42
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import commonJsModule from "./OnCallPageRecordGone.js";
|
|
2
|
+
export const ON_CALL_PAGE_NAMES_NO_RECORD_MESSAGE = commonJsModule.ON_CALL_PAGE_NAMES_NO_RECORD_MESSAGE;
|
|
3
|
+
export const ON_CALL_PAGE_RECORD_DELETED_MESSAGE_START = commonJsModule.ON_CALL_PAGE_RECORD_DELETED_MESSAGE_START;
|
|
4
|
+
export const getOnCallPageRecordDeletedMessage = commonJsModule.getOnCallPageRecordDeletedMessage;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { OnCallPageAgainNotice } from "./OnCallAcknowledgementTimeout.mjs";
|
|
2
|
+
import { DEFAULT_ALERT_SEVERITY_NAMES } from "../StatusPage/DefaultStatusNames.mjs";
|
|
3
|
+
import { StateListType } from "../../Utils/StateOrder.mjs";
|
|
2
4
|
import { Translator } from "../Translator.mjs";
|
|
3
5
|
export declare enum OnCallPageKind {
|
|
4
6
|
Incident = "incident",
|
|
@@ -8,8 +10,9 @@ export declare enum OnCallPageKind {
|
|
|
8
10
|
}
|
|
9
11
|
export declare const getEnglishPageTranslator: () => Translator;
|
|
10
12
|
export declare const ON_CALL_PAGE_KINDS: ReadonlyArray<OnCallPageKind>;
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
+
export { DEFAULT_ALERT_SEVERITY_NAMES };
|
|
14
|
+
export type OnCallPageNameList = StateListType.IncidentState | StateListType.IncidentSeverity | StateListType.AlertState | StateListType.AlertSeverity;
|
|
15
|
+
export declare const getOnCallPageStateName: (translator: Translator, list: OnCallPageNameList, name: string | null | undefined) => string;
|
|
13
16
|
export declare const getOnCallPageKindLabel: (translator: Translator, kind: OnCallPageKind) => string;
|
|
14
17
|
export declare const getOnCallPageRecordLabel: (translator: Translator, kind: OnCallPageKind, number: string | null | undefined) => string;
|
|
15
18
|
export declare const getOnCallPageKindWords: (translator: Translator, kind: OnCallPageKind) => string;
|
|
@@ -53,6 +56,7 @@ export interface OnCallPageSmsWords {
|
|
|
53
56
|
projectName: string;
|
|
54
57
|
isPageAgain: boolean;
|
|
55
58
|
lead: string;
|
|
59
|
+
isPolicyLead?: boolean | undefined;
|
|
56
60
|
}) => string;
|
|
57
61
|
action: string;
|
|
58
62
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { OnCallPageAgainNotice } from "./OnCallAcknowledgementTimeout";
|
|
2
|
+
import { DEFAULT_ALERT_SEVERITY_NAMES } from "../StatusPage/DefaultStatusNames";
|
|
3
|
+
import { StateListType } from "../../Utils/StateOrder";
|
|
2
4
|
import { Translator } from "../Translator";
|
|
3
5
|
export declare enum OnCallPageKind {
|
|
4
6
|
Incident = "incident",
|
|
@@ -8,8 +10,9 @@ export declare enum OnCallPageKind {
|
|
|
8
10
|
}
|
|
9
11
|
export declare const getEnglishPageTranslator: () => Translator;
|
|
10
12
|
export declare const ON_CALL_PAGE_KINDS: ReadonlyArray<OnCallPageKind>;
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
+
export { DEFAULT_ALERT_SEVERITY_NAMES };
|
|
14
|
+
export type OnCallPageNameList = StateListType.IncidentState | StateListType.IncidentSeverity | StateListType.AlertState | StateListType.AlertSeverity;
|
|
15
|
+
export declare const getOnCallPageStateName: (translator: Translator, list: OnCallPageNameList, name: string | null | undefined) => string;
|
|
13
16
|
export declare const getOnCallPageKindLabel: (translator: Translator, kind: OnCallPageKind) => string;
|
|
14
17
|
export declare const getOnCallPageRecordLabel: (translator: Translator, kind: OnCallPageKind, number: string | null | undefined) => string;
|
|
15
18
|
export declare const getOnCallPageKindWords: (translator: Translator, kind: OnCallPageKind) => string;
|
|
@@ -53,6 +56,7 @@ export interface OnCallPageSmsWords {
|
|
|
53
56
|
projectName: string;
|
|
54
57
|
isPageAgain: boolean;
|
|
55
58
|
lead: string;
|
|
59
|
+
isPolicyLead?: boolean | undefined;
|
|
56
60
|
}) => string;
|
|
57
61
|
action: string;
|
|
58
62
|
}
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getOnCallPageSmsWords = exports.getOnCallPageCantTakeItEscalate = exports.getOnCallPageAcknowledge = exports.getOnCallPageTapToAcknowledge = exports.getOnCallPageViewInOneUptime = exports.getOnCallPageOnCallWhyLine = exports.getOnCallPageChatHeadline = exports.getOnCallPagePersonPagePushBody = exports.getOnCallPagePushWords = exports.getOnCallPageMemberView = exports.getOnCallPageMemberMonitor = exports.getOnCallPageUntitledMember = exports.getOnCallPageNoResources = exports.getOnCallPageNoRootCause = exports.getOnCallPageEmailSubject = exports.getOnCallPageKindWords = exports.getOnCallPageRecordLabel = exports.getOnCallPageKindLabel = exports.getOnCallPageStateName = exports.DEFAULT_ALERT_SEVERITY_NAMES = exports.ON_CALL_PAGE_KINDS = exports.getEnglishPageTranslator = exports.OnCallPageKind = void 0;
|
|
4
4
|
const OnCallAcknowledgementTimeout_1 = require("./OnCallAcknowledgementTimeout");
|
|
5
5
|
const DefaultStatusNames_1 = require("../StatusPage/DefaultStatusNames");
|
|
6
|
+
Object.defineProperty(exports, "DEFAULT_ALERT_SEVERITY_NAMES", { enumerable: true, get: function () { return DefaultStatusNames_1.DEFAULT_ALERT_SEVERITY_NAMES; } });
|
|
7
|
+
const DefaultRecordNames_1 = require("../../Utils/DefaultRecordNames");
|
|
6
8
|
const Translator_1 = require("../Translator");
|
|
7
9
|
/*
|
|
8
10
|
* WHAT A PAGE SAYS, IN THE LANGUAGE OF THE PERSON IT PAGES.
|
|
@@ -123,30 +125,17 @@ exports.ON_CALL_PAGE_KINDS = [
|
|
|
123
125
|
OnCallPageKind.IncidentEpisode,
|
|
124
126
|
OnCallPageKind.AlertEpisode,
|
|
125
127
|
];
|
|
126
|
-
/*
|
|
127
|
-
* The default names a new project's alert severities start with. A status
|
|
128
|
-
* page never shows an alert, so they are not among the status page's
|
|
129
|
-
* names (StatusPage/DefaultStatusNames); a page shows them to its person.
|
|
130
|
-
*/
|
|
131
|
-
exports.DEFAULT_ALERT_SEVERITY_NAMES = [
|
|
132
|
-
(0, Translator_1.translationKey)("High"),
|
|
133
|
-
(0, Translator_1.translationKey)("Low"),
|
|
134
|
-
];
|
|
135
128
|
/*
|
|
136
129
|
* A state's or a severity's name as a page shows it: OneUptime's own
|
|
137
130
|
* default names in the person's language ("Identifiziert", "Kritischer
|
|
138
|
-
* Vorfall", "Hoch"), a name the project gave it as written.
|
|
131
|
+
* Vorfall", "Hoch"), a name the project gave it as written. Which names
|
|
132
|
+
* are defaults goes by the record's own list, as on the Dashboard
|
|
133
|
+
* (Utils/DefaultRecordNames): an incident severity a project named "High"
|
|
134
|
+
* is its own and reads as written, while the default alert severity High
|
|
135
|
+
* reads "Hoch" (#8066).
|
|
139
136
|
*/
|
|
140
|
-
const getOnCallPageStateName = (translator, name) => {
|
|
141
|
-
|
|
142
|
-
return "";
|
|
143
|
-
}
|
|
144
|
-
const trimmed = name.trim();
|
|
145
|
-
if (!(0, DefaultStatusNames_1.isDefaultStatusName)(trimmed) &&
|
|
146
|
-
!exports.DEFAULT_ALERT_SEVERITY_NAMES.includes(trimmed)) {
|
|
147
|
-
return name;
|
|
148
|
-
}
|
|
149
|
-
return translator.translateText(trimmed) || name;
|
|
137
|
+
const getOnCallPageStateName = (translator, list, name) => {
|
|
138
|
+
return (0, DefaultRecordNames_1.translateRecordName)(translator, list, name);
|
|
150
139
|
};
|
|
151
140
|
exports.getOnCallPageStateName = getOnCallPageStateName;
|
|
152
141
|
// "Incident", "Alert episode": a record's kind as a label.
|
|
@@ -355,6 +344,18 @@ const getOnCallPageSmsWords = (translator) => {
|
|
|
355
344
|
return `${withNumber} (${severityName})`;
|
|
356
345
|
},
|
|
357
346
|
head: (data) => {
|
|
347
|
+
if (data.lead && data.isPolicyLead) {
|
|
348
|
+
return data.projectName
|
|
349
|
+
? translator.translateTemplate("{{lead}} for {{record}} in {{project}}", {
|
|
350
|
+
lead: data.lead,
|
|
351
|
+
record: data.record,
|
|
352
|
+
project: data.projectName,
|
|
353
|
+
})
|
|
354
|
+
: translator.translateTemplate("{{lead}} for {{record}}", {
|
|
355
|
+
lead: data.lead,
|
|
356
|
+
record: data.record,
|
|
357
|
+
});
|
|
358
|
+
}
|
|
358
359
|
if (data.lead) {
|
|
359
360
|
return data.projectName
|
|
360
361
|
? translator.translateTemplate("{{lead}} about {{record}} in {{project}}", {
|