@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
package/Types/Translator.mjs
CHANGED
|
@@ -2,6 +2,7 @@ import commonJsModule from "./Translator.js";
|
|
|
2
2
|
export const DEFAULT_LANGUAGE = commonJsModule.DEFAULT_LANGUAGE;
|
|
3
3
|
export const DOT_ZERO_INLINE_SEPARATOR = commonJsModule.DOT_ZERO_INLINE_SEPARATOR;
|
|
4
4
|
export const INLINE_SEPARATOR = commonJsModule.INLINE_SEPARATOR;
|
|
5
|
+
export const SAME_AS_ENGLISH_MARK = commonJsModule.SAME_AS_ENGLISH_MARK;
|
|
5
6
|
export const composedValue = commonJsModule.composedValue;
|
|
6
7
|
export const createTranslator = commonJsModule.createTranslator;
|
|
7
8
|
export const fillTemplate = commonJsModule.fillTemplate;
|
|
@@ -86,3 +86,36 @@ export declare const getActivityAtRenewal: (data: {
|
|
|
86
86
|
reportedInactivityInSeconds: number | null;
|
|
87
87
|
now: Date;
|
|
88
88
|
}) => Date;
|
|
89
|
+
export declare const LONGEST_INACTIVITY_FIELD: string;
|
|
90
|
+
export interface ReportedInactivity {
|
|
91
|
+
forSeconds: number;
|
|
92
|
+
endedSecondsAgo: number;
|
|
93
|
+
}
|
|
94
|
+
export declare const readReportedLongestInactivity: (value: unknown) => ReportedInactivity | null;
|
|
95
|
+
export interface RenewalReport {
|
|
96
|
+
inactiveForInSeconds: number | null;
|
|
97
|
+
longestInactivity: ReportedInactivity | null;
|
|
98
|
+
}
|
|
99
|
+
export declare const NO_RENEWAL_REPORT: RenewalReport;
|
|
100
|
+
export type SessionRenewalOutcome = {
|
|
101
|
+
hasEnded: true;
|
|
102
|
+
reason: SessionEndReason;
|
|
103
|
+
lastActiveAt: Date;
|
|
104
|
+
} | {
|
|
105
|
+
hasEnded: false;
|
|
106
|
+
lastActiveAt: Date;
|
|
107
|
+
};
|
|
108
|
+
export declare const getUnknownInactivity: (data: {
|
|
109
|
+
storedLastActiveAt: Date;
|
|
110
|
+
longestInactivity: ReportedInactivity | null;
|
|
111
|
+
now: Date;
|
|
112
|
+
}) => {
|
|
113
|
+
fromMs: number;
|
|
114
|
+
toMs: number;
|
|
115
|
+
} | null;
|
|
116
|
+
export declare const decideSessionRenewal: (data: {
|
|
117
|
+
facts: SessionFacts;
|
|
118
|
+
lengths: SessionLengths | null | undefined;
|
|
119
|
+
report: RenewalReport;
|
|
120
|
+
now: Date;
|
|
121
|
+
}) => SessionRenewalOutcome;
|
|
@@ -86,3 +86,36 @@ export declare const getActivityAtRenewal: (data: {
|
|
|
86
86
|
reportedInactivityInSeconds: number | null;
|
|
87
87
|
now: Date;
|
|
88
88
|
}) => Date;
|
|
89
|
+
export declare const LONGEST_INACTIVITY_FIELD: string;
|
|
90
|
+
export interface ReportedInactivity {
|
|
91
|
+
forSeconds: number;
|
|
92
|
+
endedSecondsAgo: number;
|
|
93
|
+
}
|
|
94
|
+
export declare const readReportedLongestInactivity: (value: unknown) => ReportedInactivity | null;
|
|
95
|
+
export interface RenewalReport {
|
|
96
|
+
inactiveForInSeconds: number | null;
|
|
97
|
+
longestInactivity: ReportedInactivity | null;
|
|
98
|
+
}
|
|
99
|
+
export declare const NO_RENEWAL_REPORT: RenewalReport;
|
|
100
|
+
export type SessionRenewalOutcome = {
|
|
101
|
+
hasEnded: true;
|
|
102
|
+
reason: SessionEndReason;
|
|
103
|
+
lastActiveAt: Date;
|
|
104
|
+
} | {
|
|
105
|
+
hasEnded: false;
|
|
106
|
+
lastActiveAt: Date;
|
|
107
|
+
};
|
|
108
|
+
export declare const getUnknownInactivity: (data: {
|
|
109
|
+
storedLastActiveAt: Date;
|
|
110
|
+
longestInactivity: ReportedInactivity | null;
|
|
111
|
+
now: Date;
|
|
112
|
+
}) => {
|
|
113
|
+
fromMs: number;
|
|
114
|
+
toMs: number;
|
|
115
|
+
} | null;
|
|
116
|
+
export declare const decideSessionRenewal: (data: {
|
|
117
|
+
facts: SessionFacts;
|
|
118
|
+
lengths: SessionLengths | null | undefined;
|
|
119
|
+
report: RenewalReport;
|
|
120
|
+
now: Date;
|
|
121
|
+
}) => SessionRenewalOutcome;
|
|
@@ -31,10 +31,14 @@
|
|
|
31
31
|
* Both are counted by the server, from the session's own facts
|
|
32
32
|
* (SessionFacts): when it signed in, and when its person was last active. A
|
|
33
33
|
* browser says how long its person has not clicked, typed or scrolled when
|
|
34
|
-
* it renews the session
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
34
|
+
* it renews the session, and the longest time they went without since its
|
|
35
|
+
* last renewal - a browser closed, a computer asleep - so opening
|
|
36
|
+
* OneUptime again after the idle timeout does not bring the session back
|
|
37
|
+
* (issue #6789); anything else (the mobile app, an older page) is active
|
|
38
|
+
* whenever it renews. The server decides at every renewal
|
|
39
|
+
* (decideSessionRenewal) and on every request (getSessionEnd), never the
|
|
40
|
+
* browser, and a change applies to the sessions there are: a shorter
|
|
41
|
+
* length signs out everyone it is past.
|
|
38
42
|
*
|
|
39
43
|
* The values live in the GlobalConfig columns below, the lengths in whole
|
|
40
44
|
* minutes. The Enterprise module hands core what they hold (EnterpriseEdition.
|
|
@@ -42,7 +46,8 @@
|
|
|
42
46
|
* as it always has.
|
|
43
47
|
*/
|
|
44
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
|
-
exports.getActivityAtRenewal = exports.readReportedInactivityInSeconds = exports.MAX_REPORTED_INACTIVITY_IN_SECONDS = exports.getSessionEndReachedBy = exports.getSessionEnd = exports.INACTIVE_FOR_IN_SECONDS_FIELD = exports.readSessionEndReason = exports.SESSION_ENDED_QUERY_PARAM = exports.isSessionEndReason = exports.SessionEndReason = exports.doesShortenAnySession = exports.getIdleTimeoutInMinutes = exports.getSessionLengthRule = exports.hasSessionLimits = exports.isSessionLengthRuleSet = exports.sanitizeSessionLengths = exports.readSessionLengths = exports.toSessionLengths = exports.readSessionLengthSettings = exports.NO_SESSION_LENGTH_SETTINGS = exports.NO_SESSION_LENGTHS = exports.NO_SESSION_LENGTH_RULE = exports.readSessionLengthValue = exports.getSessionLengthSettingProblem = exports.getSeparateSsoSessionLengthsProblem = exports.getSessionLengthProblem = exports.getSessionLengthRange = exports.SEPARATE_SSO_SESSION_LENGTHS_PROBLEM = exports.SESSION_IDLE_TIMEOUT_PROBLEM = exports.SESSION_LENGTH_PROBLEM = exports.SESSION_IDLE_TIMEOUT_CHOICES_IN_MINUTES = exports.SESSION_LENGTH_CHOICES_IN_MINUTES = exports.MAX_SESSION_IDLE_TIMEOUT_IN_MINUTES = exports.DEFAULT_SESSION_IDLE_TIMEOUT_IN_MINUTES = exports.DEFAULT_SESSION_IDLE_DAYS = exports.MAX_SESSION_LENGTH_IN_MINUTES = exports.MIN_SESSION_IDLE_TIMEOUT_IN_MINUTES = exports.MIN_SESSION_LENGTH_IN_MINUTES = exports.MINUTES_IN_A_DAY = exports.MINUTES_IN_AN_HOUR = exports.getSessionLengthColumnKind = exports.SessionLengthKind = exports.SESSION_LENGTH_SETTING_COLUMNS = exports.SESSION_LENGTH_COLUMNS = exports.SEPARATE_SSO_SESSION_LENGTHS_COLUMN = exports.SSO_SESSION_IDLE_TIMEOUT_COLUMN = exports.SSO_SESSION_LENGTH_COLUMN = exports.SESSION_IDLE_TIMEOUT_COLUMN = exports.SESSION_LENGTH_COLUMN = void 0;
|
|
49
|
+
exports.LONGEST_INACTIVITY_FIELD = exports.getActivityAtRenewal = exports.readReportedInactivityInSeconds = exports.MAX_REPORTED_INACTIVITY_IN_SECONDS = exports.getSessionEndReachedBy = exports.getSessionEnd = exports.INACTIVE_FOR_IN_SECONDS_FIELD = exports.readSessionEndReason = exports.SESSION_ENDED_QUERY_PARAM = exports.isSessionEndReason = exports.SessionEndReason = exports.doesShortenAnySession = exports.getIdleTimeoutInMinutes = exports.getSessionLengthRule = exports.hasSessionLimits = exports.isSessionLengthRuleSet = exports.sanitizeSessionLengths = exports.readSessionLengths = exports.toSessionLengths = exports.readSessionLengthSettings = exports.NO_SESSION_LENGTH_SETTINGS = exports.NO_SESSION_LENGTHS = exports.NO_SESSION_LENGTH_RULE = exports.readSessionLengthValue = exports.getSessionLengthSettingProblem = exports.getSeparateSsoSessionLengthsProblem = exports.getSessionLengthProblem = exports.getSessionLengthRange = exports.SEPARATE_SSO_SESSION_LENGTHS_PROBLEM = exports.SESSION_IDLE_TIMEOUT_PROBLEM = exports.SESSION_LENGTH_PROBLEM = exports.SESSION_IDLE_TIMEOUT_CHOICES_IN_MINUTES = exports.SESSION_LENGTH_CHOICES_IN_MINUTES = exports.MAX_SESSION_IDLE_TIMEOUT_IN_MINUTES = exports.DEFAULT_SESSION_IDLE_TIMEOUT_IN_MINUTES = exports.DEFAULT_SESSION_IDLE_DAYS = exports.MAX_SESSION_LENGTH_IN_MINUTES = exports.MIN_SESSION_IDLE_TIMEOUT_IN_MINUTES = exports.MIN_SESSION_LENGTH_IN_MINUTES = exports.MINUTES_IN_A_DAY = exports.MINUTES_IN_AN_HOUR = exports.getSessionLengthColumnKind = exports.SessionLengthKind = exports.SESSION_LENGTH_SETTING_COLUMNS = exports.SESSION_LENGTH_COLUMNS = exports.SEPARATE_SSO_SESSION_LENGTHS_COLUMN = exports.SSO_SESSION_IDLE_TIMEOUT_COLUMN = exports.SSO_SESSION_LENGTH_COLUMN = exports.SESSION_IDLE_TIMEOUT_COLUMN = exports.SESSION_LENGTH_COLUMN = void 0;
|
|
50
|
+
exports.decideSessionRenewal = exports.getUnknownInactivity = exports.NO_RENEWAL_REPORT = exports.readReportedLongestInactivity = void 0;
|
|
46
51
|
exports.SESSION_LENGTH_COLUMN = "sessionLengthInMinutes";
|
|
47
52
|
exports.SESSION_IDLE_TIMEOUT_COLUMN = "sessionIdleTimeoutInMinutes";
|
|
48
53
|
exports.SSO_SESSION_LENGTH_COLUMN = "ssoSessionLengthInMinutes";
|
|
@@ -411,3 +416,127 @@ const getActivityAtRenewal = (data) => {
|
|
|
411
416
|
return new Date(Math.min(data.now.getTime(), Math.max(data.storedLastActiveAt.getTime(), reportedMs)));
|
|
412
417
|
};
|
|
413
418
|
exports.getActivityAtRenewal = getActivityAtRenewal;
|
|
419
|
+
/*
|
|
420
|
+
* THE LONGEST TIME WITHOUT USE SINCE THE LAST RENEWAL (issue #6789).
|
|
421
|
+
*
|
|
422
|
+
* How long the person has not used OneUptime now (inactiveForInSeconds) is
|
|
423
|
+
* not enough on its own. Someone who closes the browser, or whose computer
|
|
424
|
+
* sleeps, and opens OneUptime again hours later clicks before the session
|
|
425
|
+
* is renewed - opening the page is a click's worth of activity - so that
|
|
426
|
+
* renewal says they were active a moment ago. A tab left in the background
|
|
427
|
+
* that nobody brought back does the same the moment they do. So the
|
|
428
|
+
* Dashboard and the Admin Dashboard say, too, the longest time that ended
|
|
429
|
+
* since the session was last renewed during which nobody used OneUptime in
|
|
430
|
+
* any tab of the browser (Common/UI/Utils/UserActivity): how long it
|
|
431
|
+
* lasted, and how long ago it ended, in whole seconds - durations, never
|
|
432
|
+
* the browser's clock. The server ends the session when it reached the
|
|
433
|
+
* idle timeout, counting it only from what the session knew of its
|
|
434
|
+
* person's activity already: activity the server heard of cuts it short.
|
|
435
|
+
*/
|
|
436
|
+
exports.LONGEST_INACTIVITY_FIELD = "longestInactivity";
|
|
437
|
+
/*
|
|
438
|
+
* The time without use a renewal reports (LONGEST_INACTIVITY_FIELD), or
|
|
439
|
+
* null when it reports none it can read: an object whose two durations are
|
|
440
|
+
* each read as inactiveForInSeconds is (readReportedInactivityInSeconds) -
|
|
441
|
+
* a whole, non-negative number of seconds, no more than
|
|
442
|
+
* MAX_REPORTED_INACTIVITY_IN_SECONDS. Anything else is no report, and
|
|
443
|
+
* never a reason to end a session.
|
|
444
|
+
*/
|
|
445
|
+
const readReportedLongestInactivity = (value) => {
|
|
446
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) {
|
|
447
|
+
return null;
|
|
448
|
+
}
|
|
449
|
+
const report = value;
|
|
450
|
+
const forSeconds = (0, exports.readReportedInactivityInSeconds)(report["forSeconds"]);
|
|
451
|
+
const endedSecondsAgo = (0, exports.readReportedInactivityInSeconds)(report["endedSecondsAgo"]);
|
|
452
|
+
if (forSeconds === null || endedSecondsAgo === null) {
|
|
453
|
+
return null;
|
|
454
|
+
}
|
|
455
|
+
return { forSeconds, endedSecondsAgo };
|
|
456
|
+
};
|
|
457
|
+
exports.readReportedLongestInactivity = readReportedLongestInactivity;
|
|
458
|
+
exports.NO_RENEWAL_REPORT = {
|
|
459
|
+
inactiveForInSeconds: null,
|
|
460
|
+
longestInactivity: null,
|
|
461
|
+
};
|
|
462
|
+
/*
|
|
463
|
+
* The part of a reported time without use that the session did not know of
|
|
464
|
+
* already, in milliseconds since 1970, or null when there is none: it ends
|
|
465
|
+
* where the browser says, and starts where the browser says or at the
|
|
466
|
+
* session's last activity, whichever is later. Activity the server heard of
|
|
467
|
+
* - a renewal in another tab, the sign-in itself - is never counted as
|
|
468
|
+
* time without use, so a browser that kept an older time (a previous
|
|
469
|
+
* sign-in's, say) can end no session with it.
|
|
470
|
+
*/
|
|
471
|
+
const getUnknownInactivity = (data) => {
|
|
472
|
+
if (!data.longestInactivity) {
|
|
473
|
+
return null;
|
|
474
|
+
}
|
|
475
|
+
const toMs = data.now.getTime() - data.longestInactivity.endedSecondsAgo * 1000;
|
|
476
|
+
const fromMs = Math.max(toMs - data.longestInactivity.forSeconds * 1000, data.storedLastActiveAt.getTime());
|
|
477
|
+
if (toMs <= fromMs) {
|
|
478
|
+
return null;
|
|
479
|
+
}
|
|
480
|
+
return { fromMs, toMs };
|
|
481
|
+
};
|
|
482
|
+
exports.getUnknownInactivity = getUnknownInactivity;
|
|
483
|
+
/*
|
|
484
|
+
* Whether a renewal at `now` may go ahead under the lengths (null: none
|
|
485
|
+
* set), and when its person was last active - the one place a renewal of
|
|
486
|
+
* a session decides (UserSessionService.decideRenewal):
|
|
487
|
+
*
|
|
488
|
+
* - its kind's session length counts from its sign-in, however active
|
|
489
|
+
* its person is;
|
|
490
|
+
* - its kind's idle timeout counts from its person's last activity. While
|
|
491
|
+
* one is set, what the browser reports counts: how long its person has
|
|
492
|
+
* not used OneUptime now (never further back than what the session
|
|
493
|
+
* knew, never after now - getActivityAtRenewal), and the longest time
|
|
494
|
+
* they went without since the last renewal, which ends the session
|
|
495
|
+
* when the part the session did not know of reached the idle timeout
|
|
496
|
+
* (getUnknownInactivity). Without a report of how long it has been, the
|
|
497
|
+
* session's own last activity decides, and the renewal is the activity
|
|
498
|
+
* - as every renewal has always been. Without an idle timeout set,
|
|
499
|
+
* nothing the browser says is asked.
|
|
500
|
+
*
|
|
501
|
+
* A session that ended says why: whichever of the two came first, the
|
|
502
|
+
* length where both fall at the same moment (getSessionEnd).
|
|
503
|
+
*/
|
|
504
|
+
const decideSessionRenewal = (data) => {
|
|
505
|
+
const rule = (0, exports.getSessionLengthRule)(data.lengths, data.facts.isSsoSignIn);
|
|
506
|
+
const isReportAsked = rule.idleTimeoutInMinutes !== null;
|
|
507
|
+
const report = isReportAsked ? data.report : exports.NO_RENEWAL_REPORT;
|
|
508
|
+
const lastActiveAt = (0, exports.getActivityAtRenewal)({
|
|
509
|
+
storedLastActiveAt: data.facts.lastActiveAt,
|
|
510
|
+
reportedInactivityInSeconds: report.inactiveForInSeconds,
|
|
511
|
+
now: data.now,
|
|
512
|
+
});
|
|
513
|
+
// Without a report of how long it has been, inactivity is what the session knew of it.
|
|
514
|
+
let idleFrom = report.inactiveForInSeconds === null
|
|
515
|
+
? data.facts.lastActiveAt
|
|
516
|
+
: lastActiveAt;
|
|
517
|
+
// An earlier time without use that already reached the idle timeout ended the session then.
|
|
518
|
+
const unknownInactivity = (0, exports.getUnknownInactivity)({
|
|
519
|
+
storedLastActiveAt: data.facts.lastActiveAt,
|
|
520
|
+
longestInactivity: report.longestInactivity,
|
|
521
|
+
now: data.now,
|
|
522
|
+
});
|
|
523
|
+
if (unknownInactivity &&
|
|
524
|
+
unknownInactivity.toMs - unknownInactivity.fromMs >=
|
|
525
|
+
(0, exports.getIdleTimeoutInMinutes)(rule) * MS_IN_A_MINUTE &&
|
|
526
|
+
unknownInactivity.fromMs < idleFrom.getTime()) {
|
|
527
|
+
idleFrom = new Date(unknownInactivity.fromMs);
|
|
528
|
+
}
|
|
529
|
+
const end = (0, exports.getSessionEnd)(Object.assign(Object.assign({}, data.facts), { lastActiveAt: idleFrom }), data.lengths);
|
|
530
|
+
if (end.endsAt.getTime() <= data.now.getTime()) {
|
|
531
|
+
return {
|
|
532
|
+
hasEnded: true,
|
|
533
|
+
reason: end.reason,
|
|
534
|
+
// Activity the browser saw after the session ended is not the session's.
|
|
535
|
+
lastActiveAt: idleFrom.getTime() <= end.endsAt.getTime()
|
|
536
|
+
? idleFrom
|
|
537
|
+
: data.facts.lastActiveAt,
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
return { hasEnded: false, lastActiveAt: lastActiveAt };
|
|
541
|
+
};
|
|
542
|
+
exports.decideSessionRenewal = decideSessionRenewal;
|
|
@@ -2,6 +2,7 @@ import commonJsModule from "./SessionLength.js";
|
|
|
2
2
|
export const DEFAULT_SESSION_IDLE_DAYS = commonJsModule.DEFAULT_SESSION_IDLE_DAYS;
|
|
3
3
|
export const DEFAULT_SESSION_IDLE_TIMEOUT_IN_MINUTES = commonJsModule.DEFAULT_SESSION_IDLE_TIMEOUT_IN_MINUTES;
|
|
4
4
|
export const INACTIVE_FOR_IN_SECONDS_FIELD = commonJsModule.INACTIVE_FOR_IN_SECONDS_FIELD;
|
|
5
|
+
export const LONGEST_INACTIVITY_FIELD = commonJsModule.LONGEST_INACTIVITY_FIELD;
|
|
5
6
|
export const MAX_REPORTED_INACTIVITY_IN_SECONDS = commonJsModule.MAX_REPORTED_INACTIVITY_IN_SECONDS;
|
|
6
7
|
export const MAX_SESSION_IDLE_TIMEOUT_IN_MINUTES = commonJsModule.MAX_SESSION_IDLE_TIMEOUT_IN_MINUTES;
|
|
7
8
|
export const MAX_SESSION_LENGTH_IN_MINUTES = commonJsModule.MAX_SESSION_LENGTH_IN_MINUTES;
|
|
@@ -9,6 +10,7 @@ export const MINUTES_IN_AN_HOUR = commonJsModule.MINUTES_IN_AN_HOUR;
|
|
|
9
10
|
export const MINUTES_IN_A_DAY = commonJsModule.MINUTES_IN_A_DAY;
|
|
10
11
|
export const MIN_SESSION_IDLE_TIMEOUT_IN_MINUTES = commonJsModule.MIN_SESSION_IDLE_TIMEOUT_IN_MINUTES;
|
|
11
12
|
export const MIN_SESSION_LENGTH_IN_MINUTES = commonJsModule.MIN_SESSION_LENGTH_IN_MINUTES;
|
|
13
|
+
export const NO_RENEWAL_REPORT = commonJsModule.NO_RENEWAL_REPORT;
|
|
12
14
|
export const NO_SESSION_LENGTHS = commonJsModule.NO_SESSION_LENGTHS;
|
|
13
15
|
export const NO_SESSION_LENGTH_RULE = commonJsModule.NO_SESSION_LENGTH_RULE;
|
|
14
16
|
export const NO_SESSION_LENGTH_SETTINGS = commonJsModule.NO_SESSION_LENGTH_SETTINGS;
|
|
@@ -27,6 +29,7 @@ export const SSO_SESSION_IDLE_TIMEOUT_COLUMN = commonJsModule.SSO_SESSION_IDLE_T
|
|
|
27
29
|
export const SSO_SESSION_LENGTH_COLUMN = commonJsModule.SSO_SESSION_LENGTH_COLUMN;
|
|
28
30
|
export const SessionEndReason = commonJsModule.SessionEndReason;
|
|
29
31
|
export const SessionLengthKind = commonJsModule.SessionLengthKind;
|
|
32
|
+
export const decideSessionRenewal = commonJsModule.decideSessionRenewal;
|
|
30
33
|
export const doesShortenAnySession = commonJsModule.doesShortenAnySession;
|
|
31
34
|
export const getActivityAtRenewal = commonJsModule.getActivityAtRenewal;
|
|
32
35
|
export const getIdleTimeoutInMinutes = commonJsModule.getIdleTimeoutInMinutes;
|
|
@@ -38,10 +41,12 @@ export const getSessionLengthProblem = commonJsModule.getSessionLengthProblem;
|
|
|
38
41
|
export const getSessionLengthRange = commonJsModule.getSessionLengthRange;
|
|
39
42
|
export const getSessionLengthRule = commonJsModule.getSessionLengthRule;
|
|
40
43
|
export const getSessionLengthSettingProblem = commonJsModule.getSessionLengthSettingProblem;
|
|
44
|
+
export const getUnknownInactivity = commonJsModule.getUnknownInactivity;
|
|
41
45
|
export const hasSessionLimits = commonJsModule.hasSessionLimits;
|
|
42
46
|
export const isSessionEndReason = commonJsModule.isSessionEndReason;
|
|
43
47
|
export const isSessionLengthRuleSet = commonJsModule.isSessionLengthRuleSet;
|
|
44
48
|
export const readReportedInactivityInSeconds = commonJsModule.readReportedInactivityInSeconds;
|
|
49
|
+
export const readReportedLongestInactivity = commonJsModule.readReportedLongestInactivity;
|
|
45
50
|
export const readSessionEndReason = commonJsModule.readSessionEndReason;
|
|
46
51
|
export const readSessionLengthSettings = commonJsModule.readSessionLengthSettings;
|
|
47
52
|
export const readSessionLengthValue = commonJsModule.readSessionLengthValue;
|
|
@@ -272,7 +272,7 @@ const getRunRecordArgument = (metadata) => {
|
|
|
272
272
|
exports.getRunRecordArgument = getRunRecordArgument;
|
|
273
273
|
const CAPITALIZED_WORD_PATTERN = /^\p{Lu}\p{Ll}+$/u;
|
|
274
274
|
/*
|
|
275
|
-
* A model's name in the middle of a sentence: "
|
|
275
|
+
* A model's name in the middle of a sentence: "maintenance event",
|
|
276
276
|
* keeping a word that is not simply capitalized as it is ("IoT Fleet" keeps
|
|
277
277
|
* IoT).
|
|
278
278
|
*/
|
|
@@ -7087,7 +7087,7 @@ const TEMPLATE_DEFINITIONS = [
|
|
|
7087
7087
|
category: WorkflowTemplateCategory.ScheduledMaintenance,
|
|
7088
7088
|
icon: IconProp_1.default.Calendar,
|
|
7089
7089
|
workflowName: "Announce maintenance in Slack",
|
|
7090
|
-
workflowDescription: "Posts to Slack whenever a
|
|
7090
|
+
workflowDescription: "Posts to Slack whenever a maintenance event is created.",
|
|
7091
7091
|
variables: [SLACK_WEBHOOK_URL],
|
|
7092
7092
|
graph: {
|
|
7093
7093
|
nodes: [
|
|
@@ -7139,7 +7139,7 @@ const TEMPLATE_DEFINITIONS = [
|
|
|
7139
7139
|
category: WorkflowTemplateCategory.ScheduledMaintenance,
|
|
7140
7140
|
icon: IconProp_1.default.Calendar,
|
|
7141
7141
|
workflowName: "Announce maintenance in Mattermost",
|
|
7142
|
-
workflowDescription: "Posts to Mattermost whenever a
|
|
7142
|
+
workflowDescription: "Posts to Mattermost whenever a maintenance event is created.",
|
|
7143
7143
|
variables: [MATTERMOST_WEBHOOK_URL],
|
|
7144
7144
|
graph: {
|
|
7145
7145
|
nodes: [
|
|
@@ -11,23 +11,34 @@ var WorkflowStatus;
|
|
|
11
11
|
WorkflowStatus["Timeout"] = "Timeout";
|
|
12
12
|
WorkflowStatus["WorkflowCountExceeded"] = "Workflow Count Exceeded";
|
|
13
13
|
})(WorkflowStatus || (WorkflowStatus = {}));
|
|
14
|
+
/*
|
|
15
|
+
* Marks an English text as a key of the Dashboard's locales - the same
|
|
16
|
+
* marker as Common/UI/Utils/TranslateTemplate's translationKey, kept here
|
|
17
|
+
* so this file stays free of the UI. It returns the text unchanged.
|
|
18
|
+
*/
|
|
19
|
+
const translationKey = (text) => {
|
|
20
|
+
return text;
|
|
21
|
+
};
|
|
14
22
|
/*
|
|
15
23
|
* A run's status in the words the dashboard shows it in. Two of them read
|
|
16
24
|
* differently from their stored value: a run that worked is "Executed", and a
|
|
17
25
|
* run the plan did not allow is "Execution Exceeded Current Plan". The status
|
|
18
|
-
* pill and a downloaded run
|
|
19
|
-
* says what the list they downloaded it from said.
|
|
26
|
+
* pill, the runs' Status filter and a downloaded run all read from here, so a
|
|
27
|
+
* log someone downloads says what the list they downloaded it from said. Each
|
|
28
|
+
* is a key of the Dashboard's locales (its extractor reads this file as a
|
|
29
|
+
* "keys" root): the pill and the filter look it up in the reader's language,
|
|
30
|
+
* while a downloaded run keeps the English.
|
|
20
31
|
*/
|
|
21
32
|
const WORKFLOW_STATUS_LABELS = {
|
|
22
|
-
[WorkflowStatus.Scheduled]: "Scheduled",
|
|
23
|
-
[WorkflowStatus.Running]: "Running",
|
|
24
|
-
[WorkflowStatus.Waiting]: "Waiting",
|
|
25
|
-
[WorkflowStatus.Success]: "Executed",
|
|
26
|
-
[WorkflowStatus.Error]: "Error",
|
|
27
|
-
[WorkflowStatus.Timeout]: "Timeout",
|
|
28
|
-
[WorkflowStatus.WorkflowCountExceeded]: "Execution Exceeded Current Plan",
|
|
33
|
+
[WorkflowStatus.Scheduled]: translationKey("Scheduled"),
|
|
34
|
+
[WorkflowStatus.Running]: translationKey("Running"),
|
|
35
|
+
[WorkflowStatus.Waiting]: translationKey("Waiting"),
|
|
36
|
+
[WorkflowStatus.Success]: translationKey("Executed"),
|
|
37
|
+
[WorkflowStatus.Error]: translationKey("Error"),
|
|
38
|
+
[WorkflowStatus.Timeout]: translationKey("Timeout"),
|
|
39
|
+
[WorkflowStatus.WorkflowCountExceeded]: translationKey("Execution Exceeded Current Plan"),
|
|
29
40
|
};
|
|
30
|
-
exports.UNKNOWN_WORKFLOW_STATUS_LABEL = "Unknown";
|
|
41
|
+
exports.UNKNOWN_WORKFLOW_STATUS_LABEL = translationKey("Unknown");
|
|
31
42
|
const getWorkflowStatusLabel = (status) => {
|
|
32
43
|
if (!status) {
|
|
33
44
|
return exports.UNKNOWN_WORKFLOW_STATUS_LABEL;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import FilterCondition from "../../Filter/FilterCondition.mjs";
|
|
2
2
|
import NotificationRuleCondition from "./NotificationRuleCondition.mjs";
|
|
3
|
+
import { NotificationRuleUpdateKind } from "./NotificationRuleUpdates.mjs";
|
|
3
4
|
export default interface BaseNotificationRule {
|
|
4
5
|
_type: string;
|
|
5
6
|
filterCondition: FilterCondition;
|
|
@@ -9,4 +10,5 @@ export default interface BaseNotificationRule {
|
|
|
9
10
|
existingTeam?: string;
|
|
10
11
|
shouldPostToExistingChat?: boolean;
|
|
11
12
|
existingChatIds?: Array<string>;
|
|
13
|
+
updatesToPost?: Array<NotificationRuleUpdateKind> | undefined;
|
|
12
14
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import FilterCondition from "../../Filter/FilterCondition";
|
|
2
2
|
import NotificationRuleCondition from "./NotificationRuleCondition";
|
|
3
|
+
import { NotificationRuleUpdateKind } from "./NotificationRuleUpdates";
|
|
3
4
|
export default interface BaseNotificationRule {
|
|
4
5
|
_type: string;
|
|
5
6
|
filterCondition: FilterCondition;
|
|
@@ -9,4 +10,5 @@ export default interface BaseNotificationRule {
|
|
|
9
10
|
existingTeam?: string;
|
|
10
11
|
shouldPostToExistingChat?: boolean;
|
|
11
12
|
existingChatIds?: Array<string>;
|
|
13
|
+
updatesToPost?: Array<NotificationRuleUpdateKind> | undefined;
|
|
12
14
|
}
|
|
@@ -5,6 +5,7 @@ import IncidentState from "../../../Models/DatabaseModels/IncidentState.mjs";
|
|
|
5
5
|
import Label from "../../../Models/DatabaseModels/Label.mjs";
|
|
6
6
|
import Monitor from "../../../Models/DatabaseModels/Monitor.mjs";
|
|
7
7
|
import MonitorStatus from "../../../Models/DatabaseModels/MonitorStatus.mjs";
|
|
8
|
+
import OnCallDutyPolicy from "../../../Models/DatabaseModels/OnCallDutyPolicy.mjs";
|
|
8
9
|
import ScheduledMaintenanceState from "../../../Models/DatabaseModels/ScheduledMaintenanceState.mjs";
|
|
9
10
|
import ServiceLevelObjective from "../../../Models/DatabaseModels/ServiceLevelObjective.mjs";
|
|
10
11
|
import { DropdownOption } from "../../../UI/Components/Dropdown/Dropdown.mjs";
|
|
@@ -46,6 +47,7 @@ export declare enum NotificationRuleConditionCheckOn {
|
|
|
46
47
|
OnCallDutyPolicyName = "On Call Duty Policy Name",
|
|
47
48
|
OnCallDutyPolicyDescription = "On Call Duty Policy Description",
|
|
48
49
|
OnCallDutyPolicyLabels = "On Call Duty Policy Labels",
|
|
50
|
+
OnCallDutyPolicies = "On-Call Policy",
|
|
49
51
|
SecurityCaseTitle = "Security Case Title",
|
|
50
52
|
SecurityCaseDescription = "Security Case Description",
|
|
51
53
|
SecurityCasePriority = "Security Case Priority",
|
|
@@ -56,8 +58,21 @@ export declare enum NotificationRuleConditionCheckOn {
|
|
|
56
58
|
SloName = "SLO Name",
|
|
57
59
|
Slos = "SLOs",
|
|
58
60
|
SloLabels = "SLO Labels",
|
|
59
|
-
SloErrorBudgetPolicyChange = "Error Budget Policy Change"
|
|
61
|
+
SloErrorBudgetPolicyChange = "Error Budget Policy Change",
|
|
62
|
+
IncidentOwners = "Incident Owner",
|
|
63
|
+
AlertOwners = "Alert Owner",
|
|
64
|
+
IncidentEpisodeOwners = "Incident Episode Owner",
|
|
65
|
+
AlertEpisodeOwners = "Alert Episode Owner",
|
|
66
|
+
ScheduledMaintenanceOwners = "Scheduled Maintenance Owner",
|
|
67
|
+
MonitorOwners = "Monitor Owner",
|
|
68
|
+
OnCallDutyPolicyOwners = "On-Call Policy Owner",
|
|
69
|
+
SloOwners = "SLO Owner"
|
|
60
70
|
}
|
|
71
|
+
export type NotificationRuleConditionValues = {
|
|
72
|
+
[key in NotificationRuleConditionCheckOn]: string | Array<string> | undefined;
|
|
73
|
+
};
|
|
74
|
+
export declare const OWNER_CHECK_ON_BY_EVENT_TYPE: Readonly<Partial<Record<NotificationRuleEventType, NotificationRuleConditionCheckOn>>>;
|
|
75
|
+
export declare const OWNER_CHECK_ONS: ReadonlyArray<NotificationRuleConditionCheckOn>;
|
|
61
76
|
export declare const CHECK_ON_LABELS: Readonly<Partial<Record<NotificationRuleConditionCheckOn, string>>>;
|
|
62
77
|
export declare function getCheckOnLabel(checkOn: NotificationRuleConditionCheckOn): string;
|
|
63
78
|
export declare enum ConditionType {
|
|
@@ -107,6 +122,14 @@ export declare class NotificationRuleConditionUtil {
|
|
|
107
122
|
checkOn: NotificationRuleConditionCheckOn | undefined;
|
|
108
123
|
conditionType: ConditionType | undefined;
|
|
109
124
|
}): boolean;
|
|
125
|
+
static isPeopleValueField(data: {
|
|
126
|
+
checkOn: NotificationRuleConditionCheckOn | undefined;
|
|
127
|
+
conditionType: ConditionType | undefined;
|
|
128
|
+
}): boolean;
|
|
129
|
+
static isOwnerCheckOn(checkOn: NotificationRuleConditionCheckOn | undefined): boolean;
|
|
130
|
+
static getValues(values: Partial<NotificationRuleConditionValues>): NotificationRuleConditionValues;
|
|
131
|
+
static getCheckOnsUsed(filters: Array<NotificationRuleCondition> | undefined | null): Set<NotificationRuleConditionCheckOn>;
|
|
132
|
+
static getValueIds(condition: NotificationRuleCondition | undefined | null): Array<string>;
|
|
110
133
|
static getDropdownOptionsByCheckOn(data: {
|
|
111
134
|
alertSeverities: Array<AlertSeverity>;
|
|
112
135
|
alertStates: Array<AlertState>;
|
|
@@ -119,6 +142,8 @@ export declare class NotificationRuleConditionUtil {
|
|
|
119
142
|
securityCasePriorities?: Array<SecurityCasePriority> | undefined;
|
|
120
143
|
securityCaseStatuses?: Array<SecurityCaseStatus> | undefined;
|
|
121
144
|
serviceLevelObjectives?: Array<ServiceLevelObjective> | undefined;
|
|
145
|
+
onCallDutyPolicies?: Array<OnCallDutyPolicy> | undefined;
|
|
146
|
+
keptIds?: Array<string> | undefined;
|
|
122
147
|
checkOn: NotificationRuleConditionCheckOn;
|
|
123
148
|
}): Array<DropdownOption>;
|
|
124
149
|
static getCheckOnByEventType(eventType: NotificationRuleEventType): Array<NotificationRuleConditionCheckOn>;
|
|
@@ -5,6 +5,7 @@ import IncidentState from "../../../Models/DatabaseModels/IncidentState";
|
|
|
5
5
|
import Label from "../../../Models/DatabaseModels/Label";
|
|
6
6
|
import Monitor from "../../../Models/DatabaseModels/Monitor";
|
|
7
7
|
import MonitorStatus from "../../../Models/DatabaseModels/MonitorStatus";
|
|
8
|
+
import OnCallDutyPolicy from "../../../Models/DatabaseModels/OnCallDutyPolicy";
|
|
8
9
|
import ScheduledMaintenanceState from "../../../Models/DatabaseModels/ScheduledMaintenanceState";
|
|
9
10
|
import ServiceLevelObjective from "../../../Models/DatabaseModels/ServiceLevelObjective";
|
|
10
11
|
import { DropdownOption } from "../../../UI/Components/Dropdown/Dropdown";
|
|
@@ -46,6 +47,7 @@ export declare enum NotificationRuleConditionCheckOn {
|
|
|
46
47
|
OnCallDutyPolicyName = "On Call Duty Policy Name",
|
|
47
48
|
OnCallDutyPolicyDescription = "On Call Duty Policy Description",
|
|
48
49
|
OnCallDutyPolicyLabels = "On Call Duty Policy Labels",
|
|
50
|
+
OnCallDutyPolicies = "On-Call Policy",
|
|
49
51
|
SecurityCaseTitle = "Security Case Title",
|
|
50
52
|
SecurityCaseDescription = "Security Case Description",
|
|
51
53
|
SecurityCasePriority = "Security Case Priority",
|
|
@@ -56,8 +58,21 @@ export declare enum NotificationRuleConditionCheckOn {
|
|
|
56
58
|
SloName = "SLO Name",
|
|
57
59
|
Slos = "SLOs",
|
|
58
60
|
SloLabels = "SLO Labels",
|
|
59
|
-
SloErrorBudgetPolicyChange = "Error Budget Policy Change"
|
|
61
|
+
SloErrorBudgetPolicyChange = "Error Budget Policy Change",
|
|
62
|
+
IncidentOwners = "Incident Owner",
|
|
63
|
+
AlertOwners = "Alert Owner",
|
|
64
|
+
IncidentEpisodeOwners = "Incident Episode Owner",
|
|
65
|
+
AlertEpisodeOwners = "Alert Episode Owner",
|
|
66
|
+
ScheduledMaintenanceOwners = "Scheduled Maintenance Owner",
|
|
67
|
+
MonitorOwners = "Monitor Owner",
|
|
68
|
+
OnCallDutyPolicyOwners = "On-Call Policy Owner",
|
|
69
|
+
SloOwners = "SLO Owner"
|
|
60
70
|
}
|
|
71
|
+
export type NotificationRuleConditionValues = {
|
|
72
|
+
[key in NotificationRuleConditionCheckOn]: string | Array<string> | undefined;
|
|
73
|
+
};
|
|
74
|
+
export declare const OWNER_CHECK_ON_BY_EVENT_TYPE: Readonly<Partial<Record<NotificationRuleEventType, NotificationRuleConditionCheckOn>>>;
|
|
75
|
+
export declare const OWNER_CHECK_ONS: ReadonlyArray<NotificationRuleConditionCheckOn>;
|
|
61
76
|
export declare const CHECK_ON_LABELS: Readonly<Partial<Record<NotificationRuleConditionCheckOn, string>>>;
|
|
62
77
|
export declare function getCheckOnLabel(checkOn: NotificationRuleConditionCheckOn): string;
|
|
63
78
|
export declare enum ConditionType {
|
|
@@ -107,6 +122,14 @@ export declare class NotificationRuleConditionUtil {
|
|
|
107
122
|
checkOn: NotificationRuleConditionCheckOn | undefined;
|
|
108
123
|
conditionType: ConditionType | undefined;
|
|
109
124
|
}): boolean;
|
|
125
|
+
static isPeopleValueField(data: {
|
|
126
|
+
checkOn: NotificationRuleConditionCheckOn | undefined;
|
|
127
|
+
conditionType: ConditionType | undefined;
|
|
128
|
+
}): boolean;
|
|
129
|
+
static isOwnerCheckOn(checkOn: NotificationRuleConditionCheckOn | undefined): boolean;
|
|
130
|
+
static getValues(values: Partial<NotificationRuleConditionValues>): NotificationRuleConditionValues;
|
|
131
|
+
static getCheckOnsUsed(filters: Array<NotificationRuleCondition> | undefined | null): Set<NotificationRuleConditionCheckOn>;
|
|
132
|
+
static getValueIds(condition: NotificationRuleCondition | undefined | null): Array<string>;
|
|
110
133
|
static getDropdownOptionsByCheckOn(data: {
|
|
111
134
|
alertSeverities: Array<AlertSeverity>;
|
|
112
135
|
alertStates: Array<AlertState>;
|
|
@@ -119,6 +142,8 @@ export declare class NotificationRuleConditionUtil {
|
|
|
119
142
|
securityCasePriorities?: Array<SecurityCasePriority> | undefined;
|
|
120
143
|
securityCaseStatuses?: Array<SecurityCaseStatus> | undefined;
|
|
121
144
|
serviceLevelObjectives?: Array<ServiceLevelObjective> | undefined;
|
|
145
|
+
onCallDutyPolicies?: Array<OnCallDutyPolicy> | undefined;
|
|
146
|
+
keptIds?: Array<string> | undefined;
|
|
122
147
|
checkOn: NotificationRuleConditionCheckOn;
|
|
123
148
|
}): Array<DropdownOption>;
|
|
124
149
|
static getCheckOnByEventType(eventType: NotificationRuleEventType): Array<NotificationRuleConditionCheckOn>;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import BaseNotificationRule from "./BaseNotificationRule.mjs";
|
|
2
|
+
import NotificationRuleEventType from "./EventType.mjs";
|
|
3
|
+
import NotificationRuleWorkspaceChannel from "./NotificationRuleWorkspaceChannel.mjs";
|
|
4
|
+
export declare enum NotificationRuleUpdateKind {
|
|
5
|
+
Created = "Created",
|
|
6
|
+
VideoCallStarted = "VideoCallStarted",
|
|
7
|
+
ResolvedAndReopened = "ResolvedAndReopened",
|
|
8
|
+
StateChanges = "StateChanges",
|
|
9
|
+
SeverityChanges = "SeverityChanges",
|
|
10
|
+
PublicNotes = "PublicNotes",
|
|
11
|
+
PrivateNotes = "PrivateNotes",
|
|
12
|
+
Owners = "Owners",
|
|
13
|
+
Paging = "Paging",
|
|
14
|
+
EpisodeMembers = "EpisodeMembers",
|
|
15
|
+
Postmortem = "Postmortem",
|
|
16
|
+
AI = "AI",
|
|
17
|
+
Edits = "Edits",
|
|
18
|
+
Other = "Other",
|
|
19
|
+
OnCallNow = "OnCallNow",
|
|
20
|
+
OnCallNext = "OnCallNext",
|
|
21
|
+
NobodyOnCall = "NobodyOnCall",
|
|
22
|
+
Overrides = "Overrides",
|
|
23
|
+
PolicyChanges = "PolicyChanges"
|
|
24
|
+
}
|
|
25
|
+
export declare enum NotificationRuleUpdatesChoice {
|
|
26
|
+
EveryUpdate = "EveryUpdate",
|
|
27
|
+
KeyUpdates = "KeyUpdates",
|
|
28
|
+
ChosenUpdates = "ChosenUpdates"
|
|
29
|
+
}
|
|
30
|
+
export declare const ALWAYS_POSTED_UPDATE_KINDS: ReadonlyArray<NotificationRuleUpdateKind>;
|
|
31
|
+
export type RuleWithUpdates = Partial<Pick<BaseNotificationRule, "updatesToPost">>;
|
|
32
|
+
export type StoredRuleUpdates = RuleWithUpdates | null | undefined;
|
|
33
|
+
export interface RuleOfChannel {
|
|
34
|
+
id: string;
|
|
35
|
+
rule: StoredRuleUpdates;
|
|
36
|
+
}
|
|
37
|
+
export default class NotificationRuleUpdates {
|
|
38
|
+
static isUpdateKind(value: unknown): value is NotificationRuleUpdateKind;
|
|
39
|
+
static isAlwaysPosted(kind: NotificationRuleUpdateKind): boolean;
|
|
40
|
+
static getChoosableKinds(eventType: NotificationRuleEventType | undefined): Array<NotificationRuleUpdateKind>;
|
|
41
|
+
static canChooseUpdates(eventType: NotificationRuleEventType | undefined): boolean;
|
|
42
|
+
static getNewRuleUpdatesToPost(eventType: NotificationRuleEventType | undefined): Array<NotificationRuleUpdateKind> | undefined;
|
|
43
|
+
static getNewRuleUpdates(eventType: NotificationRuleEventType | undefined): RuleWithUpdates;
|
|
44
|
+
static getKeyKinds(eventType: NotificationRuleEventType | undefined): Array<NotificationRuleUpdateKind>;
|
|
45
|
+
static getChosenKinds(rule: StoredRuleUpdates): Array<NotificationRuleUpdateKind> | undefined;
|
|
46
|
+
static getChoice(data: {
|
|
47
|
+
rule: StoredRuleUpdates;
|
|
48
|
+
eventType: NotificationRuleEventType | undefined;
|
|
49
|
+
}): NotificationRuleUpdatesChoice;
|
|
50
|
+
static getPostedKinds(data: {
|
|
51
|
+
rule: StoredRuleUpdates;
|
|
52
|
+
eventType: NotificationRuleEventType | undefined;
|
|
53
|
+
}): Array<NotificationRuleUpdateKind>;
|
|
54
|
+
static withChosenKinds<T extends RuleWithUpdates>(data: {
|
|
55
|
+
rule: T | undefined;
|
|
56
|
+
eventType: NotificationRuleEventType | undefined;
|
|
57
|
+
kinds: ReadonlyArray<NotificationRuleUpdateKind> | undefined;
|
|
58
|
+
}): T;
|
|
59
|
+
static withChoice<T extends RuleWithUpdates>(data: {
|
|
60
|
+
rule: T | undefined;
|
|
61
|
+
eventType: NotificationRuleEventType | undefined;
|
|
62
|
+
choice: NotificationRuleUpdatesChoice;
|
|
63
|
+
kinds?: ReadonlyArray<NotificationRuleUpdateKind> | undefined;
|
|
64
|
+
}): T;
|
|
65
|
+
static isPostedEverywhere(updateKinds: ReadonlyArray<NotificationRuleUpdateKind> | undefined): boolean;
|
|
66
|
+
static wantsUpdate(data: {
|
|
67
|
+
rule: StoredRuleUpdates;
|
|
68
|
+
updateKinds: ReadonlyArray<NotificationRuleUpdateKind> | undefined;
|
|
69
|
+
}): boolean;
|
|
70
|
+
static isWantedInChannel(data: {
|
|
71
|
+
channel: Partial<Pick<NotificationRuleWorkspaceChannel, "notificationRuleId" | "notificationRuleIds">>;
|
|
72
|
+
rules: ReadonlyArray<RuleOfChannel>;
|
|
73
|
+
updateKinds: ReadonlyArray<NotificationRuleUpdateKind> | undefined;
|
|
74
|
+
}): boolean;
|
|
75
|
+
static getStateChangeKind(data: {
|
|
76
|
+
isResolved: boolean;
|
|
77
|
+
wasResolved: boolean;
|
|
78
|
+
}): NotificationRuleUpdateKind;
|
|
79
|
+
static getValidationError(data: {
|
|
80
|
+
eventType: NotificationRuleEventType | undefined;
|
|
81
|
+
updatesToPost: unknown;
|
|
82
|
+
}): string | null;
|
|
83
|
+
private static isSameKinds;
|
|
84
|
+
}
|