@adtrackify/at-tracking-event-types 4.12.1 → 4.13.0
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/types/api/emq/emq-health.d.ts +2 -1
- package/dist/cjs/types/api/health/health-condition-types.d.ts +11 -0
- package/dist/cjs/types/api/health/health-condition-types.js +6 -0
- package/dist/cjs/types/api/health/health-condition-types.js.map +1 -1
- package/dist/cjs/types/api/service-events/service-event-details.d.ts +9 -0
- package/dist/cjs/types/api/service-events/service-event-enums.d.ts +1 -0
- package/dist/cjs/types/api/service-events/service-event-enums.js +1 -0
- package/dist/cjs/types/api/service-events/service-event-enums.js.map +1 -1
- package/dist/esm/types/api/emq/emq-health.d.ts +2 -1
- package/dist/esm/types/api/health/health-condition-types.d.ts +11 -0
- package/dist/esm/types/api/health/health-condition-types.js +5 -1
- package/dist/esm/types/api/health/health-condition-types.js.map +1 -1
- package/dist/esm/types/api/service-events/service-event-details.d.ts +9 -0
- package/dist/esm/types/api/service-events/service-event-enums.d.ts +1 -0
- package/dist/esm/types/api/service-events/service-event-enums.js +1 -0
- package/dist/esm/types/api/service-events/service-event-enums.js.map +1 -1
- package/package.json +1 -1
|
@@ -11,7 +11,8 @@ export interface EmqHealthStatus {
|
|
|
11
11
|
lastCheckedAt: string;
|
|
12
12
|
latestDataPoint?: EmqDataPoint;
|
|
13
13
|
previousDataPoint?: EmqDataPoint;
|
|
14
|
-
|
|
14
|
+
conditions: HealthCondition[];
|
|
15
|
+
activeConditions?: HealthCondition[];
|
|
15
16
|
scoreTrend?: EMQ_TREND;
|
|
16
17
|
lastNotificationSentAt?: string;
|
|
17
18
|
notificationCooldownMinutes: number;
|
|
@@ -10,6 +10,10 @@ export declare type ConfirmationStrategy = {
|
|
|
10
10
|
windowMinutes: number;
|
|
11
11
|
thresholdCount: number;
|
|
12
12
|
};
|
|
13
|
+
export declare enum CONDITION_STATUS {
|
|
14
|
+
ACTIVE = "active",
|
|
15
|
+
DISMISSED = "dismissed"
|
|
16
|
+
}
|
|
13
17
|
export interface HealthCondition {
|
|
14
18
|
conditionId: string;
|
|
15
19
|
notificationId?: string;
|
|
@@ -20,6 +24,11 @@ export interface HealthCondition {
|
|
|
20
24
|
detectedAt: string;
|
|
21
25
|
data: Record<string, unknown>;
|
|
22
26
|
confirmation: ConfirmationStrategy;
|
|
27
|
+
status: CONDITION_STATUS;
|
|
28
|
+
lastDetectedAt: string;
|
|
29
|
+
dismissedAt?: string;
|
|
30
|
+
dismissedSeverity?: NOTIFICATION_SEVERITY;
|
|
31
|
+
occurrenceCount: number;
|
|
23
32
|
}
|
|
24
33
|
export interface RawDetection {
|
|
25
34
|
conditionId: string;
|
|
@@ -33,4 +42,6 @@ export interface ConditionEngineResult {
|
|
|
33
42
|
newDetections: RawDetection[];
|
|
34
43
|
resolvedConditions: HealthCondition[];
|
|
35
44
|
continuingConditions: HealthCondition[];
|
|
45
|
+
reRaisedConditions: HealthCondition[];
|
|
46
|
+
continuingDismissed: HealthCondition[];
|
|
36
47
|
}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CONDITION_STATUS = void 0;
|
|
4
|
+
var CONDITION_STATUS;
|
|
5
|
+
(function (CONDITION_STATUS) {
|
|
6
|
+
CONDITION_STATUS["ACTIVE"] = "active";
|
|
7
|
+
CONDITION_STATUS["DISMISSED"] = "dismissed";
|
|
8
|
+
})(CONDITION_STATUS = exports.CONDITION_STATUS || (exports.CONDITION_STATUS = {}));
|
|
3
9
|
//# sourceMappingURL=health-condition-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health-condition-types.js","sourceRoot":"","sources":["../../../../../src/types/api/health/health-condition-types.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"health-condition-types.js","sourceRoot":"","sources":["../../../../../src/types/api/health/health-condition-types.ts"],"names":[],"mappings":";;;AA0BA,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAE1B,qCAAiB,CAAA;IAEjB,2CAAuB,CAAA;AACzB,CAAC,EALW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAK3B"}
|
|
@@ -27,6 +27,15 @@ export interface EmqHealthConditionResolvedEventDetail {
|
|
|
27
27
|
notificationId: string;
|
|
28
28
|
resolvedMessage: string;
|
|
29
29
|
}
|
|
30
|
+
export interface EmqHealthConditionDismissedEventDetail {
|
|
31
|
+
destinationId: string;
|
|
32
|
+
accountId: string;
|
|
33
|
+
pixelId: string;
|
|
34
|
+
conditionId: string;
|
|
35
|
+
conditionType: string;
|
|
36
|
+
notificationId?: string;
|
|
37
|
+
dismissedAt: string;
|
|
38
|
+
}
|
|
30
39
|
export interface DestinationForwardingErrorEventDetail {
|
|
31
40
|
destinationId: string;
|
|
32
41
|
accountId: string;
|
|
@@ -8,6 +8,7 @@ export declare enum SERVICE_EVENT_TYPE {
|
|
|
8
8
|
DESTINATION_DISABLED = "destinationDisabled",
|
|
9
9
|
EMQ_HEALTH_NOTIFICATION_TRIGGERED = "emq_health_notification_triggered",
|
|
10
10
|
EMQ_HEALTH_CONDITION_RESOLVED = "emq_health_condition_resolved",
|
|
11
|
+
EMQ_HEALTH_CONDITION_DISMISSED = "emq_health_condition_dismissed",
|
|
11
12
|
DESTINATION_FORWARDING_ERROR = "destination_forwarding_error",
|
|
12
13
|
INTEGRATION_TOKEN_ERROR = "integration_token_error",
|
|
13
14
|
SUBSCRIPTION_PAYMENT_FAILED = "subscription_payment_failed",
|
|
@@ -12,6 +12,7 @@ var SERVICE_EVENT_TYPE;
|
|
|
12
12
|
SERVICE_EVENT_TYPE["DESTINATION_DISABLED"] = "destinationDisabled";
|
|
13
13
|
SERVICE_EVENT_TYPE["EMQ_HEALTH_NOTIFICATION_TRIGGERED"] = "emq_health_notification_triggered";
|
|
14
14
|
SERVICE_EVENT_TYPE["EMQ_HEALTH_CONDITION_RESOLVED"] = "emq_health_condition_resolved";
|
|
15
|
+
SERVICE_EVENT_TYPE["EMQ_HEALTH_CONDITION_DISMISSED"] = "emq_health_condition_dismissed";
|
|
15
16
|
SERVICE_EVENT_TYPE["DESTINATION_FORWARDING_ERROR"] = "destination_forwarding_error";
|
|
16
17
|
SERVICE_EVENT_TYPE["INTEGRATION_TOKEN_ERROR"] = "integration_token_error";
|
|
17
18
|
SERVICE_EVENT_TYPE["SUBSCRIPTION_PAYMENT_FAILED"] = "subscription_payment_failed";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-event-enums.js","sourceRoot":"","sources":["../../../../../src/types/api/service-events/service-event-enums.ts"],"names":[],"mappings":";;;AAoBA,IAAY,
|
|
1
|
+
{"version":3,"file":"service-event-enums.js","sourceRoot":"","sources":["../../../../../src/types/api/service-events/service-event-enums.ts"],"names":[],"mappings":";;;AAoBA,IAAY,kBA6DX;AA7DD,WAAY,kBAAkB;IAG5B,6DAAuC,CAAA;IAIvC,gEAA0C,CAAA;IAE1C,gEAA0C,CAAA;IAE1C,+EAAyD,CAAA;IAEzD,gEAA0C,CAAA;IAE1C,gEAA0C,CAAA;IAE1C,kEAA4C,CAAA;IAI5C,6FAAuE,CAAA;IAEvE,qFAA+D,CAAA;IAE/D,uFAAiE,CAAA;IAIjE,mFAA6D,CAAA;IAE7D,yEAAmD,CAAA;IAKnD,iFAA2D,CAAA;IAE3D,6EAAuD,CAAA;IAEvD,2FAAqE,CAAA;IAErE,6FAAuE,CAAA;IAEvE,uEAAiD,CAAA;IAIjD,2EAAqD,CAAA;IAIrD,6EAAuD,CAAA;IAEvD,yFAAmE,CAAA;IAEnE,mGAA6E,CAAA;IAI7E,uEAAiD,CAAA;AACnD,CAAC,EA7DW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QA6D7B;AAKD,IAAY,sBAWX;AAXD,WAAY,sBAAsB;IAEhC,yDAA+B,CAAA;IAE/B,uEAA6C,CAAA;IAE7C,qEAA2C,CAAA;IAE3C,iEAAuC,CAAA;IAEvC,uFAA6D,CAAA;AAC/D,CAAC,EAXW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAWjC;AAKD,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,qCAAuB,CAAA;AACzB,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB"}
|
|
@@ -11,7 +11,8 @@ export interface EmqHealthStatus {
|
|
|
11
11
|
lastCheckedAt: string;
|
|
12
12
|
latestDataPoint?: EmqDataPoint;
|
|
13
13
|
previousDataPoint?: EmqDataPoint;
|
|
14
|
-
|
|
14
|
+
conditions: HealthCondition[];
|
|
15
|
+
activeConditions?: HealthCondition[];
|
|
15
16
|
scoreTrend?: EMQ_TREND;
|
|
16
17
|
lastNotificationSentAt?: string;
|
|
17
18
|
notificationCooldownMinutes: number;
|
|
@@ -10,6 +10,10 @@ export declare type ConfirmationStrategy = {
|
|
|
10
10
|
windowMinutes: number;
|
|
11
11
|
thresholdCount: number;
|
|
12
12
|
};
|
|
13
|
+
export declare enum CONDITION_STATUS {
|
|
14
|
+
ACTIVE = "active",
|
|
15
|
+
DISMISSED = "dismissed"
|
|
16
|
+
}
|
|
13
17
|
export interface HealthCondition {
|
|
14
18
|
conditionId: string;
|
|
15
19
|
notificationId?: string;
|
|
@@ -20,6 +24,11 @@ export interface HealthCondition {
|
|
|
20
24
|
detectedAt: string;
|
|
21
25
|
data: Record<string, unknown>;
|
|
22
26
|
confirmation: ConfirmationStrategy;
|
|
27
|
+
status: CONDITION_STATUS;
|
|
28
|
+
lastDetectedAt: string;
|
|
29
|
+
dismissedAt?: string;
|
|
30
|
+
dismissedSeverity?: NOTIFICATION_SEVERITY;
|
|
31
|
+
occurrenceCount: number;
|
|
23
32
|
}
|
|
24
33
|
export interface RawDetection {
|
|
25
34
|
conditionId: string;
|
|
@@ -33,4 +42,6 @@ export interface ConditionEngineResult {
|
|
|
33
42
|
newDetections: RawDetection[];
|
|
34
43
|
resolvedConditions: HealthCondition[];
|
|
35
44
|
continuingConditions: HealthCondition[];
|
|
45
|
+
reRaisedConditions: HealthCondition[];
|
|
46
|
+
continuingDismissed: HealthCondition[];
|
|
36
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health-condition-types.js","sourceRoot":"","sources":["../../../../../src/types/api/health/health-condition-types.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"health-condition-types.js","sourceRoot":"","sources":["../../../../../src/types/api/health/health-condition-types.ts"],"names":[],"mappings":"AA0BA,MAAM,CAAN,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAE1B,qCAAiB,CAAA;IAEjB,2CAAuB,CAAA;AACzB,CAAC,EALW,gBAAgB,KAAhB,gBAAgB,QAK3B"}
|
|
@@ -27,6 +27,15 @@ export interface EmqHealthConditionResolvedEventDetail {
|
|
|
27
27
|
notificationId: string;
|
|
28
28
|
resolvedMessage: string;
|
|
29
29
|
}
|
|
30
|
+
export interface EmqHealthConditionDismissedEventDetail {
|
|
31
|
+
destinationId: string;
|
|
32
|
+
accountId: string;
|
|
33
|
+
pixelId: string;
|
|
34
|
+
conditionId: string;
|
|
35
|
+
conditionType: string;
|
|
36
|
+
notificationId?: string;
|
|
37
|
+
dismissedAt: string;
|
|
38
|
+
}
|
|
30
39
|
export interface DestinationForwardingErrorEventDetail {
|
|
31
40
|
destinationId: string;
|
|
32
41
|
accountId: string;
|
|
@@ -8,6 +8,7 @@ export declare enum SERVICE_EVENT_TYPE {
|
|
|
8
8
|
DESTINATION_DISABLED = "destinationDisabled",
|
|
9
9
|
EMQ_HEALTH_NOTIFICATION_TRIGGERED = "emq_health_notification_triggered",
|
|
10
10
|
EMQ_HEALTH_CONDITION_RESOLVED = "emq_health_condition_resolved",
|
|
11
|
+
EMQ_HEALTH_CONDITION_DISMISSED = "emq_health_condition_dismissed",
|
|
11
12
|
DESTINATION_FORWARDING_ERROR = "destination_forwarding_error",
|
|
12
13
|
INTEGRATION_TOKEN_ERROR = "integration_token_error",
|
|
13
14
|
SUBSCRIPTION_PAYMENT_FAILED = "subscription_payment_failed",
|
|
@@ -9,6 +9,7 @@ export var SERVICE_EVENT_TYPE;
|
|
|
9
9
|
SERVICE_EVENT_TYPE["DESTINATION_DISABLED"] = "destinationDisabled";
|
|
10
10
|
SERVICE_EVENT_TYPE["EMQ_HEALTH_NOTIFICATION_TRIGGERED"] = "emq_health_notification_triggered";
|
|
11
11
|
SERVICE_EVENT_TYPE["EMQ_HEALTH_CONDITION_RESOLVED"] = "emq_health_condition_resolved";
|
|
12
|
+
SERVICE_EVENT_TYPE["EMQ_HEALTH_CONDITION_DISMISSED"] = "emq_health_condition_dismissed";
|
|
12
13
|
SERVICE_EVENT_TYPE["DESTINATION_FORWARDING_ERROR"] = "destination_forwarding_error";
|
|
13
14
|
SERVICE_EVENT_TYPE["INTEGRATION_TOKEN_ERROR"] = "integration_token_error";
|
|
14
15
|
SERVICE_EVENT_TYPE["SUBSCRIPTION_PAYMENT_FAILED"] = "subscription_payment_failed";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-event-enums.js","sourceRoot":"","sources":["../../../../../src/types/api/service-events/service-event-enums.ts"],"names":[],"mappings":"AAoBA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"service-event-enums.js","sourceRoot":"","sources":["../../../../../src/types/api/service-events/service-event-enums.ts"],"names":[],"mappings":"AAoBA,MAAM,CAAN,IAAY,kBA6DX;AA7DD,WAAY,kBAAkB;IAG5B,6DAAuC,CAAA;IAIvC,gEAA0C,CAAA;IAE1C,gEAA0C,CAAA;IAE1C,+EAAyD,CAAA;IAEzD,gEAA0C,CAAA;IAE1C,gEAA0C,CAAA;IAE1C,kEAA4C,CAAA;IAI5C,6FAAuE,CAAA;IAEvE,qFAA+D,CAAA;IAE/D,uFAAiE,CAAA;IAIjE,mFAA6D,CAAA;IAE7D,yEAAmD,CAAA;IAKnD,iFAA2D,CAAA;IAE3D,6EAAuD,CAAA;IAEvD,2FAAqE,CAAA;IAErE,6FAAuE,CAAA;IAEvE,uEAAiD,CAAA;IAIjD,2EAAqD,CAAA;IAIrD,6EAAuD,CAAA;IAEvD,yFAAmE,CAAA;IAEnE,mGAA6E,CAAA;IAI7E,uEAAiD,CAAA;AACnD,CAAC,EA7DW,kBAAkB,KAAlB,kBAAkB,QA6D7B;AAKD,MAAM,CAAN,IAAY,sBAWX;AAXD,WAAY,sBAAsB;IAEhC,yDAA+B,CAAA;IAE/B,uEAA6C,CAAA;IAE7C,qEAA2C,CAAA;IAE3C,iEAAuC,CAAA;IAEvC,uFAA6D,CAAA;AAC/D,CAAC,EAXW,sBAAsB,KAAtB,sBAAsB,QAWjC;AAKD,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,qCAAuB,CAAA;AACzB,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB"}
|