@shieldiot/ngx-pulseiot-lib 2.18.1114 → 2.18.1115
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.
|
@@ -7344,7 +7344,7 @@ class UsrAlertsService {
|
|
|
7344
7344
|
/**
|
|
7345
7345
|
* Get top 10 alerts by their severity and time
|
|
7346
7346
|
*/
|
|
7347
|
-
findTop(streamId, deviceId, search, from, to, type, severity, sort, page, size) {
|
|
7347
|
+
findTop(streamId, deviceId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType, sort, page, size, ids) {
|
|
7348
7348
|
const params = [];
|
|
7349
7349
|
if (streamId != null) {
|
|
7350
7350
|
params.push(`streamId=${streamId}`);
|
|
@@ -7367,6 +7367,21 @@ class UsrAlertsService {
|
|
|
7367
7367
|
if (severity != null) {
|
|
7368
7368
|
params.push(`severity=${severity}`);
|
|
7369
7369
|
}
|
|
7370
|
+
if (category != null) {
|
|
7371
|
+
params.push(`category=${category}`);
|
|
7372
|
+
}
|
|
7373
|
+
if (status != null) {
|
|
7374
|
+
params.push(`status=${status}`);
|
|
7375
|
+
}
|
|
7376
|
+
if (ruleId != null) {
|
|
7377
|
+
params.push(`ruleId=${ruleId}`);
|
|
7378
|
+
}
|
|
7379
|
+
if (targetIp != null) {
|
|
7380
|
+
params.push(`targetIp=${targetIp}`);
|
|
7381
|
+
}
|
|
7382
|
+
if (ruleType != null) {
|
|
7383
|
+
params.push(`ruleType=${ruleType}`);
|
|
7384
|
+
}
|
|
7370
7385
|
if (sort != null) {
|
|
7371
7386
|
params.push(`sort=${sort}`);
|
|
7372
7387
|
}
|
|
@@ -7376,12 +7391,15 @@ class UsrAlertsService {
|
|
|
7376
7391
|
if (size != null) {
|
|
7377
7392
|
params.push(`size=${size}`);
|
|
7378
7393
|
}
|
|
7394
|
+
if (ids != null) {
|
|
7395
|
+
params.push(`ids=${ids}`);
|
|
7396
|
+
}
|
|
7379
7397
|
return this.rest.get(`${this.baseUrl}/top`, ...params);
|
|
7380
7398
|
}
|
|
7381
7399
|
/**
|
|
7382
7400
|
* Get top 10 alerts by their severity and time
|
|
7383
7401
|
*/
|
|
7384
|
-
findTopMaliciousIPs(streamId, top) {
|
|
7402
|
+
findTopMaliciousIPs(streamId, top, from, to) {
|
|
7385
7403
|
const params = [];
|
|
7386
7404
|
if (streamId != null) {
|
|
7387
7405
|
params.push(`streamId=${streamId}`);
|
|
@@ -7389,12 +7407,18 @@ class UsrAlertsService {
|
|
|
7389
7407
|
if (top != null) {
|
|
7390
7408
|
params.push(`top=${top}`);
|
|
7391
7409
|
}
|
|
7410
|
+
if (from != null) {
|
|
7411
|
+
params.push(`from=${from}`);
|
|
7412
|
+
}
|
|
7413
|
+
if (to != null) {
|
|
7414
|
+
params.push(`to=${to}`);
|
|
7415
|
+
}
|
|
7392
7416
|
return this.rest.get(`${this.baseUrl}/top-malicious-ips`, ...params);
|
|
7393
7417
|
}
|
|
7394
7418
|
/**
|
|
7395
7419
|
* Get alerts distribution by type filtered by query
|
|
7396
7420
|
*/
|
|
7397
|
-
countByType(streamId, deviceId, search, from, to, type, severity) {
|
|
7421
|
+
countByType(streamId, deviceId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType) {
|
|
7398
7422
|
const params = [];
|
|
7399
7423
|
if (streamId != null) {
|
|
7400
7424
|
params.push(`streamId=${streamId}`);
|
|
@@ -7417,12 +7441,27 @@ class UsrAlertsService {
|
|
|
7417
7441
|
if (severity != null) {
|
|
7418
7442
|
params.push(`severity=${severity}`);
|
|
7419
7443
|
}
|
|
7444
|
+
if (category != null) {
|
|
7445
|
+
params.push(`category=${category}`);
|
|
7446
|
+
}
|
|
7447
|
+
if (status != null) {
|
|
7448
|
+
params.push(`status=${status}`);
|
|
7449
|
+
}
|
|
7450
|
+
if (ruleId != null) {
|
|
7451
|
+
params.push(`ruleId=${ruleId}`);
|
|
7452
|
+
}
|
|
7453
|
+
if (targetIp != null) {
|
|
7454
|
+
params.push(`targetIp=${targetIp}`);
|
|
7455
|
+
}
|
|
7456
|
+
if (ruleType != null) {
|
|
7457
|
+
params.push(`ruleType=${ruleType}`);
|
|
7458
|
+
}
|
|
7420
7459
|
return this.rest.get(`${this.baseUrl}/count/by-type`, ...params);
|
|
7421
7460
|
}
|
|
7422
7461
|
/**
|
|
7423
7462
|
* Get alerts distribution by status filtered by query
|
|
7424
7463
|
*/
|
|
7425
|
-
countByStatus(streamId, deviceId, search, from, to, type, severity) {
|
|
7464
|
+
countByStatus(streamId, deviceId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType) {
|
|
7426
7465
|
const params = [];
|
|
7427
7466
|
if (streamId != null) {
|
|
7428
7467
|
params.push(`streamId=${streamId}`);
|
|
@@ -7445,12 +7484,27 @@ class UsrAlertsService {
|
|
|
7445
7484
|
if (severity != null) {
|
|
7446
7485
|
params.push(`severity=${severity}`);
|
|
7447
7486
|
}
|
|
7487
|
+
if (category != null) {
|
|
7488
|
+
params.push(`category=${category}`);
|
|
7489
|
+
}
|
|
7490
|
+
if (status != null) {
|
|
7491
|
+
params.push(`status=${status}`);
|
|
7492
|
+
}
|
|
7493
|
+
if (ruleId != null) {
|
|
7494
|
+
params.push(`ruleId=${ruleId}`);
|
|
7495
|
+
}
|
|
7496
|
+
if (targetIp != null) {
|
|
7497
|
+
params.push(`targetIp=${targetIp}`);
|
|
7498
|
+
}
|
|
7499
|
+
if (ruleType != null) {
|
|
7500
|
+
params.push(`ruleType=${ruleType}`);
|
|
7501
|
+
}
|
|
7448
7502
|
return this.rest.get(`${this.baseUrl}/count/by-status`, ...params);
|
|
7449
7503
|
}
|
|
7450
7504
|
/**
|
|
7451
7505
|
* Get alerts distribution by severity filtered by query
|
|
7452
7506
|
*/
|
|
7453
|
-
countBySeverity(streamId, deviceId, search, from, to, type, severity) {
|
|
7507
|
+
countBySeverity(streamId, deviceId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType) {
|
|
7454
7508
|
const params = [];
|
|
7455
7509
|
if (streamId != null) {
|
|
7456
7510
|
params.push(`streamId=${streamId}`);
|
|
@@ -7473,12 +7527,27 @@ class UsrAlertsService {
|
|
|
7473
7527
|
if (severity != null) {
|
|
7474
7528
|
params.push(`severity=${severity}`);
|
|
7475
7529
|
}
|
|
7530
|
+
if (category != null) {
|
|
7531
|
+
params.push(`category=${category}`);
|
|
7532
|
+
}
|
|
7533
|
+
if (status != null) {
|
|
7534
|
+
params.push(`status=${status}`);
|
|
7535
|
+
}
|
|
7536
|
+
if (ruleId != null) {
|
|
7537
|
+
params.push(`ruleId=${ruleId}`);
|
|
7538
|
+
}
|
|
7539
|
+
if (targetIp != null) {
|
|
7540
|
+
params.push(`targetIp=${targetIp}`);
|
|
7541
|
+
}
|
|
7542
|
+
if (ruleType != null) {
|
|
7543
|
+
params.push(`ruleType=${ruleType}`);
|
|
7544
|
+
}
|
|
7476
7545
|
return this.rest.get(`${this.baseUrl}/count/by-severity`, ...params);
|
|
7477
7546
|
}
|
|
7478
7547
|
/**
|
|
7479
7548
|
* Get alerts distribution by rule filtered by query
|
|
7480
7549
|
*/
|
|
7481
|
-
countByRule(streamId, deviceId, search, from, to, type, severity) {
|
|
7550
|
+
countByRule(streamId, deviceId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType) {
|
|
7482
7551
|
const params = [];
|
|
7483
7552
|
if (streamId != null) {
|
|
7484
7553
|
params.push(`streamId=${streamId}`);
|
|
@@ -7501,12 +7570,27 @@ class UsrAlertsService {
|
|
|
7501
7570
|
if (severity != null) {
|
|
7502
7571
|
params.push(`severity=${severity}`);
|
|
7503
7572
|
}
|
|
7573
|
+
if (category != null) {
|
|
7574
|
+
params.push(`category=${category}`);
|
|
7575
|
+
}
|
|
7576
|
+
if (status != null) {
|
|
7577
|
+
params.push(`status=${status}`);
|
|
7578
|
+
}
|
|
7579
|
+
if (ruleId != null) {
|
|
7580
|
+
params.push(`ruleId=${ruleId}`);
|
|
7581
|
+
}
|
|
7582
|
+
if (targetIp != null) {
|
|
7583
|
+
params.push(`targetIp=${targetIp}`);
|
|
7584
|
+
}
|
|
7585
|
+
if (ruleType != null) {
|
|
7586
|
+
params.push(`ruleType=${ruleType}`);
|
|
7587
|
+
}
|
|
7504
7588
|
return this.rest.get(`${this.baseUrl}/count/by-rule`, ...params);
|
|
7505
7589
|
}
|
|
7506
7590
|
/**
|
|
7507
7591
|
* Get alerts distribution by category filtered by query
|
|
7508
7592
|
*/
|
|
7509
|
-
countByCategory(streamId, deviceId, search, from, to, type, severity) {
|
|
7593
|
+
countByCategory(streamId, deviceId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType) {
|
|
7510
7594
|
const params = [];
|
|
7511
7595
|
if (streamId != null) {
|
|
7512
7596
|
params.push(`streamId=${streamId}`);
|
|
@@ -7529,6 +7613,21 @@ class UsrAlertsService {
|
|
|
7529
7613
|
if (severity != null) {
|
|
7530
7614
|
params.push(`severity=${severity}`);
|
|
7531
7615
|
}
|
|
7616
|
+
if (category != null) {
|
|
7617
|
+
params.push(`category=${category}`);
|
|
7618
|
+
}
|
|
7619
|
+
if (status != null) {
|
|
7620
|
+
params.push(`status=${status}`);
|
|
7621
|
+
}
|
|
7622
|
+
if (ruleId != null) {
|
|
7623
|
+
params.push(`ruleId=${ruleId}`);
|
|
7624
|
+
}
|
|
7625
|
+
if (targetIp != null) {
|
|
7626
|
+
params.push(`targetIp=${targetIp}`);
|
|
7627
|
+
}
|
|
7628
|
+
if (ruleType != null) {
|
|
7629
|
+
params.push(`ruleType=${ruleType}`);
|
|
7630
|
+
}
|
|
7532
7631
|
return this.rest.get(`${this.baseUrl}/count/by-category`, ...params);
|
|
7533
7632
|
}
|
|
7534
7633
|
/**
|
|
@@ -7583,17 +7682,23 @@ class UsrAlertsService {
|
|
|
7583
7682
|
/**
|
|
7584
7683
|
* Get shieldex histogram over the provided time period
|
|
7585
7684
|
*/
|
|
7586
|
-
shieldexTimeline(streamId) {
|
|
7685
|
+
shieldexTimeline(streamId, from, to) {
|
|
7587
7686
|
const params = [];
|
|
7588
7687
|
if (streamId != null) {
|
|
7589
7688
|
params.push(`streamId=${streamId}`);
|
|
7590
7689
|
}
|
|
7690
|
+
if (from != null) {
|
|
7691
|
+
params.push(`from=${from}`);
|
|
7692
|
+
}
|
|
7693
|
+
if (to != null) {
|
|
7694
|
+
params.push(`to=${to}`);
|
|
7695
|
+
}
|
|
7591
7696
|
return this.rest.get(`${this.baseUrl}/shieldex/timeline`, ...params);
|
|
7592
7697
|
}
|
|
7593
7698
|
/**
|
|
7594
7699
|
* Get devices at risk number for specific alerts criteria and return the number of devices at risk for specific alerts criteria
|
|
7595
7700
|
*/
|
|
7596
|
-
getDevicesAtRisk(streamId, search, from, to, type, severity) {
|
|
7701
|
+
getDevicesAtRisk(streamId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType) {
|
|
7597
7702
|
const params = [];
|
|
7598
7703
|
if (streamId != null) {
|
|
7599
7704
|
params.push(`streamId=${streamId}`);
|
|
@@ -7613,6 +7718,21 @@ class UsrAlertsService {
|
|
|
7613
7718
|
if (severity != null) {
|
|
7614
7719
|
params.push(`severity=${severity}`);
|
|
7615
7720
|
}
|
|
7721
|
+
if (category != null) {
|
|
7722
|
+
params.push(`category=${category}`);
|
|
7723
|
+
}
|
|
7724
|
+
if (status != null) {
|
|
7725
|
+
params.push(`status=${status}`);
|
|
7726
|
+
}
|
|
7727
|
+
if (ruleId != null) {
|
|
7728
|
+
params.push(`ruleId=${ruleId}`);
|
|
7729
|
+
}
|
|
7730
|
+
if (targetIp != null) {
|
|
7731
|
+
params.push(`targetIp=${targetIp}`);
|
|
7732
|
+
}
|
|
7733
|
+
if (ruleType != null) {
|
|
7734
|
+
params.push(`ruleType=${ruleType}`);
|
|
7735
|
+
}
|
|
7616
7736
|
return this.rest.get(`${this.baseUrl}/devices-at-risk`, ...params);
|
|
7617
7737
|
}
|
|
7618
7738
|
/**
|