@shieldiot/pulse-lib 1.0.379 → 1.0.380
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/lib/common/DeviceConfig.d.ts +1 -1
- package/dist/cjs/lib/common/DeviceNode.d.ts +1 -1
- package/dist/cjs/lib/common/DeviceScoreConfig.d.ts +1 -1
- package/dist/cjs/lib/common/DevicesMap.d.ts +1 -1
- package/dist/cjs/lib/common/RuleBasedSeverityConditionConfig.d.ts +1 -1
- package/dist/cjs/lib/common/TimeSeriesOfFloat.d.ts +1 -1
- package/dist/cjs/lib/common/TokenData.d.ts +1 -1
- package/dist/cjs/lib/entities/Account.d.ts +1 -1
- package/dist/cjs/lib/entities/Account.js.map +1 -1
- package/dist/cjs/lib/entities/AccountDTO.d.ts +2 -2
- package/dist/cjs/lib/entities/AccountDTO.js.map +1 -1
- package/dist/cjs/lib/entities/AccountReportDTO.d.ts +3 -3
- package/dist/cjs/lib/entities/AccountReportDTO.js.map +1 -1
- package/dist/cjs/lib/entities/Alert.d.ts +5 -5
- package/dist/cjs/lib/entities/Alert.js.map +1 -1
- package/dist/cjs/lib/entities/AlertWithDevice.d.ts +3 -3
- package/dist/cjs/lib/entities/AlertWithDevice.js.map +1 -1
- package/dist/cjs/lib/entities/ConfigParams.d.ts +1 -1
- package/dist/cjs/lib/entities/ConfigParams.js.map +1 -1
- package/dist/cjs/lib/entities/DataIngestion.d.ts +1 -1
- package/dist/cjs/lib/entities/DeviceWithEvents.d.ts +3 -3
- package/dist/cjs/lib/entities/DeviceWithEvents.js.map +1 -1
- package/dist/cjs/lib/entities/Event.d.ts +6 -6
- package/dist/cjs/lib/entities/Event.js.map +1 -1
- package/dist/cjs/lib/entities/EventOccurrence.d.ts +1 -1
- package/dist/cjs/lib/entities/EventWithDevice.d.ts +5 -5
- package/dist/cjs/lib/entities/EventWithDevice.js.map +1 -1
- package/dist/cjs/lib/entities/Feature.d.ts +1 -1
- package/dist/cjs/lib/entities/Feature.js.map +1 -1
- package/dist/cjs/lib/entities/IdsRule.d.ts +2 -2
- package/dist/cjs/lib/entities/IdsRule.js.map +1 -1
- package/dist/cjs/lib/entities/Insight.d.ts +2 -2
- package/dist/cjs/lib/entities/Insight.js.map +1 -1
- package/dist/cjs/lib/entities/InsightQuery.d.ts +1 -1
- package/dist/cjs/lib/entities/InsightQuery.js.map +1 -1
- package/dist/cjs/lib/entities/Integration.d.ts +1 -1
- package/dist/cjs/lib/entities/Integration.js.map +1 -1
- package/dist/cjs/lib/entities/Radius.d.ts +1 -1
- package/dist/cjs/lib/entities/Radius.js.map +1 -1
- package/dist/cjs/lib/entities/Report.d.ts +1 -1
- package/dist/cjs/lib/entities/Report.js.map +1 -1
- package/dist/cjs/lib/entities/ReportInstance.d.ts +1 -1
- package/dist/cjs/lib/entities/ReportInstance.js.map +1 -1
- package/dist/cjs/lib/entities/Rule.d.ts +1 -1
- package/dist/cjs/lib/entities/Rule.js.map +1 -1
- package/dist/cjs/lib/entities/RuleTemplate.d.ts +2 -2
- package/dist/cjs/lib/entities/RuleTemplate.js.map +1 -1
- package/dist/cjs/lib/entities/Stream.d.ts +1 -1
- package/dist/cjs/lib/entities/Stream.js.map +1 -1
- package/dist/cjs/lib/entities/StreamAnalyticsConfig.d.ts +1 -1
- package/dist/cjs/lib/entities/StreamAnalyticsConfig.js.map +1 -1
- package/dist/cjs/lib/entities/StreamConfig.d.ts +3 -3
- package/dist/cjs/lib/entities/User.d.ts +1 -1
- package/dist/cjs/lib/entities/User.js.map +1 -1
- package/dist/cjs/lib/services/sysAccountsService.d.ts +1 -1
- package/dist/cjs/lib/services/sysKeysService.d.ts +1 -1
- package/dist/cjs/lib/services/sysUsersService.d.ts +2 -2
- package/dist/cjs/lib/services/usrAlertsService.d.ts +15 -15
- package/dist/cjs/lib/services/usrAlertsService.js +21 -21
- package/dist/cjs/lib/services/usrDevicesService.d.ts +16 -16
- package/dist/cjs/lib/services/usrDevicesService.js +18 -18
- package/dist/cjs/lib/services/usrEventsService.d.ts +6 -6
- package/dist/cjs/lib/services/usrInsightsService.d.ts +1 -1
- package/dist/cjs/lib/services/usrReportsInstanceService.d.ts +1 -1
- package/dist/cjs/lib/services/usrRulesService.d.ts +3 -3
- package/dist/cjs/lib/services/usrUserService.d.ts +5 -5
- package/dist/esm/lib/common/DeviceConfig.d.ts +1 -1
- package/dist/esm/lib/common/DeviceNode.d.ts +1 -1
- package/dist/esm/lib/common/DeviceScoreConfig.d.ts +1 -1
- package/dist/esm/lib/common/DevicesMap.d.ts +1 -1
- package/dist/esm/lib/common/RuleBasedSeverityConditionConfig.d.ts +1 -1
- package/dist/esm/lib/common/TimeSeriesOfFloat.d.ts +1 -1
- package/dist/esm/lib/common/TokenData.d.ts +1 -1
- package/dist/esm/lib/entities/Account.d.ts +1 -1
- package/dist/esm/lib/entities/Account.js.map +1 -1
- package/dist/esm/lib/entities/AccountDTO.d.ts +2 -2
- package/dist/esm/lib/entities/AccountDTO.js.map +1 -1
- package/dist/esm/lib/entities/AccountReportDTO.d.ts +3 -3
- package/dist/esm/lib/entities/AccountReportDTO.js.map +1 -1
- package/dist/esm/lib/entities/Alert.d.ts +5 -5
- package/dist/esm/lib/entities/Alert.js.map +1 -1
- package/dist/esm/lib/entities/AlertWithDevice.d.ts +3 -3
- package/dist/esm/lib/entities/AlertWithDevice.js.map +1 -1
- package/dist/esm/lib/entities/ConfigParams.d.ts +1 -1
- package/dist/esm/lib/entities/ConfigParams.js.map +1 -1
- package/dist/esm/lib/entities/DataIngestion.d.ts +1 -1
- package/dist/esm/lib/entities/DeviceWithEvents.d.ts +3 -3
- package/dist/esm/lib/entities/DeviceWithEvents.js.map +1 -1
- package/dist/esm/lib/entities/Event.d.ts +6 -6
- package/dist/esm/lib/entities/Event.js.map +1 -1
- package/dist/esm/lib/entities/EventOccurrence.d.ts +1 -1
- package/dist/esm/lib/entities/EventWithDevice.d.ts +5 -5
- package/dist/esm/lib/entities/EventWithDevice.js.map +1 -1
- package/dist/esm/lib/entities/Feature.d.ts +1 -1
- package/dist/esm/lib/entities/Feature.js.map +1 -1
- package/dist/esm/lib/entities/IdsRule.d.ts +2 -2
- package/dist/esm/lib/entities/IdsRule.js.map +1 -1
- package/dist/esm/lib/entities/Insight.d.ts +2 -2
- package/dist/esm/lib/entities/Insight.js.map +1 -1
- package/dist/esm/lib/entities/InsightQuery.d.ts +1 -1
- package/dist/esm/lib/entities/InsightQuery.js.map +1 -1
- package/dist/esm/lib/entities/Integration.d.ts +1 -1
- package/dist/esm/lib/entities/Integration.js.map +1 -1
- package/dist/esm/lib/entities/Radius.d.ts +1 -1
- package/dist/esm/lib/entities/Radius.js.map +1 -1
- package/dist/esm/lib/entities/Report.d.ts +1 -1
- package/dist/esm/lib/entities/Report.js.map +1 -1
- package/dist/esm/lib/entities/ReportInstance.d.ts +1 -1
- package/dist/esm/lib/entities/ReportInstance.js.map +1 -1
- package/dist/esm/lib/entities/Rule.d.ts +1 -1
- package/dist/esm/lib/entities/Rule.js.map +1 -1
- package/dist/esm/lib/entities/RuleTemplate.d.ts +2 -2
- package/dist/esm/lib/entities/RuleTemplate.js.map +1 -1
- package/dist/esm/lib/entities/Stream.d.ts +1 -1
- package/dist/esm/lib/entities/Stream.js.map +1 -1
- package/dist/esm/lib/entities/StreamAnalyticsConfig.d.ts +1 -1
- package/dist/esm/lib/entities/StreamAnalyticsConfig.js.map +1 -1
- package/dist/esm/lib/entities/StreamConfig.d.ts +3 -3
- package/dist/esm/lib/entities/User.d.ts +1 -1
- package/dist/esm/lib/entities/User.js.map +1 -1
- package/dist/esm/lib/services/sysAccountsService.d.ts +1 -1
- package/dist/esm/lib/services/sysKeysService.d.ts +1 -1
- package/dist/esm/lib/services/sysUsersService.d.ts +2 -2
- package/dist/esm/lib/services/usrAlertsService.d.ts +15 -15
- package/dist/esm/lib/services/usrAlertsService.js +21 -21
- package/dist/esm/lib/services/usrDevicesService.d.ts +16 -16
- package/dist/esm/lib/services/usrDevicesService.js +18 -18
- package/dist/esm/lib/services/usrEventsService.d.ts +6 -6
- package/dist/esm/lib/services/usrInsightsService.d.ts +1 -1
- package/dist/esm/lib/services/usrReportsInstanceService.d.ts +1 -1
- package/dist/esm/lib/services/usrRulesService.d.ts +3 -3
- package/dist/esm/lib/services/usrUserService.d.ts +5 -5
- package/dist/types/lib/common/DeviceConfig.d.ts +1 -1
- package/dist/types/lib/common/DeviceNode.d.ts +1 -1
- package/dist/types/lib/common/DeviceScoreConfig.d.ts +1 -1
- package/dist/types/lib/common/DevicesMap.d.ts +1 -1
- package/dist/types/lib/common/RuleBasedSeverityConditionConfig.d.ts +1 -1
- package/dist/types/lib/common/TimeSeriesOfFloat.d.ts +1 -1
- package/dist/types/lib/common/TokenData.d.ts +1 -1
- package/dist/types/lib/entities/Account.d.ts +1 -1
- package/dist/types/lib/entities/AccountDTO.d.ts +2 -2
- package/dist/types/lib/entities/AccountReportDTO.d.ts +3 -3
- package/dist/types/lib/entities/Alert.d.ts +5 -5
- package/dist/types/lib/entities/AlertWithDevice.d.ts +3 -3
- package/dist/types/lib/entities/ConfigParams.d.ts +1 -1
- package/dist/types/lib/entities/DataIngestion.d.ts +1 -1
- package/dist/types/lib/entities/DeviceWithEvents.d.ts +3 -3
- package/dist/types/lib/entities/Event.d.ts +6 -6
- package/dist/types/lib/entities/EventOccurrence.d.ts +1 -1
- package/dist/types/lib/entities/EventWithDevice.d.ts +5 -5
- package/dist/types/lib/entities/Feature.d.ts +1 -1
- package/dist/types/lib/entities/IdsRule.d.ts +2 -2
- package/dist/types/lib/entities/Insight.d.ts +2 -2
- package/dist/types/lib/entities/InsightQuery.d.ts +1 -1
- package/dist/types/lib/entities/Integration.d.ts +1 -1
- package/dist/types/lib/entities/Radius.d.ts +1 -1
- package/dist/types/lib/entities/Report.d.ts +1 -1
- package/dist/types/lib/entities/ReportInstance.d.ts +1 -1
- package/dist/types/lib/entities/Rule.d.ts +1 -1
- package/dist/types/lib/entities/RuleTemplate.d.ts +2 -2
- package/dist/types/lib/entities/Stream.d.ts +1 -1
- package/dist/types/lib/entities/StreamAnalyticsConfig.d.ts +1 -1
- package/dist/types/lib/entities/StreamConfig.d.ts +3 -3
- package/dist/types/lib/entities/User.d.ts +1 -1
- package/dist/types/lib/services/sysAccountsService.d.ts +1 -1
- package/dist/types/lib/services/sysKeysService.d.ts +1 -1
- package/dist/types/lib/services/sysUsersService.d.ts +2 -2
- package/dist/types/lib/services/usrAlertsService.d.ts +15 -15
- package/dist/types/lib/services/usrDevicesService.d.ts +16 -16
- package/dist/types/lib/services/usrEventsService.d.ts +6 -6
- package/dist/types/lib/services/usrInsightsService.d.ts +1 -1
- package/dist/types/lib/services/usrReportsInstanceService.d.ts +1 -1
- package/dist/types/lib/services/usrRulesService.d.ts +3 -3
- package/dist/types/lib/services/usrUserService.d.ts +5 -5
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
-
import { MapBounds } from '../common';
|
|
3
|
-
import { DevicesMap } from '../common';
|
|
4
|
-
import { IntDistribution } from '../entities';
|
|
5
|
-
import { TimeSeriesOfDeviceReport } from '../entities';
|
|
6
|
-
import { NetworkMapTypeCode } from '../enums';
|
|
7
|
-
import { DeviceReport } from '../entities';
|
|
8
|
-
import { SeverityTypeCode } from '../enums';
|
|
9
2
|
import { DeviceWithEvents } from '../entities';
|
|
10
|
-
import { DeviceStatusCode } from '../enums';
|
|
11
3
|
import { DeviceActionCode } from '../enums';
|
|
12
4
|
import { BulkDevices } from '../entities';
|
|
13
|
-
import {
|
|
5
|
+
import { TimeSeriesOfDeviceReport } from '../entities';
|
|
6
|
+
import { NetworkMapTypeCode } from '../enums';
|
|
7
|
+
import { SeverityTypeCode } from '../enums';
|
|
8
|
+
import { IntDistribution } from '../entities';
|
|
9
|
+
import { NetworkMap } from '../common';
|
|
10
|
+
import { DeviceReport } from '../entities';
|
|
14
11
|
import { TimeSeriesOfDataConsumption } from '../common';
|
|
15
12
|
import { Device } from '../entities';
|
|
16
|
-
import {
|
|
13
|
+
import { DeviceStatusCode } from '../enums';
|
|
14
|
+
import { MapBounds } from '../common';
|
|
15
|
+
import { DevicesMap } from '../common';
|
|
16
|
+
import { DeviceTypeCode } from '../enums';
|
|
17
17
|
export declare class UsrDevicesService {
|
|
18
18
|
private apiUrl;
|
|
19
19
|
private rest;
|
|
@@ -46,7 +46,7 @@ export declare class UsrDevicesService {
|
|
|
46
46
|
/**
|
|
47
47
|
* Find list of devices by query
|
|
48
48
|
*/
|
|
49
|
-
find(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number,
|
|
49
|
+
find(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number, ids?: string[]): import("rxjs").Observable<EntitiesResponse<Device>>;
|
|
50
50
|
/**
|
|
51
51
|
* Export list of devices by query to a file with the specified format
|
|
52
52
|
*/
|
|
@@ -54,23 +54,23 @@ export declare class UsrDevicesService {
|
|
|
54
54
|
/**
|
|
55
55
|
* Find top 10 devices by their score filter by query
|
|
56
56
|
*/
|
|
57
|
-
findTop(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number,
|
|
57
|
+
findTop(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number, ids?: string[]): import("rxjs").Observable<EntitiesResponse<DeviceWithEvents>>;
|
|
58
58
|
/**
|
|
59
59
|
* Find device distribution by type filtered by query
|
|
60
60
|
*/
|
|
61
|
-
countByType(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number,
|
|
61
|
+
countByType(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number, ids?: string[]): import("rxjs").Observable<EntityResponse<IntDistribution>>;
|
|
62
62
|
/**
|
|
63
63
|
* Find device distribution by status filtered by query
|
|
64
64
|
*/
|
|
65
|
-
countByStatus(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number,
|
|
65
|
+
countByStatus(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number, ids?: string[]): import("rxjs").Observable<EntityResponse<IntDistribution>>;
|
|
66
66
|
/**
|
|
67
67
|
* Find device distribution by action filtered by query
|
|
68
68
|
*/
|
|
69
|
-
countByAction(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number,
|
|
69
|
+
countByAction(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number, ids?: string[]): import("rxjs").Observable<EntityResponse<IntDistribution>>;
|
|
70
70
|
/**
|
|
71
71
|
* Find device distribution by risk filtered by query
|
|
72
72
|
*/
|
|
73
|
-
countByRisk(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number,
|
|
73
|
+
countByRisk(streamId?: string, search?: string, from?: number, to?: number, type?: DeviceTypeCode[], status?: DeviceStatusCode[], risk?: SeverityTypeCode[], scoreRange?: number[], sort?: string, page?: number, size?: number, ids?: string[]): import("rxjs").Observable<EntityResponse<IntDistribution>>;
|
|
74
74
|
/**
|
|
75
75
|
* Add tag to a device
|
|
76
76
|
*/
|
|
@@ -49,7 +49,7 @@ export class UsrDevicesService {
|
|
|
49
49
|
/**
|
|
50
50
|
* Find list of devices by query
|
|
51
51
|
*/
|
|
52
|
-
find(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size,
|
|
52
|
+
find(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size, ids) {
|
|
53
53
|
const params = [];
|
|
54
54
|
if (streamId != null) {
|
|
55
55
|
params.push(`streamId=${streamId}`);
|
|
@@ -84,8 +84,8 @@ export class UsrDevicesService {
|
|
|
84
84
|
if (size != null) {
|
|
85
85
|
params.push(`size=${size}`);
|
|
86
86
|
}
|
|
87
|
-
if (
|
|
88
|
-
params.push(`
|
|
87
|
+
if (ids != null) {
|
|
88
|
+
params.push(`ids=${ids}`);
|
|
89
89
|
}
|
|
90
90
|
return this.rest.get(`${this.baseUrl}`, ...params);
|
|
91
91
|
}
|
|
@@ -129,7 +129,7 @@ export class UsrDevicesService {
|
|
|
129
129
|
/**
|
|
130
130
|
* Find top 10 devices by their score filter by query
|
|
131
131
|
*/
|
|
132
|
-
findTop(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size,
|
|
132
|
+
findTop(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size, ids) {
|
|
133
133
|
const params = [];
|
|
134
134
|
if (streamId != null) {
|
|
135
135
|
params.push(`streamId=${streamId}`);
|
|
@@ -164,15 +164,15 @@ export class UsrDevicesService {
|
|
|
164
164
|
if (size != null) {
|
|
165
165
|
params.push(`size=${size}`);
|
|
166
166
|
}
|
|
167
|
-
if (
|
|
168
|
-
params.push(`
|
|
167
|
+
if (ids != null) {
|
|
168
|
+
params.push(`ids=${ids}`);
|
|
169
169
|
}
|
|
170
170
|
return this.rest.get(`${this.baseUrl}/top`, ...params);
|
|
171
171
|
}
|
|
172
172
|
/**
|
|
173
173
|
* Find device distribution by type filtered by query
|
|
174
174
|
*/
|
|
175
|
-
countByType(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size,
|
|
175
|
+
countByType(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size, ids) {
|
|
176
176
|
const params = [];
|
|
177
177
|
if (streamId != null) {
|
|
178
178
|
params.push(`streamId=${streamId}`);
|
|
@@ -207,15 +207,15 @@ export class UsrDevicesService {
|
|
|
207
207
|
if (size != null) {
|
|
208
208
|
params.push(`size=${size}`);
|
|
209
209
|
}
|
|
210
|
-
if (
|
|
211
|
-
params.push(`
|
|
210
|
+
if (ids != null) {
|
|
211
|
+
params.push(`ids=${ids}`);
|
|
212
212
|
}
|
|
213
213
|
return this.rest.get(`${this.baseUrl}/count/by-type`, ...params);
|
|
214
214
|
}
|
|
215
215
|
/**
|
|
216
216
|
* Find device distribution by status filtered by query
|
|
217
217
|
*/
|
|
218
|
-
countByStatus(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size,
|
|
218
|
+
countByStatus(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size, ids) {
|
|
219
219
|
const params = [];
|
|
220
220
|
if (streamId != null) {
|
|
221
221
|
params.push(`streamId=${streamId}`);
|
|
@@ -250,15 +250,15 @@ export class UsrDevicesService {
|
|
|
250
250
|
if (size != null) {
|
|
251
251
|
params.push(`size=${size}`);
|
|
252
252
|
}
|
|
253
|
-
if (
|
|
254
|
-
params.push(`
|
|
253
|
+
if (ids != null) {
|
|
254
|
+
params.push(`ids=${ids}`);
|
|
255
255
|
}
|
|
256
256
|
return this.rest.get(`${this.baseUrl}/count/by-status`, ...params);
|
|
257
257
|
}
|
|
258
258
|
/**
|
|
259
259
|
* Find device distribution by action filtered by query
|
|
260
260
|
*/
|
|
261
|
-
countByAction(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size,
|
|
261
|
+
countByAction(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size, ids) {
|
|
262
262
|
const params = [];
|
|
263
263
|
if (streamId != null) {
|
|
264
264
|
params.push(`streamId=${streamId}`);
|
|
@@ -293,15 +293,15 @@ export class UsrDevicesService {
|
|
|
293
293
|
if (size != null) {
|
|
294
294
|
params.push(`size=${size}`);
|
|
295
295
|
}
|
|
296
|
-
if (
|
|
297
|
-
params.push(`
|
|
296
|
+
if (ids != null) {
|
|
297
|
+
params.push(`ids=${ids}`);
|
|
298
298
|
}
|
|
299
299
|
return this.rest.get(`${this.baseUrl}/count/by-action`, ...params);
|
|
300
300
|
}
|
|
301
301
|
/**
|
|
302
302
|
* Find device distribution by risk filtered by query
|
|
303
303
|
*/
|
|
304
|
-
countByRisk(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size,
|
|
304
|
+
countByRisk(streamId, search, from, to, type, status, risk, scoreRange, sort, page, size, ids) {
|
|
305
305
|
const params = [];
|
|
306
306
|
if (streamId != null) {
|
|
307
307
|
params.push(`streamId=${streamId}`);
|
|
@@ -336,8 +336,8 @@ export class UsrDevicesService {
|
|
|
336
336
|
if (size != null) {
|
|
337
337
|
params.push(`size=${size}`);
|
|
338
338
|
}
|
|
339
|
-
if (
|
|
340
|
-
params.push(`
|
|
339
|
+
if (ids != null) {
|
|
340
|
+
params.push(`ids=${ids}`);
|
|
341
341
|
}
|
|
342
342
|
return this.rest.get(`${this.baseUrl}/count/by-risk`, ...params);
|
|
343
343
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
-
import {
|
|
2
|
+
import { TimeSeriesOf2D } from '../common';
|
|
3
|
+
import { StringKeyValue } from '../common';
|
|
4
|
+
import { EventTypeCode } from '../enums';
|
|
3
5
|
import { SeverityTypeCode } from '../enums';
|
|
4
6
|
import { EventStatusCode } from '../enums';
|
|
7
|
+
import { RuleTypeCode } from '../enums';
|
|
5
8
|
import { MaliciousIPData } from '../common';
|
|
6
9
|
import { IntDistribution } from '../entities';
|
|
7
|
-
import { TimeSeriesOf2D } from '../common';
|
|
8
|
-
import { MaliciousIPCard } from '../common';
|
|
9
|
-
import { StringKeyValue } from '../common';
|
|
10
10
|
import { Event } from '../entities';
|
|
11
|
-
import { EventTypeCode } from '../enums';
|
|
12
11
|
import { EventCategoryCode } from '../enums';
|
|
13
|
-
import { RuleTypeCode } from '../enums';
|
|
14
12
|
import { EventWithDevice } from '../entities';
|
|
13
|
+
import { TimeSeriesOfFloat } from '../common';
|
|
14
|
+
import { MaliciousIPCard } from '../common';
|
|
15
15
|
export declare class UsrEventsService {
|
|
16
16
|
private apiUrl;
|
|
17
17
|
private rest;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse } from '../../utils';
|
|
2
|
-
import { Insight } from '../entities';
|
|
3
2
|
import { SeverityTypeCode } from '../enums';
|
|
3
|
+
import { Insight } from '../entities';
|
|
4
4
|
export declare class UsrInsightsService {
|
|
5
5
|
private apiUrl;
|
|
6
6
|
private rest;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
-
import { ReportInstance } from '../entities';
|
|
3
2
|
import { ReportSourceCode } from '../enums';
|
|
3
|
+
import { ReportInstance } from '../entities';
|
|
4
4
|
export declare class UsrReportsInstanceService {
|
|
5
5
|
private apiUrl;
|
|
6
6
|
private rest;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
+
import { IntDistribution } from '../entities';
|
|
3
|
+
import { Distribution } from '../entities';
|
|
4
|
+
import { Rule } from '../entities';
|
|
2
5
|
import { SeverityTypeCode } from '../enums';
|
|
3
6
|
import { RuleActivityStatusCode } from '../enums';
|
|
4
7
|
import { EventTypeCode } from '../enums';
|
|
5
8
|
import { TimeSeriesOfFloat } from '../common';
|
|
6
|
-
import { IntDistribution } from '../entities';
|
|
7
|
-
import { Distribution } from '../entities';
|
|
8
|
-
import { Rule } from '../entities';
|
|
9
9
|
export declare class UsrRulesService {
|
|
10
10
|
private apiUrl;
|
|
11
11
|
private rest;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { RestUtil, EntityResponse, EntitiesResponse, ActionResponse } from '../../utils';
|
|
2
|
-
import { Image } from '../entities';
|
|
3
|
-
import { Stream } from '../entities';
|
|
4
|
-
import { FeatureCode } from '../enums';
|
|
5
|
-
import { LoginParams } from '../common';
|
|
6
2
|
import { User } from '../entities';
|
|
7
|
-
import {
|
|
3
|
+
import { Image } from '../entities';
|
|
8
4
|
import { Feature } from '../entities';
|
|
5
|
+
import { Stream } from '../entities';
|
|
9
6
|
import { UserMemberships } from '../entities';
|
|
7
|
+
import { LoginParams } from '../common';
|
|
8
|
+
import { FeatureCode } from '../enums';
|
|
10
9
|
import { ConfigParam } from '../entities';
|
|
10
|
+
import { AccountDTO } from '../entities';
|
|
11
11
|
export declare class UsrUserService {
|
|
12
12
|
private apiUrl;
|
|
13
13
|
private rest;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { RuleBasedSeverityConditionConfig } from '../common';
|
|
1
2
|
import { Interval } from '../common';
|
|
2
3
|
import { SeverityConditionConfig } from '../common';
|
|
3
4
|
import { RuleCountThresholdConfig } from '../common';
|
|
4
|
-
import { RuleBasedSeverityConditionConfig } from '../common';
|
|
5
5
|
export declare class DeviceScoreConfig {
|
|
6
6
|
deviceScoreAlphaFactor: number;
|
|
7
7
|
occurrenceThreshold: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BaseEntity } from '../base';
|
|
2
1
|
import { AccountTypeCode } from '../enums';
|
|
3
2
|
import { AccountStatusCode } from '../enums';
|
|
4
3
|
import { StringKeyValue } from '../common';
|
|
5
4
|
import { AccountSettings } from '../entities';
|
|
5
|
+
import { BaseEntity } from '../base';
|
|
6
6
|
export declare class Account extends BaseEntity {
|
|
7
7
|
name: string;
|
|
8
8
|
externalId: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseEntity } from '../base';
|
|
2
|
-
import { AccountTypeCode } from '../enums';
|
|
3
1
|
import { AccountStatusCode } from '../enums';
|
|
4
2
|
import { FeatureCode } from '../enums';
|
|
5
3
|
import { StringKeyValue } from '../common';
|
|
6
4
|
import { AccountSettings } from '../entities';
|
|
5
|
+
import { BaseEntity } from '../base';
|
|
6
|
+
import { AccountTypeCode } from '../enums';
|
|
7
7
|
export declare class AccountDTO extends BaseEntity {
|
|
8
8
|
name: string;
|
|
9
9
|
externalId: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AccountTypeCode } from '../enums';
|
|
2
|
-
import { AccountStatusCode } from '../enums';
|
|
3
|
-
import { StringKeyValue } from '../common';
|
|
4
1
|
import { AccountSettings } from '../entities';
|
|
5
2
|
import { DeviceReport } from '../entities';
|
|
6
3
|
import { IntDistribution } from '../entities';
|
|
7
4
|
import { BaseEntity } from '../base';
|
|
5
|
+
import { AccountTypeCode } from '../enums';
|
|
6
|
+
import { AccountStatusCode } from '../enums';
|
|
7
|
+
import { StringKeyValue } from '../common';
|
|
8
8
|
export declare class AccountReportDTO extends BaseEntity {
|
|
9
9
|
name: string;
|
|
10
10
|
externalId: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { StringKeyValue } from '../common';
|
|
1
|
+
import { EventCategoryCode } from '../enums';
|
|
3
2
|
import { BaseEntity } from '../base';
|
|
4
|
-
import {
|
|
3
|
+
import { GeoData } from '../common';
|
|
4
|
+
import { StringKeyValue } from '../common';
|
|
5
5
|
import { EventStatusCode } from '../enums';
|
|
6
6
|
import { RuleTypeCode } from '../enums';
|
|
7
|
-
import { GeoData } from '../common';
|
|
8
|
-
import { EventCategoryCode } from '../enums';
|
|
9
7
|
import { TrafficDirectionCode } from '../enums';
|
|
8
|
+
import { EventTypeCode } from '../enums';
|
|
9
|
+
import { SeverityTypeCode } from '../enums';
|
|
10
10
|
export declare class Alert extends BaseEntity {
|
|
11
11
|
accountId: string;
|
|
12
12
|
streamId: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { EventTypeCode } from '../enums';
|
|
2
2
|
import { SeverityTypeCode } from '../enums';
|
|
3
3
|
import { RuleTypeCode } from '../enums';
|
|
4
|
+
import { EventStatusCode } from '../enums';
|
|
5
|
+
import { GeoData } from '../common';
|
|
4
6
|
import { StringKeyValue } from '../common';
|
|
7
|
+
import { EventCategoryCode } from '../enums';
|
|
5
8
|
import { TrafficDirectionCode } from '../enums';
|
|
6
9
|
import { Device } from '../entities';
|
|
7
10
|
import { BaseEntity } from '../base';
|
|
8
|
-
import { EventStatusCode } from '../enums';
|
|
9
|
-
import { GeoData } from '../common';
|
|
10
|
-
import { EventCategoryCode } from '../enums';
|
|
11
11
|
export declare class AlertWithDevice extends BaseEntity {
|
|
12
12
|
accountId: string;
|
|
13
13
|
streamId: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { SIM } from '../entities';
|
|
2
|
+
import { Event } from '../entities';
|
|
3
|
+
import { GeoData } from '../common';
|
|
1
4
|
import { BaseEntity } from '../base';
|
|
2
5
|
import { DeviceTypeCode } from '../enums';
|
|
3
6
|
import { DeviceStatusCode } from '../enums';
|
|
4
7
|
import { StringKeyValue } from '../common';
|
|
5
8
|
import { DeviceActionCode } from '../enums';
|
|
6
|
-
import { SIM } from '../entities';
|
|
7
|
-
import { Event } from '../entities';
|
|
8
|
-
import { GeoData } from '../common';
|
|
9
9
|
export declare class DeviceWithEvents extends BaseEntity {
|
|
10
10
|
accountId: string;
|
|
11
11
|
streamId: string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseEntity } from '../base';
|
|
2
|
+
import { Indicator } from '../common';
|
|
2
3
|
import { RuleTypeCode } from '../enums';
|
|
3
4
|
import { GeoData } from '../common';
|
|
4
|
-
import { EventOccurrence } from '../entities';
|
|
5
|
-
import { EventTypeCode } from '../enums';
|
|
6
|
-
import { Indicator } from '../common';
|
|
7
|
-
import { StringKeyValue } from '../common';
|
|
8
5
|
import { EventCategoryCode } from '../enums';
|
|
9
6
|
import { TrafficDirectionCode } from '../enums';
|
|
10
|
-
import {
|
|
7
|
+
import { EventTypeCode } from '../enums';
|
|
8
|
+
import { SeverityTypeCode } from '../enums';
|
|
11
9
|
import { EventStatusCode } from '../enums';
|
|
10
|
+
import { StringKeyValue } from '../common';
|
|
11
|
+
import { EventOccurrence } from '../entities';
|
|
12
12
|
export declare class Event extends BaseEntity {
|
|
13
13
|
accountId: string;
|
|
14
14
|
streamId: string;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import { SeverityTypeCode } from '../enums';
|
|
1
2
|
import { RuleTypeCode } from '../enums';
|
|
2
3
|
import { GeoData } from '../common';
|
|
3
4
|
import { StringKeyValue } from '../common';
|
|
4
|
-
import {
|
|
5
|
+
import { EventOccurrence } from '../entities';
|
|
5
6
|
import { Device } from '../entities';
|
|
6
7
|
import { BaseEntity } from '../base';
|
|
7
|
-
import {
|
|
8
|
-
import { SeverityTypeCode } from '../enums';
|
|
8
|
+
import { EventTypeCode } from '../enums';
|
|
9
9
|
import { EventStatusCode } from '../enums';
|
|
10
|
+
import { Indicator } from '../common';
|
|
10
11
|
import { EventCategoryCode } from '../enums';
|
|
11
|
-
import {
|
|
12
|
-
import { EventTypeCode } from '../enums';
|
|
12
|
+
import { TrafficDirectionCode } from '../enums';
|
|
13
13
|
export declare class EventWithDevice extends BaseEntity {
|
|
14
14
|
accountId: string;
|
|
15
15
|
streamId: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { RuleTypeCode } from '../enums';
|
|
2
|
+
import { DataSourceCode } from '../enums';
|
|
1
3
|
import { ConditionDescription } from '../common';
|
|
2
4
|
import { DeviceTypeCode } from '../enums';
|
|
3
5
|
import { EventTypeCode } from '../enums';
|
|
4
6
|
import { SeverityTypeCode } from '../enums';
|
|
5
7
|
import { BaseEntity } from '../base';
|
|
6
|
-
import { RuleTypeCode } from '../enums';
|
|
7
|
-
import { DataSourceCode } from '../enums';
|
|
8
8
|
export declare class IdsRule extends BaseEntity {
|
|
9
9
|
accountId: string;
|
|
10
10
|
streamId: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { RegulatoryViolation } from '../entities';
|
|
2
|
+
import { MitreAttackCategory } from '../entities';
|
|
1
3
|
import { BaseEntity } from '../base';
|
|
2
4
|
import { InsightTypeCode } from '../enums';
|
|
3
5
|
import { InsightStatusCode } from '../enums';
|
|
4
6
|
import { SeverityTypeCode } from '../enums';
|
|
5
7
|
import { DirectionContextCode } from '../enums';
|
|
6
|
-
import { RegulatoryViolation } from '../entities';
|
|
7
|
-
import { MitreAttackCategory } from '../entities';
|
|
8
8
|
export declare class Insight extends BaseEntity {
|
|
9
9
|
accountId: string;
|
|
10
10
|
streamId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { BaseEntity } from '../base';
|
|
1
2
|
import { InsightTypeCode } from '../enums';
|
|
2
3
|
import { DirectionContextCode } from '../enums';
|
|
3
|
-
import { BaseEntity } from '../base';
|
|
4
4
|
export declare class InsightQuery extends BaseEntity {
|
|
5
5
|
type: InsightTypeCode;
|
|
6
6
|
description: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EventTypeCode } from '../enums';
|
|
1
2
|
import { SeverityTypeCode } from '../enums';
|
|
2
3
|
import { DeviceActionCode } from '../enums';
|
|
3
4
|
import { BaseEntity } from '../base';
|
|
@@ -5,7 +6,6 @@ import { IntegrationTypeCode } from '../enums';
|
|
|
5
6
|
import { IntegrationTriggerCode } from '../enums';
|
|
6
7
|
import { HttpMethodCode } from '../enums';
|
|
7
8
|
import { StringKeyValue } from '../common';
|
|
8
|
-
import { EventTypeCode } from '../enums';
|
|
9
9
|
export declare class Integration extends BaseEntity {
|
|
10
10
|
accountId: string;
|
|
11
11
|
streamId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { IntDistribution } from '../entities';
|
|
1
2
|
import { DeviceReport } from '../entities';
|
|
2
3
|
import { ReportTypeCode } from '../enums';
|
|
3
4
|
import { BaseEntity } from '../base';
|
|
4
|
-
import { IntDistribution } from '../entities';
|
|
5
5
|
export declare class ReportInstance extends BaseEntity {
|
|
6
6
|
accountId: string;
|
|
7
7
|
from: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { DeviceTypeCode } from '../enums';
|
|
1
2
|
import { EventTypeCode } from '../enums';
|
|
2
3
|
import { SeverityTypeCode } from '../enums';
|
|
3
4
|
import { BaseEntity } from '../base';
|
|
4
5
|
import { RuleTypeCode } from '../enums';
|
|
5
6
|
import { DataSourceCode } from '../enums';
|
|
6
7
|
import { ConditionDescription } from '../common';
|
|
7
|
-
import { DeviceTypeCode } from '../enums';
|
|
8
8
|
export declare class Rule extends BaseEntity {
|
|
9
9
|
accountId: string;
|
|
10
10
|
streamId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EventTypeCode } from '../enums';
|
|
2
|
-
import { SeverityTypeCode } from '../enums';
|
|
3
1
|
import { BaseEntity } from '../base';
|
|
4
2
|
import { DataSourceCode } from '../enums';
|
|
3
|
+
import { EventTypeCode } from '../enums';
|
|
4
|
+
import { SeverityTypeCode } from '../enums';
|
|
5
5
|
export declare class RuleTemplate extends BaseEntity {
|
|
6
6
|
name: string;
|
|
7
7
|
description: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { ShieldexConfig } from '../common';
|
|
1
2
|
import { EventSeverityConfig } from '../common';
|
|
2
3
|
import { DeviceConfig } from '../common';
|
|
3
4
|
import { BaseEntity } from '../base';
|
|
4
5
|
import { Thresholds } from '../common';
|
|
5
|
-
import { ShieldexConfig } from '../common';
|
|
6
6
|
export declare class StreamAnalyticsConfig extends BaseEntity {
|
|
7
7
|
accountId: string;
|
|
8
8
|
thresholds: Thresholds;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { DataIngestion } from '../entities';
|
|
2
|
-
import { UsageTransform } from '../common';
|
|
3
1
|
import { ShieldexConfig } from '../common';
|
|
4
|
-
import { EventSeverityConfig } from '../common';
|
|
5
2
|
import { DeviceActionCode } from '../enums';
|
|
3
|
+
import { EventSeverityConfig } from '../common';
|
|
6
4
|
import { DeviceConfig } from '../common';
|
|
7
5
|
import { IdsConfig } from '../entities';
|
|
6
|
+
import { DataIngestion } from '../entities';
|
|
8
7
|
import { SessionTransform } from '../common';
|
|
8
|
+
import { UsageTransform } from '../common';
|
|
9
9
|
import { Thresholds } from '../common';
|
|
10
10
|
export declare class StreamConfig {
|
|
11
11
|
ingest: DataIngestion;
|