@shieldiot/pulse-lib 1.0.5 → 1.0.6
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/index.d.ts +4 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/common/TimeSeries.d.ts +1 -1
- package/dist/lib/common/TimeSeriesOf2D.d.ts +1 -1
- package/dist/lib/entities/Account.d.ts +2 -2
- package/dist/lib/entities/Account.js.map +1 -1
- package/dist/lib/entities/AccountDTO.d.ts +2 -2
- package/dist/lib/entities/AccountDTO.js.map +1 -1
- package/dist/lib/entities/AccountSettings.d.ts +1 -1
- package/dist/lib/entities/Alert.d.ts +4 -4
- package/dist/lib/entities/Alert.js.map +1 -1
- package/dist/lib/entities/AlertWithDevice.d.ts +4 -4
- package/dist/lib/entities/AlertWithDevice.js.map +1 -1
- package/dist/lib/entities/Device.d.ts +3 -3
- package/dist/lib/entities/Device.js.map +1 -1
- package/dist/lib/entities/DeviceWithEvents.d.ts +1 -1
- package/dist/lib/entities/DeviceWithEvents.js.map +1 -1
- package/dist/lib/entities/Event.d.ts +6 -6
- package/dist/lib/entities/Event.js.map +1 -1
- package/dist/lib/entities/EventWithDevice.d.ts +5 -5
- package/dist/lib/entities/EventWithDevice.js.map +1 -1
- package/dist/lib/entities/Feature.d.ts +1 -1
- package/dist/lib/entities/Feature.js.map +1 -1
- package/dist/lib/entities/Integration.d.ts +3 -3
- package/dist/lib/entities/Integration.js.map +1 -1
- package/dist/lib/entities/Report.d.ts +1 -1
- package/dist/lib/entities/Report.js.map +1 -1
- package/dist/lib/entities/Rule.d.ts +3 -3
- package/dist/lib/entities/Rule.js.map +1 -1
- package/dist/lib/entities/RuleTemplate.d.ts +2 -2
- package/dist/lib/entities/RuleTemplate.js.map +1 -1
- package/dist/lib/entities/StreamAnalyticsConfig.d.ts +2 -2
- package/dist/lib/entities/StreamAnalyticsConfig.js.map +1 -1
- package/dist/lib/entities/StreamConfig.d.ts +4 -4
- package/dist/lib/entities/User.d.ts +2 -2
- package/dist/lib/entities/User.js.map +1 -1
- package/dist/lib/entities/UserMembership.d.ts +2 -2
- package/dist/lib/entities/UserMembership.js.map +1 -1
- package/dist/lib/pulse-client.d.ts +12 -12
- package/dist/lib/pulse-client.js +30 -30
- package/dist/lib/pulse-client.js.map +1 -1
- package/dist/lib/services/sysAccountsService.d.ts +1 -1
- package/dist/lib/services/sysFeaturesService.d.ts +1 -1
- package/dist/lib/services/usrAlertsService.d.ts +9 -9
- package/dist/lib/services/usrDevicesService.d.ts +5 -5
- package/dist/lib/services/usrEventsService.d.ts +7 -7
- package/package.json +1 -1
- package/src/index.ts +4 -3
- package/dist/public-api.d.ts +0 -3
- package/dist/public-api.js +0 -7
- package/dist/public-api.js.map +0 -1
- package/src/config.d.ts +0 -6
- package/src/config.d.ts.map +0 -1
- package/src/config.js +0 -6
- package/src/config.js.map +0 -1
- package/src/index.d.ts +0 -3
- package/src/index.d.ts.map +0 -1
- package/src/index.js +0 -3
- package/src/index.js.map +0 -1
- package/src/lib/common/AccountRole.ts +0 -25
- package/src/lib/common/ConsumptionData.ts +0 -24
- package/src/lib/common/ConsumptionTimeDataPoint.ts +0 -21
- package/src/lib/common/DeviceConfig.ts +0 -22
- package/src/lib/common/DeviceScoreConfig.ts +0 -24
- package/src/lib/common/DevicesAtRiskConfig.ts +0 -16
- package/src/lib/common/EventSeverityConfig.ts +0 -17
- package/src/lib/common/FloatKeyValue.ts +0 -20
- package/src/lib/common/GeoData.ts +0 -38
- package/src/lib/common/GraphSeries.ts +0 -21
- package/src/lib/common/Indicator.ts +0 -32
- package/src/lib/common/IntKeySeriesDataValue.ts +0 -21
- package/src/lib/common/IntKeyValue.ts +0 -20
- package/src/lib/common/Interval.ts +0 -20
- package/src/lib/common/Link.ts +0 -41
- package/src/lib/common/Location.ts +0 -20
- package/src/lib/common/LoginParams.ts +0 -24
- package/src/lib/common/MaliciousIPCard.ts +0 -45
- package/src/lib/common/MaliciousIPData.ts +0 -28
- package/src/lib/common/NetworkMap.ts +0 -22
- package/src/lib/common/Node.ts +0 -54
- package/src/lib/common/SeriesData.ts +0 -22
- package/src/lib/common/SessionTransform.ts +0 -29
- package/src/lib/common/SeverityIntervalTuple.ts +0 -22
- package/src/lib/common/ShieldexConfig.ts +0 -36
- package/src/lib/common/StringIntValue.ts +0 -20
- package/src/lib/common/StringKeyIntValue.ts +0 -20
- package/src/lib/common/StringKeyValue.ts +0 -20
- package/src/lib/common/Thresholds.ts +0 -16
- package/src/lib/common/TimeDataPoint.ts +0 -20
- package/src/lib/common/TimeDataPoint2D.ts +0 -21
- package/src/lib/common/TimeDataPointFloat.ts +0 -20
- package/src/lib/common/TimeFrame.ts +0 -20
- package/src/lib/common/TimeSeries.ts +0 -26
- package/src/lib/common/TimeSeriesOf2D.ts +0 -26
- package/src/lib/common/TimeSeriesOfDataConsumption.ts +0 -26
- package/src/lib/common/TimeSeriesOfFloat.ts +0 -26
- package/src/lib/common/TokenData.ts +0 -39
- package/src/lib/common/Tuple.ts +0 -20
- package/src/lib/common/UsageTransform.ts +0 -37
- package/src/lib/common/ZScore.ts +0 -20
- package/src/lib/common/index.ts +0 -41
- package/src/lib/entities/Account.ts +0 -45
- package/src/lib/entities/AccountDTO.ts +0 -49
- package/src/lib/entities/AccountSettings.ts +0 -31
- package/src/lib/entities/Action.ts +0 -30
- package/src/lib/entities/Alert.ts +0 -91
- package/src/lib/entities/AlertWithDevice.ts +0 -92
- package/src/lib/entities/ApiKey.ts +0 -33
- package/src/lib/entities/AuditLog.ts +0 -39
- package/src/lib/entities/BaseEntity.ts +0 -24
- package/src/lib/entities/BulkDevices.ts +0 -17
- package/src/lib/entities/Checkpoint.ts +0 -71
- package/src/lib/entities/ComplianceReportSettings.ts +0 -28
- package/src/lib/entities/Condition.ts +0 -28
- package/src/lib/entities/ConfigParam.ts +0 -15
- package/src/lib/entities/DNSRecord.ts +0 -40
- package/src/lib/entities/DataIngestion.ts +0 -63
- package/src/lib/entities/DataPointOfDeviceReport.ts +0 -21
- package/src/lib/entities/Device.ts +0 -82
- package/src/lib/entities/DeviceReport.ts +0 -29
- package/src/lib/entities/DeviceWithEvents.ts +0 -86
- package/src/lib/entities/Distribution.ts +0 -25
- package/src/lib/entities/Event.ts +0 -98
- package/src/lib/entities/EventOccurrence.ts +0 -34
- package/src/lib/entities/EventWithDevice.ts +0 -97
- package/src/lib/entities/Feature.ts +0 -18
- package/src/lib/entities/FeaturesGroup.ts +0 -18
- package/src/lib/entities/Group.ts +0 -24
- package/src/lib/entities/Image.ts +0 -18
- package/src/lib/entities/Insight.ts +0 -49
- package/src/lib/entities/InsightQuery.ts +0 -29
- package/src/lib/entities/InsightSpec.ts +0 -28
- package/src/lib/entities/IntDistribution.ts +0 -25
- package/src/lib/entities/Integration.ts +0 -81
- package/src/lib/entities/Member.ts +0 -22
- package/src/lib/entities/Radius.ts +0 -45
- package/src/lib/entities/Report.ts +0 -37
- package/src/lib/entities/Rule.ts +0 -65
- package/src/lib/entities/RuleTemplate.ts +0 -38
- package/src/lib/entities/SIM.ts +0 -32
- package/src/lib/entities/ServiceStatus.ts +0 -26
- package/src/lib/entities/SessionRecord.ts +0 -71
- package/src/lib/entities/Shieldex.ts +0 -23
- package/src/lib/entities/Stream.ts +0 -31
- package/src/lib/entities/StreamAnalyticsConfig.ts +0 -30
- package/src/lib/entities/StreamConfig.ts +0 -52
- package/src/lib/entities/TeaserPopUpSettings.ts +0 -24
- package/src/lib/entities/TimeSeriesOfDeviceReport.ts +0 -26
- package/src/lib/entities/UsageRecord.ts +0 -101
- package/src/lib/entities/User.ts +0 -45
- package/src/lib/entities/UserMembership.ts +0 -38
- package/src/lib/entities/UserMemberships.ts +0 -38
- package/src/lib/entities/index.ts +0 -51
- package/src/lib/enums/AccountStatusCode.ts +0 -35
- package/src/lib/enums/AccountTypeCode.ts +0 -40
- package/src/lib/enums/DataSourceCode.ts +0 -35
- package/src/lib/enums/DeviceActionCode.ts +0 -40
- package/src/lib/enums/DeviceCreationCode.ts +0 -40
- package/src/lib/enums/DeviceIdentityCode.ts +0 -55
- package/src/lib/enums/DeviceStatusCode.ts +0 -40
- package/src/lib/enums/DeviceTypeCode.ts +0 -90
- package/src/lib/enums/DirectionContextCode.ts +0 -40
- package/src/lib/enums/EventCategoryCode.ts +0 -30
- package/src/lib/enums/EventStatusCode.ts +0 -40
- package/src/lib/enums/EventTypeCode.ts +0 -115
- package/src/lib/enums/FeatureCode.ts +0 -70
- package/src/lib/enums/HomePageViewCode.ts +0 -35
- package/src/lib/enums/HttpMethodCode.ts +0 -45
- package/src/lib/enums/InsightStatusCode.ts +0 -35
- package/src/lib/enums/InsightTypeCode.ts +0 -30
- package/src/lib/enums/IntegrationTriggerCode.ts +0 -30
- package/src/lib/enums/IntegrationTypeCode.ts +0 -40
- package/src/lib/enums/MemberRoleCode.ts +0 -40
- package/src/lib/enums/NetworkMapTypeCode.ts +0 -35
- package/src/lib/enums/OperatorCode.ts +0 -75
- package/src/lib/enums/PermissionCode.ts +0 -45
- package/src/lib/enums/ReportTypeCode.ts +0 -35
- package/src/lib/enums/RuleTypeCode.ts +0 -35
- package/src/lib/enums/SeverityTypeCode.ts +0 -40
- package/src/lib/enums/TrafficDirectionCode.ts +0 -35
- package/src/lib/enums/UserStatusCode.ts +0 -40
- package/src/lib/enums/UserTypeCode.ts +0 -40
- package/src/lib/enums/index.ts +0 -29
- package/src/lib/index.ts +0 -4
- package/src/lib/pulse-client.ts +0 -190
- package/src/lib/services/index.ts +0 -26
- package/src/lib/services/services.export.ts +0 -54
- package/src/lib/services/supportStreamAnalyticsConfig.ts +0 -63
- package/src/lib/services/sysAccountsService.ts +0 -90
- package/src/lib/services/sysAuditLogService.ts +0 -72
- package/src/lib/services/sysCheckpointsService.ts +0 -62
- package/src/lib/services/sysConfigService.ts +0 -63
- package/src/lib/services/sysFeaturesService.ts +0 -77
- package/src/lib/services/sysGroupsService.ts +0 -85
- package/src/lib/services/sysInsightsService.ts +0 -122
- package/src/lib/services/sysKeysService.ts +0 -71
- package/src/lib/services/sysMembersService.ts +0 -66
- package/src/lib/services/sysRuleTemplatesService.ts +0 -63
- package/src/lib/services/sysRulesService.ts +0 -79
- package/src/lib/services/sysStatisticsService.ts +0 -50
- package/src/lib/services/sysStreamsService.ts +0 -64
- package/src/lib/services/sysUsersService.ts +0 -89
- package/src/lib/services/usrAlertsService.ts +0 -382
- package/src/lib/services/usrDevicesService.ts +0 -303
- package/src/lib/services/usrEventsService.ts +0 -355
- package/src/lib/services/usrInsightsService.ts +0 -29
- package/src/lib/services/usrIntegrationsService.ts +0 -79
- package/src/lib/services/usrMembersService.ts +0 -77
- package/src/lib/services/usrNetworkService.ts +0 -59
- package/src/lib/services/usrReportsService.ts +0 -114
- package/src/lib/services/usrRulesService.ts +0 -78
- package/src/lib/services/usrUserService.ts +0 -114
- package/src/public-api.d.ts +0 -4
- package/src/public-api.d.ts.map +0 -1
- package/src/public-api.js +0 -7
- package/src/public-api.js.map +0 -1
- package/src/public-api.ts +0 -9
- package/src/utils/ActionResponse.d.ts +0 -6
- package/src/utils/ActionResponse.d.ts.map +0 -1
- package/src/utils/ActionResponse.js +0 -9
- package/src/utils/ActionResponse.js.map +0 -1
- package/src/utils/BaseRestResponse.d.ts +0 -5
- package/src/utils/BaseRestResponse.d.ts.map +0 -1
- package/src/utils/BaseRestResponse.js +0 -8
- package/src/utils/BaseRestResponse.js.map +0 -1
- package/src/utils/EntitiesResponse.d.ts +0 -9
- package/src/utils/EntitiesResponse.d.ts.map +0 -1
- package/src/utils/EntitiesResponse.js +0 -15
- package/src/utils/EntitiesResponse.js.map +0 -1
- package/src/utils/EntityResponse.d.ts +0 -9
- package/src/utils/EntityResponse.d.ts.map +0 -1
- package/src/utils/EntityResponse.js +0 -15
- package/src/utils/EntityResponse.js.map +0 -1
- package/src/utils/index.d.ts +0 -6
- package/src/utils/index.d.ts.map +0 -1
- package/src/utils/index.js +0 -6
- package/src/utils/index.js.map +0 -1
- package/src/utils/rest-axios-setup.d.ts +0 -4
- package/src/utils/rest-axios-setup.d.ts.map +0 -1
- package/src/utils/rest-axios-setup.js +0 -8
- package/src/utils/rest-axios-setup.js.map +0 -1
- package/src/utils/rest-util.d.ts +0 -16
- package/src/utils/rest-util.d.ts.map +0 -1
- package/src/utils/rest-util.js +0 -101
- package/src/utils/rest-util.js.map +0 -1
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { StringKeyValue } from '../common';
|
|
2
|
-
import { EventTypeCode } from '../enums';
|
|
3
|
-
import { SeverityTypeCode } from '../enums';
|
|
4
|
-
import { DeviceActionCode } from '../enums';
|
|
5
|
-
import { BaseEntity } from '../entities';
|
|
6
|
-
import { IntegrationTypeCode } from '../enums';
|
|
7
|
-
import { IntegrationTriggerCode } from '../enums';
|
|
8
|
-
import { HttpMethodCode } from '../enums';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
// Integration specifications
|
|
13
|
-
export class Integration extends BaseEntity {
|
|
14
|
-
|
|
15
|
-
// Account Id
|
|
16
|
-
public accountId: string;
|
|
17
|
-
|
|
18
|
-
// Stream Id (leave empty to apply integration on all streams)
|
|
19
|
-
public streamId: string;
|
|
20
|
-
|
|
21
|
-
// Integration type (HTTP | SMTP | EMAIL ...)
|
|
22
|
-
public type: IntegrationTypeCode;
|
|
23
|
-
|
|
24
|
-
// Integration trigger (EVENT | ACTION ...)
|
|
25
|
-
public trigger: IntegrationTriggerCode;
|
|
26
|
-
|
|
27
|
-
// Integration name
|
|
28
|
-
public name: string;
|
|
29
|
-
|
|
30
|
-
// Is integration enabled
|
|
31
|
-
public enabled: boolean;
|
|
32
|
-
|
|
33
|
-
// Host name or ip address (applicable for all protocols)
|
|
34
|
-
public host: string;
|
|
35
|
-
|
|
36
|
-
// Port number (applicable for all protocols)
|
|
37
|
-
public port: number;
|
|
38
|
-
|
|
39
|
-
// User (applicable for all protocols)
|
|
40
|
-
public user: string;
|
|
41
|
-
|
|
42
|
-
// Password (applicable for all protocols)
|
|
43
|
-
public password: string;
|
|
44
|
-
|
|
45
|
-
// HTTP protocol URL path (applicable for http/https protocols)
|
|
46
|
-
public url: string;
|
|
47
|
-
|
|
48
|
-
// HTTP protocol method: GET | POST | PUT | PATCH | DELETE (applicable for http/https protocols)
|
|
49
|
-
public method: HttpMethodCode;
|
|
50
|
-
|
|
51
|
-
// HTTP protocol Headers (applicable for http/https protocols)
|
|
52
|
-
public headers: StringKeyValue[];
|
|
53
|
-
|
|
54
|
-
// Message content mime type
|
|
55
|
-
public mimeType: string;
|
|
56
|
-
|
|
57
|
-
// SMTP/EMAIL protocol List of recipients
|
|
58
|
-
public recipients: string[];
|
|
59
|
-
|
|
60
|
-
// SMTP/EMAIL protocol Message subject template
|
|
61
|
-
public subject: string;
|
|
62
|
-
|
|
63
|
-
// Message body template
|
|
64
|
-
public body: string;
|
|
65
|
-
|
|
66
|
-
// SMTP/EMAIL sender (will be: system@pulseiot.io if it is empty)
|
|
67
|
-
public from: string;
|
|
68
|
-
|
|
69
|
-
// Activate integration only if the event object type code is in the list (empty list means no filter)
|
|
70
|
-
public eventTypes: EventTypeCode[];
|
|
71
|
-
|
|
72
|
-
// Activate integration only if the event severity matching this value
|
|
73
|
-
public eventSeverity: SeverityTypeCode;
|
|
74
|
-
|
|
75
|
-
// Activate integration only for specific action (applicable for Trigger = ACTION)
|
|
76
|
-
public preventiveAction: DeviceActionCode;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { MemberRoleCode } from '../enums';
|
|
2
|
-
import { BaseEntity } from '../entities';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// Member represents a user in the account and the role he has in this account
|
|
7
|
-
// User may have several memberships for several accounts, each with a different role
|
|
8
|
-
export class Member extends BaseEntity {
|
|
9
|
-
|
|
10
|
-
// User Id
|
|
11
|
-
public userId: string;
|
|
12
|
-
|
|
13
|
-
// Account Id
|
|
14
|
-
public accountId: string;
|
|
15
|
-
|
|
16
|
-
// Member role in the account
|
|
17
|
-
public role: MemberRoleCode;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { StringKeyValue } from '../common';
|
|
2
|
-
import { BaseEntity } from '../entities';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// Radius entity is an IP allocation to device IMSI entry
|
|
7
|
-
export class Radius extends BaseEntity {
|
|
8
|
-
|
|
9
|
-
// Indication to the source location of the record
|
|
10
|
-
public source: string;
|
|
11
|
-
|
|
12
|
-
// Account Id
|
|
13
|
-
public accountId: string;
|
|
14
|
-
|
|
15
|
-
// Stream Id
|
|
16
|
-
public streamId: string;
|
|
17
|
-
|
|
18
|
-
// When the IP was assigned to the subscriber [Epoch milliseconds Timestamp]
|
|
19
|
-
public assignedOn: number;
|
|
20
|
-
|
|
21
|
-
// Device MAC address
|
|
22
|
-
public mac: string;
|
|
23
|
-
|
|
24
|
-
// Device IP address (IPv4 or IPv6)
|
|
25
|
-
public ip: string;
|
|
26
|
-
|
|
27
|
-
// Device mobile subscriber id (IMSI or SUPI for 5G)
|
|
28
|
-
public sid: string;
|
|
29
|
-
|
|
30
|
-
// Device mobile equipment id (IMEI or PEI for 5G)
|
|
31
|
-
public eid: string;
|
|
32
|
-
|
|
33
|
-
// Country name
|
|
34
|
-
public country: string;
|
|
35
|
-
|
|
36
|
-
// Mobile network operator name
|
|
37
|
-
public operator: string;
|
|
38
|
-
|
|
39
|
-
// Custom attributes (key-value pairs)
|
|
40
|
-
public attributes: StringKeyValue[];
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { BaseEntity } from '../entities';
|
|
2
|
-
import { ReportTypeCode } from '../enums';
|
|
3
|
-
import { TimeFrame } from '../common';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
// Report entity represents a system generated and scheduled report data
|
|
8
|
-
export class Report extends BaseEntity {
|
|
9
|
-
|
|
10
|
-
// Account Id
|
|
11
|
-
public accountId: string;
|
|
12
|
-
|
|
13
|
-
// User who owns the report
|
|
14
|
-
public userId: string;
|
|
15
|
-
|
|
16
|
-
// Report name
|
|
17
|
-
public name: string;
|
|
18
|
-
|
|
19
|
-
// Report scheduler in Crontab format (6 space-separated fields: sec, min, hour, day, month, dayOfWeek) see syntax (https://en.wikipedia.org/wiki/Cron) Empty string means no scheduling
|
|
20
|
-
public cron: string;
|
|
21
|
-
|
|
22
|
-
// Email recipients list
|
|
23
|
-
public recipients: string[];
|
|
24
|
-
|
|
25
|
-
// Email subject
|
|
26
|
-
public subject: string;
|
|
27
|
-
|
|
28
|
-
// Report type (COMPLIANCE | DEVICES | EVENTS ...)
|
|
29
|
-
public reportType: ReportTypeCode;
|
|
30
|
-
|
|
31
|
-
// Absolute or relative time (epoch time milliseconds) to define start time and end time
|
|
32
|
-
public timeFrame: TimeFrame;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
package/src/lib/entities/Rule.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { SeverityTypeCode } from '../enums';
|
|
2
|
-
import { BaseEntity } from '../entities';
|
|
3
|
-
import { RuleTypeCode } from '../enums';
|
|
4
|
-
import { DataSourceCode } from '../enums';
|
|
5
|
-
import { Condition } from '../entities';
|
|
6
|
-
import { DeviceTypeCode } from '../enums';
|
|
7
|
-
import { EventTypeCode } from '../enums';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
// Deterministic Rule definition
|
|
12
|
-
export class Rule extends BaseEntity {
|
|
13
|
-
|
|
14
|
-
// Account Id
|
|
15
|
-
public accountId: string;
|
|
16
|
-
|
|
17
|
-
// Stream Id
|
|
18
|
-
public streamId: string;
|
|
19
|
-
|
|
20
|
-
// Rule name
|
|
21
|
-
public name: string;
|
|
22
|
-
|
|
23
|
-
// Rule type
|
|
24
|
-
public type: RuleTypeCode;
|
|
25
|
-
|
|
26
|
-
// Rule description
|
|
27
|
-
public description: string;
|
|
28
|
-
|
|
29
|
-
// Flag to indicate if this is a system rule (read-only) or user-defined rule
|
|
30
|
-
public isSystemRule: boolean;
|
|
31
|
-
|
|
32
|
-
// Flag to indicate if this rule is active (true) or suspended (false), only active rules are evaluated
|
|
33
|
-
public isActiveRule: boolean;
|
|
34
|
-
|
|
35
|
-
// Rule context - what is the data source to evaluate the rule on
|
|
36
|
-
public context: DataSourceCode;
|
|
37
|
-
|
|
38
|
-
// List of AND conditions, all of them must be true for the rule to trigger event
|
|
39
|
-
public matchAll: Condition[];
|
|
40
|
-
|
|
41
|
-
// List of OR conditions, at least one of them must be true for the rule to trigger event}
|
|
42
|
-
public matchAny: Condition[];
|
|
43
|
-
|
|
44
|
-
// Exclude devices with ID included in this list
|
|
45
|
-
public excludeIDs: string[];
|
|
46
|
-
|
|
47
|
-
// Exclude devices with type included in this list
|
|
48
|
-
public excludeTags: string[];
|
|
49
|
-
|
|
50
|
-
// Exclude devices with this type
|
|
51
|
-
public excludeTypes: DeviceTypeCode[];
|
|
52
|
-
|
|
53
|
-
// The time duration (in seconds) for consecutive aggregations
|
|
54
|
-
public timeWindowSec: number;
|
|
55
|
-
|
|
56
|
-
// Set the event type on events generated by this rule
|
|
57
|
-
public setEventType: EventTypeCode;
|
|
58
|
-
|
|
59
|
-
// Set the event severity on events generated by this rule
|
|
60
|
-
public setEventSeverity: SeverityTypeCode;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { DataSourceCode } from '../enums';
|
|
2
|
-
import { EventTypeCode } from '../enums';
|
|
3
|
-
import { SeverityTypeCode } from '../enums';
|
|
4
|
-
import { BaseEntity } from '../entities';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
// RuleTemplate entity is used to define rules quickly based on pre-defined templates
|
|
9
|
-
export class RuleTemplate extends BaseEntity {
|
|
10
|
-
|
|
11
|
-
// Rule template name
|
|
12
|
-
public name: string;
|
|
13
|
-
|
|
14
|
-
// Rule template description
|
|
15
|
-
public description: string;
|
|
16
|
-
|
|
17
|
-
// Rule context - what is the data source to evaluate the rule on
|
|
18
|
-
public context: DataSourceCode;
|
|
19
|
-
|
|
20
|
-
// List of AND conditions, all of them must be true for the rule to trigger event
|
|
21
|
-
public matchAll: string[];
|
|
22
|
-
|
|
23
|
-
// List of OR conditions, at least one of them must be true for the rule to trigger event
|
|
24
|
-
public matchAny: string[];
|
|
25
|
-
|
|
26
|
-
// The time duration (in seconds) for consecutive aggregations
|
|
27
|
-
public timeWindowSec: number;
|
|
28
|
-
|
|
29
|
-
// Set the event type on events generated by this rule
|
|
30
|
-
public setEventType: EventTypeCode;
|
|
31
|
-
|
|
32
|
-
// Set the event severity on events generated by this rule
|
|
33
|
-
public setEventSeverity: SeverityTypeCode;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
package/src/lib/entities/SIM.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
// SIM entity represents a physical SIM (Subscriber Identity Module) card used in an IoT device to access the internet via a cellular provider
|
|
5
|
-
export class SIM {
|
|
6
|
-
|
|
7
|
-
// Unique SIM Identity (ICCID or IMSI or MSISDN or IP in this order)
|
|
8
|
-
public id: string;
|
|
9
|
-
|
|
10
|
-
// The IP allocation of the SIM
|
|
11
|
-
public ip: string;
|
|
12
|
-
|
|
13
|
-
// The unique serial number, integrated circuit card identification
|
|
14
|
-
public iccid: string;
|
|
15
|
-
|
|
16
|
-
// The international mobile subscriber identity number
|
|
17
|
-
public imsi: string;
|
|
18
|
-
|
|
19
|
-
// Mobile Subscriber ISDN Number (the actual phone number with the country prefix)
|
|
20
|
-
public msisdn: string;
|
|
21
|
-
|
|
22
|
-
constructor(id?: string, iP?: string, iCCID?: string, iMSI?: string, mSISDN?: string) {
|
|
23
|
-
if (id !== undefined) { this.id = id; }
|
|
24
|
-
if (iP !== undefined) { this.ip = iP; }
|
|
25
|
-
if (iCCID !== undefined) { this.iccid = iCCID; }
|
|
26
|
-
if (iMSI !== undefined) { this.imsi = iMSI; }
|
|
27
|
-
if (mSISDN !== undefined) { this.msisdn = mSISDN; }
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { BaseEntity } from '../entities';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
// ServiceStatus represents applicative status of a pulse service with a set of metrics
|
|
6
|
-
export class ServiceStatus extends BaseEntity {
|
|
7
|
-
|
|
8
|
-
// Service name
|
|
9
|
-
public serviceName: string;
|
|
10
|
-
|
|
11
|
-
// Host (machine) name
|
|
12
|
-
public hostName: string;
|
|
13
|
-
|
|
14
|
-
// Start time of the service [Epoch milliseconds Timestamp]
|
|
15
|
-
public startTime: number;
|
|
16
|
-
|
|
17
|
-
// Account Id (if applicable)
|
|
18
|
-
public accountId: string;
|
|
19
|
-
|
|
20
|
-
// Map[ of application metrics
|
|
21
|
-
public metrics: any;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { BaseEntity } from '../entities';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
// SessionRecord represents network statistics for a session
|
|
6
|
-
// The unique Id of session record is based on the template: [window_start_time]-[device_id]-[session_id]
|
|
7
|
-
// The createdOn field represents the first communication time of the device within this time window
|
|
8
|
-
// The updatedOn field represents the last communication time of the device within this time window
|
|
9
|
-
export class SessionRecord extends BaseEntity {
|
|
10
|
-
|
|
11
|
-
// Indication to the source location of the record
|
|
12
|
-
public source: string;
|
|
13
|
-
|
|
14
|
-
// Session Id is a unique identifier within the time window
|
|
15
|
-
public sessionId: string;
|
|
16
|
-
|
|
17
|
-
// Account Id
|
|
18
|
-
public accountId: string;
|
|
19
|
-
|
|
20
|
-
// Stream Id
|
|
21
|
-
public streamId: string;
|
|
22
|
-
|
|
23
|
-
// Device Id
|
|
24
|
-
public deviceId: string;
|
|
25
|
-
|
|
26
|
-
// Device SIM card ID (to support multiple SIMs)
|
|
27
|
-
public simId: string;
|
|
28
|
-
|
|
29
|
-
// Start window time [Epoch milliseconds Timestamp]
|
|
30
|
-
public startTime: number;
|
|
31
|
-
|
|
32
|
-
// End window time [Epoch milliseconds Timestamp]
|
|
33
|
-
public endTime: number;
|
|
34
|
-
|
|
35
|
-
// Device (source) IP (the IP that was allocated to this device in the time this record was created)
|
|
36
|
-
public deviceIp: string;
|
|
37
|
-
|
|
38
|
-
// Device (source) port
|
|
39
|
-
public devicePort: number;
|
|
40
|
-
|
|
41
|
-
// Destination (remote) IP
|
|
42
|
-
public dstIP: string;
|
|
43
|
-
|
|
44
|
-
// Destination (remote) Port
|
|
45
|
-
public dstPort: number;
|
|
46
|
-
|
|
47
|
-
// Destination (remote) DNS name FQDN
|
|
48
|
-
public dstDns: string;
|
|
49
|
-
|
|
50
|
-
// Protocol
|
|
51
|
-
public protocol: string;
|
|
52
|
-
|
|
53
|
-
// Number of incoming packets (to the device)
|
|
54
|
-
public packetsIn: number;
|
|
55
|
-
|
|
56
|
-
// Number of outgoing packets (from the device)
|
|
57
|
-
public packetsOut: number;
|
|
58
|
-
|
|
59
|
-
// Total number of incoming bytes (to the device)
|
|
60
|
-
public bytesIn: number;
|
|
61
|
-
|
|
62
|
-
// Total number of outgoing bytes (from the device)
|
|
63
|
-
public bytesOut: number;
|
|
64
|
-
|
|
65
|
-
// List of labels
|
|
66
|
-
public labels: string[];
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { BaseEntity } from '../entities';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
// Shieldex is a security score per account level calculated periodically
|
|
6
|
-
export class Shieldex extends BaseEntity {
|
|
7
|
-
|
|
8
|
-
// Account Id
|
|
9
|
-
public accountId: string;
|
|
10
|
-
|
|
11
|
-
// Stream Id
|
|
12
|
-
public streamId: string;
|
|
13
|
-
|
|
14
|
-
// Total number of events per account per stream
|
|
15
|
-
public eventCount: number;
|
|
16
|
-
|
|
17
|
-
// Shield index score (1-100)
|
|
18
|
-
public score: number;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { StringKeyValue } from '../common';
|
|
2
|
-
import { StreamConfig } from '../entities';
|
|
3
|
-
import { BaseEntity } from '../entities';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
// Stream represents data stream configuration for group of identical IoT devices service the same purpose and sharing the same attributes (e.g. water meter, point-of-sale, ATM IP camera etc)
|
|
8
|
-
export class Stream extends BaseEntity {
|
|
9
|
-
|
|
10
|
-
// Account Id
|
|
11
|
-
public accountId: string;
|
|
12
|
-
|
|
13
|
-
// Stream name
|
|
14
|
-
public name: string;
|
|
15
|
-
|
|
16
|
-
// Stream description
|
|
17
|
-
public description: string;
|
|
18
|
-
|
|
19
|
-
// Flag to indicate if stream is enabled (to be processed)
|
|
20
|
-
public enabled: boolean;
|
|
21
|
-
|
|
22
|
-
// List of custom attributes (key-value pairs)
|
|
23
|
-
public labels: StringKeyValue[];
|
|
24
|
-
|
|
25
|
-
// Stream configuration
|
|
26
|
-
public config: StreamConfig;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { DeviceConfig } from '../common';
|
|
2
|
-
import { BaseEntity } from '../entities';
|
|
3
|
-
import { Thresholds } from '../common';
|
|
4
|
-
import { ShieldexConfig } from '../common';
|
|
5
|
-
import { EventSeverityConfig } from '../common';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
// Internal structure used by the AI to fine-tune the analytics thresholds
|
|
10
|
-
export class StreamAnalyticsConfig extends BaseEntity {
|
|
11
|
-
|
|
12
|
-
// Account Id
|
|
13
|
-
public accountId: string;
|
|
14
|
-
|
|
15
|
-
// Set of stream configuration thresholds
|
|
16
|
-
public thresholds: Thresholds;
|
|
17
|
-
|
|
18
|
-
// Set of stream shieldex configuration
|
|
19
|
-
public shieldexConfig: ShieldexConfig;
|
|
20
|
-
|
|
21
|
-
// Set of event severity configuration
|
|
22
|
-
public eventSeverityConfig: EventSeverityConfig;
|
|
23
|
-
|
|
24
|
-
// Set of device related configurations
|
|
25
|
-
public deviceConfig: DeviceConfig;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { DeviceConfig } from '../common';
|
|
2
|
-
import { DataIngestion } from '../entities';
|
|
3
|
-
import { SessionTransform } from '../common';
|
|
4
|
-
import { UsageTransform } from '../common';
|
|
5
|
-
import { Thresholds } from '../common';
|
|
6
|
-
import { ShieldexConfig } from '../common';
|
|
7
|
-
import { EventSeverityConfig } from '../common';
|
|
8
|
-
import { DeviceActionCode } from '../enums';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
// StreamConfig is a stream configuration description
|
|
13
|
-
export class StreamConfig {
|
|
14
|
-
|
|
15
|
-
// Stream data ingestion pipeline
|
|
16
|
-
public ingest: DataIngestion;
|
|
17
|
-
|
|
18
|
-
// Session data transform parameters (normalize values)
|
|
19
|
-
public sessionTransform: SessionTransform;
|
|
20
|
-
|
|
21
|
-
// Usage data transform parameters (normalize values)
|
|
22
|
-
public usageTransform: UsageTransform;
|
|
23
|
-
|
|
24
|
-
// Set of stream configuration thresholds
|
|
25
|
-
public thresholds: Thresholds;
|
|
26
|
-
|
|
27
|
-
// Set of stream shieldex configuration
|
|
28
|
-
public shieldexConfig: ShieldexConfig;
|
|
29
|
-
|
|
30
|
-
// Set of event severity configuration
|
|
31
|
-
public eventSeverityConfig: EventSeverityConfig;
|
|
32
|
-
|
|
33
|
-
// Set of available preventive actions to apply
|
|
34
|
-
public preventiveActions: DeviceActionCode[];
|
|
35
|
-
|
|
36
|
-
// Set of device related configurations
|
|
37
|
-
public deviceConfig: DeviceConfig;
|
|
38
|
-
|
|
39
|
-
constructor(ingest?: DataIngestion, sessionTransform?: SessionTransform, usageTransform?: UsageTransform, thresholds?: Thresholds, shieldexConfig?: ShieldexConfig, eventSeverityConfig?: EventSeverityConfig, preventiveActions?: DeviceActionCode[], deviceConfig?: DeviceConfig) {
|
|
40
|
-
if (ingest !== undefined) { this.ingest = ingest; }
|
|
41
|
-
if (sessionTransform !== undefined) { this.sessionTransform = sessionTransform; }
|
|
42
|
-
if (usageTransform !== undefined) { this.usageTransform = usageTransform; }
|
|
43
|
-
if (thresholds !== undefined) { this.thresholds = thresholds; }
|
|
44
|
-
if (shieldexConfig !== undefined) { this.shieldexConfig = shieldexConfig; }
|
|
45
|
-
if (eventSeverityConfig !== undefined) { this.eventSeverityConfig = eventSeverityConfig; }
|
|
46
|
-
if (preventiveActions !== undefined) { this.preventiveActions = preventiveActions; }
|
|
47
|
-
if (deviceConfig !== undefined) { this.deviceConfig = deviceConfig; }
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
// TeaserPopUpSettings is a set of account's teaser pop up settings.
|
|
5
|
-
export class TeaserPopUpSettings {
|
|
6
|
-
|
|
7
|
-
// Teaser Pop Up header
|
|
8
|
-
public header: string;
|
|
9
|
-
|
|
10
|
-
// Teaser Pop Up content
|
|
11
|
-
public content: string;
|
|
12
|
-
|
|
13
|
-
// Teaser Pop Up notification content
|
|
14
|
-
public notificationContent: string;
|
|
15
|
-
|
|
16
|
-
constructor(header?: string, content?: string, notificationContent?: string) {
|
|
17
|
-
if (header !== undefined) { this.header = header; }
|
|
18
|
-
if (content !== undefined) { this.content = content; }
|
|
19
|
-
if (notificationContent !== undefined) { this.notificationContent = notificationContent; }
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { TimeFrame } from '../common';
|
|
2
|
-
import { DataPointOfDeviceReport } from '../entities';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// TimeSeriesOfDeviceReport model represents a time series of DeviceReport
|
|
7
|
-
export class TimeSeriesOfDeviceReport {
|
|
8
|
-
|
|
9
|
-
// Name of the time series
|
|
10
|
-
public name: string;
|
|
11
|
-
|
|
12
|
-
// Range of the series (from ... to)
|
|
13
|
-
public range: TimeFrame;
|
|
14
|
-
|
|
15
|
-
// Series of device report data points
|
|
16
|
-
public values: DataPointOfDeviceReport[];
|
|
17
|
-
|
|
18
|
-
constructor(name?: string, range?: TimeFrame, values?: DataPointOfDeviceReport[]) {
|
|
19
|
-
if (name !== undefined) { this.name = name; }
|
|
20
|
-
if (range !== undefined) { this.range = range; }
|
|
21
|
-
if (values !== undefined) { this.values = values; }
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|