@oneuptime/common 14.0.107 → 14.0.108
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/DataBiConnection.d.mts +4 -0
- package/Models/DatabaseModels/DataBiConnection.d.ts +4 -0
- package/Models/DatabaseModels/DataBiConnection.js +59 -2
- package/Models/DatabaseModels/Index.js +2 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.d.mts +20 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.d.ts +20 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.js +353 -0
- package/Models/DatabaseModels/RumProductAnalyticsSavedView.mjs +2 -0
- package/Models/DatabaseModels/WhatsAppLog.d.mts +3 -0
- package/Models/DatabaseModels/WhatsAppLog.d.ts +3 -0
- package/Models/DatabaseModels/WhatsAppLog.js +62 -0
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.mts +11 -0
- package/Models/DatabaseModels/WorkspaceProjectAuthToken.d.ts +11 -0
- package/Models/DatabaseModels/WorkspaceUserGroup.js +1 -1
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.mts +212 -0
- package/Server/Utils/Telemetry/NotificationDeliveryMetrics.d.ts +212 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.mts +3 -0
- package/Server/Utils/Workspace/WorkspaceBase.d.ts +3 -0
- package/Types/AI/AIChatTypes.d.mts +2 -1
- package/Types/AI/AIChatTypes.d.ts +2 -1
- package/Types/AI/AIChatTypes.js +2 -0
- package/Types/AI/InvestigationNotStartedReason.d.mts +7 -0
- package/Types/AI/InvestigationNotStartedReason.d.ts +7 -0
- package/Types/CodeInSentence.d.mts +8 -0
- package/Types/CodeInSentence.d.ts +8 -0
- package/Types/CodeInSentence.js +875 -0
- package/Types/CodeInSentence.mjs +4 -0
- package/Types/Dashboard/DashboardComponentType.d.mts +2 -0
- package/Types/Dashboard/DashboardComponentType.d.ts +2 -0
- package/Types/Dashboard/DashboardComponentType.js +7 -0
- package/Types/Dashboard/DashboardComponents/ComponentArgument.d.mts +3 -1
- package/Types/Dashboard/DashboardComponents/ComponentArgument.d.ts +3 -1
- package/Types/Dashboard/DashboardComponents/ComponentArgument.js +3 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.d.mts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.d.ts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.js +2 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsFunnelComponent.mjs +1 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.d.mts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.d.ts +11 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.js +2 -0
- package/Types/Dashboard/DashboardComponents/DashboardProductAnalyticsRetentionComponent.mjs +1 -0
- package/Types/Dashboard/PublicDashboardServedSettings.js +15 -7
- package/Types/DataObservability/DataBiRefreshAlert.d.mts +44 -0
- package/Types/DataObservability/DataBiRefreshAlert.d.ts +44 -0
- package/Types/DataObservability/DataBiRefreshAlert.js +206 -0
- package/Types/DataObservability/DataBiRefreshAlert.mjs +12 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.mts +7 -0
- package/Types/DataObservability/DataObservabilityApiTypes.d.ts +7 -0
- package/Types/DataObservability/DataObservabilityApiTypes.js +12 -0
- package/Types/DataObservability/DataTableLineage.d.mts +22 -1
- package/Types/DataObservability/DataTableLineage.d.ts +22 -1
- package/Types/DataObservability/DataTableLineage.js +13 -5
- package/Types/DataObservability/DataTableLineage.mjs +2 -0
- package/Types/HashedString.js +9 -2
- package/Types/Monitor/CriteriaFilterValues.d.mts +16 -0
- package/Types/Monitor/CriteriaFilterValues.d.ts +16 -0
- package/Types/Monitor/CriteriaFilterValues.js +324 -0
- package/Types/Monitor/CriteriaFilterValues.mjs +2 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.d.mts +13 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.d.ts +13 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.js +108 -0
- package/Types/Monitor/DataBiRefreshMonitorStep.mjs +3 -0
- package/Types/Monitor/IncomingEmailMonitor/IncomingEmailMonitorRequest.d.mts +1 -0
- package/Types/Monitor/IncomingEmailMonitor/IncomingEmailMonitorRequest.d.ts +1 -0
- package/Types/Monitor/MonitorCriteriaInstance.js +22 -2
- package/Types/Monitor/MonitorStep.js +28 -11
- package/Types/Monitor/MonitorStepMetricMonitor.js +6 -1
- package/Types/Monitor/MonitorStepRollingTime.d.mts +12 -0
- package/Types/Monitor/MonitorStepRollingTime.d.ts +12 -0
- package/Types/Monitor/MonitorStepRollingTime.js +117 -0
- package/Types/Monitor/MonitorStepRollingTime.mjs +2 -0
- package/Types/Monitor/SeriesContext/SeriesLabelDisplay.js +11 -0
- package/Types/Monitor/ServerMonitor/ServerMonitorResponse.d.mts +1 -0
- package/Types/Monitor/ServerMonitor/ServerMonitorResponse.d.ts +1 -0
- package/Types/Monitor/TelemetryAlertRule.js +7 -2
- package/Types/NotificationRule/NotificationRepeat.d.mts +10 -0
- package/Types/NotificationRule/NotificationRepeat.d.ts +10 -0
- package/Types/NotificationRule/NotificationRepeat.js +51 -0
- package/Types/NotificationRule/NotificationRepeat.mjs +2 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.mts +70 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.d.ts +70 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.js +276 -0
- package/Types/OnCallDutyPolicy/OnCallAcknowledgePage.mjs +12 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.d.mts +9 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.d.ts +9 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.js +44 -0
- package/Types/OnCallDutyPolicy/OnCallEscalationWait.mjs +5 -0
- package/Types/Probe/ProbeMonitorResponse.d.mts +1 -0
- package/Types/Probe/ProbeMonitorResponse.d.ts +1 -0
- package/Types/ReadingDirection.d.mts +2 -0
- package/Types/ReadingDirection.d.ts +2 -0
- package/Types/ReadingDirection.js +221 -25
- package/Types/ReadingDirection.mjs +2 -0
- package/Types/RollingTime/RollingTimeUtil.d.mts +7 -0
- package/Types/RollingTime/RollingTimeUtil.d.ts +7 -0
- package/Types/RollingTime/RollingTimeUtil.js +240 -71
- package/Types/Rum/ProductAnalyticsSavedViews.d.mts +56 -0
- package/Types/Rum/ProductAnalyticsSavedViews.d.ts +56 -0
- package/Types/Rum/ProductAnalyticsSavedViews.js +219 -0
- package/Types/Rum/ProductAnalyticsSavedViews.mjs +14 -0
- package/Types/SecurityEvent/Connectors/SecurityEventConnectorCatalog.js +8 -7
- package/Types/Telemetry/ServiceType.d.mts +1 -0
- package/Types/Telemetry/ServiceType.d.ts +1 -0
- package/Types/Telemetry/ServiceType.js +6 -0
- package/Utils/Crypto.js +10 -3
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.d.mts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.d.ts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.js +67 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsFunnelComponent.mjs +2 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.d.mts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.d.ts +7 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.js +68 -0
- package/Utils/Dashboard/Components/DashboardProductAnalyticsRetentionComponent.mjs +2 -0
- package/Utils/Dashboard/DashboardWidgetIds.js +6 -1
- package/Utils/Metrics/MetricQueryCloudAggregation.js +2 -4
- package/Utils/Monitor/MonitorRootCauseWording.js +28 -24
- package/Utils/Monitor/MonitorStepMetricQueries.js +2 -1
- package/Utils/Monitor/MonitorStepsValuesUtil.d.mts +13 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.d.ts +13 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.js +80 -0
- package/Utils/Monitor/MonitorStepsValuesUtil.mjs +2 -0
- package/Utils/Slo/SloProjection.d.mts +18 -0
- package/Utils/Slo/SloProjection.d.ts +18 -0
- package/Utils/Slo/SloProjection.js +53 -12
- package/Utils/Slo/SloProjection.mjs +2 -0
- package/Utils/StatusPage/ResourceExplorer.d.mts +0 -10
- package/Utils/StatusPage/ResourceExplorer.d.ts +0 -10
- package/Utils/StatusPage/ResourceExplorer.js +0 -28
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import commonJsModule from "./CodeInSentence.js";
|
|
2
|
+
export const LEFT_TO_RIGHT_ISOLATE = commonJsModule.LEFT_TO_RIGHT_ISOLATE;
|
|
3
|
+
export const getCodeInSentence = commonJsModule.getCodeInSentence;
|
|
4
|
+
export const setCodeApartInSentence = commonJsModule.setCodeApartInSentence;
|
|
@@ -13,6 +13,8 @@ declare enum DashboardComponentType {
|
|
|
13
13
|
LogChart = "LogChart",
|
|
14
14
|
SecurityEventsList = "SecurityEventsList",
|
|
15
15
|
SecurityEventsFlow = "SecurityEventsFlow",
|
|
16
|
+
ProductAnalyticsFunnel = "ProductAnalyticsFunnel",
|
|
17
|
+
ProductAnalyticsRetention = "ProductAnalyticsRetention",
|
|
16
18
|
TraceList = "TraceList",
|
|
17
19
|
TraceChart = "TraceChart",
|
|
18
20
|
TraceTable = "TraceTable",
|
|
@@ -13,6 +13,8 @@ declare enum DashboardComponentType {
|
|
|
13
13
|
LogChart = "LogChart",
|
|
14
14
|
SecurityEventsList = "SecurityEventsList",
|
|
15
15
|
SecurityEventsFlow = "SecurityEventsFlow",
|
|
16
|
+
ProductAnalyticsFunnel = "ProductAnalyticsFunnel",
|
|
17
|
+
ProductAnalyticsRetention = "ProductAnalyticsRetention",
|
|
16
18
|
TraceList = "TraceList",
|
|
17
19
|
TraceChart = "TraceChart",
|
|
18
20
|
TraceTable = "TraceTable",
|
|
@@ -27,6 +27,13 @@ var DashboardComponentType;
|
|
|
27
27
|
DashboardComponentType["LogChart"] = "LogChart";
|
|
28
28
|
DashboardComponentType["SecurityEventsList"] = "SecurityEventsList";
|
|
29
29
|
DashboardComponentType["SecurityEventsFlow"] = "SecurityEventsFlow";
|
|
30
|
+
/*
|
|
31
|
+
* A funnel and a retention table saved from a RUM application's product
|
|
32
|
+
* analytics (issue #6630), read with the dashboard's time range. Not
|
|
33
|
+
* available on public dashboards.
|
|
34
|
+
*/
|
|
35
|
+
DashboardComponentType["ProductAnalyticsFunnel"] = "ProductAnalyticsFunnel";
|
|
36
|
+
DashboardComponentType["ProductAnalyticsRetention"] = "ProductAnalyticsRetention";
|
|
30
37
|
DashboardComponentType["TraceList"] = "TraceList";
|
|
31
38
|
DashboardComponentType["TraceChart"] = "TraceChart";
|
|
32
39
|
DashboardComponentType["TraceTable"] = "TraceTable";
|
|
@@ -40,7 +40,9 @@ export declare enum EntityFilterModelType {
|
|
|
40
40
|
CephCluster = "CephCluster",
|
|
41
41
|
StorageArray = "StorageArray",
|
|
42
42
|
DockerSwarmCluster = "DockerSwarmCluster",
|
|
43
|
-
NetworkSiteType = "NetworkSiteType"
|
|
43
|
+
NetworkSiteType = "NetworkSiteType",
|
|
44
|
+
ProductAnalyticsSavedFunnel = "ProductAnalyticsSavedFunnel",
|
|
45
|
+
ProductAnalyticsSavedRetention = "ProductAnalyticsSavedRetention"
|
|
44
46
|
}
|
|
45
47
|
export interface ComponentArgumentSection {
|
|
46
48
|
name: string;
|
|
@@ -40,7 +40,9 @@ export declare enum EntityFilterModelType {
|
|
|
40
40
|
CephCluster = "CephCluster",
|
|
41
41
|
StorageArray = "StorageArray",
|
|
42
42
|
DockerSwarmCluster = "DockerSwarmCluster",
|
|
43
|
-
NetworkSiteType = "NetworkSiteType"
|
|
43
|
+
NetworkSiteType = "NetworkSiteType",
|
|
44
|
+
ProductAnalyticsSavedFunnel = "ProductAnalyticsSavedFunnel",
|
|
45
|
+
ProductAnalyticsSavedRetention = "ProductAnalyticsSavedRetention"
|
|
44
46
|
}
|
|
45
47
|
export interface ComponentArgumentSection {
|
|
46
48
|
name: string;
|
|
@@ -49,4 +49,7 @@ var EntityFilterModelType;
|
|
|
49
49
|
EntityFilterModelType["StorageArray"] = "StorageArray";
|
|
50
50
|
EntityFilterModelType["DockerSwarmCluster"] = "DockerSwarmCluster";
|
|
51
51
|
EntityFilterModelType["NetworkSiteType"] = "NetworkSiteType";
|
|
52
|
+
// Saved funnels and saved retention tables (RumProductAnalyticsSavedView).
|
|
53
|
+
EntityFilterModelType["ProductAnalyticsSavedFunnel"] = "ProductAnalyticsSavedFunnel";
|
|
54
|
+
EntityFilterModelType["ProductAnalyticsSavedRetention"] = "ProductAnalyticsSavedRetention";
|
|
52
55
|
})(EntityFilterModelType || (exports.EntityFilterModelType = EntityFilterModelType = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import ObjectID from "../../ObjectID.mjs";
|
|
2
|
+
import DashboardComponentType from "../DashboardComponentType.mjs";
|
|
3
|
+
import BaseComponent from "./DashboardBaseComponent.mjs";
|
|
4
|
+
export default interface DashboardProductAnalyticsFunnelComponent extends BaseComponent {
|
|
5
|
+
componentType: DashboardComponentType.ProductAnalyticsFunnel;
|
|
6
|
+
componentId: ObjectID;
|
|
7
|
+
arguments: {
|
|
8
|
+
savedViewId?: string | undefined;
|
|
9
|
+
title?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import ObjectID from "../../ObjectID";
|
|
2
|
+
import DashboardComponentType from "../DashboardComponentType";
|
|
3
|
+
import BaseComponent from "./DashboardBaseComponent";
|
|
4
|
+
export default interface DashboardProductAnalyticsFunnelComponent extends BaseComponent {
|
|
5
|
+
componentType: DashboardComponentType.ProductAnalyticsFunnel;
|
|
6
|
+
componentId: ObjectID;
|
|
7
|
+
arguments: {
|
|
8
|
+
savedViewId?: string | undefined;
|
|
9
|
+
title?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./DashboardProductAnalyticsFunnelComponent.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import ObjectID from "../../ObjectID.mjs";
|
|
2
|
+
import DashboardComponentType from "../DashboardComponentType.mjs";
|
|
3
|
+
import BaseComponent from "./DashboardBaseComponent.mjs";
|
|
4
|
+
export default interface DashboardProductAnalyticsRetentionComponent extends BaseComponent {
|
|
5
|
+
componentType: DashboardComponentType.ProductAnalyticsRetention;
|
|
6
|
+
componentId: ObjectID;
|
|
7
|
+
arguments: {
|
|
8
|
+
savedViewId?: string | undefined;
|
|
9
|
+
title?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import ObjectID from "../../ObjectID";
|
|
2
|
+
import DashboardComponentType from "../DashboardComponentType";
|
|
3
|
+
import BaseComponent from "./DashboardBaseComponent";
|
|
4
|
+
export default interface DashboardProductAnalyticsRetentionComponent extends BaseComponent {
|
|
5
|
+
componentType: DashboardComponentType.ProductAnalyticsRetention;
|
|
6
|
+
componentId: ObjectID;
|
|
7
|
+
arguments: {
|
|
8
|
+
savedViewId?: string | undefined;
|
|
9
|
+
title?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./DashboardProductAnalyticsRetentionComponent.js";
|
|
@@ -41,13 +41,13 @@ const DashboardWidgetSort_1 = require("./DashboardWidgetSort");
|
|
|
41
41
|
*/
|
|
42
42
|
/*
|
|
43
43
|
* The widgets a public dashboard cannot draw: its API reads no logs, no
|
|
44
|
-
* traces and no
|
|
45
|
-
* title ("Log charts are not available on public
|
|
46
|
-
* title is all it is served. The external Data
|
|
47
|
-
* among them: a public dashboard leaves them out
|
|
48
|
-
* their settings are the query itself
|
|
49
|
-
* .sanitize). The page lays out both kinds as
|
|
50
|
-
* (PublicDashboardContext.isWidgetDrawnHere).
|
|
44
|
+
* traces, no security events and no product analytics. Each says so in its
|
|
45
|
+
* place, under its title ("Log charts are not available on public
|
|
46
|
+
* dashboards."), and its title is all it is served. The external Data
|
|
47
|
+
* Source widgets are not among them: a public dashboard leaves them out
|
|
48
|
+
* altogether, because their settings are the query itself
|
|
49
|
+
* (PublicDashboardViewConfig.sanitize). The page lays out both kinds as
|
|
50
|
+
* the words they are (PublicDashboardContext.isWidgetDrawnHere).
|
|
51
51
|
*/
|
|
52
52
|
exports.PUBLIC_DASHBOARD_UNDRAWN_WIDGET_TYPES = [
|
|
53
53
|
DashboardComponentType_1.default.LogChart,
|
|
@@ -55,6 +55,12 @@ exports.PUBLIC_DASHBOARD_UNDRAWN_WIDGET_TYPES = [
|
|
|
55
55
|
DashboardComponentType_1.default.TraceTable,
|
|
56
56
|
DashboardComponentType_1.default.SecurityEventsList,
|
|
57
57
|
DashboardComponentType_1.default.SecurityEventsFlow,
|
|
58
|
+
/*
|
|
59
|
+
* A saved funnel's or retention table's people are an application's end
|
|
60
|
+
* users, read only by those who may list its sessions (issue #6630).
|
|
61
|
+
*/
|
|
62
|
+
DashboardComponentType_1.default.ProductAnalyticsFunnel,
|
|
63
|
+
DashboardComponentType_1.default.ProductAnalyticsRetention,
|
|
58
64
|
];
|
|
59
65
|
/*
|
|
60
66
|
* Whether a stored widget type is one a public dashboard cannot draw.
|
|
@@ -184,6 +190,8 @@ exports.PUBLIC_DASHBOARD_WIDGET_SETTINGS = {
|
|
|
184
190
|
"severityFilters",
|
|
185
191
|
"maxEvents",
|
|
186
192
|
]),
|
|
193
|
+
[DashboardComponentType_1.default.ProductAnalyticsFunnel]: undrawn(["savedViewId"]),
|
|
194
|
+
[DashboardComponentType_1.default.ProductAnalyticsRetention]: undrawn(["savedViewId"]),
|
|
187
195
|
[DashboardComponentType_1.default.TraceList]: drawn([
|
|
188
196
|
"title",
|
|
189
197
|
"statusFilter",
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DataBiRefreshStatus, DataDashboardRefresh, DataDashboardRefreshHistory } from "./DataDashboardActivity.mjs";
|
|
2
|
+
export declare enum DataBiMetricName {
|
|
3
|
+
RefreshFailed = "oneuptime.data.bi.refresh_failed"
|
|
4
|
+
}
|
|
5
|
+
export declare const DataBiAttribute: {
|
|
6
|
+
readonly ConnectionId: string;
|
|
7
|
+
readonly ConnectionName: string;
|
|
8
|
+
readonly DatasetId: string;
|
|
9
|
+
readonly DatasetName: string;
|
|
10
|
+
readonly Workspace: string;
|
|
11
|
+
};
|
|
12
|
+
export interface DataBiMetricDefinition {
|
|
13
|
+
name: DataBiMetricName;
|
|
14
|
+
description: string;
|
|
15
|
+
unit: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const DATA_BI_METRICS: ReadonlyArray<DataBiMetricDefinition>;
|
|
18
|
+
export declare const DATA_BI_REFRESH_RECOVERY_WINDOW_IN_MS: number;
|
|
19
|
+
export declare const MAX_DATA_BI_FAILED_REFRESHES: number;
|
|
20
|
+
export interface DataBiDatasetRead {
|
|
21
|
+
datasetId: string;
|
|
22
|
+
name: string;
|
|
23
|
+
workspace: string | null;
|
|
24
|
+
refresh: DataDashboardRefreshHistory | null | undefined;
|
|
25
|
+
}
|
|
26
|
+
export interface DataBiFailedRefresh {
|
|
27
|
+
datasetId: string;
|
|
28
|
+
datasetName: string;
|
|
29
|
+
workspace: string | null;
|
|
30
|
+
status: DataBiRefreshStatus;
|
|
31
|
+
failedAt: string | null;
|
|
32
|
+
error: string | null;
|
|
33
|
+
recoveredAt: string | null;
|
|
34
|
+
}
|
|
35
|
+
export declare function isDataBiRefreshFailure(status: DataBiRefreshStatus): boolean;
|
|
36
|
+
export declare function isDataBiRefreshFinished(status: DataBiRefreshStatus): boolean;
|
|
37
|
+
export declare function getLatestFinishedRefresh(history: DataDashboardRefreshHistory | null | undefined): DataDashboardRefresh | null;
|
|
38
|
+
export declare function getNextFailedRefreshes(data: {
|
|
39
|
+
previous: Array<DataBiFailedRefresh>;
|
|
40
|
+
datasets: Array<DataBiDatasetRead>;
|
|
41
|
+
now: Date;
|
|
42
|
+
}): Array<DataBiFailedRefresh>;
|
|
43
|
+
export declare function getDataBiRefreshFailedValue(refresh: DataBiFailedRefresh, now: Date): number | null;
|
|
44
|
+
export declare function readDataBiFailedRefreshes(value: unknown): Array<DataBiFailedRefresh>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DataBiRefreshStatus, DataDashboardRefresh, DataDashboardRefreshHistory } from "./DataDashboardActivity";
|
|
2
|
+
export declare enum DataBiMetricName {
|
|
3
|
+
RefreshFailed = "oneuptime.data.bi.refresh_failed"
|
|
4
|
+
}
|
|
5
|
+
export declare const DataBiAttribute: {
|
|
6
|
+
readonly ConnectionId: string;
|
|
7
|
+
readonly ConnectionName: string;
|
|
8
|
+
readonly DatasetId: string;
|
|
9
|
+
readonly DatasetName: string;
|
|
10
|
+
readonly Workspace: string;
|
|
11
|
+
};
|
|
12
|
+
export interface DataBiMetricDefinition {
|
|
13
|
+
name: DataBiMetricName;
|
|
14
|
+
description: string;
|
|
15
|
+
unit: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const DATA_BI_METRICS: ReadonlyArray<DataBiMetricDefinition>;
|
|
18
|
+
export declare const DATA_BI_REFRESH_RECOVERY_WINDOW_IN_MS: number;
|
|
19
|
+
export declare const MAX_DATA_BI_FAILED_REFRESHES: number;
|
|
20
|
+
export interface DataBiDatasetRead {
|
|
21
|
+
datasetId: string;
|
|
22
|
+
name: string;
|
|
23
|
+
workspace: string | null;
|
|
24
|
+
refresh: DataDashboardRefreshHistory | null | undefined;
|
|
25
|
+
}
|
|
26
|
+
export interface DataBiFailedRefresh {
|
|
27
|
+
datasetId: string;
|
|
28
|
+
datasetName: string;
|
|
29
|
+
workspace: string | null;
|
|
30
|
+
status: DataBiRefreshStatus;
|
|
31
|
+
failedAt: string | null;
|
|
32
|
+
error: string | null;
|
|
33
|
+
recoveredAt: string | null;
|
|
34
|
+
}
|
|
35
|
+
export declare function isDataBiRefreshFailure(status: DataBiRefreshStatus): boolean;
|
|
36
|
+
export declare function isDataBiRefreshFinished(status: DataBiRefreshStatus): boolean;
|
|
37
|
+
export declare function getLatestFinishedRefresh(history: DataDashboardRefreshHistory | null | undefined): DataDashboardRefresh | null;
|
|
38
|
+
export declare function getNextFailedRefreshes(data: {
|
|
39
|
+
previous: Array<DataBiFailedRefresh>;
|
|
40
|
+
datasets: Array<DataBiDatasetRead>;
|
|
41
|
+
now: Date;
|
|
42
|
+
}): Array<DataBiFailedRefresh>;
|
|
43
|
+
export declare function getDataBiRefreshFailedValue(refresh: DataBiFailedRefresh, now: Date): number | null;
|
|
44
|
+
export declare function readDataBiFailedRefreshes(value: unknown): Array<DataBiFailedRefresh>;
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MAX_DATA_BI_FAILED_REFRESHES = exports.DATA_BI_REFRESH_RECOVERY_WINDOW_IN_MS = exports.DATA_BI_METRICS = exports.DataBiAttribute = exports.DataBiMetricName = void 0;
|
|
4
|
+
exports.isDataBiRefreshFailure = isDataBiRefreshFailure;
|
|
5
|
+
exports.isDataBiRefreshFinished = isDataBiRefreshFinished;
|
|
6
|
+
exports.getLatestFinishedRefresh = getLatestFinishedRefresh;
|
|
7
|
+
exports.getNextFailedRefreshes = getNextFailedRefreshes;
|
|
8
|
+
exports.getDataBiRefreshFailedValue = getDataBiRefreshFailedValue;
|
|
9
|
+
exports.readDataBiFailedRefreshes = readDataBiFailedRefreshes;
|
|
10
|
+
const DataDashboardActivity_1 = require("./DataDashboardActivity");
|
|
11
|
+
/*
|
|
12
|
+
* A POWER BI DATASET WHOSE REFRESH FAILED, UNTIL A LATER ONE COMPLETES.
|
|
13
|
+
*
|
|
14
|
+
* A refresh is not a pipeline run. A dataset whose refresh failed goes on
|
|
15
|
+
* showing the data of its last completed refresh until a later refresh
|
|
16
|
+
* completes, however long that takes: a failed refresh is a state, not an
|
|
17
|
+
* event. So it opens one alert, which stays open until a later refresh
|
|
18
|
+
* completes - not for an hour, as a failed run's does.
|
|
19
|
+
*
|
|
20
|
+
* - Each hourly read (DataBiSync) keeps on the BI tool the datasets whose
|
|
21
|
+
* latest finished refresh failed or was cancelled. A refresh still
|
|
22
|
+
* running, or a dataset whose refreshes were not read this time, changes
|
|
23
|
+
* nothing: the dataset stays as it was until a refresh finishes. One that
|
|
24
|
+
* completes is kept an hour more, as recovered. One gone from the tool,
|
|
25
|
+
* or with no refresh at all, is not kept.
|
|
26
|
+
* - Every five minutes (DataBiRefreshCheck), each dataset kept writes
|
|
27
|
+
* oneuptime.data.bi.refresh_failed - 1 while it is failing, 0 the hour
|
|
28
|
+
* after it recovered - which the tool's monitor reads
|
|
29
|
+
* (DataBiRefreshMonitorStep): one alert per dataset, resolved once a
|
|
30
|
+
* later refresh completes.
|
|
31
|
+
*/
|
|
32
|
+
var DataBiMetricName;
|
|
33
|
+
(function (DataBiMetricName) {
|
|
34
|
+
// 1 while a dataset's latest finished refresh failed or was cancelled, 0 the hour after a later one completed.
|
|
35
|
+
DataBiMetricName["RefreshFailed"] = "oneuptime.data.bi.refresh_failed";
|
|
36
|
+
})(DataBiMetricName || (exports.DataBiMetricName = DataBiMetricName = {}));
|
|
37
|
+
exports.DataBiAttribute = {
|
|
38
|
+
ConnectionId: "oneuptime.data.bi.connection.id",
|
|
39
|
+
ConnectionName: "oneuptime.data.bi.connection.name",
|
|
40
|
+
DatasetId: "oneuptime.data.bi.dataset.id",
|
|
41
|
+
DatasetName: "oneuptime.data.bi.dataset.name",
|
|
42
|
+
Workspace: "oneuptime.data.bi.workspace.name",
|
|
43
|
+
};
|
|
44
|
+
exports.DATA_BI_METRICS = [
|
|
45
|
+
{
|
|
46
|
+
name: DataBiMetricName.RefreshFailed,
|
|
47
|
+
description: "1 while a Power BI dataset's last refresh failed or was cancelled, 0 for the hour after a later refresh completed.",
|
|
48
|
+
unit: "",
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
// How long a dataset that recovered goes on writing 0, so its monitor sees it recover.
|
|
52
|
+
exports.DATA_BI_REFRESH_RECOVERY_WINDOW_IN_MS = 60 * 60 * 1000;
|
|
53
|
+
// The most datasets kept on one BI tool.
|
|
54
|
+
exports.MAX_DATA_BI_FAILED_REFRESHES = 2000;
|
|
55
|
+
const MAX_TEXT_LENGTH = 500;
|
|
56
|
+
const MAX_ID_LENGTH = 100;
|
|
57
|
+
function readObject(value) {
|
|
58
|
+
return value && typeof value === "object" && !Array.isArray(value)
|
|
59
|
+
? value
|
|
60
|
+
: null;
|
|
61
|
+
}
|
|
62
|
+
function readText(value, maxLength = MAX_TEXT_LENGTH) {
|
|
63
|
+
return typeof value === "string" && value.trim()
|
|
64
|
+
? value.trim().slice(0, maxLength)
|
|
65
|
+
: null;
|
|
66
|
+
}
|
|
67
|
+
function readTime(value) {
|
|
68
|
+
const text = readText(value);
|
|
69
|
+
return text && !Number.isNaN(Date.parse(text)) ? text : null;
|
|
70
|
+
}
|
|
71
|
+
// A refresh that ended without completing: it failed, or was cancelled.
|
|
72
|
+
function isDataBiRefreshFailure(status) {
|
|
73
|
+
return (status === DataDashboardActivity_1.DataBiRefreshStatus.Failed ||
|
|
74
|
+
status === DataDashboardActivity_1.DataBiRefreshStatus.Cancelled);
|
|
75
|
+
}
|
|
76
|
+
// A refresh that ended one way or the other: completed, failed or cancelled.
|
|
77
|
+
function isDataBiRefreshFinished(status) {
|
|
78
|
+
return (status === DataDashboardActivity_1.DataBiRefreshStatus.Completed || isDataBiRefreshFailure(status));
|
|
79
|
+
}
|
|
80
|
+
function refreshTime(refresh) {
|
|
81
|
+
const at = Date.parse((0, DataDashboardActivity_1.getDataDashboardRefreshTime)(refresh) || "");
|
|
82
|
+
return Number.isFinite(at) ? at : 0;
|
|
83
|
+
}
|
|
84
|
+
/*
|
|
85
|
+
* The dataset's latest refresh that finished - the one its data is as fresh
|
|
86
|
+
* as, or failed to be - or null when none did: one still running, or
|
|
87
|
+
* Disabled or Unknown, says nothing of how the last one went.
|
|
88
|
+
*/
|
|
89
|
+
function getLatestFinishedRefresh(history) {
|
|
90
|
+
if (!history) {
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
const finished = [
|
|
94
|
+
...(history.last ? [history.last] : []),
|
|
95
|
+
...history.refreshes,
|
|
96
|
+
].filter((refresh) => {
|
|
97
|
+
return isDataBiRefreshFinished(refresh.status);
|
|
98
|
+
});
|
|
99
|
+
return (finished.sort((a, b) => {
|
|
100
|
+
return refreshTime(b) - refreshTime(a);
|
|
101
|
+
})[0] || null);
|
|
102
|
+
}
|
|
103
|
+
/*
|
|
104
|
+
* The datasets kept after a read: each read with a finished refresh as that
|
|
105
|
+
* refresh says - failing, or recovered when one that was failing completed -
|
|
106
|
+
* and each not read, or with no refresh finished since, as it was. A dataset
|
|
107
|
+
* that recovered over an hour ago, one with no refresh, and one no longer
|
|
108
|
+
* behind the tool's dashboards are not kept.
|
|
109
|
+
*/
|
|
110
|
+
function getNextFailedRefreshes(data) {
|
|
111
|
+
const previous = new Map(data.previous.map((refresh) => {
|
|
112
|
+
return [refresh.datasetId, refresh];
|
|
113
|
+
}));
|
|
114
|
+
const next = [];
|
|
115
|
+
const seen = new Set();
|
|
116
|
+
for (const dataset of data.datasets) {
|
|
117
|
+
const datasetId = dataset.datasetId.toLowerCase();
|
|
118
|
+
if (!datasetId || seen.has(datasetId)) {
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
seen.add(datasetId);
|
|
122
|
+
const kept = previous.get(datasetId);
|
|
123
|
+
// As it was, by the name and workspace it has now.
|
|
124
|
+
const asItWas = kept
|
|
125
|
+
? Object.assign(Object.assign({}, kept), { datasetName: dataset.name || kept.datasetName, workspace: dataset.workspace || kept.workspace }) : null;
|
|
126
|
+
if (dataset.refresh === null) {
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
const finished = dataset.refresh === undefined
|
|
130
|
+
? null
|
|
131
|
+
: getLatestFinishedRefresh(dataset.refresh);
|
|
132
|
+
if (!finished) {
|
|
133
|
+
if (asItWas) {
|
|
134
|
+
next.push(asItWas);
|
|
135
|
+
}
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
138
|
+
if (isDataBiRefreshFailure(finished.status)) {
|
|
139
|
+
next.push({
|
|
140
|
+
datasetId,
|
|
141
|
+
datasetName: dataset.name || datasetId,
|
|
142
|
+
workspace: dataset.workspace,
|
|
143
|
+
status: finished.status,
|
|
144
|
+
failedAt: (0, DataDashboardActivity_1.getDataDashboardRefreshTime)(finished),
|
|
145
|
+
error: finished.error,
|
|
146
|
+
recoveredAt: null,
|
|
147
|
+
});
|
|
148
|
+
continue;
|
|
149
|
+
}
|
|
150
|
+
// Completed: one that was failing has recovered, and is kept an hour more.
|
|
151
|
+
if (asItWas) {
|
|
152
|
+
next.push(Object.assign(Object.assign({}, asItWas), { recoveredAt: asItWas.recoveredAt || data.now.toISOString() }));
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return next
|
|
156
|
+
.filter((refresh) => {
|
|
157
|
+
return getDataBiRefreshFailedValue(refresh, data.now) !== null;
|
|
158
|
+
})
|
|
159
|
+
.slice(0, exports.MAX_DATA_BI_FAILED_REFRESHES);
|
|
160
|
+
}
|
|
161
|
+
/*
|
|
162
|
+
* What a dataset kept writes now: 1 while it is failing, 0 for the hour after
|
|
163
|
+
* it recovered, and nothing after that.
|
|
164
|
+
*/
|
|
165
|
+
function getDataBiRefreshFailedValue(refresh, now) {
|
|
166
|
+
if (!refresh.recoveredAt) {
|
|
167
|
+
return 1;
|
|
168
|
+
}
|
|
169
|
+
const sinceRecovery = now.getTime() - Date.parse(refresh.recoveredAt);
|
|
170
|
+
return Number.isFinite(sinceRecovery) &&
|
|
171
|
+
sinceRecovery < exports.DATA_BI_REFRESH_RECOVERY_WINDOW_IN_MS
|
|
172
|
+
? 0
|
|
173
|
+
: null;
|
|
174
|
+
}
|
|
175
|
+
// The datasets kept on a BI tool, read strictly: anything that does not fit is left out.
|
|
176
|
+
function readDataBiFailedRefreshes(value) {
|
|
177
|
+
var _a;
|
|
178
|
+
if (!Array.isArray(value)) {
|
|
179
|
+
return [];
|
|
180
|
+
}
|
|
181
|
+
const refreshes = [];
|
|
182
|
+
const seen = new Set();
|
|
183
|
+
for (const item of value) {
|
|
184
|
+
const refresh = readObject(item);
|
|
185
|
+
const datasetId = (_a = readText(refresh === null || refresh === void 0 ? void 0 : refresh["datasetId"], MAX_ID_LENGTH)) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
186
|
+
const status = (0, DataDashboardActivity_1.readDataBiRefreshStatus)(refresh === null || refresh === void 0 ? void 0 : refresh["status"]);
|
|
187
|
+
if (!refresh ||
|
|
188
|
+
!datasetId ||
|
|
189
|
+
seen.has(datasetId) ||
|
|
190
|
+
!status ||
|
|
191
|
+
!isDataBiRefreshFailure(status)) {
|
|
192
|
+
continue;
|
|
193
|
+
}
|
|
194
|
+
seen.add(datasetId);
|
|
195
|
+
refreshes.push({
|
|
196
|
+
datasetId,
|
|
197
|
+
datasetName: readText(refresh["datasetName"]) || datasetId,
|
|
198
|
+
workspace: readText(refresh["workspace"]),
|
|
199
|
+
status,
|
|
200
|
+
failedAt: readTime(refresh["failedAt"]),
|
|
201
|
+
error: readText(refresh["error"]),
|
|
202
|
+
recoveredAt: readTime(refresh["recoveredAt"]),
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
return refreshes.slice(0, exports.MAX_DATA_BI_FAILED_REFRESHES);
|
|
206
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import commonJsModule from "./DataBiRefreshAlert.js";
|
|
2
|
+
export const DATA_BI_METRICS = commonJsModule.DATA_BI_METRICS;
|
|
3
|
+
export const DATA_BI_REFRESH_RECOVERY_WINDOW_IN_MS = commonJsModule.DATA_BI_REFRESH_RECOVERY_WINDOW_IN_MS;
|
|
4
|
+
export const DataBiAttribute = commonJsModule.DataBiAttribute;
|
|
5
|
+
export const DataBiMetricName = commonJsModule.DataBiMetricName;
|
|
6
|
+
export const MAX_DATA_BI_FAILED_REFRESHES = commonJsModule.MAX_DATA_BI_FAILED_REFRESHES;
|
|
7
|
+
export const getDataBiRefreshFailedValue = commonJsModule.getDataBiRefreshFailedValue;
|
|
8
|
+
export const getLatestFinishedRefresh = commonJsModule.getLatestFinishedRefresh;
|
|
9
|
+
export const getNextFailedRefreshes = commonJsModule.getNextFailedRefreshes;
|
|
10
|
+
export const isDataBiRefreshFailure = commonJsModule.isDataBiRefreshFailure;
|
|
11
|
+
export const isDataBiRefreshFinished = commonJsModule.isDataBiRefreshFinished;
|
|
12
|
+
export const readDataBiFailedRefreshes = commonJsModule.readDataBiFailedRefreshes;
|
|
@@ -18,13 +18,17 @@ export declare const DATA_OBSERVABILITY_API_ROUTES: {
|
|
|
18
18
|
checkApply: string;
|
|
19
19
|
alertExplanation: (alertId: string) => string;
|
|
20
20
|
alertFeedback: (alertId: string) => string;
|
|
21
|
+
alertLineage: (alertId: string) => string;
|
|
21
22
|
quality: string;
|
|
22
23
|
watchedTables: string;
|
|
23
24
|
storeWatch: (dataStoreId: string) => string;
|
|
24
25
|
tableFreshness: string;
|
|
25
26
|
biSync: (dataBiConnectionId: string) => string;
|
|
27
|
+
biRefreshAlert: (dataBiConnectionId: string) => string;
|
|
26
28
|
tableDashboards: string;
|
|
27
29
|
tableLineage: string;
|
|
30
|
+
tableLineageAnswer: string;
|
|
31
|
+
pipelineLineage: string;
|
|
28
32
|
tableSensitivity: string;
|
|
29
33
|
tableErrors: string;
|
|
30
34
|
aiAppTables: string;
|
|
@@ -107,6 +111,9 @@ export interface DataObservabilityDataProductBadgeResetResponse {
|
|
|
107
111
|
export interface DataObservabilityCheckAlertResponse {
|
|
108
112
|
monitorId: string | null;
|
|
109
113
|
}
|
|
114
|
+
export interface DataObservabilityBiRefreshAlertResponse {
|
|
115
|
+
monitorId: string | null;
|
|
116
|
+
}
|
|
110
117
|
export declare enum DataObservabilityCollector {
|
|
111
118
|
OneUptime = "OneUptime",
|
|
112
119
|
Probe = "Probe"
|
|
@@ -18,13 +18,17 @@ export declare const DATA_OBSERVABILITY_API_ROUTES: {
|
|
|
18
18
|
checkApply: string;
|
|
19
19
|
alertExplanation: (alertId: string) => string;
|
|
20
20
|
alertFeedback: (alertId: string) => string;
|
|
21
|
+
alertLineage: (alertId: string) => string;
|
|
21
22
|
quality: string;
|
|
22
23
|
watchedTables: string;
|
|
23
24
|
storeWatch: (dataStoreId: string) => string;
|
|
24
25
|
tableFreshness: string;
|
|
25
26
|
biSync: (dataBiConnectionId: string) => string;
|
|
27
|
+
biRefreshAlert: (dataBiConnectionId: string) => string;
|
|
26
28
|
tableDashboards: string;
|
|
27
29
|
tableLineage: string;
|
|
30
|
+
tableLineageAnswer: string;
|
|
31
|
+
pipelineLineage: string;
|
|
28
32
|
tableSensitivity: string;
|
|
29
33
|
tableErrors: string;
|
|
30
34
|
aiAppTables: string;
|
|
@@ -107,6 +111,9 @@ export interface DataObservabilityDataProductBadgeResetResponse {
|
|
|
107
111
|
export interface DataObservabilityCheckAlertResponse {
|
|
108
112
|
monitorId: string | null;
|
|
109
113
|
}
|
|
114
|
+
export interface DataObservabilityBiRefreshAlertResponse {
|
|
115
|
+
monitorId: string | null;
|
|
116
|
+
}
|
|
110
117
|
export declare enum DataObservabilityCollector {
|
|
111
118
|
OneUptime = "OneUptime",
|
|
112
119
|
Probe = "Probe"
|
|
@@ -18,6 +18,10 @@ exports.DATA_OBSERVABILITY_API_ROUTES = {
|
|
|
18
18
|
alertFeedback: (alertId) => {
|
|
19
19
|
return `/data-observability/alerts/${alertId}/feedback`;
|
|
20
20
|
},
|
|
21
|
+
// The lineage around a data alert, with the ways to its cause and to the alerts it caused.
|
|
22
|
+
alertLineage: (alertId) => {
|
|
23
|
+
return `/data-observability/alerts/${alertId}/lineage`;
|
|
24
|
+
},
|
|
21
25
|
// How well Data Observability is working for the project.
|
|
22
26
|
quality: "/data-observability/quality",
|
|
23
27
|
watchedTables: "/data-observability/watched-tables",
|
|
@@ -72,10 +76,18 @@ exports.DATA_OBSERVABILITY_API_ROUTES = {
|
|
|
72
76
|
biSync: (dataBiConnectionId) => {
|
|
73
77
|
return `/data-observability/bi-connections/${dataBiConnectionId}/sync`;
|
|
74
78
|
},
|
|
79
|
+
// Makes the BI tool's monitor on failed refreshes match it: made, kept or removed.
|
|
80
|
+
biRefreshAlert: (dataBiConnectionId) => {
|
|
81
|
+
return `/data-observability/bi-connections/${dataBiConnectionId}/refresh-alert`;
|
|
82
|
+
},
|
|
75
83
|
// The dashboards built on a table, and on the tables built from it.
|
|
76
84
|
tableDashboards: "/data-observability/tables/dashboards",
|
|
77
85
|
// A table's lineage several steps each way, with how each table is now: what its Lineage tab draws.
|
|
78
86
|
tableLineage: "/data-observability/tables/lineage",
|
|
87
|
+
// A table's lineage told in words, problems first, by its name: what the MCP server's lineage tool asks.
|
|
88
|
+
tableLineageAnswer: "/data-observability/tables/lineage/answer",
|
|
89
|
+
// A pipeline's lineage: the tables it reads and writes, with how each is now: what its page draws.
|
|
90
|
+
pipelineLineage: "/data-observability/pipelines/lineage",
|
|
79
91
|
// What Data Security knows each of a table's columns holds.
|
|
80
92
|
tableSensitivity: "/data-observability/tables/sensitivity",
|
|
81
93
|
// The errors in the services that write a table, naming it.
|
|
@@ -17,6 +17,7 @@ export declare enum DataLineageEdgeKind {
|
|
|
17
17
|
Reads = "Reads"
|
|
18
18
|
}
|
|
19
19
|
export declare const DEFAULT_DATA_LINEAGE_DEPTH: number;
|
|
20
|
+
export declare const DEFAULT_DATA_PIPELINE_LINEAGE_DEPTH: number;
|
|
20
21
|
export declare const MAX_DATA_LINEAGE_DEPTH: number;
|
|
21
22
|
export declare const DATA_LINEAGE_DEPTH_CHOICES: ReadonlyArray<number>;
|
|
22
23
|
export declare const MAX_DATA_LINEAGE_NEIGHBORS: number;
|
|
@@ -62,6 +63,13 @@ export interface DataTableLineageEdge {
|
|
|
62
63
|
pipelines: Array<DataTableLineagePipeline>;
|
|
63
64
|
lastSeenAt: string | null;
|
|
64
65
|
}
|
|
66
|
+
export interface DataLineageHighlight {
|
|
67
|
+
nodeIds: Array<string>;
|
|
68
|
+
edgeIds: Array<string>;
|
|
69
|
+
causeNodeIds: Array<string>;
|
|
70
|
+
consequenceNodeIds: Array<string>;
|
|
71
|
+
dataPipelineIds: Array<string>;
|
|
72
|
+
}
|
|
65
73
|
export interface DataTableLineage {
|
|
66
74
|
focusNodeId: string;
|
|
67
75
|
depth: number;
|
|
@@ -69,19 +77,32 @@ export interface DataTableLineage {
|
|
|
69
77
|
edges: Array<DataTableLineageEdge>;
|
|
70
78
|
hiddenDashboardCount: number;
|
|
71
79
|
isTruncated: boolean;
|
|
80
|
+
highlight?: DataLineageHighlight | undefined;
|
|
72
81
|
}
|
|
73
82
|
export interface DataTableLineageRequest {
|
|
74
83
|
dataAssetId: string;
|
|
75
84
|
depth?: number | undefined;
|
|
76
85
|
}
|
|
86
|
+
export interface DataPipelineLineageRequest {
|
|
87
|
+
dataPipelineId: string;
|
|
88
|
+
depth?: number | undefined;
|
|
89
|
+
}
|
|
90
|
+
export interface DataAlertLineageAnswer {
|
|
91
|
+
lineage: DataTableLineage | null;
|
|
92
|
+
hasCause: boolean;
|
|
93
|
+
isCauseDrawn: boolean;
|
|
94
|
+
consequenceCount: number;
|
|
95
|
+
drawnConsequenceCount: number;
|
|
96
|
+
}
|
|
77
97
|
export declare function getLineageTableNodeId(dataAssetId: string): string;
|
|
78
98
|
export declare function getLineagePipelineNodeId(dataPipelineId: string): string;
|
|
79
99
|
export declare function getLineageDashboardNodeId(dataDashboardId: string): string;
|
|
100
|
+
export declare function isLineagePipelineNodeId(nodeId: string): boolean;
|
|
80
101
|
export declare function getLineageEdgeId(data: {
|
|
81
102
|
kind: DataLineageEdgeKind;
|
|
82
103
|
source: string;
|
|
83
104
|
target: string;
|
|
84
105
|
}): string;
|
|
85
|
-
export declare function readDataLineageDepth(value: unknown): number;
|
|
106
|
+
export declare function readDataLineageDepth(value: unknown, fallback?: number): number;
|
|
86
107
|
export declare function isFailedLineageRunState(state: string | null | undefined): boolean;
|
|
87
108
|
export declare function isRunningLineageRunState(state: string | null | undefined): boolean;
|