@coveo/platform-client 45.4.1 → 45.5.1
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/dist/cjs/resources/UsageAnalytics/Read/DataHealth/DataHealth.js +64 -0
- package/dist/cjs/resources/UsageAnalytics/Read/DataHealth/DataHealth.js.map +1 -0
- package/dist/cjs/resources/UsageAnalytics/Read/DataHealth/DataHealthInterfaces.js +5 -0
- package/dist/cjs/resources/UsageAnalytics/Read/DataHealth/DataHealthInterfaces.js.map +1 -0
- package/dist/cjs/resources/UsageAnalytics/Read/DataHealth/index.js +19 -0
- package/dist/cjs/resources/UsageAnalytics/Read/DataHealth/index.js.map +1 -0
- package/dist/cjs/resources/UsageAnalytics/Read/index.js +1 -0
- package/dist/cjs/resources/UsageAnalytics/Read/index.js.map +1 -1
- package/dist/cjs/resources/UsageAnalytics/UsageAnalytics.js +3 -0
- package/dist/cjs/resources/UsageAnalytics/UsageAnalytics.js.map +1 -1
- package/dist/esm/resources/UsageAnalytics/Read/DataHealth/DataHealth.js +58 -0
- package/dist/esm/resources/UsageAnalytics/Read/DataHealth/DataHealth.js.map +1 -0
- package/dist/esm/resources/UsageAnalytics/Read/DataHealth/DataHealthInterfaces.js +2 -0
- package/dist/esm/resources/UsageAnalytics/Read/DataHealth/DataHealthInterfaces.js.map +1 -0
- package/dist/esm/resources/UsageAnalytics/Read/DataHealth/index.js +3 -0
- package/dist/esm/resources/UsageAnalytics/Read/DataHealth/index.js.map +1 -0
- package/dist/esm/resources/UsageAnalytics/Read/index.js +1 -0
- package/dist/esm/resources/UsageAnalytics/Read/index.js.map +1 -1
- package/dist/esm/resources/UsageAnalytics/UsageAnalytics.js +3 -0
- package/dist/esm/resources/UsageAnalytics/UsageAnalytics.js.map +1 -1
- package/dist/types/resources/BaseInterfaces.d.ts +29 -0
- package/dist/types/resources/UsageAnalytics/Read/DataHealth/DataHealth.d.ts +42 -0
- package/dist/types/resources/UsageAnalytics/Read/DataHealth/DataHealthInterfaces.d.ts +267 -0
- package/dist/types/resources/UsageAnalytics/Read/DataHealth/index.d.ts +2 -0
- package/dist/types/resources/UsageAnalytics/Read/index.d.ts +1 -0
- package/dist/types/resources/UsageAnalytics/UsageAnalytics.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const ReadServiceResource_js_1 = __importDefault(require("../ReadServiceResource.js"));
|
|
7
|
+
class DataHealth extends ReadServiceResource_js_1.default {
|
|
8
|
+
static baseUrl = '/rest/ua/v15/datahealth';
|
|
9
|
+
/**
|
|
10
|
+
* Get health information about events.
|
|
11
|
+
*/
|
|
12
|
+
listEvents(params, args) {
|
|
13
|
+
return this.api.get(this.buildPathWithOrg(`${DataHealth.baseUrl}/events`, params));
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Get original event payload.
|
|
17
|
+
*/
|
|
18
|
+
getEventPayload(params, args) {
|
|
19
|
+
return this.api.get(this.buildPathWithOrg(`${DataHealth.baseUrl}/events/payload`, params));
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* List applicable facet values in the specified time range.
|
|
23
|
+
*/
|
|
24
|
+
listFacetValues(params, args) {
|
|
25
|
+
return this.api.get(this.buildPathWithOrg(`${DataHealth.baseUrl}/facets`, params));
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get general data health information.
|
|
29
|
+
*/
|
|
30
|
+
getOverview(params, args) {
|
|
31
|
+
return this.api.get(this.buildPathWithOrg(`${DataHealth.baseUrl}/overview`, params));
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Get health information about groups of validation rules.
|
|
35
|
+
*/
|
|
36
|
+
getGroupListing(params, args) {
|
|
37
|
+
return this.api.get(this.buildPathWithOrg(`${DataHealth.baseUrl}/groups`, params));
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Get health information about validation rules of a specific group.
|
|
41
|
+
*/
|
|
42
|
+
getGroupDetail(params, args) {
|
|
43
|
+
return this.api.get(this.buildPathWithOrg(`${DataHealth.baseUrl}/groups/detail`, params));
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Get a list of unique tracking ids.
|
|
47
|
+
*/
|
|
48
|
+
getTrackingIds(params, args) {
|
|
49
|
+
return this.api.get(this.buildPathWithOrg(`${DataHealth.baseUrl}/facets`, { ...params, facet: 'TRACKING_ID' }));
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Build the request path, handling the optional `org` query parameter.
|
|
53
|
+
*
|
|
54
|
+
* @param route The path part of the request.
|
|
55
|
+
* @param queryParams Optional query parameters object.
|
|
56
|
+
* If this object contains an `org` property, it will override the value from the configuration.
|
|
57
|
+
* @returns The request path including formatted query parameters.
|
|
58
|
+
*/
|
|
59
|
+
buildPathWithOrg(route, queryParams) {
|
|
60
|
+
return super.buildPath(route, { org: this.api.organizationId, ...queryParams });
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.default = DataHealth;
|
|
64
|
+
//# sourceMappingURL=DataHealth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataHealth.js","sourceRoot":"","sources":["../../../../../../src/resources/UsageAnalytics/Read/DataHealth/DataHealth.ts"],"names":[],"mappings":";;;;;AAAA,uFAA4D;AAkB5D,MAAqB,UAAW,SAAQ,gCAAmB;IACvD,MAAM,CAAC,OAAO,GAAG,yBAAyB,CAAC;IAE3C;;OAEG;IACH,UAAU,CAAC,MAAsC,EAAE,IAAkB;QACjE,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,SAAS,EAAE,MAAM,CAAC,CAChE,CAAC;IACN,CAAC;IAED;;OAEG;IACH,eAAe,CAAC,MAAuC,EAAE,IAAkB;QACvE,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,iBAAiB,EAAE,MAAM,CAAC,CACxE,CAAC;IACN,CAAC;IAED;;OAEG;IACH,eAAe,CAAC,MAAsC,EAAE,IAAkB;QACtE,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,SAAS,EAAE,MAAM,CAAC,CAChE,CAAC;IACN,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,MAAmC,EAAE,IAAkB;QAC/D,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,CAClE,CAAC;IACN,CAAC;IAED;;OAEG;IACH,eAAe,CAAC,MAAuC,EAAE,IAAkB;QACvE,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,SAAS,EAAE,MAAM,CAAC,CAChE,CAAC;IACN,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,MAAsC,EAAE,IAAkB;QACrE,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,gBAAgB,EAAE,MAAM,CAAC,CACvE,CAAC;IACN,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,MAAsC,EAAE,IAAkB;QACrE,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,SAAS,EAAE,EAAC,GAAG,MAAM,EAAE,KAAK,EAAE,aAAa,EAAC,CAAC,CAC3F,CAAC;IACN,CAAC;IAED;;;;;;;OAOG;IACO,gBAAgB,CAAC,KAAa,EAAE,WAAiB;QACvD,OAAO,KAAK,CAAC,SAAS,CAAC,KAAK,EAAE,EAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,cAAc,EAAE,GAAG,WAAW,EAAC,CAAC,CAAC;IAClF,CAAC;;AA5EL,6BA6EC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataHealthInterfaces.js","sourceRoot":"","sources":["../../../../../../src/resources/UsageAnalytics/Read/DataHealth/DataHealthInterfaces.ts"],"names":[],"mappings":";;;AAIa,QAAA,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAa,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./DataHealth.js"), exports);
|
|
18
|
+
__exportStar(require("./DataHealthInterfaces.js"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/resources/UsageAnalytics/Read/DataHealth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,4DAA0C"}
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Administration/index.js"), exports);
|
|
18
|
+
__exportStar(require("./DataHealth/index.js"), exports);
|
|
18
19
|
__exportStar(require("./DataShare/index.js"), exports);
|
|
19
20
|
__exportStar(require("./Dimensions/index.js"), exports);
|
|
20
21
|
__exportStar(require("./Exports/index.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/resources/UsageAnalytics/Read/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,uDAAqC;AACrC,wDAAsC;AACtC,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,uDAAqC;AACrC,wDAAsC;AACtC,mDAAiC;AAEjC,yDAAuC;AACvC,2DAAyC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/resources/UsageAnalytics/Read/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,wDAAsC;AACtC,uDAAqC;AACrC,wDAAsC;AACtC,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AACnC,uDAAqC;AACrC,wDAAsC;AACtC,mDAAiC;AAEjC,yDAAuC;AACvC,2DAAyC"}
|
|
@@ -12,10 +12,12 @@ const Filters_js_1 = __importDefault(require("./Read/Filters/Filters.js"));
|
|
|
12
12
|
const Reports_js_1 = __importDefault(require("./Read/Reports/Reports.js"));
|
|
13
13
|
const Snowflake_js_1 = __importDefault(require("./Read/Snowflake/Snowflake.js"));
|
|
14
14
|
const Statistics_js_1 = __importDefault(require("./Read/Statistics/Statistics.js"));
|
|
15
|
+
const DataHealth_js_1 = __importDefault(require("./Read/DataHealth/DataHealth.js"));
|
|
15
16
|
class UsageAnalytics extends Resource_js_1.default {
|
|
16
17
|
api;
|
|
17
18
|
serverlessApi;
|
|
18
19
|
administration;
|
|
20
|
+
dataHealth;
|
|
19
21
|
dataShare;
|
|
20
22
|
dimensions;
|
|
21
23
|
exports;
|
|
@@ -28,6 +30,7 @@ class UsageAnalytics extends Resource_js_1.default {
|
|
|
28
30
|
this.api = api;
|
|
29
31
|
this.serverlessApi = serverlessApi;
|
|
30
32
|
this.administration = new Administration_js_1.default(api, serverlessApi);
|
|
33
|
+
this.dataHealth = new DataHealth_js_1.default(api, serverlessApi);
|
|
31
34
|
this.dataShare = new DataShare_js_1.default(api, serverlessApi);
|
|
32
35
|
this.dimensions = new Dimensions_js_1.default(api, serverlessApi);
|
|
33
36
|
this.exports = new Exports_js_1.default(api, serverlessApi);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsageAnalytics.js","sourceRoot":"","sources":["../../../../src/resources/UsageAnalytics/UsageAnalytics.ts"],"names":[],"mappings":";;;;;AACA,iEAAsC;AACtC,gGAAqE;AACrE,iFAAsD;AACtD,oFAAyD;AACzD,2EAAgD;AAChD,2EAAgD;AAChD,2EAAgD;AAChD,iFAAsD;AACtD,oFAAyD;AAEzD,MAAqB,cAAe,SAAQ,qBAAQ;
|
|
1
|
+
{"version":3,"file":"UsageAnalytics.js","sourceRoot":"","sources":["../../../../src/resources/UsageAnalytics/UsageAnalytics.ts"],"names":[],"mappings":";;;;;AACA,iEAAsC;AACtC,gGAAqE;AACrE,iFAAsD;AACtD,oFAAyD;AACzD,2EAAgD;AAChD,2EAAgD;AAChD,2EAAgD;AAChD,iFAAsD;AACtD,oFAAyD;AACzD,oFAAyD;AAEzD,MAAqB,cAAe,SAAQ,qBAAQ;IAYlC;IACA;IAZd,cAAc,CAAiB;IAC/B,UAAU,CAAa;IACvB,SAAS,CAAY;IACrB,UAAU,CAAa;IACvB,OAAO,CAAU;IACjB,OAAO,CAAU;IACjB,OAAO,CAAU;IACjB,SAAS,CAAY;IACrB,UAAU,CAAa;IAEvB,YACc,GAAQ,EACR,aAAkB;QAE5B,KAAK,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAHhB,QAAG,GAAH,GAAG,CAAK;QACR,kBAAa,GAAb,aAAa,CAAK;QAI5B,IAAI,CAAC,cAAc,GAAG,IAAI,2BAAc,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,IAAI,uBAAU,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QACrD,IAAI,CAAC,SAAS,GAAG,IAAI,sBAAS,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QACnD,IAAI,CAAC,UAAU,GAAG,IAAI,uBAAU,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QACrD,IAAI,CAAC,OAAO,GAAG,IAAI,oBAAO,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,IAAI,oBAAO,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,IAAI,oBAAO,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAC/C,IAAI,CAAC,SAAS,GAAG,IAAI,sBAAS,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QACnD,IAAI,CAAC,UAAU,GAAG,IAAI,uBAAU,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;IACzD,CAAC;CACJ;AA3BD,iCA2BC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import ReadServiceResource from '../ReadServiceResource.js';
|
|
2
|
+
export default class DataHealth extends ReadServiceResource {
|
|
3
|
+
static baseUrl = '/rest/ua/v15/datahealth';
|
|
4
|
+
/**
|
|
5
|
+
* Get health information about events.
|
|
6
|
+
*/
|
|
7
|
+
listEvents(params, args) {
|
|
8
|
+
return this.api.get(this.buildPathWithOrg(`${DataHealth.baseUrl}/events`, params));
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Get original event payload.
|
|
12
|
+
*/
|
|
13
|
+
getEventPayload(params, args) {
|
|
14
|
+
return this.api.get(this.buildPathWithOrg(`${DataHealth.baseUrl}/events/payload`, params));
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* List applicable facet values in the specified time range.
|
|
18
|
+
*/
|
|
19
|
+
listFacetValues(params, args) {
|
|
20
|
+
return this.api.get(this.buildPathWithOrg(`${DataHealth.baseUrl}/facets`, params));
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Get general data health information.
|
|
24
|
+
*/
|
|
25
|
+
getOverview(params, args) {
|
|
26
|
+
return this.api.get(this.buildPathWithOrg(`${DataHealth.baseUrl}/overview`, params));
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Get health information about groups of validation rules.
|
|
30
|
+
*/
|
|
31
|
+
getGroupListing(params, args) {
|
|
32
|
+
return this.api.get(this.buildPathWithOrg(`${DataHealth.baseUrl}/groups`, params));
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Get health information about validation rules of a specific group.
|
|
36
|
+
*/
|
|
37
|
+
getGroupDetail(params, args) {
|
|
38
|
+
return this.api.get(this.buildPathWithOrg(`${DataHealth.baseUrl}/groups/detail`, params));
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Get a list of unique tracking ids.
|
|
42
|
+
*/
|
|
43
|
+
getTrackingIds(params, args) {
|
|
44
|
+
return this.api.get(this.buildPathWithOrg(`${DataHealth.baseUrl}/facets`, { ...params, facet: 'TRACKING_ID' }));
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Build the request path, handling the optional `org` query parameter.
|
|
48
|
+
*
|
|
49
|
+
* @param route The path part of the request.
|
|
50
|
+
* @param queryParams Optional query parameters object.
|
|
51
|
+
* If this object contains an `org` property, it will override the value from the configuration.
|
|
52
|
+
* @returns The request path including formatted query parameters.
|
|
53
|
+
*/
|
|
54
|
+
buildPathWithOrg(route, queryParams) {
|
|
55
|
+
return super.buildPath(route, { org: this.api.organizationId, ...queryParams });
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=DataHealth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataHealth.js","sourceRoot":"","sources":["../../../../../../src/resources/UsageAnalytics/Read/DataHealth/DataHealth.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,2BAA2B,CAAC;AAkB5D,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,mBAAmB;IACvD,MAAM,CAAC,OAAO,GAAG,yBAAyB,CAAC;IAE3C;;OAEG;IACH,UAAU,CAAC,MAAsC,EAAE,IAAkB;QACjE,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,SAAS,EAAE,MAAM,CAAC,CAChE,CAAC;IACN,CAAC;IAED;;OAEG;IACH,eAAe,CAAC,MAAuC,EAAE,IAAkB;QACvE,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,iBAAiB,EAAE,MAAM,CAAC,CACxE,CAAC;IACN,CAAC;IAED;;OAEG;IACH,eAAe,CAAC,MAAsC,EAAE,IAAkB;QACtE,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,SAAS,EAAE,MAAM,CAAC,CAChE,CAAC;IACN,CAAC;IAED;;OAEG;IACH,WAAW,CAAC,MAAmC,EAAE,IAAkB;QAC/D,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,CAClE,CAAC;IACN,CAAC;IAED;;OAEG;IACH,eAAe,CAAC,MAAuC,EAAE,IAAkB;QACvE,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,SAAS,EAAE,MAAM,CAAC,CAChE,CAAC;IACN,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,MAAsC,EAAE,IAAkB;QACrE,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,gBAAgB,EAAE,MAAM,CAAC,CACvE,CAAC;IACN,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,MAAsC,EAAE,IAAkB;QACrE,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CACf,IAAI,CAAC,gBAAgB,CAAC,GAAG,UAAU,CAAC,OAAO,SAAS,EAAE,EAAC,GAAG,MAAM,EAAE,KAAK,EAAE,aAAa,EAAC,CAAC,CAC3F,CAAC;IACN,CAAC;IAED;;;;;;;OAOG;IACO,gBAAgB,CAAC,KAAa,EAAE,WAAiB;QACvD,OAAO,KAAK,CAAC,SAAS,CAAC,KAAK,EAAE,EAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,cAAc,EAAE,GAAG,WAAW,EAAC,CAAC,CAAC;IAClF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataHealthInterfaces.js","sourceRoot":"","sources":["../../../../../../src/resources/UsageAnalytics/Read/DataHealth/DataHealthInterfaces.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAa,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/resources/UsageAnalytics/Read/DataHealth/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/resources/UsageAnalytics/Read/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/resources/UsageAnalytics/Read/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC"}
|
|
@@ -7,10 +7,12 @@ import Filters from './Read/Filters/Filters.js';
|
|
|
7
7
|
import Reports from './Read/Reports/Reports.js';
|
|
8
8
|
import Snowflake from './Read/Snowflake/Snowflake.js';
|
|
9
9
|
import Statistics from './Read/Statistics/Statistics.js';
|
|
10
|
+
import DataHealth from './Read/DataHealth/DataHealth.js';
|
|
10
11
|
export default class UsageAnalytics extends Resource {
|
|
11
12
|
api;
|
|
12
13
|
serverlessApi;
|
|
13
14
|
administration;
|
|
15
|
+
dataHealth;
|
|
14
16
|
dataShare;
|
|
15
17
|
dimensions;
|
|
16
18
|
exports;
|
|
@@ -23,6 +25,7 @@ export default class UsageAnalytics extends Resource {
|
|
|
23
25
|
this.api = api;
|
|
24
26
|
this.serverlessApi = serverlessApi;
|
|
25
27
|
this.administration = new Administration(api, serverlessApi);
|
|
28
|
+
this.dataHealth = new DataHealth(api, serverlessApi);
|
|
26
29
|
this.dataShare = new DataShare(api, serverlessApi);
|
|
27
30
|
this.dimensions = new Dimensions(api, serverlessApi);
|
|
28
31
|
this.exports = new Exports(api, serverlessApi);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsageAnalytics.js","sourceRoot":"","sources":["../../../../src/resources/UsageAnalytics/UsageAnalytics.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,cAAc,MAAM,yCAAyC,CAAC;AACrE,OAAO,SAAS,MAAM,+BAA+B,CAAC;AACtD,OAAO,UAAU,MAAM,iCAAiC,CAAC;AACzD,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,SAAS,MAAM,+BAA+B,CAAC;AACtD,OAAO,UAAU,MAAM,iCAAiC,CAAC;AAEzD,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,QAAQ;
|
|
1
|
+
{"version":3,"file":"UsageAnalytics.js","sourceRoot":"","sources":["../../../../src/resources/UsageAnalytics/UsageAnalytics.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,cAAc,MAAM,yCAAyC,CAAC;AACrE,OAAO,SAAS,MAAM,+BAA+B,CAAC;AACtD,OAAO,UAAU,MAAM,iCAAiC,CAAC;AACzD,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,OAAO,MAAM,2BAA2B,CAAC;AAChD,OAAO,SAAS,MAAM,+BAA+B,CAAC;AACtD,OAAO,UAAU,MAAM,iCAAiC,CAAC;AACzD,OAAO,UAAU,MAAM,iCAAiC,CAAC;AAEzD,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,QAAQ;IAYlC;IACA;IAZd,cAAc,CAAiB;IAC/B,UAAU,CAAa;IACvB,SAAS,CAAY;IACrB,UAAU,CAAa;IACvB,OAAO,CAAU;IACjB,OAAO,CAAU;IACjB,OAAO,CAAU;IACjB,SAAS,CAAY;IACrB,UAAU,CAAa;IAEvB,YACc,GAAQ,EACR,aAAkB;QAE5B,KAAK,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAHhB,QAAG,GAAH,GAAG,CAAK;QACR,kBAAa,GAAb,aAAa,CAAK;QAI5B,IAAI,CAAC,cAAc,GAAG,IAAI,cAAc,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAC7D,IAAI,CAAC,UAAU,GAAG,IAAI,UAAU,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QACrD,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QACnD,IAAI,CAAC,UAAU,GAAG,IAAI,UAAU,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QACrD,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QAC/C,IAAI,CAAC,SAAS,GAAG,IAAI,SAAS,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;QACnD,IAAI,CAAC,UAAU,GAAG,IAAI,UAAU,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;IACzD,CAAC;CACJ"}
|
|
@@ -53,3 +53,32 @@ export type WithRequired<Type, Key extends keyof Type> = Type & {
|
|
|
53
53
|
[Property in Key]-?: Type[Property];
|
|
54
54
|
};
|
|
55
55
|
export type WithOptional<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>> & Partial<Pick<T, K>>;
|
|
56
|
+
/**
|
|
57
|
+
* Pagination information about which page is included in the response,
|
|
58
|
+
* and what the full range of data is.
|
|
59
|
+
*/
|
|
60
|
+
export interface PaginationInformationModel {
|
|
61
|
+
/**
|
|
62
|
+
* Zero-based page index of the current page.
|
|
63
|
+
*/
|
|
64
|
+
page: number;
|
|
65
|
+
/**
|
|
66
|
+
* The number of items for each page.
|
|
67
|
+
* Note that the actual number of items may be lower for the last page.
|
|
68
|
+
*/
|
|
69
|
+
perPage: number;
|
|
70
|
+
/**
|
|
71
|
+
* Total number of items available (across all pages).
|
|
72
|
+
*/
|
|
73
|
+
totalItems: number;
|
|
74
|
+
/**
|
|
75
|
+
* The number of pages available, based on `totalItems` and `perPage`.
|
|
76
|
+
*/
|
|
77
|
+
totalPages: number;
|
|
78
|
+
}
|
|
79
|
+
export interface PaginatedResponse {
|
|
80
|
+
/**
|
|
81
|
+
* Pagination information.
|
|
82
|
+
*/
|
|
83
|
+
pagination: PaginationInformationModel;
|
|
84
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import ReadServiceResource from '../ReadServiceResource.js';
|
|
2
|
+
import { DataHealthEventPayloadResponse, DataHealthGetEventPayloadParams, DataHealthGetGroupDetailParams, DataHealthGetGroupDetailResponse, DataHealthGetGroupListingParams, DataHealthGetGroupListingResponse, DataHealthGetOverviewParams, DataHealthGetOverviewResponse, DataHealthGetTrackingIdsParams, DataHealthGetTrackingIdsResponse, DataHealthListEventsParameters, DataHealthListEventsResponse, DataHealthListFacetsResponse, DataHealthListFacetValueParams } from './DataHealthInterfaces.js';
|
|
3
|
+
export default class DataHealth extends ReadServiceResource {
|
|
4
|
+
static baseUrl: string;
|
|
5
|
+
/**
|
|
6
|
+
* Get health information about events.
|
|
7
|
+
*/
|
|
8
|
+
listEvents(params: DataHealthListEventsParameters, args?: RequestInit): Promise<DataHealthListEventsResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Get original event payload.
|
|
11
|
+
*/
|
|
12
|
+
getEventPayload(params: DataHealthGetEventPayloadParams, args?: RequestInit): Promise<DataHealthEventPayloadResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* List applicable facet values in the specified time range.
|
|
15
|
+
*/
|
|
16
|
+
listFacetValues(params: DataHealthListFacetValueParams, args?: RequestInit): Promise<DataHealthListFacetsResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get general data health information.
|
|
19
|
+
*/
|
|
20
|
+
getOverview(params: DataHealthGetOverviewParams, args?: RequestInit): Promise<DataHealthGetOverviewResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Get health information about groups of validation rules.
|
|
23
|
+
*/
|
|
24
|
+
getGroupListing(params: DataHealthGetGroupListingParams, args?: RequestInit): Promise<DataHealthGetGroupListingResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Get health information about validation rules of a specific group.
|
|
27
|
+
*/
|
|
28
|
+
getGroupDetail(params: DataHealthGetGroupDetailParams, args?: RequestInit): Promise<DataHealthGetGroupDetailResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Get a list of unique tracking ids.
|
|
31
|
+
*/
|
|
32
|
+
getTrackingIds(params: DataHealthGetTrackingIdsParams, args?: RequestInit): Promise<DataHealthGetTrackingIdsResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Build the request path, handling the optional `org` query parameter.
|
|
35
|
+
*
|
|
36
|
+
* @param route The path part of the request.
|
|
37
|
+
* @param queryParams Optional query parameters object.
|
|
38
|
+
* If this object contains an `org` property, it will override the value from the configuration.
|
|
39
|
+
* @returns The request path including formatted query parameters.
|
|
40
|
+
*/
|
|
41
|
+
protected buildPathWithOrg(route: string, queryParams?: any): string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { Paginated, PaginatedResponse } from '../../../BaseInterfaces.js';
|
|
2
|
+
import { OrganizationParamParts, TimeRangeParamParts } from '../CommonParamParts.js';
|
|
3
|
+
export type Severity = 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW';
|
|
4
|
+
export declare const SeverityConstant: readonly Severity[];
|
|
5
|
+
/**
|
|
6
|
+
* Common parameters for Data Health calls that filter events.
|
|
7
|
+
*/
|
|
8
|
+
interface DataHealthFilterEventsParamParts {
|
|
9
|
+
/**
|
|
10
|
+
* Optional set of client ids to filter events on.
|
|
11
|
+
* Entries are OR-ed together, if other filters are specified they are combined using AND.
|
|
12
|
+
*/
|
|
13
|
+
clientId?: string[] | string;
|
|
14
|
+
/**
|
|
15
|
+
* Optional set of visit ids to filter events on.
|
|
16
|
+
* Entries are OR-ed together, if other filters are specified they are combined using AND.
|
|
17
|
+
*/
|
|
18
|
+
visitId?: string[] | string;
|
|
19
|
+
/**
|
|
20
|
+
* A set of event sources for which the events will be returned.
|
|
21
|
+
* If not specified, events are not filtered on event sources.
|
|
22
|
+
*/
|
|
23
|
+
eventSource?: string[] | string;
|
|
24
|
+
/**
|
|
25
|
+
* A set of event types for which the events will be returned.
|
|
26
|
+
* If not specified, events are not filtered on event types.
|
|
27
|
+
*/
|
|
28
|
+
eventType?: string[] | string;
|
|
29
|
+
/**
|
|
30
|
+
* A set of search hubs for which the events will be returned.
|
|
31
|
+
* If not specified, events are not filtered on search hub.
|
|
32
|
+
*/
|
|
33
|
+
searchHub?: string[] | string;
|
|
34
|
+
/**
|
|
35
|
+
* A health status for which the events will be returned.
|
|
36
|
+
* If not specified, events are not filtered on event types.
|
|
37
|
+
*/
|
|
38
|
+
healthStatus?: string;
|
|
39
|
+
trackingId?: string[];
|
|
40
|
+
}
|
|
41
|
+
export interface DataHealthListEventsParameters extends OrganizationParamParts, TimeRangeParamParts, DataHealthFilterEventsParamParts, Paginated {
|
|
42
|
+
}
|
|
43
|
+
export interface DataHealthGetEventPayloadParams extends OrganizationParamParts {
|
|
44
|
+
/**
|
|
45
|
+
* The ID of the event to get the payload off.
|
|
46
|
+
*/
|
|
47
|
+
eventId: string;
|
|
48
|
+
/**
|
|
49
|
+
* The ISO-8601 formatted timestamp of the event.
|
|
50
|
+
*/
|
|
51
|
+
timestamp: string;
|
|
52
|
+
}
|
|
53
|
+
export interface DataHealthEventPayloadResponse {
|
|
54
|
+
/**
|
|
55
|
+
* The ID of the event.
|
|
56
|
+
*/
|
|
57
|
+
eventId: string;
|
|
58
|
+
/**
|
|
59
|
+
* The timestamp of the event.
|
|
60
|
+
*/
|
|
61
|
+
timestamp: string;
|
|
62
|
+
/**
|
|
63
|
+
* The raw payload of the event.
|
|
64
|
+
*/
|
|
65
|
+
eventPayload: Record<string, unknown>;
|
|
66
|
+
}
|
|
67
|
+
export interface DataHealthValidationErrorModel {
|
|
68
|
+
/**
|
|
69
|
+
* The error code.
|
|
70
|
+
*/
|
|
71
|
+
code: string;
|
|
72
|
+
/**
|
|
73
|
+
* The path of the parameter causing the error.
|
|
74
|
+
*/
|
|
75
|
+
path: string;
|
|
76
|
+
/**
|
|
77
|
+
* A description of the error.
|
|
78
|
+
*/
|
|
79
|
+
message: string;
|
|
80
|
+
}
|
|
81
|
+
export interface DataHealthEventsListItemModel {
|
|
82
|
+
/**
|
|
83
|
+
* The source of the event.
|
|
84
|
+
*/
|
|
85
|
+
source: string;
|
|
86
|
+
/**
|
|
87
|
+
* The type of the event.
|
|
88
|
+
*/
|
|
89
|
+
type: string;
|
|
90
|
+
/**
|
|
91
|
+
* The searchHub of the event.
|
|
92
|
+
*/
|
|
93
|
+
searchHub: string;
|
|
94
|
+
/**
|
|
95
|
+
* The ISO-8601 formatted timestamp of the event.
|
|
96
|
+
*/
|
|
97
|
+
timestamp: string;
|
|
98
|
+
/**
|
|
99
|
+
* The visitId of the event.
|
|
100
|
+
*/
|
|
101
|
+
visitId: string;
|
|
102
|
+
/**
|
|
103
|
+
* The clientId of the event.
|
|
104
|
+
*/
|
|
105
|
+
clientId: string;
|
|
106
|
+
/**
|
|
107
|
+
* The id of the event.
|
|
108
|
+
*/
|
|
109
|
+
eventId: string;
|
|
110
|
+
/**
|
|
111
|
+
* The validation errors of the event.
|
|
112
|
+
*/
|
|
113
|
+
validationErrors: DataHealthValidationErrorModel[];
|
|
114
|
+
}
|
|
115
|
+
export interface DataHealthListEventsResponse extends PaginatedResponse {
|
|
116
|
+
/**
|
|
117
|
+
* The listing of events in the current page.
|
|
118
|
+
*/
|
|
119
|
+
events: DataHealthEventsListItemModel[];
|
|
120
|
+
}
|
|
121
|
+
export interface DataHealthListFacetValueParams extends OrganizationParamParts, TimeRangeParamParts, DataHealthFilterEventsParamParts {
|
|
122
|
+
/**
|
|
123
|
+
* The facet for which the values should be listed.
|
|
124
|
+
*/
|
|
125
|
+
facet: string;
|
|
126
|
+
}
|
|
127
|
+
export interface DataHealthFacetValue {
|
|
128
|
+
/**
|
|
129
|
+
* The value of the facet.
|
|
130
|
+
*/
|
|
131
|
+
value: string;
|
|
132
|
+
/**
|
|
133
|
+
* The count of records that matched the facet in the current range.
|
|
134
|
+
*/
|
|
135
|
+
count: number;
|
|
136
|
+
}
|
|
137
|
+
export interface DataHealthListFacetsResponse {
|
|
138
|
+
/**
|
|
139
|
+
* The values for this facet.
|
|
140
|
+
*/
|
|
141
|
+
values: DataHealthFacetValue[];
|
|
142
|
+
}
|
|
143
|
+
export interface DataHealthGetOverviewParams extends OrganizationParamParts, TimeRangeParamParts {
|
|
144
|
+
/**
|
|
145
|
+
* The category to filter by when getting the overview.
|
|
146
|
+
*/
|
|
147
|
+
category?: string;
|
|
148
|
+
}
|
|
149
|
+
export interface DataHealthGetOverviewResponse {
|
|
150
|
+
/**
|
|
151
|
+
* The overall health score for the specified category(ies)
|
|
152
|
+
*/
|
|
153
|
+
score: number;
|
|
154
|
+
/**
|
|
155
|
+
* The breakdown of overall validation failures by severity.
|
|
156
|
+
*/
|
|
157
|
+
severityBreakdown: Record<Severity, number>;
|
|
158
|
+
/**
|
|
159
|
+
* The total number of entity validated.
|
|
160
|
+
*/
|
|
161
|
+
totalValidations: number;
|
|
162
|
+
/**
|
|
163
|
+
* The total number of entity that failed validation.
|
|
164
|
+
*/
|
|
165
|
+
failedValidations: number;
|
|
166
|
+
}
|
|
167
|
+
export interface DataHealthGetGroupListingParams extends OrganizationParamParts, TimeRangeParamParts, Paginated {
|
|
168
|
+
/**
|
|
169
|
+
* The category to filter by when getting groups listing.
|
|
170
|
+
*/
|
|
171
|
+
category: string;
|
|
172
|
+
/**
|
|
173
|
+
* The tracking id to filter by when getting groups listing.
|
|
174
|
+
*/
|
|
175
|
+
trackingId?: string[];
|
|
176
|
+
/**
|
|
177
|
+
* Whether to show groups with no validated entity or not.
|
|
178
|
+
*/
|
|
179
|
+
showEmptyGroups?: boolean;
|
|
180
|
+
}
|
|
181
|
+
export interface DataHealthGetGroupListingResponse extends PaginatedResponse {
|
|
182
|
+
/**
|
|
183
|
+
* A collection of groups.
|
|
184
|
+
*/
|
|
185
|
+
groups: DataHealthGroupListingEntry[];
|
|
186
|
+
}
|
|
187
|
+
export interface DataHealthGroupListingEntry {
|
|
188
|
+
/**
|
|
189
|
+
* The id of the group.
|
|
190
|
+
*/
|
|
191
|
+
group: string;
|
|
192
|
+
/**
|
|
193
|
+
* The health score for a group.
|
|
194
|
+
*/
|
|
195
|
+
score: number;
|
|
196
|
+
/**
|
|
197
|
+
* The breakdown of validation failures by severity for a group.
|
|
198
|
+
*/
|
|
199
|
+
severityBreakdown: Record<Severity, number>;
|
|
200
|
+
/**
|
|
201
|
+
* The total number of validated entity for a group.
|
|
202
|
+
*/
|
|
203
|
+
totalValidations: number;
|
|
204
|
+
/**
|
|
205
|
+
* The total number of entity that failed validation for a group.
|
|
206
|
+
*/
|
|
207
|
+
failedValidations: number;
|
|
208
|
+
}
|
|
209
|
+
export interface DataHealthGetGroupDetailParams extends OrganizationParamParts, TimeRangeParamParts, Paginated {
|
|
210
|
+
/**
|
|
211
|
+
* The category to filter by when getting details on a group.
|
|
212
|
+
*/
|
|
213
|
+
category: string;
|
|
214
|
+
/**
|
|
215
|
+
* The group to filter by when getting details.
|
|
216
|
+
*/
|
|
217
|
+
group: string;
|
|
218
|
+
}
|
|
219
|
+
export interface DataHealthGetGroupDetailResponse {
|
|
220
|
+
/**
|
|
221
|
+
* A collection of criterion or rule for a group.
|
|
222
|
+
*/
|
|
223
|
+
criteria: DataHealthGroupDetailEntry[];
|
|
224
|
+
}
|
|
225
|
+
export interface DataHealthGroupDetailEntry {
|
|
226
|
+
/**
|
|
227
|
+
* The rule id.
|
|
228
|
+
*/
|
|
229
|
+
id: string;
|
|
230
|
+
/**
|
|
231
|
+
* The category the rule is associated to.
|
|
232
|
+
*/
|
|
233
|
+
category: string;
|
|
234
|
+
/**
|
|
235
|
+
* The severity for a rule.
|
|
236
|
+
*/
|
|
237
|
+
severity: string;
|
|
238
|
+
/**
|
|
239
|
+
* The total number of validated entity for a rule.
|
|
240
|
+
*/
|
|
241
|
+
totalValidations: number;
|
|
242
|
+
/**
|
|
243
|
+
* The number of entity that failed validation for a rule.
|
|
244
|
+
*/
|
|
245
|
+
failedValidations: number;
|
|
246
|
+
/**
|
|
247
|
+
* The score for a rule.
|
|
248
|
+
*/
|
|
249
|
+
score: number;
|
|
250
|
+
/**
|
|
251
|
+
* The type of entity for a rule (event or visit).
|
|
252
|
+
*/
|
|
253
|
+
scope: string;
|
|
254
|
+
/**
|
|
255
|
+
* The scope type (event type or visit).
|
|
256
|
+
*/
|
|
257
|
+
scopeValue: string;
|
|
258
|
+
}
|
|
259
|
+
export interface DataHealthGetTrackingIdsParams extends OrganizationParamParts, TimeRangeParamParts {
|
|
260
|
+
}
|
|
261
|
+
export interface DataHealthGetTrackingIdsResponse {
|
|
262
|
+
/**
|
|
263
|
+
* A collection of tracking ids as facet values (id and count).
|
|
264
|
+
*/
|
|
265
|
+
values: DataHealthFacetValue[];
|
|
266
|
+
}
|
|
267
|
+
export {};
|
|
@@ -8,10 +8,12 @@ import Filters from './Read/Filters/Filters.js';
|
|
|
8
8
|
import Reports from './Read/Reports/Reports.js';
|
|
9
9
|
import Snowflake from './Read/Snowflake/Snowflake.js';
|
|
10
10
|
import Statistics from './Read/Statistics/Statistics.js';
|
|
11
|
+
import DataHealth from './Read/DataHealth/DataHealth.js';
|
|
11
12
|
export default class UsageAnalytics extends Resource {
|
|
12
13
|
protected api: API;
|
|
13
14
|
protected serverlessApi: API;
|
|
14
15
|
administration: Administration;
|
|
16
|
+
dataHealth: DataHealth;
|
|
15
17
|
dataShare: DataShare;
|
|
16
18
|
dimensions: Dimensions;
|
|
17
19
|
exports: Exports;
|