@shieldiot/ngx-pulseiot-lib 2.18.1119 → 2.18.1120
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.
|
@@ -6553,7 +6553,7 @@ class UsrEventsService {
|
|
|
6553
6553
|
/**
|
|
6554
6554
|
* Find events by query
|
|
6555
6555
|
*/
|
|
6556
|
-
find(streamId, deviceId, alertId, search, from, to, type, severity, sort, page, size) {
|
|
6556
|
+
find(streamId, deviceId, alertId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType, sort, page, size) {
|
|
6557
6557
|
const params = [];
|
|
6558
6558
|
if (streamId != null) {
|
|
6559
6559
|
params.push(`streamId=${streamId}`);
|
|
@@ -6579,6 +6579,21 @@ class UsrEventsService {
|
|
|
6579
6579
|
if (severity != null) {
|
|
6580
6580
|
params.push(`severity=${severity}`);
|
|
6581
6581
|
}
|
|
6582
|
+
if (category != null) {
|
|
6583
|
+
params.push(`category=${category}`);
|
|
6584
|
+
}
|
|
6585
|
+
if (status != null) {
|
|
6586
|
+
params.push(`status=${status}`);
|
|
6587
|
+
}
|
|
6588
|
+
if (ruleId != null) {
|
|
6589
|
+
params.push(`ruleId=${ruleId}`);
|
|
6590
|
+
}
|
|
6591
|
+
if (targetIp != null) {
|
|
6592
|
+
params.push(`targetIp=${targetIp}`);
|
|
6593
|
+
}
|
|
6594
|
+
if (ruleType != null) {
|
|
6595
|
+
params.push(`ruleType=${ruleType}`);
|
|
6596
|
+
}
|
|
6582
6597
|
if (sort != null) {
|
|
6583
6598
|
params.push(`sort=${sort}`);
|
|
6584
6599
|
}
|
|
@@ -6593,7 +6608,7 @@ class UsrEventsService {
|
|
|
6593
6608
|
/**
|
|
6594
6609
|
* Export events by query to a file in a stream of CSV | JSON | XML | XLSX
|
|
6595
6610
|
*/
|
|
6596
|
-
export(format, streamId, deviceId, alertId, search, from, to, type, severity, sort, page, size) {
|
|
6611
|
+
export(format, streamId, deviceId, alertId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType, sort, page, size) {
|
|
6597
6612
|
const params = [];
|
|
6598
6613
|
if (streamId != null) {
|
|
6599
6614
|
params.push(`streamId=${streamId}`);
|
|
@@ -6619,6 +6634,21 @@ class UsrEventsService {
|
|
|
6619
6634
|
if (severity != null) {
|
|
6620
6635
|
params.push(`severity=${severity}`);
|
|
6621
6636
|
}
|
|
6637
|
+
if (category != null) {
|
|
6638
|
+
params.push(`category=${category}`);
|
|
6639
|
+
}
|
|
6640
|
+
if (status != null) {
|
|
6641
|
+
params.push(`status=${status}`);
|
|
6642
|
+
}
|
|
6643
|
+
if (ruleId != null) {
|
|
6644
|
+
params.push(`ruleId=${ruleId}`);
|
|
6645
|
+
}
|
|
6646
|
+
if (targetIp != null) {
|
|
6647
|
+
params.push(`targetIp=${targetIp}`);
|
|
6648
|
+
}
|
|
6649
|
+
if (ruleType != null) {
|
|
6650
|
+
params.push(`ruleType=${ruleType}`);
|
|
6651
|
+
}
|
|
6622
6652
|
if (sort != null) {
|
|
6623
6653
|
params.push(`sort=${sort}`);
|
|
6624
6654
|
}
|
|
@@ -6639,7 +6669,7 @@ class UsrEventsService {
|
|
|
6639
6669
|
/**
|
|
6640
6670
|
* Get top 10 events by their severity and time
|
|
6641
6671
|
*/
|
|
6642
|
-
findTop(streamId, deviceId, search, from, to, type, severity, sort, page, size) {
|
|
6672
|
+
findTop(streamId, deviceId, alertId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType, sort, page, size) {
|
|
6643
6673
|
const params = [];
|
|
6644
6674
|
if (streamId != null) {
|
|
6645
6675
|
params.push(`streamId=${streamId}`);
|
|
@@ -6647,6 +6677,9 @@ class UsrEventsService {
|
|
|
6647
6677
|
if (deviceId != null) {
|
|
6648
6678
|
params.push(`deviceId=${deviceId}`);
|
|
6649
6679
|
}
|
|
6680
|
+
if (alertId != null) {
|
|
6681
|
+
params.push(`alertId=${alertId}`);
|
|
6682
|
+
}
|
|
6650
6683
|
if (search != null) {
|
|
6651
6684
|
params.push(`search=${search}`);
|
|
6652
6685
|
}
|
|
@@ -6662,6 +6695,21 @@ class UsrEventsService {
|
|
|
6662
6695
|
if (severity != null) {
|
|
6663
6696
|
params.push(`severity=${severity}`);
|
|
6664
6697
|
}
|
|
6698
|
+
if (category != null) {
|
|
6699
|
+
params.push(`category=${category}`);
|
|
6700
|
+
}
|
|
6701
|
+
if (status != null) {
|
|
6702
|
+
params.push(`status=${status}`);
|
|
6703
|
+
}
|
|
6704
|
+
if (ruleId != null) {
|
|
6705
|
+
params.push(`ruleId=${ruleId}`);
|
|
6706
|
+
}
|
|
6707
|
+
if (targetIp != null) {
|
|
6708
|
+
params.push(`targetIp=${targetIp}`);
|
|
6709
|
+
}
|
|
6710
|
+
if (ruleType != null) {
|
|
6711
|
+
params.push(`ruleType=${ruleType}`);
|
|
6712
|
+
}
|
|
6665
6713
|
if (sort != null) {
|
|
6666
6714
|
params.push(`sort=${sort}`);
|
|
6667
6715
|
}
|
|
@@ -6676,7 +6724,7 @@ class UsrEventsService {
|
|
|
6676
6724
|
/**
|
|
6677
6725
|
* Get top 10 events by their severity and time
|
|
6678
6726
|
*/
|
|
6679
|
-
findTopMaliciousIPs(streamId, top) {
|
|
6727
|
+
findTopMaliciousIPs(streamId, top, from, to) {
|
|
6680
6728
|
const params = [];
|
|
6681
6729
|
if (streamId != null) {
|
|
6682
6730
|
params.push(`streamId=${streamId}`);
|
|
@@ -6684,12 +6732,18 @@ class UsrEventsService {
|
|
|
6684
6732
|
if (top != null) {
|
|
6685
6733
|
params.push(`top=${top}`);
|
|
6686
6734
|
}
|
|
6735
|
+
if (from != null) {
|
|
6736
|
+
params.push(`from=${from}`);
|
|
6737
|
+
}
|
|
6738
|
+
if (to != null) {
|
|
6739
|
+
params.push(`to=${to}`);
|
|
6740
|
+
}
|
|
6687
6741
|
return this.rest.get(`${this.baseUrl}/top-malicious-ips`, ...params);
|
|
6688
6742
|
}
|
|
6689
6743
|
/**
|
|
6690
6744
|
* Get events distribution by type filtered by query
|
|
6691
6745
|
*/
|
|
6692
|
-
countByType(streamId, deviceId, alertId, search, from, to, type, severity) {
|
|
6746
|
+
countByType(streamId, deviceId, alertId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType) {
|
|
6693
6747
|
const params = [];
|
|
6694
6748
|
if (streamId != null) {
|
|
6695
6749
|
params.push(`streamId=${streamId}`);
|
|
@@ -6715,12 +6769,27 @@ class UsrEventsService {
|
|
|
6715
6769
|
if (severity != null) {
|
|
6716
6770
|
params.push(`severity=${severity}`);
|
|
6717
6771
|
}
|
|
6772
|
+
if (category != null) {
|
|
6773
|
+
params.push(`category=${category}`);
|
|
6774
|
+
}
|
|
6775
|
+
if (status != null) {
|
|
6776
|
+
params.push(`status=${status}`);
|
|
6777
|
+
}
|
|
6778
|
+
if (ruleId != null) {
|
|
6779
|
+
params.push(`ruleId=${ruleId}`);
|
|
6780
|
+
}
|
|
6781
|
+
if (targetIp != null) {
|
|
6782
|
+
params.push(`targetIp=${targetIp}`);
|
|
6783
|
+
}
|
|
6784
|
+
if (ruleType != null) {
|
|
6785
|
+
params.push(`ruleType=${ruleType}`);
|
|
6786
|
+
}
|
|
6718
6787
|
return this.rest.get(`${this.baseUrl}/count/by-type`, ...params);
|
|
6719
6788
|
}
|
|
6720
6789
|
/**
|
|
6721
6790
|
* Get events distribution by status filtered by query
|
|
6722
6791
|
*/
|
|
6723
|
-
countByStatus(streamId, deviceId, alertId, search, from, to, type, severity) {
|
|
6792
|
+
countByStatus(streamId, deviceId, alertId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType) {
|
|
6724
6793
|
const params = [];
|
|
6725
6794
|
if (streamId != null) {
|
|
6726
6795
|
params.push(`streamId=${streamId}`);
|
|
@@ -6746,12 +6815,27 @@ class UsrEventsService {
|
|
|
6746
6815
|
if (severity != null) {
|
|
6747
6816
|
params.push(`severity=${severity}`);
|
|
6748
6817
|
}
|
|
6818
|
+
if (category != null) {
|
|
6819
|
+
params.push(`category=${category}`);
|
|
6820
|
+
}
|
|
6821
|
+
if (status != null) {
|
|
6822
|
+
params.push(`status=${status}`);
|
|
6823
|
+
}
|
|
6824
|
+
if (ruleId != null) {
|
|
6825
|
+
params.push(`ruleId=${ruleId}`);
|
|
6826
|
+
}
|
|
6827
|
+
if (targetIp != null) {
|
|
6828
|
+
params.push(`targetIp=${targetIp}`);
|
|
6829
|
+
}
|
|
6830
|
+
if (ruleType != null) {
|
|
6831
|
+
params.push(`ruleType=${ruleType}`);
|
|
6832
|
+
}
|
|
6749
6833
|
return this.rest.get(`${this.baseUrl}/count/by-status`, ...params);
|
|
6750
6834
|
}
|
|
6751
6835
|
/**
|
|
6752
6836
|
* Get events distribution by severity filtered by query
|
|
6753
6837
|
*/
|
|
6754
|
-
countBySeverity(streamId, deviceId, alertId, search, from, to, type, severity) {
|
|
6838
|
+
countBySeverity(streamId, deviceId, alertId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType) {
|
|
6755
6839
|
const params = [];
|
|
6756
6840
|
if (streamId != null) {
|
|
6757
6841
|
params.push(`streamId=${streamId}`);
|
|
@@ -6777,12 +6861,27 @@ class UsrEventsService {
|
|
|
6777
6861
|
if (severity != null) {
|
|
6778
6862
|
params.push(`severity=${severity}`);
|
|
6779
6863
|
}
|
|
6864
|
+
if (category != null) {
|
|
6865
|
+
params.push(`category=${category}`);
|
|
6866
|
+
}
|
|
6867
|
+
if (status != null) {
|
|
6868
|
+
params.push(`status=${status}`);
|
|
6869
|
+
}
|
|
6870
|
+
if (ruleId != null) {
|
|
6871
|
+
params.push(`ruleId=${ruleId}`);
|
|
6872
|
+
}
|
|
6873
|
+
if (targetIp != null) {
|
|
6874
|
+
params.push(`targetIp=${targetIp}`);
|
|
6875
|
+
}
|
|
6876
|
+
if (ruleType != null) {
|
|
6877
|
+
params.push(`ruleType=${ruleType}`);
|
|
6878
|
+
}
|
|
6780
6879
|
return this.rest.get(`${this.baseUrl}/count/by-severity`, ...params);
|
|
6781
6880
|
}
|
|
6782
6881
|
/**
|
|
6783
6882
|
* Get events distribution by rule filtered by query
|
|
6784
6883
|
*/
|
|
6785
|
-
countByRule(streamId, deviceId, alertId, search, from, to, type, severity) {
|
|
6884
|
+
countByRule(streamId, deviceId, alertId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType) {
|
|
6786
6885
|
const params = [];
|
|
6787
6886
|
if (streamId != null) {
|
|
6788
6887
|
params.push(`streamId=${streamId}`);
|
|
@@ -6808,12 +6907,27 @@ class UsrEventsService {
|
|
|
6808
6907
|
if (severity != null) {
|
|
6809
6908
|
params.push(`severity=${severity}`);
|
|
6810
6909
|
}
|
|
6910
|
+
if (category != null) {
|
|
6911
|
+
params.push(`category=${category}`);
|
|
6912
|
+
}
|
|
6913
|
+
if (status != null) {
|
|
6914
|
+
params.push(`status=${status}`);
|
|
6915
|
+
}
|
|
6916
|
+
if (ruleId != null) {
|
|
6917
|
+
params.push(`ruleId=${ruleId}`);
|
|
6918
|
+
}
|
|
6919
|
+
if (targetIp != null) {
|
|
6920
|
+
params.push(`targetIp=${targetIp}`);
|
|
6921
|
+
}
|
|
6922
|
+
if (ruleType != null) {
|
|
6923
|
+
params.push(`ruleType=${ruleType}`);
|
|
6924
|
+
}
|
|
6811
6925
|
return this.rest.get(`${this.baseUrl}/count/by-rule`, ...params);
|
|
6812
6926
|
}
|
|
6813
6927
|
/**
|
|
6814
6928
|
* Get events distribution by category filtered by query
|
|
6815
6929
|
*/
|
|
6816
|
-
countByCategory(streamId, deviceId, alertId, search, from, to, type, severity) {
|
|
6930
|
+
countByCategory(streamId, deviceId, alertId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType) {
|
|
6817
6931
|
const params = [];
|
|
6818
6932
|
if (streamId != null) {
|
|
6819
6933
|
params.push(`streamId=${streamId}`);
|
|
@@ -6839,6 +6953,21 @@ class UsrEventsService {
|
|
|
6839
6953
|
if (severity != null) {
|
|
6840
6954
|
params.push(`severity=${severity}`);
|
|
6841
6955
|
}
|
|
6956
|
+
if (category != null) {
|
|
6957
|
+
params.push(`category=${category}`);
|
|
6958
|
+
}
|
|
6959
|
+
if (status != null) {
|
|
6960
|
+
params.push(`status=${status}`);
|
|
6961
|
+
}
|
|
6962
|
+
if (ruleId != null) {
|
|
6963
|
+
params.push(`ruleId=${ruleId}`);
|
|
6964
|
+
}
|
|
6965
|
+
if (targetIp != null) {
|
|
6966
|
+
params.push(`targetIp=${targetIp}`);
|
|
6967
|
+
}
|
|
6968
|
+
if (ruleType != null) {
|
|
6969
|
+
params.push(`ruleType=${ruleType}`);
|
|
6970
|
+
}
|
|
6842
6971
|
return this.rest.get(`${this.baseUrl}/count/by-category`, ...params);
|
|
6843
6972
|
}
|
|
6844
6973
|
/**
|
|
@@ -6850,7 +6979,7 @@ class UsrEventsService {
|
|
|
6850
6979
|
/**
|
|
6851
6980
|
* Get events histogram over the provided time period
|
|
6852
6981
|
*/
|
|
6853
|
-
eventsTimeline(streamId, deviceId, alertId, dimension,
|
|
6982
|
+
eventsTimeline(streamId, deviceId, alertId, dimension, from, to, type, severity, category, status, ruleId, targetIp, ruleType) {
|
|
6854
6983
|
const params = [];
|
|
6855
6984
|
if (streamId != null) {
|
|
6856
6985
|
params.push(`streamId=${streamId}`);
|
|
@@ -6864,9 +6993,6 @@ class UsrEventsService {
|
|
|
6864
6993
|
if (dimension != null) {
|
|
6865
6994
|
params.push(`dimension=${dimension}`);
|
|
6866
6995
|
}
|
|
6867
|
-
if (search != null) {
|
|
6868
|
-
params.push(`search=${search}`);
|
|
6869
|
-
}
|
|
6870
6996
|
if (from != null) {
|
|
6871
6997
|
params.push(`from=${from}`);
|
|
6872
6998
|
}
|
|
@@ -6879,22 +7005,43 @@ class UsrEventsService {
|
|
|
6879
7005
|
if (severity != null) {
|
|
6880
7006
|
params.push(`severity=${severity}`);
|
|
6881
7007
|
}
|
|
7008
|
+
if (category != null) {
|
|
7009
|
+
params.push(`category=${category}`);
|
|
7010
|
+
}
|
|
7011
|
+
if (status != null) {
|
|
7012
|
+
params.push(`status=${status}`);
|
|
7013
|
+
}
|
|
7014
|
+
if (ruleId != null) {
|
|
7015
|
+
params.push(`ruleId=${ruleId}`);
|
|
7016
|
+
}
|
|
7017
|
+
if (targetIp != null) {
|
|
7018
|
+
params.push(`targetIp=${targetIp}`);
|
|
7019
|
+
}
|
|
7020
|
+
if (ruleType != null) {
|
|
7021
|
+
params.push(`ruleType=${ruleType}`);
|
|
7022
|
+
}
|
|
6882
7023
|
return this.rest.get(`${this.baseUrl}/timeline`, ...params);
|
|
6883
7024
|
}
|
|
6884
7025
|
/**
|
|
6885
7026
|
* Get shieldex histogram over the provided time period
|
|
6886
7027
|
*/
|
|
6887
|
-
shieldexTimeline(streamId) {
|
|
7028
|
+
shieldexTimeline(streamId, from, to) {
|
|
6888
7029
|
const params = [];
|
|
6889
7030
|
if (streamId != null) {
|
|
6890
7031
|
params.push(`streamId=${streamId}`);
|
|
6891
7032
|
}
|
|
7033
|
+
if (from != null) {
|
|
7034
|
+
params.push(`from=${from}`);
|
|
7035
|
+
}
|
|
7036
|
+
if (to != null) {
|
|
7037
|
+
params.push(`to=${to}`);
|
|
7038
|
+
}
|
|
6892
7039
|
return this.rest.get(`${this.baseUrl}/shieldex/timeline`, ...params);
|
|
6893
7040
|
}
|
|
6894
7041
|
/**
|
|
6895
7042
|
* Get devices at risk number for specific events criteria
|
|
6896
7043
|
*/
|
|
6897
|
-
getDevicesAtRisk(streamId, search, from, to, type, severity) {
|
|
7044
|
+
getDevicesAtRisk(streamId, search, from, to, type, severity, category, status, ruleId, targetIp, ruleType) {
|
|
6898
7045
|
const params = [];
|
|
6899
7046
|
if (streamId != null) {
|
|
6900
7047
|
params.push(`streamId=${streamId}`);
|
|
@@ -6914,6 +7061,21 @@ class UsrEventsService {
|
|
|
6914
7061
|
if (severity != null) {
|
|
6915
7062
|
params.push(`severity=${severity}`);
|
|
6916
7063
|
}
|
|
7064
|
+
if (category != null) {
|
|
7065
|
+
params.push(`category=${category}`);
|
|
7066
|
+
}
|
|
7067
|
+
if (status != null) {
|
|
7068
|
+
params.push(`status=${status}`);
|
|
7069
|
+
}
|
|
7070
|
+
if (ruleId != null) {
|
|
7071
|
+
params.push(`ruleId=${ruleId}`);
|
|
7072
|
+
}
|
|
7073
|
+
if (targetIp != null) {
|
|
7074
|
+
params.push(`targetIp=${targetIp}`);
|
|
7075
|
+
}
|
|
7076
|
+
if (ruleType != null) {
|
|
7077
|
+
params.push(`ruleType=${ruleType}`);
|
|
7078
|
+
}
|
|
6917
7079
|
return this.rest.get(`${this.baseUrl}/devices-at-risk`, ...params);
|
|
6918
7080
|
}
|
|
6919
7081
|
/**
|