@oneuptime/common 11.5.8 → 11.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/AnalyticsModels/Index.ts +13 -0
- package/Models/AnalyticsModels/MetricItemAggMV1mByContainer.ts +178 -0
- package/Models/AnalyticsModels/MetricItemAggMV1mByK8sCluster.ts +179 -0
- package/Models/AnalyticsModels/MetricItemAggMV1mByService.ts +179 -0
- package/Models/AnalyticsModels/NetworkFlow.ts +397 -0
- package/Models/DatabaseModels/AIAgentTaskPullRequest.ts +15 -6
- package/Models/DatabaseModels/AIRun.ts +37 -0
- package/Models/DatabaseModels/AIRunEvent.ts +34 -1
- package/Models/DatabaseModels/EnterpriseLicenseInstance.ts +18 -0
- package/Models/DatabaseModels/GlobalConfig.ts +36 -0
- package/Models/DatabaseModels/Index.ts +2 -0
- package/Models/DatabaseModels/MarketingConversion.ts +198 -0
- package/Models/DatabaseModels/MetricSavedView.ts +34 -0
- package/Models/DatabaseModels/MetricType.ts +74 -0
- package/Models/DatabaseModels/NetworkDevice.ts +332 -0
- package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.ts +328 -0
- package/Models/DatabaseModels/NetworkInterface.ts +58 -0
- package/Models/DatabaseModels/Project.ts +62 -0
- package/Models/DatabaseModels/StatusPage.ts +42 -0
- package/Models/DatabaseModels/User.ts +37 -0
- package/Server/API/AIAgentTaskAPI.ts +38 -12
- package/Server/API/AIAgentTaskLogAPI.ts +49 -0
- package/Server/API/AIChatAPI.ts +16 -0
- package/Server/API/AIReadinessAPI.ts +84 -0
- package/Server/API/BaseAnalyticsAPI.ts +23 -0
- package/Server/API/CodeFixRunAPI.ts +182 -0
- package/Server/API/EnterpriseLicenseAPI.ts +14 -0
- package/Server/API/TelemetryExceptionAPI.ts +6 -1
- package/Server/EnvironmentConfig.ts +84 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1784124919694-AddAITaskNumberAndRunTranscript.ts +95 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1784135099754-AllowNullAiAgentOnPullRequest.ts +52 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1784137457184-AddEnableMcpServerToStatusPage.ts +30 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1784191414522-AddCounterSemanticsToMetricType.ts +38 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1784191414600-AddViewTypeToMetricSavedView.ts +28 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1784200000000-AddSnmpV3ColumnsToNetworkDeviceDiscoveryScan.ts +49 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1784211212164-AddNetworkDeviceInventoryAndDiscoverySchedule.ts +108 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1784218257664-AddEnterpriseLicenseNotificationColumns.ts +31 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1784293516000-AddAttributionColumnsToUserAndProject.ts +29 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1784298000000-AddMarketingConversionTable.ts +35 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +20 -0
- package/Server/Services/AIRunEventService.ts +15 -1
- package/Server/Services/AIRunService.ts +38 -1
- package/Server/Services/AnalyticsDatabaseService.ts +70 -1
- package/Server/Services/IncidentService.ts +13 -0
- package/Server/Services/Index.ts +10 -0
- package/Server/Services/LlmProviderService.ts +2 -0
- package/Server/Services/MarketingConversionService.ts +10 -0
- package/Server/Services/MetricItemAggMV1mByContainerService.ts +31 -0
- package/Server/Services/MetricItemAggMV1mByK8sClusterService.ts +31 -0
- package/Server/Services/MetricItemAggMV1mByServiceService.ts +31 -0
- package/Server/Services/MetricService.ts +970 -122
- package/Server/Services/MonitorService.ts +14 -0
- package/Server/Services/NetworkDeviceOwnerTeamService.ts +42 -0
- package/Server/Services/NetworkDeviceOwnerUserService.ts +106 -0
- package/Server/Services/NetworkFlowService.ts +11 -0
- package/Server/Services/OnCallDutyPolicyService.ts +11 -1
- package/Server/Services/ProjectService.ts +178 -0
- package/Server/Services/SpanService.ts +13 -9
- package/Server/Services/StatusPageService.ts +97 -0
- package/Server/Services/TeamMemberService.ts +11 -0
- package/Server/Services/TelemetryExceptionService.ts +19 -90
- package/Server/Services/UserService.ts +59 -0
- package/Server/Types/AnalyticsDatabase/AggregateBy.ts +37 -7
- package/Server/Types/Markdown.ts +9 -9
- package/Server/Types/MarkdownSlugify.ts +47 -0
- package/Server/Utils/AI/AIRunTranscript.ts +240 -0
- package/Server/Utils/AI/Chat/ChatAgentRunner.ts +9 -0
- package/Server/Utils/AI/Chat/ObservabilityChatPrompt.ts +119 -5
- package/Server/Utils/AI/CodeFix/CodeFixAgentCompletion.ts +75 -0
- package/Server/Utils/AI/CodeFix/CodeFixReadiness.ts +235 -0
- package/Server/Utils/AI/SRE/Insights/FixRouting.ts +2 -3
- package/Server/Utils/AI/Toolbox/CodeTools.ts +883 -0
- package/Server/Utils/AI/Toolbox/CodeWriteTools.ts +519 -0
- package/Server/Utils/AI/Toolbox/Index.ts +27 -0
- package/Server/Utils/AI/Toolbox/ScheduledMaintenanceTools.ts +279 -0
- package/Server/Utils/AnalyticsDatabase/ClickhouseCapacity.ts +19 -1
- package/Server/Utils/Attribution.ts +99 -0
- package/Server/Utils/CodeRepository/GitHub/GitHub.ts +600 -0
- package/Server/Utils/CodeRepository/StackTraceRepoResolver.ts +7 -2
- package/Server/Utils/LLM/LLMService.ts +397 -18
- package/Server/Utils/Marketing/ConversionUploadProvider.ts +103 -0
- package/Server/Utils/Marketing/ConversionUploadProviders.ts +22 -0
- package/Server/Utils/Marketing/Providers/GoogleAds.ts +270 -0
- package/Server/Utils/Marketing/Providers/LinkedIn.ts +147 -0
- package/Server/Utils/Marketing/Providers/Meta.ts +148 -0
- package/Server/Utils/Marketing/Providers/MicrosoftAds.ts +196 -0
- package/Server/Utils/Marketing/Providers/Reddit.ts +178 -0
- package/Server/Utils/Monitor/MonitorAlert.ts +71 -7
- package/Server/Utils/Monitor/MonitorCriteriaEvaluator.ts +31 -19
- package/Server/Utils/Monitor/MonitorIncident.ts +71 -7
- package/Server/Utils/Monitor/MonitorMetricUtil.ts +57 -0
- package/Server/Utils/Monitor/MonitorTemplateUtil.ts +94 -0
- package/Server/Utils/Monitor/NetworkDeviceHydrationUtil.ts +19 -11
- package/Server/Utils/Monitor/NetworkInventoryUtil.ts +125 -14
- package/Server/Utils/ProductAnalytics.ts +133 -0
- package/Server/Utils/Telemetry/Telemetry.ts +39 -0
- package/Server/Utils/Telemetry/TelemetryEntity.ts +21 -0
- package/Tests/Models/StatusPageEnableMcpServer.test.ts +125 -0
- package/Tests/Server/API/BaseAnalyticsAPI.test.ts +72 -0
- package/Tests/Server/Infrastructure/SemaphorePermit.test.ts +9 -1
- package/Tests/Server/Services/AnalyticsDatabaseService.test.ts +21 -2
- package/Tests/Server/Services/MetricEntityMVKeyParity.test.ts +173 -0
- package/Tests/Server/Services/MetricServiceAggregate.test.ts +1391 -0
- package/Tests/Server/Services/NetworkDeviceOwnerServices.test.ts +260 -0
- package/Tests/Server/Services/StatusPageServiceMcp.test.ts +223 -0
- package/Tests/Server/Services/TelemetryExceptionAIFixReadiness.test.ts +26 -3
- package/Tests/Server/Services/TelemetryExceptionCodeFixRun.test.ts +12 -0
- package/Tests/Server/Types/Markdown.test.ts +106 -0
- package/Tests/Server/Utils/AI/AIRunTranscript.test.ts +182 -0
- package/Tests/Server/Utils/AI/CodeFixReadiness.test.ts +411 -0
- package/Tests/Server/Utils/AI/CodeTools.test.ts +596 -0
- package/Tests/Server/Utils/AI/CodeWriteTools.test.ts +475 -0
- package/Tests/Server/Utils/AI/LLMServiceModelCompatibility.test.ts +548 -0
- package/Tests/Server/Utils/AI/ObservabilityChatPrompt.test.ts +142 -0
- package/Tests/Server/Utils/AI/ScheduledMaintenanceTools.test.ts +176 -0
- package/Tests/Server/Utils/AnalyticsDatabase/ClickhouseCapacity.test.ts +63 -0
- package/Tests/Server/Utils/GitHubGetFileContent.test.ts +197 -0
- package/Tests/Server/Utils/Monitor/MonitorTemplateUtilNetworkDevice.test.ts +389 -0
- package/Tests/Server/Utils/Monitor/NetworkDeviceHydrationUtil.test.ts +502 -0
- package/Tests/Server/Utils/Monitor/NetworkInventoryUtil.test.ts +764 -0
- package/Tests/Types/AI/AIAgentTaskStatus.test.ts +7 -6
- package/Tests/Types/AI/AIChatPageContext.test.ts +0 -0
- package/Tests/Types/AI/AIRunStatus.test.ts +42 -0
- package/Tests/Types/BaseDatabase/AggregationIntervalUtil.test.ts +111 -2
- package/Tests/Types/Database/EndsWith.test.ts +64 -0
- package/Tests/Types/Database/GreaterThan.test.ts +62 -0
- package/Tests/Types/Database/GreaterThanOrEqual.test.ts +65 -0
- package/Tests/Types/Database/GreaterThanOrNull.test.ts +63 -0
- package/Tests/Types/Database/Includes.test.ts +65 -0
- package/Tests/Types/Database/IncludesAll.test.ts +65 -0
- package/Tests/Types/Database/IncludesNone.test.ts +65 -0
- package/Tests/Types/Database/IsNull.test.ts +44 -0
- package/Tests/Types/Database/LessThan.test.ts +62 -0
- package/Tests/Types/Database/LessThanOrEqual.test.ts +62 -0
- package/Tests/Types/Database/LessThanOrNull.test.ts +62 -0
- package/Tests/Types/Database/MultiSearch.test.ts +81 -0
- package/Tests/Types/Database/NotContains.test.ts +64 -0
- package/Tests/Types/Database/NotNull.test.ts +44 -0
- package/Tests/Types/Database/StartsWith.test.ts +64 -0
- package/Tests/Types/Log/LogSeverity.test.ts +78 -0
- package/Tests/Types/Monitor/MonitorStepSqlMonitor.test.ts +83 -1
- package/Tests/Types/Monitor/SnmpV3EnumParsing.test.ts +247 -0
- package/Tests/Types/Monitor/SnmpVendorTemplate.test.ts +263 -0
- package/Tests/UI/Components/BasicFormDropdownNormalization.test.tsx +167 -0
- package/Tests/UI/Components/Charts/AxisTickColor.test.tsx +66 -0
- package/Tests/UI/Components/XAxis.test.ts +5 -3
- package/Tests/UI/Utils/AIChatExport/ChatWidgetData.test.ts +319 -0
- package/Tests/UI/Utils/AIChatExport/ChatWidgetMarkdown.test.ts +188 -0
- package/Tests/Utils/EnterpriseLicenseUsage.test.ts +76 -0
- package/Tests/Utils/Metrics/MetricExplorerUrl.test.ts +622 -0
- package/Tests/Utils/Metrics/MetricFormulaEvaluator.test.ts +474 -0
- package/Tests/Utils/Telemetry/HeartbeatAvailability.test.ts +52 -4
- package/Types/AI/AIAgentTaskStatus.ts +13 -0
- package/Types/AI/AIChatPageContext.ts +137 -0
- package/Types/AI/AIChatTypes.ts +44 -0
- package/Types/AI/AIFixReadiness.ts +46 -0
- package/Types/AI/AIRunStatus.ts +11 -0
- package/Types/AnalyticsDatabase/AnalyticsTableName.ts +11 -0
- package/Types/BaseDatabase/AggregateBy.ts +31 -2
- package/Types/BaseDatabase/AggregatedResult.ts +22 -0
- package/Types/BaseDatabase/AggregationInterval.ts +11 -0
- package/Types/BaseDatabase/AggregationIntervalUtil.ts +30 -5
- package/Types/Dashboard/DashboardComponents/DashboardTraceChartComponent.ts +16 -0
- package/Types/Email/EmailTemplateType.ts +3 -0
- package/Types/Log/LogSeverity.ts +61 -0
- package/Types/Marketing/MarketingConversion.ts +11 -0
- package/Types/Metrics/MetricQueryConfigData.ts +21 -0
- package/Types/Metrics/MetricQueryData.ts +8 -0
- package/Types/Metrics/MetricViewData.ts +8 -0
- package/Types/Monitor/MonitorMetricType.ts +8 -0
- package/Types/Monitor/MonitorStep.ts +9 -0
- package/Types/Monitor/MonitorStepSqlMonitor.ts +12 -0
- package/Types/Monitor/MonitorType.ts +2 -1
- package/Types/Monitor/SSLMonitor/SslMonitorResponse.ts +17 -12
- package/Types/Monitor/SnmpMonitor/CdpNeighbor.ts +13 -0
- package/Types/Monitor/SnmpMonitor/NetworkTopology.ts +37 -3
- package/Types/Monitor/SnmpMonitor/SnmpAuthProtocol.ts +46 -0
- package/Types/Monitor/SnmpMonitor/SnmpEntityInfo.ts +15 -0
- package/Types/Monitor/SnmpMonitor/SnmpInterface.ts +8 -0
- package/Types/Monitor/SnmpMonitor/SnmpMonitorResponse.ts +17 -8
- package/Types/Monitor/SnmpMonitor/SnmpPrivProtocol.ts +53 -0
- package/Types/Monitor/SnmpMonitor/SnmpSecurityLevel.ts +43 -0
- package/Types/Monitor/SnmpMonitor/SnmpSystemInfo.ts +16 -0
- package/Types/Monitor/SnmpMonitor/SnmpVendorTemplate.ts +119 -3
- package/Types/Monitor/SnmpMonitor/SnmpVersion.ts +40 -0
- package/Types/NetFlow/NetworkFlowRecord.ts +25 -0
- package/Types/Syslog/SyslogMessage.ts +18 -0
- package/Types/Telemetry/TelemetrySavedViewState.ts +9 -0
- package/Types/Telemetry/TelemetrySavedViewType.ts +12 -0
- package/UI/Components/Charts/Area/AreaChart.tsx +51 -0
- package/UI/Components/Charts/Bar/BarChart.tsx +51 -1
- package/UI/Components/Charts/ChartGroup/ChartGroup.tsx +97 -26
- package/UI/Components/Charts/ChartLibrary/AreaChart/AreaChart.tsx +336 -3
- package/UI/Components/Charts/ChartLibrary/BarChart/BarChart.tsx +118 -1
- package/UI/Components/Charts/ChartLibrary/LineChart/LineChart.tsx +336 -3
- package/UI/Components/Charts/ChartLibrary/Types/ChartDataPoint.ts +7 -0
- package/UI/Components/Charts/ChartLibrary/Types/FormattedReferenceRegion.ts +15 -0
- package/UI/Components/Charts/ChartLibrary/Types/FormattedTimeReferenceLine.ts +13 -0
- package/UI/Components/Charts/Line/LineChart.tsx +51 -0
- package/UI/Components/Charts/Types/ReferenceRegionProps.ts +12 -0
- package/UI/Components/Charts/Types/TimeReferenceLineProps.ts +12 -0
- package/UI/Components/Charts/Types/XAxis/XAxisPrecision.ts +1 -0
- package/UI/Components/Charts/Utils/DataPoint.ts +0 -0
- package/UI/Components/Charts/Utils/TimeAnnotation.ts +169 -0
- package/UI/Components/Charts/Utils/XAxis.ts +28 -4
- package/UI/Components/Forms/BasicForm.tsx +26 -8
- package/UI/Components/Icon/Icon.tsx +33 -13
- package/UI/Components/Markdown.tsx/MarkdownViewer.tsx +9 -0
- package/UI/Components/MonitorTemplateVariables/TemplateVariablesCatalog.ts +67 -0
- package/UI/Components/Page/ModelPage.tsx +6 -1
- package/UI/Components/TelemetryViewer/components/SavedViewsDropdown.tsx +33 -4
- package/UI/Styles/Theme.css +1324 -0
- package/UI/Utils/AIChatExport/ChatWidgetData.ts +316 -0
- package/UI/Utils/AIChatExport/ChatWidgetMarkdown.ts +349 -0
- package/UI/Utils/AIChatExport/ConversationMarkdown.ts +177 -0
- package/UI/Utils/AIChatExport/MarkdownBlocks.ts +327 -0
- package/UI/Utils/AIChatExport/MarkdownSafety.ts +215 -0
- package/UI/Utils/DownloadFile.ts +54 -0
- package/UI/Utils/User.ts +41 -2
- package/Utils/Analytics.ts +8 -6
- package/Utils/EnterpriseLicense/EnterpriseLicenseUsage.ts +74 -0
- package/Utils/Metrics/MetricExplorerUrl.ts +771 -0
- package/Utils/Metrics/MetricFormulaEvaluator.ts +410 -46
- package/Utils/Monitor/NetworkTopologyUtil.ts +261 -49
- package/Utils/ValueFormatter.ts +22 -1
- package/build/dist/Models/AnalyticsModels/Index.js +13 -0
- package/build/dist/Models/AnalyticsModels/Index.js.map +1 -1
- package/build/dist/Models/AnalyticsModels/MetricItemAggMV1mByContainer.js +159 -0
- package/build/dist/Models/AnalyticsModels/MetricItemAggMV1mByContainer.js.map +1 -0
- package/build/dist/Models/AnalyticsModels/MetricItemAggMV1mByK8sCluster.js +158 -0
- package/build/dist/Models/AnalyticsModels/MetricItemAggMV1mByK8sCluster.js.map +1 -0
- package/build/dist/Models/AnalyticsModels/MetricItemAggMV1mByService.js +160 -0
- package/build/dist/Models/AnalyticsModels/MetricItemAggMV1mByService.js.map +1 -0
- package/build/dist/Models/AnalyticsModels/NetworkFlow.js +351 -0
- package/build/dist/Models/AnalyticsModels/NetworkFlow.js.map +1 -0
- package/build/dist/Models/DatabaseModels/AIAgentTaskPullRequest.js +15 -7
- package/build/dist/Models/DatabaseModels/AIAgentTaskPullRequest.js.map +1 -1
- package/build/dist/Models/DatabaseModels/AIRun.js +38 -0
- package/build/dist/Models/DatabaseModels/AIRun.js.map +1 -1
- package/build/dist/Models/DatabaseModels/AIRunEvent.js +31 -0
- package/build/dist/Models/DatabaseModels/AIRunEvent.js.map +1 -1
- package/build/dist/Models/DatabaseModels/EnterpriseLicenseInstance.js +19 -0
- package/build/dist/Models/DatabaseModels/EnterpriseLicenseInstance.js.map +1 -1
- package/build/dist/Models/DatabaseModels/GlobalConfig.js +38 -0
- package/build/dist/Models/DatabaseModels/GlobalConfig.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Index.js +2 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/MarketingConversion.js +219 -0
- package/build/dist/Models/DatabaseModels/MarketingConversion.js.map +1 -0
- package/build/dist/Models/DatabaseModels/MetricSavedView.js +35 -0
- package/build/dist/Models/DatabaseModels/MetricSavedView.js.map +1 -1
- package/build/dist/Models/DatabaseModels/MetricType.js +76 -0
- package/build/dist/Models/DatabaseModels/MetricType.js.map +1 -1
- package/build/dist/Models/DatabaseModels/NetworkDevice.js +341 -0
- package/build/dist/Models/DatabaseModels/NetworkDevice.js.map +1 -1
- package/build/dist/Models/DatabaseModels/NetworkDeviceDiscoveryScan.js +341 -0
- package/build/dist/Models/DatabaseModels/NetworkDeviceDiscoveryScan.js.map +1 -1
- package/build/dist/Models/DatabaseModels/NetworkInterface.js +60 -0
- package/build/dist/Models/DatabaseModels/NetworkInterface.js.map +1 -1
- package/build/dist/Models/DatabaseModels/Project.js +65 -0
- package/build/dist/Models/DatabaseModels/Project.js.map +1 -1
- package/build/dist/Models/DatabaseModels/StatusPage.js +43 -0
- package/build/dist/Models/DatabaseModels/StatusPage.js.map +1 -1
- package/build/dist/Models/DatabaseModels/User.js +38 -0
- package/build/dist/Models/DatabaseModels/User.js.map +1 -1
- package/build/dist/Server/API/AIAgentTaskAPI.js +37 -11
- package/build/dist/Server/API/AIAgentTaskAPI.js.map +1 -1
- package/build/dist/Server/API/AIAgentTaskLogAPI.js +32 -7
- package/build/dist/Server/API/AIAgentTaskLogAPI.js.map +1 -1
- package/build/dist/Server/API/AIChatAPI.js +9 -0
- package/build/dist/Server/API/AIChatAPI.js.map +1 -1
- package/build/dist/Server/API/AIReadinessAPI.js +57 -0
- package/build/dist/Server/API/AIReadinessAPI.js.map +1 -0
- package/build/dist/Server/API/BaseAnalyticsAPI.js +19 -0
- package/build/dist/Server/API/BaseAnalyticsAPI.js.map +1 -1
- package/build/dist/Server/API/CodeFixRunAPI.js +142 -0
- package/build/dist/Server/API/CodeFixRunAPI.js.map +1 -1
- package/build/dist/Server/API/EnterpriseLicenseAPI.js +8 -0
- package/build/dist/Server/API/EnterpriseLicenseAPI.js.map +1 -1
- package/build/dist/Server/API/TelemetryExceptionAPI.js +4 -0
- package/build/dist/Server/API/TelemetryExceptionAPI.js.map +1 -1
- package/build/dist/Server/EnvironmentConfig.js +51 -0
- package/build/dist/Server/EnvironmentConfig.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1784124919694-AddAITaskNumberAndRunTranscript.js +80 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1784124919694-AddAITaskNumberAndRunTranscript.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1784135099754-AllowNullAiAgentOnPullRequest.js +37 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1784135099754-AllowNullAiAgentOnPullRequest.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1784137457184-AddEnableMcpServerToStatusPage.js +23 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1784137457184-AddEnableMcpServerToStatusPage.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1784191414522-AddCounterSemanticsToMetricType.js +27 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1784191414522-AddCounterSemanticsToMetricType.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1784191414600-AddViewTypeToMetricSavedView.js +21 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1784191414600-AddViewTypeToMetricSavedView.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1784200000000-AddSnmpV3ColumnsToNetworkDeviceDiscoveryScan.js +22 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1784200000000-AddSnmpV3ColumnsToNetworkDeviceDiscoveryScan.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1784211212164-AddNetworkDeviceInventoryAndDiscoverySchedule.js +47 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1784211212164-AddNetworkDeviceInventoryAndDiscoverySchedule.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1784218257664-AddEnterpriseLicenseNotificationColumns.js +16 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1784218257664-AddEnterpriseLicenseNotificationColumns.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1784293516000-AddAttributionColumnsToUserAndProject.js +18 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1784293516000-AddAttributionColumnsToUserAndProject.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1784298000000-AddMarketingConversionTable.js +20 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1784298000000-AddMarketingConversionTable.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +20 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Services/AIRunEventService.js +8 -0
- package/build/dist/Server/Services/AIRunEventService.js.map +1 -1
- package/build/dist/Server/Services/AIRunService.js +29 -0
- package/build/dist/Server/Services/AIRunService.js.map +1 -1
- package/build/dist/Server/Services/AnalyticsDatabaseService.js +58 -4
- package/build/dist/Server/Services/AnalyticsDatabaseService.js.map +1 -1
- package/build/dist/Server/Services/IncidentService.js +12 -0
- package/build/dist/Server/Services/IncidentService.js.map +1 -1
- package/build/dist/Server/Services/Index.js +10 -0
- package/build/dist/Server/Services/Index.js.map +1 -1
- package/build/dist/Server/Services/LlmProviderService.js +2 -0
- package/build/dist/Server/Services/LlmProviderService.js.map +1 -1
- package/build/dist/Server/Services/MarketingConversionService.js +9 -0
- package/build/dist/Server/Services/MarketingConversionService.js.map +1 -0
- package/build/dist/Server/Services/MetricItemAggMV1mByContainerService.js +29 -0
- package/build/dist/Server/Services/MetricItemAggMV1mByContainerService.js.map +1 -0
- package/build/dist/Server/Services/MetricItemAggMV1mByK8sClusterService.js +29 -0
- package/build/dist/Server/Services/MetricItemAggMV1mByK8sClusterService.js.map +1 -0
- package/build/dist/Server/Services/MetricItemAggMV1mByServiceService.js +29 -0
- package/build/dist/Server/Services/MetricItemAggMV1mByServiceService.js.map +1 -0
- package/build/dist/Server/Services/MetricService.js +761 -125
- package/build/dist/Server/Services/MetricService.js.map +1 -1
- package/build/dist/Server/Services/MonitorService.js +18 -5
- package/build/dist/Server/Services/MonitorService.js.map +1 -1
- package/build/dist/Server/Services/NetworkDeviceOwnerTeamService.js +44 -0
- package/build/dist/Server/Services/NetworkDeviceOwnerTeamService.js.map +1 -1
- package/build/dist/Server/Services/NetworkDeviceOwnerUserService.js +88 -0
- package/build/dist/Server/Services/NetworkDeviceOwnerUserService.js.map +1 -1
- package/build/dist/Server/Services/NetworkFlowService.js +9 -0
- package/build/dist/Server/Services/NetworkFlowService.js.map +1 -0
- package/build/dist/Server/Services/OnCallDutyPolicyService.js +15 -6
- package/build/dist/Server/Services/OnCallDutyPolicyService.js.map +1 -1
- package/build/dist/Server/Services/ProjectService.js +146 -6
- package/build/dist/Server/Services/ProjectService.js.map +1 -1
- package/build/dist/Server/Services/SpanService.js +8 -6
- package/build/dist/Server/Services/SpanService.js.map +1 -1
- package/build/dist/Server/Services/StatusPageService.js +91 -0
- package/build/dist/Server/Services/StatusPageService.js.map +1 -1
- package/build/dist/Server/Services/TeamMemberService.js +11 -0
- package/build/dist/Server/Services/TeamMemberService.js.map +1 -1
- package/build/dist/Server/Services/TelemetryExceptionService.js +14 -61
- package/build/dist/Server/Services/TelemetryExceptionService.js.map +1 -1
- package/build/dist/Server/Services/UserService.js +52 -0
- package/build/dist/Server/Services/UserService.js.map +1 -1
- package/build/dist/Server/Types/AnalyticsDatabase/AggregateBy.js +33 -7
- package/build/dist/Server/Types/AnalyticsDatabase/AggregateBy.js.map +1 -1
- package/build/dist/Server/Types/Markdown.js +8 -8
- package/build/dist/Server/Types/Markdown.js.map +1 -1
- package/build/dist/Server/Types/MarkdownSlugify.js +47 -0
- package/build/dist/Server/Types/MarkdownSlugify.js.map +1 -0
- package/build/dist/Server/Utils/AI/AIRunTranscript.js +180 -0
- package/build/dist/Server/Utils/AI/AIRunTranscript.js.map +1 -0
- package/build/dist/Server/Utils/AI/Chat/ChatAgentRunner.js +1 -0
- package/build/dist/Server/Utils/AI/Chat/ChatAgentRunner.js.map +1 -1
- package/build/dist/Server/Utils/AI/Chat/ObservabilityChatPrompt.js +103 -5
- package/build/dist/Server/Utils/AI/Chat/ObservabilityChatPrompt.js.map +1 -1
- package/build/dist/Server/Utils/AI/CodeFix/CodeFixAgentCompletion.js +55 -0
- package/build/dist/Server/Utils/AI/CodeFix/CodeFixAgentCompletion.js.map +1 -1
- package/build/dist/Server/Utils/AI/CodeFix/CodeFixReadiness.js +211 -0
- package/build/dist/Server/Utils/AI/CodeFix/CodeFixReadiness.js.map +1 -0
- package/build/dist/Server/Utils/AI/SRE/Insights/FixRouting.js.map +1 -1
- package/build/dist/Server/Utils/AI/Toolbox/CodeTools.js +654 -0
- package/build/dist/Server/Utils/AI/Toolbox/CodeTools.js.map +1 -0
- package/build/dist/Server/Utils/AI/Toolbox/CodeWriteTools.js +389 -0
- package/build/dist/Server/Utils/AI/Toolbox/CodeWriteTools.js.map +1 -0
- package/build/dist/Server/Utils/AI/Toolbox/Index.js +19 -0
- package/build/dist/Server/Utils/AI/Toolbox/Index.js.map +1 -1
- package/build/dist/Server/Utils/AI/Toolbox/ScheduledMaintenanceTools.js +239 -0
- package/build/dist/Server/Utils/AI/Toolbox/ScheduledMaintenanceTools.js.map +1 -0
- package/build/dist/Server/Utils/AnalyticsDatabase/ClickhouseCapacity.js +19 -1
- package/build/dist/Server/Utils/AnalyticsDatabase/ClickhouseCapacity.js.map +1 -1
- package/build/dist/Server/Utils/Attribution.js +74 -0
- package/build/dist/Server/Utils/Attribution.js.map +1 -0
- package/build/dist/Server/Utils/CodeRepository/GitHub/GitHub.js +439 -0
- package/build/dist/Server/Utils/CodeRepository/GitHub/GitHub.js.map +1 -1
- package/build/dist/Server/Utils/CodeRepository/StackTraceRepoResolver.js +1 -1
- package/build/dist/Server/Utils/CodeRepository/StackTraceRepoResolver.js.map +1 -1
- package/build/dist/Server/Utils/LLM/LLMService.js +275 -19
- package/build/dist/Server/Utils/LLM/LLMService.js.map +1 -1
- package/build/dist/Server/Utils/Marketing/ConversionUploadProvider.js +40 -0
- package/build/dist/Server/Utils/Marketing/ConversionUploadProvider.js.map +1 -0
- package/build/dist/Server/Utils/Marketing/ConversionUploadProviders.js +20 -0
- package/build/dist/Server/Utils/Marketing/ConversionUploadProviders.js.map +1 -0
- package/build/dist/Server/Utils/Marketing/Providers/GoogleAds.js +177 -0
- package/build/dist/Server/Utils/Marketing/Providers/GoogleAds.js.map +1 -0
- package/build/dist/Server/Utils/Marketing/Providers/LinkedIn.js +113 -0
- package/build/dist/Server/Utils/Marketing/Providers/LinkedIn.js.map +1 -0
- package/build/dist/Server/Utils/Marketing/Providers/Meta.js +109 -0
- package/build/dist/Server/Utils/Marketing/Providers/Meta.js.map +1 -0
- package/build/dist/Server/Utils/Marketing/Providers/MicrosoftAds.js +130 -0
- package/build/dist/Server/Utils/Marketing/Providers/MicrosoftAds.js.map +1 -0
- package/build/dist/Server/Utils/Marketing/Providers/Reddit.js +126 -0
- package/build/dist/Server/Utils/Marketing/Providers/Reddit.js.map +1 -0
- package/build/dist/Server/Utils/Monitor/MonitorAlert.js +53 -9
- package/build/dist/Server/Utils/Monitor/MonitorAlert.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js +21 -10
- package/build/dist/Server/Utils/Monitor/MonitorCriteriaEvaluator.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorIncident.js +54 -11
- package/build/dist/Server/Utils/Monitor/MonitorIncident.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorMetricUtil.js +43 -3
- package/build/dist/Server/Utils/Monitor/MonitorMetricUtil.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/MonitorTemplateUtil.js +68 -0
- package/build/dist/Server/Utils/Monitor/MonitorTemplateUtil.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/NetworkDeviceHydrationUtil.js +17 -11
- package/build/dist/Server/Utils/Monitor/NetworkDeviceHydrationUtil.js.map +1 -1
- package/build/dist/Server/Utils/Monitor/NetworkInventoryUtil.js +100 -15
- package/build/dist/Server/Utils/Monitor/NetworkInventoryUtil.js.map +1 -1
- package/build/dist/Server/Utils/ProductAnalytics.js +111 -0
- package/build/dist/Server/Utils/ProductAnalytics.js.map +1 -0
- package/build/dist/Server/Utils/Telemetry/Telemetry.js +32 -5
- package/build/dist/Server/Utils/Telemetry/Telemetry.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry/TelemetryEntity.js +17 -0
- package/build/dist/Server/Utils/Telemetry/TelemetryEntity.js.map +1 -1
- package/build/dist/Types/AI/AIAgentTaskStatus.js +12 -0
- package/build/dist/Types/AI/AIAgentTaskStatus.js.map +1 -1
- package/build/dist/Types/AI/AIChatPageContext.js +101 -0
- package/build/dist/Types/AI/AIChatPageContext.js.map +1 -0
- package/build/dist/Types/AI/AIChatTypes.js +2 -0
- package/build/dist/Types/AI/AIChatTypes.js.map +1 -1
- package/build/dist/Types/AI/AIFixReadiness.js +9 -0
- package/build/dist/Types/AI/AIFixReadiness.js.map +1 -0
- package/build/dist/Types/AI/AIRunStatus.js +11 -0
- package/build/dist/Types/AI/AIRunStatus.js.map +1 -1
- package/build/dist/Types/AnalyticsDatabase/AnalyticsTableName.js +11 -0
- package/build/dist/Types/AnalyticsDatabase/AnalyticsTableName.js.map +1 -1
- package/build/dist/Types/BaseDatabase/AggregationInterval.js +11 -0
- package/build/dist/Types/BaseDatabase/AggregationInterval.js.map +1 -1
- package/build/dist/Types/BaseDatabase/AggregationIntervalUtil.js +33 -5
- package/build/dist/Types/BaseDatabase/AggregationIntervalUtil.js.map +1 -1
- package/build/dist/Types/Email/EmailTemplateType.js +2 -0
- package/build/dist/Types/Email/EmailTemplateType.js.map +1 -1
- package/build/dist/Types/Log/LogSeverity.js +56 -0
- package/build/dist/Types/Log/LogSeverity.js.map +1 -1
- package/build/dist/Types/Marketing/MarketingConversion.js +13 -0
- package/build/dist/Types/Marketing/MarketingConversion.js.map +1 -0
- package/build/dist/Types/Monitor/MonitorMetricType.js +7 -0
- package/build/dist/Types/Monitor/MonitorMetricType.js.map +1 -1
- package/build/dist/Types/Monitor/MonitorStep.js +6 -0
- package/build/dist/Types/Monitor/MonitorStep.js.map +1 -1
- package/build/dist/Types/Monitor/MonitorStepSqlMonitor.js +3 -0
- package/build/dist/Types/Monitor/MonitorStepSqlMonitor.js.map +1 -1
- package/build/dist/Types/Monitor/MonitorType.js +2 -1
- package/build/dist/Types/Monitor/MonitorType.js.map +1 -1
- package/build/dist/Types/Monitor/SnmpMonitor/CdpNeighbor.js +2 -0
- package/build/dist/Types/Monitor/SnmpMonitor/CdpNeighbor.js.map +1 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpAuthProtocol.js +41 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpAuthProtocol.js.map +1 -1
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpEntityInfo.js +2 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpEntityInfo.js.map +1 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpPrivProtocol.js +48 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpPrivProtocol.js.map +1 -1
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpSecurityLevel.js +38 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpSecurityLevel.js.map +1 -1
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpSystemInfo.js +2 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpSystemInfo.js.map +1 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpVendorTemplate.js +96 -3
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpVendorTemplate.js.map +1 -1
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpVersion.js +38 -0
- package/build/dist/Types/Monitor/SnmpMonitor/SnmpVersion.js.map +1 -1
- package/build/dist/Types/NetFlow/NetworkFlowRecord.js +2 -0
- package/build/dist/Types/NetFlow/NetworkFlowRecord.js.map +1 -0
- package/build/dist/Types/Syslog/SyslogMessage.js +2 -0
- package/build/dist/Types/Syslog/SyslogMessage.js.map +1 -0
- package/build/dist/Types/Telemetry/TelemetrySavedViewState.js +0 -7
- package/build/dist/Types/Telemetry/TelemetrySavedViewState.js.map +1 -1
- package/build/dist/Types/Telemetry/TelemetrySavedViewType.js +13 -0
- package/build/dist/Types/Telemetry/TelemetrySavedViewType.js.map +1 -0
- package/build/dist/UI/Components/Charts/Area/AreaChart.js +25 -1
- package/build/dist/UI/Components/Charts/Area/AreaChart.js.map +1 -1
- package/build/dist/UI/Components/Charts/Bar/BarChart.js +26 -2
- package/build/dist/UI/Components/Charts/Bar/BarChart.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartGroup/ChartGroup.js +36 -12
- package/build/dist/UI/Components/Charts/ChartGroup/ChartGroup.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartLibrary/AreaChart/AreaChart.js +217 -8
- package/build/dist/UI/Components/Charts/ChartLibrary/AreaChart/AreaChart.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartLibrary/BarChart/BarChart.js +55 -4
- package/build/dist/UI/Components/Charts/ChartLibrary/BarChart/BarChart.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartLibrary/LineChart/LineChart.js +217 -8
- package/build/dist/UI/Components/Charts/ChartLibrary/LineChart/LineChart.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartLibrary/Types/ChartDataPoint.js +6 -1
- package/build/dist/UI/Components/Charts/ChartLibrary/Types/ChartDataPoint.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartLibrary/Types/FormattedReferenceRegion.js +2 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Types/FormattedReferenceRegion.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Types/FormattedTimeReferenceLine.js +2 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Types/FormattedTimeReferenceLine.js.map +1 -0
- package/build/dist/UI/Components/Charts/Line/LineChart.js +25 -1
- package/build/dist/UI/Components/Charts/Line/LineChart.js.map +1 -1
- package/build/dist/UI/Components/Charts/Types/ReferenceRegionProps.js +2 -0
- package/build/dist/UI/Components/Charts/Types/ReferenceRegionProps.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/TimeReferenceLineProps.js +2 -0
- package/build/dist/UI/Components/Charts/Types/TimeReferenceLineProps.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxisPrecision.js +1 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxisPrecision.js.map +1 -1
- package/build/dist/UI/Components/Charts/Utils/DataPoint.js +0 -0
- package/build/dist/UI/Components/Charts/Utils/DataPoint.js.map +1 -1
- package/build/dist/UI/Components/Charts/Utils/TimeAnnotation.js +121 -0
- package/build/dist/UI/Components/Charts/Utils/TimeAnnotation.js.map +1 -0
- package/build/dist/UI/Components/Charts/Utils/XAxis.js +27 -4
- package/build/dist/UI/Components/Charts/Utils/XAxis.js.map +1 -1
- package/build/dist/UI/Components/Forms/BasicForm.js +24 -6
- package/build/dist/UI/Components/Forms/BasicForm.js.map +1 -1
- package/build/dist/UI/Components/Icon/Icon.js +15 -8
- package/build/dist/UI/Components/Icon/Icon.js.map +1 -1
- package/build/dist/UI/Components/Markdown.tsx/MarkdownViewer.js.map +1 -1
- package/build/dist/UI/Components/MonitorTemplateVariables/TemplateVariablesCatalog.js +58 -0
- package/build/dist/UI/Components/MonitorTemplateVariables/TemplateVariablesCatalog.js.map +1 -1
- package/build/dist/UI/Components/Page/ModelPage.js +7 -1
- package/build/dist/UI/Components/Page/ModelPage.js.map +1 -1
- package/build/dist/UI/Components/TelemetryViewer/components/SavedViewsDropdown.js +10 -4
- package/build/dist/UI/Components/TelemetryViewer/components/SavedViewsDropdown.js.map +1 -1
- package/build/dist/UI/Utils/AIChatExport/ChatWidgetData.js +217 -0
- package/build/dist/UI/Utils/AIChatExport/ChatWidgetData.js.map +1 -0
- package/build/dist/UI/Utils/AIChatExport/ChatWidgetMarkdown.js +234 -0
- package/build/dist/UI/Utils/AIChatExport/ChatWidgetMarkdown.js.map +1 -0
- package/build/dist/UI/Utils/AIChatExport/ConversationMarkdown.js +111 -0
- package/build/dist/UI/Utils/AIChatExport/ConversationMarkdown.js.map +1 -0
- package/build/dist/UI/Utils/AIChatExport/MarkdownBlocks.js +233 -0
- package/build/dist/UI/Utils/AIChatExport/MarkdownBlocks.js.map +1 -0
- package/build/dist/UI/Utils/AIChatExport/MarkdownSafety.js +134 -0
- package/build/dist/UI/Utils/AIChatExport/MarkdownSafety.js.map +1 -0
- package/build/dist/UI/Utils/DownloadFile.js +41 -0
- package/build/dist/UI/Utils/DownloadFile.js.map +1 -0
- package/build/dist/UI/Utils/User.js +35 -2
- package/build/dist/UI/Utils/User.js.map +1 -1
- package/build/dist/Utils/Analytics.js +8 -5
- package/build/dist/Utils/Analytics.js.map +1 -1
- package/build/dist/Utils/EnterpriseLicense/EnterpriseLicenseUsage.js +57 -0
- package/build/dist/Utils/EnterpriseLicense/EnterpriseLicenseUsage.js.map +1 -1
- package/build/dist/Utils/Metrics/MetricExplorerUrl.js +418 -0
- package/build/dist/Utils/Metrics/MetricExplorerUrl.js.map +1 -0
- package/build/dist/Utils/Metrics/MetricFormulaEvaluator.js +296 -37
- package/build/dist/Utils/Metrics/MetricFormulaEvaluator.js.map +1 -1
- package/build/dist/Utils/Monitor/NetworkTopologyUtil.js +176 -40
- package/build/dist/Utils/Monitor/NetworkTopologyUtil.js.map +1 -1
- package/build/dist/Utils/ValueFormatter.js +20 -1
- package/build/dist/Utils/ValueFormatter.js.map +1 -1
- package/package.json +6 -2
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
import AnalyticsBaseModel from "./AnalyticsBaseModel/AnalyticsBaseModel";
|
|
2
|
+
import Route from "../../Types/API/Route";
|
|
3
|
+
import AnalyticsTableEngine from "../../Types/AnalyticsDatabase/AnalyticsTableEngine";
|
|
4
|
+
import AnalyticsTableName from "../../Types/AnalyticsDatabase/AnalyticsTableName";
|
|
5
|
+
import AnalyticsTableColumn from "../../Types/AnalyticsDatabase/TableColumn";
|
|
6
|
+
import TableColumnType from "../../Types/AnalyticsDatabase/TableColumnType";
|
|
7
|
+
import ObjectID from "../../Types/ObjectID";
|
|
8
|
+
import Permission from "../../Types/Permission";
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
* One NetFlow v5 flow record exported by a network device, received by a
|
|
12
|
+
* probe's NetFlow receiver and correlated to a NetworkDevice on ingest.
|
|
13
|
+
* Powers top-talker / bandwidth-attribution queries: who talked to whom,
|
|
14
|
+
* over which protocol/port, and how many bytes/packets, per device.
|
|
15
|
+
*
|
|
16
|
+
* Access control mirrors the NetworkDevice database model — flows are an
|
|
17
|
+
* attribute of the device that exported them.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
const readPermissions: Array<Permission> = [
|
|
21
|
+
Permission.ProjectOwner,
|
|
22
|
+
Permission.ProjectAdmin,
|
|
23
|
+
Permission.ProjectMember,
|
|
24
|
+
Permission.Viewer,
|
|
25
|
+
Permission.SettingsAdmin,
|
|
26
|
+
Permission.SettingsMember,
|
|
27
|
+
Permission.SettingsViewer,
|
|
28
|
+
Permission.ReadNetworkDevice,
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
const createPermissions: Array<Permission> = [
|
|
32
|
+
Permission.ProjectOwner,
|
|
33
|
+
Permission.ProjectAdmin,
|
|
34
|
+
Permission.ProjectMember,
|
|
35
|
+
Permission.SettingsAdmin,
|
|
36
|
+
Permission.SettingsMember,
|
|
37
|
+
Permission.CreateNetworkDevice,
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
export default class NetworkFlow extends AnalyticsBaseModel {
|
|
41
|
+
public constructor() {
|
|
42
|
+
const projectIdColumn: AnalyticsTableColumn = new AnalyticsTableColumn({
|
|
43
|
+
key: "projectId",
|
|
44
|
+
title: "Project ID",
|
|
45
|
+
description: "ID of project",
|
|
46
|
+
required: true,
|
|
47
|
+
type: TableColumnType.ObjectID,
|
|
48
|
+
isTenantId: true,
|
|
49
|
+
accessControl: {
|
|
50
|
+
read: readPermissions,
|
|
51
|
+
create: createPermissions,
|
|
52
|
+
update: [],
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
/*
|
|
57
|
+
* Required (not Nullable) even though a flow could in principle lack a
|
|
58
|
+
* device: the ingest path DROPS flows whose exporter matches no
|
|
59
|
+
* NetworkDevice (there is no project to attribute them to), so every
|
|
60
|
+
* stored row has one — and the column sits in the sort key, where
|
|
61
|
+
* ClickHouse rejects Nullable columns.
|
|
62
|
+
*/
|
|
63
|
+
const networkDeviceIdColumn: AnalyticsTableColumn =
|
|
64
|
+
new AnalyticsTableColumn({
|
|
65
|
+
key: "networkDeviceId",
|
|
66
|
+
title: "Network Device ID",
|
|
67
|
+
description:
|
|
68
|
+
"ID of the NetworkDevice that exported this flow (correlated from the exporter IP on ingest)",
|
|
69
|
+
required: true,
|
|
70
|
+
type: TableColumnType.ObjectID,
|
|
71
|
+
accessControl: {
|
|
72
|
+
read: readPermissions,
|
|
73
|
+
create: createPermissions,
|
|
74
|
+
update: [],
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
const exporterIpColumn: AnalyticsTableColumn = new AnalyticsTableColumn({
|
|
79
|
+
key: "exporterIp",
|
|
80
|
+
isLowCardinality: true,
|
|
81
|
+
title: "Exporter IP",
|
|
82
|
+
description:
|
|
83
|
+
"Source IP of the NetFlow export datagram — the router/switch that observed the flow",
|
|
84
|
+
required: true,
|
|
85
|
+
type: TableColumnType.Text,
|
|
86
|
+
accessControl: {
|
|
87
|
+
read: readPermissions,
|
|
88
|
+
create: createPermissions,
|
|
89
|
+
update: [],
|
|
90
|
+
},
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
const srcIpColumn: AnalyticsTableColumn = new AnalyticsTableColumn({
|
|
94
|
+
key: "srcIp",
|
|
95
|
+
codec: { codec: "ZSTD", level: 1 },
|
|
96
|
+
title: "Source IP",
|
|
97
|
+
description: "Source IP address of the flow's traffic",
|
|
98
|
+
required: true,
|
|
99
|
+
type: TableColumnType.Text,
|
|
100
|
+
accessControl: {
|
|
101
|
+
read: readPermissions,
|
|
102
|
+
create: createPermissions,
|
|
103
|
+
update: [],
|
|
104
|
+
},
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
const dstIpColumn: AnalyticsTableColumn = new AnalyticsTableColumn({
|
|
108
|
+
key: "dstIp",
|
|
109
|
+
codec: { codec: "ZSTD", level: 1 },
|
|
110
|
+
title: "Destination IP",
|
|
111
|
+
description: "Destination IP address of the flow's traffic",
|
|
112
|
+
required: true,
|
|
113
|
+
type: TableColumnType.Text,
|
|
114
|
+
accessControl: {
|
|
115
|
+
read: readPermissions,
|
|
116
|
+
create: createPermissions,
|
|
117
|
+
update: [],
|
|
118
|
+
},
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
const srcPortColumn: AnalyticsTableColumn = new AnalyticsTableColumn({
|
|
122
|
+
key: "srcPort",
|
|
123
|
+
title: "Source Port",
|
|
124
|
+
description: "TCP/UDP source port (0 when not applicable)",
|
|
125
|
+
required: true,
|
|
126
|
+
type: TableColumnType.Number,
|
|
127
|
+
accessControl: {
|
|
128
|
+
read: readPermissions,
|
|
129
|
+
create: createPermissions,
|
|
130
|
+
update: [],
|
|
131
|
+
},
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
const dstPortColumn: AnalyticsTableColumn = new AnalyticsTableColumn({
|
|
135
|
+
key: "dstPort",
|
|
136
|
+
title: "Destination Port",
|
|
137
|
+
description: "TCP/UDP destination port (0 when not applicable)",
|
|
138
|
+
required: true,
|
|
139
|
+
type: TableColumnType.Number,
|
|
140
|
+
accessControl: {
|
|
141
|
+
read: readPermissions,
|
|
142
|
+
create: createPermissions,
|
|
143
|
+
update: [],
|
|
144
|
+
},
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
const protocolColumn: AnalyticsTableColumn = new AnalyticsTableColumn({
|
|
148
|
+
key: "protocol",
|
|
149
|
+
title: "Protocol",
|
|
150
|
+
description: "IP protocol number (6 = TCP, 17 = UDP, 1 = ICMP, ...)",
|
|
151
|
+
required: true,
|
|
152
|
+
type: TableColumnType.Number,
|
|
153
|
+
accessControl: {
|
|
154
|
+
read: readPermissions,
|
|
155
|
+
create: createPermissions,
|
|
156
|
+
update: [],
|
|
157
|
+
},
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
const octetsColumn: AnalyticsTableColumn = new AnalyticsTableColumn({
|
|
161
|
+
key: "octets",
|
|
162
|
+
title: "Octets",
|
|
163
|
+
description: "Total bytes in the flow",
|
|
164
|
+
required: true,
|
|
165
|
+
type: TableColumnType.UInt64,
|
|
166
|
+
accessControl: {
|
|
167
|
+
read: readPermissions,
|
|
168
|
+
create: createPermissions,
|
|
169
|
+
update: [],
|
|
170
|
+
},
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
const packetsColumn: AnalyticsTableColumn = new AnalyticsTableColumn({
|
|
174
|
+
key: "packets",
|
|
175
|
+
title: "Packets",
|
|
176
|
+
description: "Total packets in the flow",
|
|
177
|
+
required: true,
|
|
178
|
+
type: TableColumnType.UInt64,
|
|
179
|
+
accessControl: {
|
|
180
|
+
read: readPermissions,
|
|
181
|
+
create: createPermissions,
|
|
182
|
+
update: [],
|
|
183
|
+
},
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
const flowStartAtColumn: AnalyticsTableColumn = new AnalyticsTableColumn({
|
|
187
|
+
key: "flowStartAt",
|
|
188
|
+
codec: [{ codec: "DoubleDelta" }, { codec: "ZSTD", level: 1 }],
|
|
189
|
+
title: "Flow Start",
|
|
190
|
+
description: "Wall-clock time the flow started",
|
|
191
|
+
required: true,
|
|
192
|
+
type: TableColumnType.DateTime64,
|
|
193
|
+
accessControl: {
|
|
194
|
+
read: readPermissions,
|
|
195
|
+
create: createPermissions,
|
|
196
|
+
update: [],
|
|
197
|
+
},
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
const flowEndAtColumn: AnalyticsTableColumn = new AnalyticsTableColumn({
|
|
201
|
+
key: "flowEndAt",
|
|
202
|
+
codec: [{ codec: "DoubleDelta" }, { codec: "ZSTD", level: 1 }],
|
|
203
|
+
title: "Flow End",
|
|
204
|
+
description: "Wall-clock time the flow ended",
|
|
205
|
+
required: true,
|
|
206
|
+
type: TableColumnType.DateTime64,
|
|
207
|
+
accessControl: {
|
|
208
|
+
read: readPermissions,
|
|
209
|
+
create: createPermissions,
|
|
210
|
+
update: [],
|
|
211
|
+
},
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
const ingestedAtColumn: AnalyticsTableColumn = new AnalyticsTableColumn({
|
|
215
|
+
key: "ingestedAt",
|
|
216
|
+
codec: [{ codec: "DoubleDelta" }, { codec: "ZSTD", level: 1 }],
|
|
217
|
+
title: "Ingested At",
|
|
218
|
+
description: "When the server ingested this flow record",
|
|
219
|
+
required: true,
|
|
220
|
+
type: TableColumnType.DateTime64,
|
|
221
|
+
accessControl: {
|
|
222
|
+
read: readPermissions,
|
|
223
|
+
create: createPermissions,
|
|
224
|
+
update: [],
|
|
225
|
+
},
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
super({
|
|
229
|
+
tableName: AnalyticsTableName.NetworkFlow,
|
|
230
|
+
tableEngine: AnalyticsTableEngine.MergeTree,
|
|
231
|
+
singularName: "Network Flow",
|
|
232
|
+
accessControl: {
|
|
233
|
+
read: readPermissions,
|
|
234
|
+
create: createPermissions,
|
|
235
|
+
update: [
|
|
236
|
+
Permission.ProjectOwner,
|
|
237
|
+
Permission.ProjectAdmin,
|
|
238
|
+
Permission.ProjectMember,
|
|
239
|
+
Permission.SettingsAdmin,
|
|
240
|
+
Permission.SettingsMember,
|
|
241
|
+
Permission.EditNetworkDevice,
|
|
242
|
+
],
|
|
243
|
+
delete: [
|
|
244
|
+
Permission.ProjectOwner,
|
|
245
|
+
Permission.ProjectAdmin,
|
|
246
|
+
Permission.ProjectMember,
|
|
247
|
+
Permission.SettingsAdmin,
|
|
248
|
+
Permission.SettingsMember,
|
|
249
|
+
Permission.DeleteNetworkDevice,
|
|
250
|
+
],
|
|
251
|
+
},
|
|
252
|
+
pluralName: "Network Flows",
|
|
253
|
+
crudApiPath: new Route("/network-flow"),
|
|
254
|
+
tableColumns: [
|
|
255
|
+
projectIdColumn,
|
|
256
|
+
networkDeviceIdColumn,
|
|
257
|
+
exporterIpColumn,
|
|
258
|
+
srcIpColumn,
|
|
259
|
+
dstIpColumn,
|
|
260
|
+
srcPortColumn,
|
|
261
|
+
dstPortColumn,
|
|
262
|
+
protocolColumn,
|
|
263
|
+
octetsColumn,
|
|
264
|
+
packetsColumn,
|
|
265
|
+
flowStartAtColumn,
|
|
266
|
+
flowEndAtColumn,
|
|
267
|
+
ingestedAtColumn,
|
|
268
|
+
],
|
|
269
|
+
projections: [],
|
|
270
|
+
sortKeys: ["projectId", "networkDeviceId", "flowStartAt"],
|
|
271
|
+
primaryKeys: ["projectId", "networkDeviceId", "flowStartAt"],
|
|
272
|
+
partitionKey: "toYYYYMMDD(flowStartAt)",
|
|
273
|
+
/*
|
|
274
|
+
* Shard by (projectId, networkDeviceId, flowStartAt) — mirrors how
|
|
275
|
+
* Log shards on its always-present sort-key columns: the
|
|
276
|
+
* high-entropy time component spreads even a single very busy
|
|
277
|
+
* exporter across all shards.
|
|
278
|
+
*/
|
|
279
|
+
shardingKey: "cityHash64(projectId, networkDeviceId, flowStartAt)",
|
|
280
|
+
tableSettings: "non_replicated_deduplication_window = 10000",
|
|
281
|
+
/*
|
|
282
|
+
* Flows are the highest-volume rows in the product (a single busy
|
|
283
|
+
* router can export thousands per second), so the table must never
|
|
284
|
+
* grow unboundedly. Fixed-window TTL for now; per-project retention
|
|
285
|
+
* (a retentionDate column computed at ingest, like Log/Metric) is
|
|
286
|
+
* the phase-2 follow-up. Keyed on server-assigned ingestedAt so a
|
|
287
|
+
* device with a wrong clock cannot make rows expire early.
|
|
288
|
+
*/
|
|
289
|
+
ttlExpression: "ingestedAt + INTERVAL 30 DAY DELETE",
|
|
290
|
+
defaultSortColumn: "flowStartAt",
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
public get projectId(): ObjectID | undefined {
|
|
295
|
+
return this.getColumnValue("projectId") as ObjectID | undefined;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
public set projectId(v: ObjectID | undefined) {
|
|
299
|
+
this.setColumnValue("projectId", v);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
public get networkDeviceId(): ObjectID | undefined {
|
|
303
|
+
return this.getColumnValue("networkDeviceId") as ObjectID | undefined;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
public set networkDeviceId(v: ObjectID | undefined) {
|
|
307
|
+
this.setColumnValue("networkDeviceId", v);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
public get exporterIp(): string | undefined {
|
|
311
|
+
return this.getColumnValue("exporterIp") as string | undefined;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
public set exporterIp(v: string | undefined) {
|
|
315
|
+
this.setColumnValue("exporterIp", v);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
public get srcIp(): string | undefined {
|
|
319
|
+
return this.getColumnValue("srcIp") as string | undefined;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
public set srcIp(v: string | undefined) {
|
|
323
|
+
this.setColumnValue("srcIp", v);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
public get dstIp(): string | undefined {
|
|
327
|
+
return this.getColumnValue("dstIp") as string | undefined;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
public set dstIp(v: string | undefined) {
|
|
331
|
+
this.setColumnValue("dstIp", v);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
public get srcPort(): number | undefined {
|
|
335
|
+
return this.getColumnValue("srcPort") as number | undefined;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
public set srcPort(v: number | undefined) {
|
|
339
|
+
this.setColumnValue("srcPort", v);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
public get dstPort(): number | undefined {
|
|
343
|
+
return this.getColumnValue("dstPort") as number | undefined;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
public set dstPort(v: number | undefined) {
|
|
347
|
+
this.setColumnValue("dstPort", v);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
public get protocol(): number | undefined {
|
|
351
|
+
return this.getColumnValue("protocol") as number | undefined;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
public set protocol(v: number | undefined) {
|
|
355
|
+
this.setColumnValue("protocol", v);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
public get octets(): number | undefined {
|
|
359
|
+
return this.getColumnValue("octets") as number | undefined;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
public set octets(v: number | undefined) {
|
|
363
|
+
this.setColumnValue("octets", v);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
public get packets(): number | undefined {
|
|
367
|
+
return this.getColumnValue("packets") as number | undefined;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
public set packets(v: number | undefined) {
|
|
371
|
+
this.setColumnValue("packets", v);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
public get flowStartAt(): Date | undefined {
|
|
375
|
+
return this.getColumnValue("flowStartAt") as Date | undefined;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
public set flowStartAt(v: Date | undefined) {
|
|
379
|
+
this.setColumnValue("flowStartAt", v);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
public get flowEndAt(): Date | undefined {
|
|
383
|
+
return this.getColumnValue("flowEndAt") as Date | undefined;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
public set flowEndAt(v: Date | undefined) {
|
|
387
|
+
this.setColumnValue("flowEndAt", v);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
public get ingestedAt(): Date | undefined {
|
|
391
|
+
return this.getColumnValue("ingestedAt") as Date | undefined;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
public set ingestedAt(v: Date | undefined) {
|
|
395
|
+
this.setColumnValue("ingestedAt", v);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
@@ -189,13 +189,21 @@ export default class AIAgentTaskPullRequest extends BaseModel {
|
|
|
189
189
|
],
|
|
190
190
|
update: [],
|
|
191
191
|
})
|
|
192
|
+
/*
|
|
193
|
+
* Nullable since 2026-07-15: a pull request can now originate from an AI
|
|
194
|
+
* chat turn, which has no AIAgent behind it (the agent record belongs to the
|
|
195
|
+
* autonomous fix worker). A null aiAgent therefore means "authored from
|
|
196
|
+
* chat", and every consumer must tolerate it — SyncPullRequestStates already
|
|
197
|
+
* guards on aiRunId for the same reason.
|
|
198
|
+
*/
|
|
192
199
|
@TableColumn({
|
|
193
200
|
type: TableColumnType.Entity,
|
|
194
|
-
required:
|
|
201
|
+
required: false,
|
|
195
202
|
modelType: AIAgent,
|
|
196
203
|
manyToOneRelationColumn: "aiAgentId",
|
|
197
204
|
title: "AI Agent",
|
|
198
|
-
description:
|
|
205
|
+
description:
|
|
206
|
+
"AI Agent that created this pull request. Null when it was proposed from an AI chat conversation.",
|
|
199
207
|
})
|
|
200
208
|
@ManyToOne(
|
|
201
209
|
() => {
|
|
@@ -204,7 +212,7 @@ export default class AIAgentTaskPullRequest extends BaseModel {
|
|
|
204
212
|
{
|
|
205
213
|
cascade: false,
|
|
206
214
|
eager: false,
|
|
207
|
-
nullable:
|
|
215
|
+
nullable: true,
|
|
208
216
|
onDelete: "CASCADE",
|
|
209
217
|
orphanedRowAction: "nullify",
|
|
210
218
|
},
|
|
@@ -231,14 +239,15 @@ export default class AIAgentTaskPullRequest extends BaseModel {
|
|
|
231
239
|
@Index()
|
|
232
240
|
@TableColumn({
|
|
233
241
|
type: TableColumnType.ObjectID,
|
|
234
|
-
required:
|
|
242
|
+
required: false,
|
|
235
243
|
canReadOnRelationQuery: true,
|
|
236
244
|
title: "AI Agent ID",
|
|
237
|
-
description:
|
|
245
|
+
description:
|
|
246
|
+
"ID of the AI Agent that created this pull request. Null when it was proposed from an AI chat conversation.",
|
|
238
247
|
})
|
|
239
248
|
@Column({
|
|
240
249
|
type: ColumnType.ObjectID,
|
|
241
|
-
nullable:
|
|
250
|
+
nullable: true,
|
|
242
251
|
transformer: ObjectID.getDatabaseTransformer(),
|
|
243
252
|
})
|
|
244
253
|
public aiAgentId?: ObjectID = undefined;
|
|
@@ -180,6 +180,43 @@ export default class AIRun extends BaseModel {
|
|
|
180
180
|
})
|
|
181
181
|
public codeFixTaskType?: CodeFixTaskType = undefined;
|
|
182
182
|
|
|
183
|
+
/*
|
|
184
|
+
* The per-project sequential task number shown as "#42" — the stable handle
|
|
185
|
+
* a human cites when reporting a bad run, the same role Incident.incidentNumber
|
|
186
|
+
* plays. Set only on CodeFix runs (the AI Tasks list): chat turns and
|
|
187
|
+
* investigations also live in this table but are not tasks, so numbering them
|
|
188
|
+
* would burn the counter on every Ask-AI message. Null therefore means "not a
|
|
189
|
+
* task", and also covers CodeFix rows created before this column existed —
|
|
190
|
+
* the backfill numbers those by age.
|
|
191
|
+
*/
|
|
192
|
+
@ColumnAccessControl({
|
|
193
|
+
create: [],
|
|
194
|
+
read: [
|
|
195
|
+
Permission.ProjectOwner,
|
|
196
|
+
Permission.ProjectAdmin,
|
|
197
|
+
Permission.ProjectMember,
|
|
198
|
+
Permission.Viewer,
|
|
199
|
+
],
|
|
200
|
+
update: [],
|
|
201
|
+
})
|
|
202
|
+
@Index()
|
|
203
|
+
@TableColumn({
|
|
204
|
+
isDefaultValueColumn: false,
|
|
205
|
+
required: false,
|
|
206
|
+
type: TableColumnType.Number,
|
|
207
|
+
title: "Task Number",
|
|
208
|
+
description:
|
|
209
|
+
"Per-project sequential number for this AI task (code-fix runs only).",
|
|
210
|
+
example: 42,
|
|
211
|
+
computed: true,
|
|
212
|
+
canReadOnRelationQuery: true,
|
|
213
|
+
})
|
|
214
|
+
@Column({
|
|
215
|
+
type: ColumnType.Number,
|
|
216
|
+
nullable: true,
|
|
217
|
+
})
|
|
218
|
+
public taskNumber?: number = undefined;
|
|
219
|
+
|
|
183
220
|
@ColumnAccessControl({
|
|
184
221
|
create: [],
|
|
185
222
|
read: [
|
|
@@ -21,7 +21,10 @@ import { JSONObject } from "../../Types/JSON";
|
|
|
21
21
|
import { Column, Entity, Index, JoinColumn, ManyToOne } from "typeorm";
|
|
22
22
|
import EnableDocumentation from "../../Types/Database/EnableDocumentation";
|
|
23
23
|
import AIRunEventType from "../../Types/AI/AIRunEventType";
|
|
24
|
-
import {
|
|
24
|
+
import {
|
|
25
|
+
AIRunEventContentPayload,
|
|
26
|
+
AIRunEventResultSummary,
|
|
27
|
+
} from "../../Types/AI/AIChatTypes";
|
|
25
28
|
|
|
26
29
|
/*
|
|
27
30
|
* One event in an AI run: an LLM call, a tool call with its validated
|
|
@@ -364,6 +367,36 @@ export default class AIRunEvent extends BaseModel {
|
|
|
364
367
|
})
|
|
365
368
|
public citationId?: string = undefined;
|
|
366
369
|
|
|
370
|
+
/*
|
|
371
|
+
* The verbatim LLM/tool content behind this event (see
|
|
372
|
+
* AIRunEventContentPayload). Server-only — the read ACL is empty, like
|
|
373
|
+
* AIRun.pausedState and AIRun.taskContext, and for the same reason: a
|
|
374
|
+
* code-fix run's prompts embed customer source code, whose reach is
|
|
375
|
+
* narrower than this table's project-member read. LlmLog redacts the same
|
|
376
|
+
* content for exactly this reason and continues to.
|
|
377
|
+
*
|
|
378
|
+
* Reachable only through GET /code-fix-run/logs, which gates on
|
|
379
|
+
* ProjectOwner/ProjectAdmin. Never widen this ACL — doing so would publish
|
|
380
|
+
* customer source code to every project member through the CRUD API.
|
|
381
|
+
*/
|
|
382
|
+
@ColumnAccessControl({
|
|
383
|
+
create: [],
|
|
384
|
+
read: [],
|
|
385
|
+
update: [],
|
|
386
|
+
})
|
|
387
|
+
@TableColumn({
|
|
388
|
+
required: false,
|
|
389
|
+
type: TableColumnType.JSON,
|
|
390
|
+
title: "Content Payload",
|
|
391
|
+
description:
|
|
392
|
+
"Internal: the verbatim LLM prompt/response and tool output behind this event.",
|
|
393
|
+
})
|
|
394
|
+
@Column({
|
|
395
|
+
nullable: true,
|
|
396
|
+
type: ColumnType.JSON,
|
|
397
|
+
})
|
|
398
|
+
public contentPayload?: AIRunEventContentPayload = undefined;
|
|
399
|
+
|
|
367
400
|
@ColumnAccessControl({
|
|
368
401
|
create: [],
|
|
369
402
|
read: [],
|
|
@@ -170,4 +170,22 @@ export default class EnterpriseLicenseInstance extends BaseModel {
|
|
|
170
170
|
type: ColumnType.Date,
|
|
171
171
|
})
|
|
172
172
|
public lastReportedAt?: Date = undefined;
|
|
173
|
+
|
|
174
|
+
@ColumnAccessControl({
|
|
175
|
+
create: [],
|
|
176
|
+
read: [],
|
|
177
|
+
update: [],
|
|
178
|
+
})
|
|
179
|
+
@TableColumn({
|
|
180
|
+
required: false,
|
|
181
|
+
type: TableColumnType.JSON,
|
|
182
|
+
title: "Master Admin Emails",
|
|
183
|
+
description:
|
|
184
|
+
"Emails of the master admins of this instance. Used to contact the customer about license expiry and seat-limit breaches.",
|
|
185
|
+
})
|
|
186
|
+
@Column({
|
|
187
|
+
type: ColumnType.JSON,
|
|
188
|
+
nullable: true,
|
|
189
|
+
})
|
|
190
|
+
public masterAdminEmails?: Array<string> = undefined;
|
|
173
191
|
}
|
|
@@ -893,6 +893,42 @@ export default class GlobalConfig extends GlobalConfigModel {
|
|
|
893
893
|
public enterpriseLicenseInstances?: Array<EnterpriseLicenseInstanceSummary> =
|
|
894
894
|
undefined;
|
|
895
895
|
|
|
896
|
+
@ColumnAccessControl({
|
|
897
|
+
create: [],
|
|
898
|
+
read: [],
|
|
899
|
+
update: [],
|
|
900
|
+
})
|
|
901
|
+
@TableColumn({
|
|
902
|
+
type: TableColumnType.Email,
|
|
903
|
+
title: "Enterprise License Notification Email",
|
|
904
|
+
description:
|
|
905
|
+
"OneUptime email address CC'd on enterprise license notifications sent to customers (expiry reminders, seat-limit breaches). Only used on the hosted oneuptime.com (billing enabled).",
|
|
906
|
+
})
|
|
907
|
+
@Column({
|
|
908
|
+
type: ColumnType.Email,
|
|
909
|
+
length: ColumnLength.Email,
|
|
910
|
+
nullable: true,
|
|
911
|
+
transformer: Email.getDatabaseTransformer(),
|
|
912
|
+
})
|
|
913
|
+
public enterpriseLicenseNotificationEmail?: Email = undefined;
|
|
914
|
+
|
|
915
|
+
@ColumnAccessControl({
|
|
916
|
+
create: [],
|
|
917
|
+
read: [],
|
|
918
|
+
update: [],
|
|
919
|
+
})
|
|
920
|
+
@TableColumn({
|
|
921
|
+
type: TableColumnType.Number,
|
|
922
|
+
title: "Enterprise License Expiry Reminder Days",
|
|
923
|
+
description:
|
|
924
|
+
"How many days before an enterprise license expires that expiry reminder emails start going out to the customer's master admins. Defaults to 45. Only used on the hosted oneuptime.com (billing enabled).",
|
|
925
|
+
})
|
|
926
|
+
@Column({
|
|
927
|
+
type: ColumnType.Number,
|
|
928
|
+
nullable: true,
|
|
929
|
+
})
|
|
930
|
+
public enterpriseLicenseExpiryReminderDays?: number = undefined;
|
|
931
|
+
|
|
896
932
|
@ColumnAccessControl({
|
|
897
933
|
create: [],
|
|
898
934
|
read: [],
|
|
@@ -401,6 +401,7 @@ import MetricType from "./MetricType";
|
|
|
401
401
|
import ProjectSCIM from "./ProjectSCIM";
|
|
402
402
|
import ProjectSCIMLog from "./ProjectSCIMLog";
|
|
403
403
|
import StatusPageSCIMLog from "./StatusPageSCIMLog";
|
|
404
|
+
import MarketingConversion from "./MarketingConversion";
|
|
404
405
|
|
|
405
406
|
const AllModelTypes: Array<{
|
|
406
407
|
new (): BaseModel;
|
|
@@ -824,6 +825,7 @@ const AllModelTypes: Array<{
|
|
|
824
825
|
ServerlessFunctionInstance,
|
|
825
826
|
CloudResourceInstance,
|
|
826
827
|
RumApplicationClient,
|
|
828
|
+
MarketingConversion,
|
|
827
829
|
];
|
|
828
830
|
|
|
829
831
|
const modelTypeMap: { [key: string]: { new (): BaseModel } } = {};
|