@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
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import AIRun from "./AIRun.mjs";
|
|
2
|
+
import Project from "./Project.mjs";
|
|
3
|
+
import BaseModel from "./DatabaseBaseModel/DatabaseBaseModel.mjs";
|
|
4
|
+
import ObjectID from "../../Types/ObjectID.mjs";
|
|
5
|
+
import { InvestigationRecording } from "../../Types/AI/InvestigationRecording.mjs";
|
|
6
|
+
export default class AIRunRecording extends BaseModel {
|
|
7
|
+
project?: Project;
|
|
8
|
+
projectId?: ObjectID;
|
|
9
|
+
aiRun?: AIRun;
|
|
10
|
+
aiRunId?: ObjectID;
|
|
11
|
+
recording?: InvestigationRecording;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import AIRun from "./AIRun";
|
|
2
|
+
import Project from "./Project";
|
|
3
|
+
import BaseModel from "./DatabaseBaseModel/DatabaseBaseModel";
|
|
4
|
+
import ObjectID from "../../Types/ObjectID";
|
|
5
|
+
import { InvestigationRecording } from "../../Types/AI/InvestigationRecording";
|
|
6
|
+
export default class AIRunRecording extends BaseModel {
|
|
7
|
+
project?: Project;
|
|
8
|
+
projectId?: ObjectID;
|
|
9
|
+
aiRun?: AIRun;
|
|
10
|
+
aiRunId?: ObjectID;
|
|
11
|
+
recording?: InvestigationRecording;
|
|
12
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const AIRun_1 = __importDefault(require("./AIRun"));
|
|
16
|
+
const Project_1 = __importDefault(require("./Project"));
|
|
17
|
+
const DatabaseBaseModel_1 = __importDefault(require("./DatabaseBaseModel/DatabaseBaseModel"));
|
|
18
|
+
const ColumnAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/ColumnAccessControl"));
|
|
19
|
+
const TableAccessControl_1 = __importDefault(require("../../Types/Database/AccessControl/TableAccessControl"));
|
|
20
|
+
const ColumnType_1 = __importDefault(require("../../Types/Database/ColumnType"));
|
|
21
|
+
const TableColumn_1 = __importDefault(require("../../Types/Database/TableColumn"));
|
|
22
|
+
const TableColumnType_1 = __importDefault(require("../../Types/Database/TableColumnType"));
|
|
23
|
+
const TableMetadata_1 = __importDefault(require("../../Types/Database/TableMetadata"));
|
|
24
|
+
const TenantColumn_1 = __importDefault(require("../../Types/Database/TenantColumn"));
|
|
25
|
+
const IconProp_1 = __importDefault(require("../../Types/Icon/IconProp"));
|
|
26
|
+
const ObjectID_1 = __importDefault(require("../../Types/ObjectID"));
|
|
27
|
+
const typeorm_1 = require("typeorm");
|
|
28
|
+
/*
|
|
29
|
+
* What an AI investigation saw (issue #6800): the context it started from
|
|
30
|
+
* and every tool call it made with the text it was handed back
|
|
31
|
+
* (Types/AI/InvestigationRecording), so the run can be replayed on the same
|
|
32
|
+
* data after a prompt or model change (Server/Utils/AI/Eval/
|
|
33
|
+
* ReplayInvestigation). One row per completed investigation run that kept
|
|
34
|
+
* one; deleted with its run, and after
|
|
35
|
+
* INVESTIGATION_RECORDING_RETENTION_IN_DAYS (AIRunRecordingService).
|
|
36
|
+
*
|
|
37
|
+
* The text holds telemetry the tools read as the system - more than a
|
|
38
|
+
* project member may read through the run's activity - so the table is
|
|
39
|
+
* written and read only by the server: no client can read or write a row,
|
|
40
|
+
* and it has no CRUD API.
|
|
41
|
+
*/
|
|
42
|
+
let AIRunRecording = class AIRunRecording extends DatabaseBaseModel_1.default {
|
|
43
|
+
constructor() {
|
|
44
|
+
super(...arguments);
|
|
45
|
+
this.project = undefined;
|
|
46
|
+
this.projectId = undefined;
|
|
47
|
+
this.aiRun = undefined;
|
|
48
|
+
this.aiRunId = undefined;
|
|
49
|
+
this.recording = undefined;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, ColumnAccessControl_1.default)({
|
|
54
|
+
create: [],
|
|
55
|
+
read: [],
|
|
56
|
+
update: [],
|
|
57
|
+
}),
|
|
58
|
+
(0, TableColumn_1.default)({
|
|
59
|
+
manyToOneRelationColumn: "projectId",
|
|
60
|
+
type: TableColumnType_1.default.Entity,
|
|
61
|
+
modelType: Project_1.default,
|
|
62
|
+
title: "Project",
|
|
63
|
+
description: "Relation to Project Resource in which this object belongs",
|
|
64
|
+
}),
|
|
65
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
66
|
+
return Project_1.default;
|
|
67
|
+
}, {
|
|
68
|
+
eager: false,
|
|
69
|
+
nullable: true,
|
|
70
|
+
onDelete: "CASCADE",
|
|
71
|
+
orphanedRowAction: "nullify",
|
|
72
|
+
}),
|
|
73
|
+
(0, typeorm_1.JoinColumn)({ name: "projectId" }),
|
|
74
|
+
__metadata("design:type", Project_1.default)
|
|
75
|
+
], AIRunRecording.prototype, "project", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, ColumnAccessControl_1.default)({
|
|
78
|
+
create: [],
|
|
79
|
+
read: [],
|
|
80
|
+
update: [],
|
|
81
|
+
}),
|
|
82
|
+
(0, typeorm_1.Index)(),
|
|
83
|
+
(0, TableColumn_1.default)({
|
|
84
|
+
type: TableColumnType_1.default.ObjectID,
|
|
85
|
+
required: true,
|
|
86
|
+
canReadOnRelationQuery: true,
|
|
87
|
+
title: "Project ID",
|
|
88
|
+
description: "ID of your OneUptime Project in which this object belongs",
|
|
89
|
+
}),
|
|
90
|
+
(0, typeorm_1.Column)({
|
|
91
|
+
type: ColumnType_1.default.ObjectID,
|
|
92
|
+
nullable: false,
|
|
93
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
94
|
+
}),
|
|
95
|
+
__metadata("design:type", ObjectID_1.default)
|
|
96
|
+
], AIRunRecording.prototype, "projectId", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, ColumnAccessControl_1.default)({
|
|
99
|
+
create: [],
|
|
100
|
+
read: [],
|
|
101
|
+
update: [],
|
|
102
|
+
}),
|
|
103
|
+
(0, TableColumn_1.default)({
|
|
104
|
+
type: TableColumnType_1.default.Entity,
|
|
105
|
+
required: true,
|
|
106
|
+
modelType: AIRun_1.default,
|
|
107
|
+
manyToOneRelationColumn: "aiRunId",
|
|
108
|
+
title: "AI Run",
|
|
109
|
+
description: "The investigation run this recording belongs to.",
|
|
110
|
+
}),
|
|
111
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
112
|
+
return AIRun_1.default;
|
|
113
|
+
}, {
|
|
114
|
+
cascade: false,
|
|
115
|
+
eager: false,
|
|
116
|
+
nullable: false,
|
|
117
|
+
onDelete: "CASCADE",
|
|
118
|
+
orphanedRowAction: "nullify",
|
|
119
|
+
}),
|
|
120
|
+
(0, typeorm_1.JoinColumn)({ name: "aiRunId" }),
|
|
121
|
+
__metadata("design:type", AIRun_1.default)
|
|
122
|
+
], AIRunRecording.prototype, "aiRun", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, ColumnAccessControl_1.default)({
|
|
125
|
+
create: [],
|
|
126
|
+
read: [],
|
|
127
|
+
update: [],
|
|
128
|
+
}),
|
|
129
|
+
(0, typeorm_1.Index)(),
|
|
130
|
+
(0, TableColumn_1.default)({
|
|
131
|
+
type: TableColumnType_1.default.ObjectID,
|
|
132
|
+
required: true,
|
|
133
|
+
canReadOnRelationQuery: true,
|
|
134
|
+
title: "AI Run ID",
|
|
135
|
+
description: "ID of the investigation run this recording belongs to.",
|
|
136
|
+
}),
|
|
137
|
+
(0, typeorm_1.Column)({
|
|
138
|
+
type: ColumnType_1.default.ObjectID,
|
|
139
|
+
nullable: false,
|
|
140
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
141
|
+
}),
|
|
142
|
+
__metadata("design:type", ObjectID_1.default)
|
|
143
|
+
], AIRunRecording.prototype, "aiRunId", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
(0, ColumnAccessControl_1.default)({
|
|
146
|
+
create: [],
|
|
147
|
+
read: [],
|
|
148
|
+
update: [],
|
|
149
|
+
}),
|
|
150
|
+
(0, TableColumn_1.default)({
|
|
151
|
+
required: true,
|
|
152
|
+
type: TableColumnType_1.default.JSON,
|
|
153
|
+
title: "Recording",
|
|
154
|
+
description: "The context the investigation started from, and every tool call it made with what it was handed back.",
|
|
155
|
+
}),
|
|
156
|
+
(0, typeorm_1.Column)({
|
|
157
|
+
nullable: false,
|
|
158
|
+
type: ColumnType_1.default.JSON,
|
|
159
|
+
}),
|
|
160
|
+
__metadata("design:type", Object)
|
|
161
|
+
], AIRunRecording.prototype, "recording", void 0);
|
|
162
|
+
AIRunRecording = __decorate([
|
|
163
|
+
(0, TenantColumn_1.default)("projectId"),
|
|
164
|
+
(0, TableAccessControl_1.default)({
|
|
165
|
+
create: [],
|
|
166
|
+
read: [],
|
|
167
|
+
delete: [],
|
|
168
|
+
update: [],
|
|
169
|
+
}),
|
|
170
|
+
(0, typeorm_1.Entity)({
|
|
171
|
+
name: "AIRunRecording",
|
|
172
|
+
}),
|
|
173
|
+
(0, TableMetadata_1.default)({
|
|
174
|
+
tableName: "AIRunRecording",
|
|
175
|
+
singularName: "AI Run Recording",
|
|
176
|
+
pluralName: "AI Run Recordings",
|
|
177
|
+
icon: IconProp_1.default.Bolt,
|
|
178
|
+
tableDescription: "Internal record of what an AI investigation saw, kept for a limited time so it can be run again on the same data after a prompt or model change.",
|
|
179
|
+
})
|
|
180
|
+
], AIRunRecording);
|
|
181
|
+
exports.default = AIRunRecording;
|
|
@@ -80,6 +80,7 @@ export default class Alert extends BaseModel {
|
|
|
80
80
|
aiInvestigationWaitUntil?: Date;
|
|
81
81
|
groupingWaitKey?: string;
|
|
82
82
|
isOwnerNotifiedOfAlertCreation?: boolean;
|
|
83
|
+
createdNotificationHeldAt?: Date;
|
|
83
84
|
rootCause?: string;
|
|
84
85
|
createdStateLog?: JSONObject;
|
|
85
86
|
createdCriteriaId?: string;
|
|
@@ -80,6 +80,7 @@ export default class Alert extends BaseModel {
|
|
|
80
80
|
aiInvestigationWaitUntil?: Date;
|
|
81
81
|
groupingWaitKey?: string;
|
|
82
82
|
isOwnerNotifiedOfAlertCreation?: boolean;
|
|
83
|
+
createdNotificationHeldAt?: Date;
|
|
83
84
|
rootCause?: string;
|
|
84
85
|
createdStateLog?: JSONObject;
|
|
85
86
|
createdCriteriaId?: string;
|
|
@@ -146,6 +146,17 @@ let Alert = class Alert extends DatabaseBaseModel_1.default {
|
|
|
146
146
|
*/
|
|
147
147
|
this.groupingWaitKey = undefined;
|
|
148
148
|
this.isOwnerNotifiedOfAlertCreation = undefined;
|
|
149
|
+
/*
|
|
150
|
+
* While the owners' "Alert Created" notification is held for the alert's
|
|
151
|
+
* owners (CreatedNotificationHold): when the hold began, as the alert was
|
|
152
|
+
* written. Cleared when the hold is let go - every owner its create adds
|
|
153
|
+
* is in - and when the Created job takes it. A hold nobody lets go,
|
|
154
|
+
* because the process that made the alert stopped, ends by itself: the
|
|
155
|
+
* job takes it once it is old enough. Null for every other alert.
|
|
156
|
+
* Written by the create's hook - which is why it is computed: no
|
|
157
|
+
* caller's create is refused for it - and by nobody else.
|
|
158
|
+
*/
|
|
159
|
+
this.createdNotificationHeldAt = undefined;
|
|
149
160
|
this.rootCause = undefined;
|
|
150
161
|
this.createdStateLog = undefined;
|
|
151
162
|
this.createdCriteriaId = undefined;
|
|
@@ -259,8 +270,14 @@ __decorate([
|
|
|
259
270
|
Permission_1.default.ReadAlert,
|
|
260
271
|
],
|
|
261
272
|
update: [],
|
|
262
|
-
})
|
|
263
|
-
|
|
273
|
+
})
|
|
274
|
+
/*
|
|
275
|
+
* No bare @Index() here on purpose: the composites on the class lead with
|
|
276
|
+
* this column ("projectId", "createdAt" first), and serve every read by it
|
|
277
|
+
* and the ON DELETE CASCADE of a project. Another would cost every insert
|
|
278
|
+
* and every state change one more index write for nothing.
|
|
279
|
+
*/
|
|
280
|
+
,
|
|
264
281
|
(0, TableColumn_1.default)({
|
|
265
282
|
type: TableColumnType_1.default.ObjectID,
|
|
266
283
|
required: true,
|
|
@@ -2162,6 +2179,19 @@ __decorate([
|
|
|
2162
2179
|
}),
|
|
2163
2180
|
__metadata("design:type", Boolean)
|
|
2164
2181
|
], Alert.prototype, "isOwnerNotifiedOfAlertCreation", void 0);
|
|
2182
|
+
__decorate([
|
|
2183
|
+
(0, ColumnAccessControl_1.default)({ create: [], read: [], update: [] }),
|
|
2184
|
+
(0, TableColumn_1.default)({
|
|
2185
|
+
required: false,
|
|
2186
|
+
computed: true,
|
|
2187
|
+
hideColumnInDocumentation: true,
|
|
2188
|
+
type: TableColumnType_1.default.Date,
|
|
2189
|
+
title: "Created Notification Held At",
|
|
2190
|
+
description: "Internal: while the owners' Alert Created notification waits for every owner the alert's create adds, when it started waiting.",
|
|
2191
|
+
}),
|
|
2192
|
+
(0, typeorm_1.Column)({ type: ColumnType_1.default.Date, nullable: true }),
|
|
2193
|
+
__metadata("design:type", Date)
|
|
2194
|
+
], Alert.prototype, "createdNotificationHeldAt", void 0);
|
|
2165
2195
|
__decorate([
|
|
2166
2196
|
(0, ColumnAccessControl_1.default)({
|
|
2167
2197
|
create: [
|
|
@@ -2943,6 +2973,16 @@ Alert = __decorate([
|
|
|
2943
2973
|
},
|
|
2944
2974
|
}),
|
|
2945
2975
|
(0, typeorm_1.Index)(["projectId", "currentAlertStateId"]) // Active-alert counters on dashboard
|
|
2976
|
+
/*
|
|
2977
|
+
* The Alerts list, newest first - the order every read of alerts takes
|
|
2978
|
+
* when it asks for none (DatabaseService.getReadSort): the page's ids are
|
|
2979
|
+
* read in this index's order, ten at a time, instead of sorting every
|
|
2980
|
+
* alert of the project. It also serves every read by project and
|
|
2981
|
+
* the ON DELETE CASCADE of a project, which is why the column has no bare
|
|
2982
|
+
* index of its own.
|
|
2983
|
+
*/
|
|
2984
|
+
,
|
|
2985
|
+
(0, typeorm_1.Index)(["projectId", "createdAt"])
|
|
2946
2986
|
/*
|
|
2947
2987
|
* The alerts an investigation rule makes OneUptime AI wait on: a handful at
|
|
2948
2988
|
* any moment, so the index holds only them, and the rule-wait job's "wait
|
|
@@ -2962,5 +3002,15 @@ Alert = __decorate([
|
|
|
2962
3002
|
(0, typeorm_1.Index)(["groupingWaitKey", "createdAt"], {
|
|
2963
3003
|
where: '"groupingWaitKey" IS NOT NULL AND "deletedAt" IS NULL',
|
|
2964
3004
|
})
|
|
3005
|
+
/*
|
|
3006
|
+
* The alerts whose owners' "Alert Created" notification is held for their
|
|
3007
|
+
* owners (CreatedNotificationHold): the few being created at any moment, so
|
|
3008
|
+
* the index holds only them, and the Created job's read of a hold nobody
|
|
3009
|
+
* let go (createdNotificationHeldAt <= then) implies its predicate.
|
|
3010
|
+
*/
|
|
3011
|
+
,
|
|
3012
|
+
(0, typeorm_1.Index)(["createdNotificationHeldAt"], {
|
|
3013
|
+
where: '"createdNotificationHeldAt" IS NOT NULL AND "deletedAt" IS NULL',
|
|
3014
|
+
})
|
|
2965
3015
|
], Alert);
|
|
2966
3016
|
exports.default = Alert;
|
|
@@ -31,6 +31,8 @@ export default class AutoRemediationSuggestion extends BaseModel {
|
|
|
31
31
|
runbook?: Runbook;
|
|
32
32
|
runbookId?: ObjectID;
|
|
33
33
|
runbookNameSnapshot?: string;
|
|
34
|
+
savedAsRunbook?: Runbook;
|
|
35
|
+
savedAsRunbookId?: ObjectID;
|
|
34
36
|
runbookTrackRecord?: JSONObject;
|
|
35
37
|
status?: AutoRemediationSuggestionStatus;
|
|
36
38
|
executionMode?: AutoRemediationExecutionMode;
|
|
@@ -31,6 +31,8 @@ export default class AutoRemediationSuggestion extends BaseModel {
|
|
|
31
31
|
runbook?: Runbook;
|
|
32
32
|
runbookId?: ObjectID;
|
|
33
33
|
runbookNameSnapshot?: string;
|
|
34
|
+
savedAsRunbook?: Runbook;
|
|
35
|
+
savedAsRunbookId?: ObjectID;
|
|
34
36
|
runbookTrackRecord?: JSONObject;
|
|
35
37
|
status?: AutoRemediationSuggestionStatus;
|
|
36
38
|
executionMode?: AutoRemediationExecutionMode;
|
|
@@ -81,6 +81,15 @@ let AutoRemediationSuggestion = class AutoRemediationSuggestion extends Database
|
|
|
81
81
|
this.runbook = undefined;
|
|
82
82
|
this.runbookId = undefined;
|
|
83
83
|
this.runbookNameSnapshot = undefined;
|
|
84
|
+
/*
|
|
85
|
+
* The runbook a verified fix was saved as (issue #6801): written by
|
|
86
|
+
* OneUptime from the commands the fix ran, turned off until someone
|
|
87
|
+
* reviews it (VerifiedFixRunbook). Set once, by Save as Runbook on the
|
|
88
|
+
* fix; cleared when that runbook is deleted, so the fix can be saved
|
|
89
|
+
* again.
|
|
90
|
+
*/
|
|
91
|
+
this.savedAsRunbook = undefined;
|
|
92
|
+
this.savedAsRunbookId = undefined;
|
|
84
93
|
/*
|
|
85
94
|
* How the proposed runbook went the last times OneUptime AI ran it as a
|
|
86
95
|
* fix for other incidents and alerts of the project, when it was proposed
|
|
@@ -559,6 +568,59 @@ __decorate([
|
|
|
559
568
|
}),
|
|
560
569
|
__metadata("design:type", String)
|
|
561
570
|
], AutoRemediationSuggestion.prototype, "runbookNameSnapshot", void 0);
|
|
571
|
+
__decorate([
|
|
572
|
+
(0, ColumnAccessControl_1.default)({
|
|
573
|
+
create: [],
|
|
574
|
+
read: [
|
|
575
|
+
Permission_1.default.ProjectOwner,
|
|
576
|
+
Permission_1.default.ProjectAdmin,
|
|
577
|
+
Permission_1.default.ProjectMember,
|
|
578
|
+
],
|
|
579
|
+
update: [],
|
|
580
|
+
}),
|
|
581
|
+
(0, TableColumn_1.default)({
|
|
582
|
+
manyToOneRelationColumn: "savedAsRunbookId",
|
|
583
|
+
type: TableColumnType_1.default.Entity,
|
|
584
|
+
modelType: Runbook_1.default,
|
|
585
|
+
title: "Saved As Runbook",
|
|
586
|
+
description: "The runbook this fix was saved as once it was verified: written from the commands that ran, and off until someone reviews it.",
|
|
587
|
+
}),
|
|
588
|
+
(0, typeorm_1.ManyToOne)(() => {
|
|
589
|
+
return Runbook_1.default;
|
|
590
|
+
}, {
|
|
591
|
+
eager: false,
|
|
592
|
+
nullable: true,
|
|
593
|
+
onDelete: "SET NULL",
|
|
594
|
+
orphanedRowAction: "nullify",
|
|
595
|
+
}),
|
|
596
|
+
(0, typeorm_1.JoinColumn)({ name: "savedAsRunbookId" }),
|
|
597
|
+
__metadata("design:type", Runbook_1.default)
|
|
598
|
+
], AutoRemediationSuggestion.prototype, "savedAsRunbook", void 0);
|
|
599
|
+
__decorate([
|
|
600
|
+
(0, ColumnAccessControl_1.default)({
|
|
601
|
+
create: [],
|
|
602
|
+
read: [
|
|
603
|
+
Permission_1.default.ProjectOwner,
|
|
604
|
+
Permission_1.default.ProjectAdmin,
|
|
605
|
+
Permission_1.default.ProjectMember,
|
|
606
|
+
],
|
|
607
|
+
update: [],
|
|
608
|
+
}),
|
|
609
|
+
(0, typeorm_1.Index)(),
|
|
610
|
+
(0, TableColumn_1.default)({
|
|
611
|
+
type: TableColumnType_1.default.ObjectID,
|
|
612
|
+
required: false,
|
|
613
|
+
canReadOnRelationQuery: true,
|
|
614
|
+
title: "Saved As Runbook ID",
|
|
615
|
+
description: "ID of the runbook this fix was saved as. Empty until someone saves the verified fix as a runbook.",
|
|
616
|
+
}),
|
|
617
|
+
(0, typeorm_1.Column)({
|
|
618
|
+
type: ColumnType_1.default.ObjectID,
|
|
619
|
+
nullable: true,
|
|
620
|
+
transformer: ObjectID_1.default.getDatabaseTransformer(),
|
|
621
|
+
}),
|
|
622
|
+
__metadata("design:type", ObjectID_1.default)
|
|
623
|
+
], AutoRemediationSuggestion.prototype, "savedAsRunbookId", void 0);
|
|
562
624
|
__decorate([
|
|
563
625
|
(0, ColumnAccessControl_1.default)({
|
|
564
626
|
create: [],
|
|
@@ -1519,5 +1519,14 @@ DataStore = __decorate([
|
|
|
1519
1519
|
(0, typeorm_1.Index)(["projectId", "sensitivity"]),
|
|
1520
1520
|
(0, typeorm_1.Index)(["projectId", "kind"]),
|
|
1521
1521
|
(0, typeorm_1.Index)(["projectId", "isArchived"])
|
|
1522
|
+
/*
|
|
1523
|
+
* A probe asks for the stores whose tables it collects and whose content it
|
|
1524
|
+
* scans every five minutes (DataObservabilityProbeClaim,
|
|
1525
|
+
* DataSecurityProbeClaim): each a range of one of these, oldest first, that
|
|
1526
|
+
* stops at the claim's limit.
|
|
1527
|
+
*/
|
|
1528
|
+
,
|
|
1529
|
+
(0, typeorm_1.Index)(["scanProbeId", "nextTableHealthCollectionAt"]),
|
|
1530
|
+
(0, typeorm_1.Index)(["scanProbeId", "nextContentScanAt"])
|
|
1522
1531
|
], DataStore);
|
|
1523
1532
|
exports.default = DataStore;
|
|
@@ -270,8 +270,8 @@ __decorate([
|
|
|
270
270
|
required: true,
|
|
271
271
|
type: TableColumnType_1.default.ShortText,
|
|
272
272
|
allowedValues: Object.values(MailStatus_1.default),
|
|
273
|
-
title: "Status of the
|
|
274
|
-
description: "Status of the
|
|
273
|
+
title: "Status of the Email",
|
|
274
|
+
description: "Status of the email sent",
|
|
275
275
|
canReadOnRelationQuery: false,
|
|
276
276
|
example: "Success",
|
|
277
277
|
}),
|
|
@@ -335,7 +335,7 @@ __decorate([
|
|
|
335
335
|
type: TableColumnType_1.default.ShortText,
|
|
336
336
|
allowedValues: Object.values(FormTargetType_1.default),
|
|
337
337
|
title: "Creates",
|
|
338
|
-
description: "What each submission creates: Incident, or ScheduledMaintenance (a
|
|
338
|
+
description: "What each submission creates: Incident, or ScheduledMaintenance (a maintenance event).",
|
|
339
339
|
defaultValue: FormTargetType_1.DEFAULT_FORM_TARGET_TYPE,
|
|
340
340
|
example: FormTargetType_1.default.Incident,
|
|
341
341
|
}),
|
|
@@ -425,7 +425,7 @@ __decorate([
|
|
|
425
425
|
required: false,
|
|
426
426
|
type: TableColumnType_1.default.JSON,
|
|
427
427
|
title: "On Submit Settings",
|
|
428
|
-
description: "What every submission starts with besides the answers. For incidents: defaultTitle, incidentSeverityId, incidentTemplateId, monitorIds, labelIds, onCallDutyPolicyIds, ownerUserIds and ownerTeamIds. For
|
|
428
|
+
description: "What every submission starts with besides the answers. For incidents: defaultTitle, incidentSeverityId, incidentTemplateId, monitorIds, labelIds, onCallDutyPolicyIds, ownerUserIds and ownerTeamIds. For maintenance events: defaultTitle, monitorIds, statusPageIds, labelIds, ownerUserIds, ownerTeamIds, showOnStatusPages and notifySubscribers.",
|
|
429
429
|
example: {
|
|
430
430
|
incidentSeverityId: "c3d4e5f6-a7b8-4c9d-8e1f-2a3b4c5d6e7f",
|
|
431
431
|
ownerTeamIds: ["e5f6a7b8-c9d0-4e1f-8a3b-4c5d6e7f8a9b"],
|
|
@@ -702,7 +702,7 @@ Form = __decorate([
|
|
|
702
702
|
singularName: "Form",
|
|
703
703
|
pluralName: "Forms",
|
|
704
704
|
icon: IconProp_1.default.ClipboardDocumentList,
|
|
705
|
-
tableDescription: "Forms anyone with the link can fill in, without a OneUptime account. Each submission creates an incident or a
|
|
705
|
+
tableDescription: "Forms anyone with the link can fill in, without a OneUptime account. Each submission creates an incident or a maintenance event in this project.",
|
|
706
706
|
})
|
|
707
707
|
], Form);
|
|
708
708
|
exports.default = Form;
|
|
@@ -253,7 +253,7 @@ __decorate([
|
|
|
253
253
|
type: TableColumnType_1.default.ShortText,
|
|
254
254
|
allowedValues: Object.values(FormTargetType_1.default),
|
|
255
255
|
title: "Created",
|
|
256
|
-
description: "What the submission created: Incident, or ScheduledMaintenance (a
|
|
256
|
+
description: "What the submission created: Incident, or ScheduledMaintenance (a maintenance event).",
|
|
257
257
|
example: FormTargetType_1.default.Incident,
|
|
258
258
|
}),
|
|
259
259
|
(0, typeorm_1.Column)({
|
|
@@ -320,7 +320,7 @@ __decorate([
|
|
|
320
320
|
type: TableColumnType_1.default.Entity,
|
|
321
321
|
modelType: ScheduledMaintenance_1.default,
|
|
322
322
|
title: "Maintenance Event",
|
|
323
|
-
description: "The
|
|
323
|
+
description: "The maintenance event this submission created. Empty for a form that creates incidents, and once that event is deleted.",
|
|
324
324
|
}),
|
|
325
325
|
(0, typeorm_1.ManyToOne)(() => {
|
|
326
326
|
return ScheduledMaintenance_1.default;
|
|
@@ -345,7 +345,7 @@ __decorate([
|
|
|
345
345
|
required: false,
|
|
346
346
|
canReadOnRelationQuery: true,
|
|
347
347
|
title: "Maintenance Event ID",
|
|
348
|
-
description: "ID of the
|
|
348
|
+
description: "ID of the maintenance event this submission created. Empty for a form that creates incidents, and once that event is deleted.",
|
|
349
349
|
example: "b8c9d0e1-f2a3-4b4c-9d5e-6f7a8b9c0d1e",
|
|
350
350
|
}),
|
|
351
351
|
(0, typeorm_1.Column)({
|
|
@@ -379,7 +379,7 @@ FormSubmission = __decorate([
|
|
|
379
379
|
singularName: "Form Submission",
|
|
380
380
|
pluralName: "Form Submissions",
|
|
381
381
|
icon: IconProp_1.default.ClipboardDocumentCheck,
|
|
382
|
-
tableDescription: "The submissions made through this project's forms: every answer, the name and email the submitter gave, and the incident or
|
|
382
|
+
tableDescription: "The submissions made through this project's forms: every answer, the name and email the submitter gave, and the incident or maintenance event each one created.",
|
|
383
383
|
})
|
|
384
384
|
], FormSubmission);
|
|
385
385
|
exports.default = FormSubmission;
|