@abyss-project/monitor 6.2.0 → 6.4.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.
Files changed (147) hide show
  1. package/dist/api/alert-rule.api.d.ts +7 -0
  2. package/dist/api/alert-rule.api.js +29 -0
  3. package/dist/api/alert-rule.api.js.map +1 -0
  4. package/dist/api/incident.api.d.ts +11 -0
  5. package/dist/api/incident.api.js +49 -0
  6. package/dist/api/incident.api.js.map +1 -0
  7. package/dist/api/index.d.ts +6 -0
  8. package/dist/api/index.js +6 -0
  9. package/dist/api/index.js.map +1 -1
  10. package/dist/api/monitor-warning.api.d.ts +2 -0
  11. package/dist/api/monitor-warning.api.js +9 -0
  12. package/dist/api/monitor-warning.api.js.map +1 -0
  13. package/dist/api/notification-channel.api.d.ts +8 -0
  14. package/dist/api/notification-channel.api.js +33 -0
  15. package/dist/api/notification-channel.api.js.map +1 -0
  16. package/dist/api/notification-delivery.api.d.ts +4 -0
  17. package/dist/api/notification-delivery.api.js +17 -0
  18. package/dist/api/notification-delivery.api.js.map +1 -0
  19. package/dist/api/notification-usage.api.d.ts +2 -0
  20. package/dist/api/notification-usage.api.js +9 -0
  21. package/dist/api/notification-usage.api.js.map +1 -0
  22. package/dist/index.d.ts +46 -0
  23. package/dist/index.js +46 -0
  24. package/dist/index.js.map +1 -1
  25. package/dist/types/enum/alert-message-severity.enum.d.ts +7 -0
  26. package/dist/types/enum/alert-message-severity.enum.js +12 -0
  27. package/dist/types/enum/alert-message-severity.enum.js.map +1 -0
  28. package/dist/types/enum/alert-rule-group-by.enum.d.ts +6 -0
  29. package/dist/types/enum/alert-rule-group-by.enum.js +11 -0
  30. package/dist/types/enum/alert-rule-group-by.enum.js.map +1 -0
  31. package/dist/types/enum/alert-rule-mode.enum.d.ts +4 -0
  32. package/dist/types/enum/alert-rule-mode.enum.js +9 -0
  33. package/dist/types/enum/alert-rule-mode.enum.js.map +1 -0
  34. package/dist/types/enum/api-error.enum.d.ts +12 -1
  35. package/dist/types/enum/api-error.enum.js +11 -0
  36. package/dist/types/enum/api-error.enum.js.map +1 -1
  37. package/dist/types/enum/incident-clear-reason.enum.d.ts +6 -0
  38. package/dist/types/enum/incident-clear-reason.enum.js +11 -0
  39. package/dist/types/enum/incident-clear-reason.enum.js.map +1 -0
  40. package/dist/types/enum/incident-event-type.enum.d.ts +13 -0
  41. package/dist/types/enum/incident-event-type.enum.js +18 -0
  42. package/dist/types/enum/incident-event-type.enum.js.map +1 -0
  43. package/dist/types/enum/incident-occurrence-kind.enum.d.ts +5 -0
  44. package/dist/types/enum/incident-occurrence-kind.enum.js +10 -0
  45. package/dist/types/enum/incident-occurrence-kind.enum.js.map +1 -0
  46. package/dist/types/enum/incident-severity.enum.d.ts +5 -0
  47. package/dist/types/enum/incident-severity.enum.js +10 -0
  48. package/dist/types/enum/incident-severity.enum.js.map +1 -0
  49. package/dist/types/enum/incident-source.enum.d.ts +9 -0
  50. package/dist/types/enum/incident-source.enum.js +14 -0
  51. package/dist/types/enum/incident-source.enum.js.map +1 -0
  52. package/dist/types/enum/incident-status.enum.d.ts +5 -0
  53. package/dist/types/enum/incident-status.enum.js +10 -0
  54. package/dist/types/enum/incident-status.enum.js.map +1 -0
  55. package/dist/types/enum/incident-suppressed-reason.enum.d.ts +3 -0
  56. package/dist/types/enum/incident-suppressed-reason.enum.js +8 -0
  57. package/dist/types/enum/incident-suppressed-reason.enum.js.map +1 -0
  58. package/dist/types/enum/index.d.ts +18 -0
  59. package/dist/types/enum/index.js +18 -0
  60. package/dist/types/enum/index.js.map +1 -1
  61. package/dist/types/enum/monitor-warning-code.enum.d.ts +5 -0
  62. package/dist/types/enum/monitor-warning-code.enum.js +10 -0
  63. package/dist/types/enum/monitor-warning-code.enum.js.map +1 -0
  64. package/dist/types/enum/monitor-warning-level.enum.d.ts +4 -0
  65. package/dist/types/enum/monitor-warning-level.enum.js +9 -0
  66. package/dist/types/enum/monitor-warning-level.enum.js.map +1 -0
  67. package/dist/types/enum/monitor-warning-scope.enum.d.ts +5 -0
  68. package/dist/types/enum/monitor-warning-scope.enum.js +10 -0
  69. package/dist/types/enum/monitor-warning-scope.enum.js.map +1 -0
  70. package/dist/types/enum/notification-delivery-cancel-reason.enum.d.ts +5 -0
  71. package/dist/types/enum/notification-delivery-cancel-reason.enum.js +10 -0
  72. package/dist/types/enum/notification-delivery-cancel-reason.enum.js.map +1 -0
  73. package/dist/types/enum/notification-delivery-kind.enum.d.ts +7 -0
  74. package/dist/types/enum/notification-delivery-kind.enum.js +12 -0
  75. package/dist/types/enum/notification-delivery-kind.enum.js.map +1 -0
  76. package/dist/types/enum/notification-delivery-status.enum.d.ts +10 -0
  77. package/dist/types/enum/notification-delivery-status.enum.js +15 -0
  78. package/dist/types/enum/notification-delivery-status.enum.js.map +1 -0
  79. package/dist/types/enum/notification-failure-class.enum.d.ts +6 -0
  80. package/dist/types/enum/notification-failure-class.enum.js +11 -0
  81. package/dist/types/enum/notification-failure-class.enum.js.map +1 -0
  82. package/dist/types/enum/notification-provider.enum.d.ts +7 -0
  83. package/dist/types/enum/notification-provider.enum.js +12 -0
  84. package/dist/types/enum/notification-provider.enum.js.map +1 -0
  85. package/dist/types/interface/api/index.d.ts +12 -0
  86. package/dist/types/interface/api/index.js +12 -0
  87. package/dist/types/interface/api/index.js.map +1 -1
  88. package/dist/types/interface/api/requests/alert-rule.request.d.ts +18 -0
  89. package/dist/types/interface/api/requests/alert-rule.request.js +3 -0
  90. package/dist/types/interface/api/requests/alert-rule.request.js.map +1 -0
  91. package/dist/types/interface/api/requests/incident.request.d.ts +38 -0
  92. package/dist/types/interface/api/requests/incident.request.js +3 -0
  93. package/dist/types/interface/api/requests/incident.request.js.map +1 -0
  94. package/dist/types/interface/api/requests/monitor-warning.request.d.ts +3 -0
  95. package/dist/types/interface/api/requests/monitor-warning.request.js +3 -0
  96. package/dist/types/interface/api/requests/monitor-warning.request.js.map +1 -0
  97. package/dist/types/interface/api/requests/notification-channel.request.d.ts +36 -0
  98. package/dist/types/interface/api/requests/notification-channel.request.js +3 -0
  99. package/dist/types/interface/api/requests/notification-channel.request.js.map +1 -0
  100. package/dist/types/interface/api/requests/notification-delivery.request.d.ts +19 -0
  101. package/dist/types/interface/api/requests/notification-delivery.request.js +3 -0
  102. package/dist/types/interface/api/requests/notification-delivery.request.js.map +1 -0
  103. package/dist/types/interface/api/requests/notification-usage.request.d.ts +6 -0
  104. package/dist/types/interface/api/requests/notification-usage.request.js +3 -0
  105. package/dist/types/interface/api/requests/notification-usage.request.js.map +1 -0
  106. package/dist/types/interface/api/responses/alert-rule.response.d.ts +21 -0
  107. package/dist/types/interface/api/responses/alert-rule.response.js +3 -0
  108. package/dist/types/interface/api/responses/alert-rule.response.js.map +1 -0
  109. package/dist/types/interface/api/responses/incident.response.d.ts +45 -0
  110. package/dist/types/interface/api/responses/incident.response.js +3 -0
  111. package/dist/types/interface/api/responses/incident.response.js.map +1 -0
  112. package/dist/types/interface/api/responses/metrics.response.d.ts +2 -6
  113. package/dist/types/interface/api/responses/monitor-warning.response.d.ts +6 -0
  114. package/dist/types/interface/api/responses/monitor-warning.response.js +3 -0
  115. package/dist/types/interface/api/responses/monitor-warning.response.js.map +1 -0
  116. package/dist/types/interface/api/responses/notification-channel.response.d.ts +29 -0
  117. package/dist/types/interface/api/responses/notification-channel.response.js +3 -0
  118. package/dist/types/interface/api/responses/notification-channel.response.js.map +1 -0
  119. package/dist/types/interface/api/responses/notification-delivery.response.d.ts +11 -0
  120. package/dist/types/interface/api/responses/notification-delivery.response.js +3 -0
  121. package/dist/types/interface/api/responses/notification-delivery.response.js.map +1 -0
  122. package/dist/types/interface/api/responses/notification-usage.response.d.ts +7 -0
  123. package/dist/types/interface/api/responses/notification-usage.response.js +3 -0
  124. package/dist/types/interface/api/responses/notification-usage.response.js.map +1 -0
  125. package/dist/types/interface/index.d.ts +6 -0
  126. package/dist/types/interface/index.js +6 -0
  127. package/dist/types/interface/index.js.map +1 -1
  128. package/dist/types/interface/models/alert-message.model.d.ts +24 -0
  129. package/dist/types/interface/models/alert-message.model.js +3 -0
  130. package/dist/types/interface/models/alert-message.model.js.map +1 -0
  131. package/dist/types/interface/models/application-sentinel.model.d.ts +0 -3
  132. package/dist/types/interface/models/monitor-alert-rule.model.d.ts +26 -0
  133. package/dist/types/interface/models/monitor-alert-rule.model.js +3 -0
  134. package/dist/types/interface/models/monitor-alert-rule.model.js.map +1 -0
  135. package/dist/types/interface/models/monitor-incident.model.d.ts +42 -0
  136. package/dist/types/interface/models/monitor-incident.model.js +3 -0
  137. package/dist/types/interface/models/monitor-incident.model.js.map +1 -0
  138. package/dist/types/interface/models/monitor-notification-channel.model.d.ts +23 -0
  139. package/dist/types/interface/models/monitor-notification-channel.model.js +3 -0
  140. package/dist/types/interface/models/monitor-notification-channel.model.js.map +1 -0
  141. package/dist/types/interface/models/monitor-notification-delivery.model.d.ts +40 -0
  142. package/dist/types/interface/models/monitor-notification-delivery.model.js +3 -0
  143. package/dist/types/interface/models/monitor-notification-delivery.model.js.map +1 -0
  144. package/dist/types/interface/models/monitor-warning.model.d.ts +15 -0
  145. package/dist/types/interface/models/monitor-warning.model.js +3 -0
  146. package/dist/types/interface/models/monitor-warning.model.js.map +1 -0
  147. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incident-event-type.enum.js","sourceRoot":"","sources":["../../../src/types/enum/incident-event-type.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,iBAaX;AAbD,WAAY,iBAAiB;IAC3B,sCAAiB,CAAA;IACjB,oEAA+C,CAAA;IAC/C,wDAAmC,CAAA;IAEnC,0CAAqB,CAAA;IACrB,kDAA6B,CAAA;IAC7B,0CAAqB,CAAA;IACrB,4CAAuB,CAAA;IACvB,oCAAe,CAAA;IACf,wCAAmB,CAAA;IACnB,0CAAqB,CAAA;IACrB,0CAAqB,CAAA;AACvB,CAAC,EAbW,iBAAiB,iCAAjB,iBAAiB,QAa5B"}
@@ -0,0 +1,5 @@
1
+ export declare enum IncidentOccurrenceKind {
2
+ OPENED = "OPENED",
3
+ OCCURRENCE = "OCCURRENCE",
4
+ RESOLVED = "RESOLVED"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IncidentOccurrenceKind = void 0;
4
+ var IncidentOccurrenceKind;
5
+ (function (IncidentOccurrenceKind) {
6
+ IncidentOccurrenceKind["OPENED"] = "OPENED";
7
+ IncidentOccurrenceKind["OCCURRENCE"] = "OCCURRENCE";
8
+ IncidentOccurrenceKind["RESOLVED"] = "RESOLVED";
9
+ })(IncidentOccurrenceKind || (exports.IncidentOccurrenceKind = IncidentOccurrenceKind = {}));
10
+ //# sourceMappingURL=incident-occurrence-kind.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incident-occurrence-kind.enum.js","sourceRoot":"","sources":["../../../src/types/enum/incident-occurrence-kind.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,sBAMX;AAND,WAAY,sBAAsB;IAEhC,2CAAiB,CAAA;IAEjB,mDAAyB,CAAA;IACzB,+CAAqB,CAAA;AACvB,CAAC,EANW,sBAAsB,sCAAtB,sBAAsB,QAMjC"}
@@ -0,0 +1,5 @@
1
+ export declare enum IncidentSeverity {
2
+ INFO = "INFO",
3
+ WARNING = "WARNING",
4
+ CRITICAL = "CRITICAL"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IncidentSeverity = void 0;
4
+ var IncidentSeverity;
5
+ (function (IncidentSeverity) {
6
+ IncidentSeverity["INFO"] = "INFO";
7
+ IncidentSeverity["WARNING"] = "WARNING";
8
+ IncidentSeverity["CRITICAL"] = "CRITICAL";
9
+ })(IncidentSeverity || (exports.IncidentSeverity = IncidentSeverity = {}));
10
+ //# sourceMappingURL=incident-severity.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incident-severity.enum.js","sourceRoot":"","sources":["../../../src/types/enum/incident-severity.enum.ts"],"names":[],"mappings":";;;AAKA,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,iCAAa,CAAA;IACb,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;AACvB,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B"}
@@ -0,0 +1,9 @@
1
+ export declare enum IncidentSource {
2
+ SENTINEL = "SENTINEL",
3
+ CRON = "CRON",
4
+ LOG_RULE = "LOG_RULE",
5
+ HEARTBEAT = "HEARTBEAT",
6
+ JOB = "JOB",
7
+ METRIC = "METRIC",
8
+ QUOTA = "QUOTA"
9
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IncidentSource = void 0;
4
+ var IncidentSource;
5
+ (function (IncidentSource) {
6
+ IncidentSource["SENTINEL"] = "SENTINEL";
7
+ IncidentSource["CRON"] = "CRON";
8
+ IncidentSource["LOG_RULE"] = "LOG_RULE";
9
+ IncidentSource["HEARTBEAT"] = "HEARTBEAT";
10
+ IncidentSource["JOB"] = "JOB";
11
+ IncidentSource["METRIC"] = "METRIC";
12
+ IncidentSource["QUOTA"] = "QUOTA";
13
+ })(IncidentSource || (exports.IncidentSource = IncidentSource = {}));
14
+ //# sourceMappingURL=incident-source.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incident-source.enum.js","sourceRoot":"","sources":["../../../src/types/enum/incident-source.enum.ts"],"names":[],"mappings":";;;AAMA,IAAY,cAQX;AARD,WAAY,cAAc;IACxB,uCAAqB,CAAA;IACrB,+BAAa,CAAA;IACb,uCAAqB,CAAA;IACrB,yCAAuB,CAAA;IACvB,6BAAW,CAAA;IACX,mCAAiB,CAAA;IACjB,iCAAe,CAAA;AACjB,CAAC,EARW,cAAc,8BAAd,cAAc,QAQzB"}
@@ -0,0 +1,5 @@
1
+ export declare enum IncidentStatus {
2
+ OPEN = "OPEN",
3
+ ACKNOWLEDGED = "ACKNOWLEDGED",
4
+ RESOLVED = "RESOLVED"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IncidentStatus = void 0;
4
+ var IncidentStatus;
5
+ (function (IncidentStatus) {
6
+ IncidentStatus["OPEN"] = "OPEN";
7
+ IncidentStatus["ACKNOWLEDGED"] = "ACKNOWLEDGED";
8
+ IncidentStatus["RESOLVED"] = "RESOLVED";
9
+ })(IncidentStatus || (exports.IncidentStatus = IncidentStatus = {}));
10
+ //# sourceMappingURL=incident-status.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incident-status.enum.js","sourceRoot":"","sources":["../../../src/types/enum/incident-status.enum.ts"],"names":[],"mappings":";;;AAIA,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,+CAA6B,CAAA;IAC7B,uCAAqB,CAAA;AACvB,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB"}
@@ -0,0 +1,3 @@
1
+ export declare enum IncidentSuppressedReason {
2
+ ABYSS_OUTAGE = "ABYSS_OUTAGE"
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IncidentSuppressedReason = void 0;
4
+ var IncidentSuppressedReason;
5
+ (function (IncidentSuppressedReason) {
6
+ IncidentSuppressedReason["ABYSS_OUTAGE"] = "ABYSS_OUTAGE";
7
+ })(IncidentSuppressedReason || (exports.IncidentSuppressedReason = IncidentSuppressedReason = {}));
8
+ //# sourceMappingURL=incident-suppressed-reason.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incident-suppressed-reason.enum.js","sourceRoot":"","sources":["../../../src/types/enum/incident-suppressed-reason.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,wBAGX;AAHD,WAAY,wBAAwB;IAElC,yDAA6B,CAAA;AAC/B,CAAC,EAHW,wBAAwB,wCAAxB,wBAAwB,QAGnC"}
@@ -14,3 +14,21 @@ export * from './rehydration-skip-reason.enum';
14
14
  export * from './rehydration-stop-reason.enum';
15
15
  export * from './rehydration-failure-reason.enum';
16
16
  export * from './rehydration-refusal-reason.enum';
17
+ export * from './incident-source.enum';
18
+ export * from './incident-severity.enum';
19
+ export * from './incident-status.enum';
20
+ export * from './incident-event-type.enum';
21
+ export * from './incident-occurrence-kind.enum';
22
+ export * from './incident-suppressed-reason.enum';
23
+ export * from './incident-clear-reason.enum';
24
+ export * from './alert-rule-mode.enum';
25
+ export * from './alert-rule-group-by.enum';
26
+ export * from './notification-provider.enum';
27
+ export * from './notification-delivery-status.enum';
28
+ export * from './notification-delivery-kind.enum';
29
+ export * from './notification-delivery-cancel-reason.enum';
30
+ export * from './notification-failure-class.enum';
31
+ export * from './alert-message-severity.enum';
32
+ export * from './monitor-warning-code.enum';
33
+ export * from './monitor-warning-scope.enum';
34
+ export * from './monitor-warning-level.enum';
@@ -30,4 +30,22 @@ __exportStar(require("./rehydration-skip-reason.enum"), exports);
30
30
  __exportStar(require("./rehydration-stop-reason.enum"), exports);
31
31
  __exportStar(require("./rehydration-failure-reason.enum"), exports);
32
32
  __exportStar(require("./rehydration-refusal-reason.enum"), exports);
33
+ __exportStar(require("./incident-source.enum"), exports);
34
+ __exportStar(require("./incident-severity.enum"), exports);
35
+ __exportStar(require("./incident-status.enum"), exports);
36
+ __exportStar(require("./incident-event-type.enum"), exports);
37
+ __exportStar(require("./incident-occurrence-kind.enum"), exports);
38
+ __exportStar(require("./incident-suppressed-reason.enum"), exports);
39
+ __exportStar(require("./incident-clear-reason.enum"), exports);
40
+ __exportStar(require("./alert-rule-mode.enum"), exports);
41
+ __exportStar(require("./alert-rule-group-by.enum"), exports);
42
+ __exportStar(require("./notification-provider.enum"), exports);
43
+ __exportStar(require("./notification-delivery-status.enum"), exports);
44
+ __exportStar(require("./notification-delivery-kind.enum"), exports);
45
+ __exportStar(require("./notification-delivery-cancel-reason.enum"), exports);
46
+ __exportStar(require("./notification-failure-class.enum"), exports);
47
+ __exportStar(require("./alert-message-severity.enum"), exports);
48
+ __exportStar(require("./monitor-warning-code.enum"), exports);
49
+ __exportStar(require("./monitor-warning-scope.enum"), exports);
50
+ __exportStar(require("./monitor-warning-level.enum"), exports);
33
51
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,oDAAkC;AAClC,gEAA8C;AAC9C,gEAA8C;AAC9C,mDAAiC;AACjC,sDAAoC;AACpC,mEAAiD;AACjD,mEAAiD;AACjD,2EAAyD;AACzD,wDAAsC;AACtC,gEAA8C;AAC9C,+DAA6C;AAC7C,iEAA+C;AAC/C,iEAA+C;AAC/C,oEAAkD;AAClD,oEAAkD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/enum/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,oDAAkC;AAClC,gEAA8C;AAC9C,gEAA8C;AAC9C,mDAAiC;AACjC,sDAAoC;AACpC,mEAAiD;AACjD,mEAAiD;AACjD,2EAAyD;AACzD,wDAAsC;AACtC,gEAA8C;AAC9C,+DAA6C;AAC7C,iEAA+C;AAC/C,iEAA+C;AAC/C,oEAAkD;AAClD,oEAAkD;AAClD,yDAAuC;AACvC,2DAAyC;AACzC,yDAAuC;AACvC,6DAA2C;AAC3C,kEAAgD;AAChD,oEAAkD;AAClD,+DAA6C;AAC7C,yDAAuC;AACvC,6DAA2C;AAC3C,+DAA6C;AAC7C,sEAAoD;AACpD,oEAAkD;AAClD,6EAA2D;AAC3D,oEAAkD;AAClD,gEAA8C;AAC9C,8DAA4C;AAC5C,+DAA6C;AAC7C,+DAA6C"}
@@ -0,0 +1,5 @@
1
+ export declare enum MonitorWarningCode {
2
+ ABYSS_OUTAGE = "ABYSS_OUTAGE",
3
+ CHANNEL_DISABLED = "CHANNEL_DISABLED",
4
+ MESSAGE_TRUNCATED = "MESSAGE_TRUNCATED"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MonitorWarningCode = void 0;
4
+ var MonitorWarningCode;
5
+ (function (MonitorWarningCode) {
6
+ MonitorWarningCode["ABYSS_OUTAGE"] = "ABYSS_OUTAGE";
7
+ MonitorWarningCode["CHANNEL_DISABLED"] = "CHANNEL_DISABLED";
8
+ MonitorWarningCode["MESSAGE_TRUNCATED"] = "MESSAGE_TRUNCATED";
9
+ })(MonitorWarningCode || (exports.MonitorWarningCode = MonitorWarningCode = {}));
10
+ //# sourceMappingURL=monitor-warning-code.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monitor-warning-code.enum.js","sourceRoot":"","sources":["../../../src/types/enum/monitor-warning-code.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAE5B,mDAA6B,CAAA;IAE7B,2DAAqC,CAAA;IAErC,6DAAuC,CAAA;AACzC,CAAC,EAPW,kBAAkB,kCAAlB,kBAAkB,QAO7B"}
@@ -0,0 +1,4 @@
1
+ export declare enum MonitorWarningLevel {
2
+ INFO = "INFO",
3
+ WARNING = "WARNING"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MonitorWarningLevel = void 0;
4
+ var MonitorWarningLevel;
5
+ (function (MonitorWarningLevel) {
6
+ MonitorWarningLevel["INFO"] = "INFO";
7
+ MonitorWarningLevel["WARNING"] = "WARNING";
8
+ })(MonitorWarningLevel || (exports.MonitorWarningLevel = MonitorWarningLevel = {}));
9
+ //# sourceMappingURL=monitor-warning-level.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monitor-warning-level.enum.js","sourceRoot":"","sources":["../../../src/types/enum/monitor-warning-level.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,oCAAa,CAAA;IACb,0CAAmB,CAAA;AACrB,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B"}
@@ -0,0 +1,5 @@
1
+ export declare enum MonitorWarningScope {
2
+ APPLICATION = "APPLICATION",
3
+ PROJECT = "PROJECT",
4
+ ORGANIZATION = "ORGANIZATION"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MonitorWarningScope = void 0;
4
+ var MonitorWarningScope;
5
+ (function (MonitorWarningScope) {
6
+ MonitorWarningScope["APPLICATION"] = "APPLICATION";
7
+ MonitorWarningScope["PROJECT"] = "PROJECT";
8
+ MonitorWarningScope["ORGANIZATION"] = "ORGANIZATION";
9
+ })(MonitorWarningScope || (exports.MonitorWarningScope = MonitorWarningScope = {}));
10
+ //# sourceMappingURL=monitor-warning-scope.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monitor-warning-scope.enum.js","sourceRoot":"","sources":["../../../src/types/enum/monitor-warning-scope.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,kDAA2B,CAAA;IAC3B,0CAAmB,CAAA;IACnB,oDAA6B,CAAA;AAC/B,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B"}
@@ -0,0 +1,5 @@
1
+ export declare enum NotificationDeliveryCancelReason {
2
+ NO_RECIPIENTS = "NO_RECIPIENTS",
3
+ CHANNEL_DISABLED = "CHANNEL_DISABLED",
4
+ CHANNEL_DELETED = "CHANNEL_DELETED"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationDeliveryCancelReason = void 0;
4
+ var NotificationDeliveryCancelReason;
5
+ (function (NotificationDeliveryCancelReason) {
6
+ NotificationDeliveryCancelReason["NO_RECIPIENTS"] = "NO_RECIPIENTS";
7
+ NotificationDeliveryCancelReason["CHANNEL_DISABLED"] = "CHANNEL_DISABLED";
8
+ NotificationDeliveryCancelReason["CHANNEL_DELETED"] = "CHANNEL_DELETED";
9
+ })(NotificationDeliveryCancelReason || (exports.NotificationDeliveryCancelReason = NotificationDeliveryCancelReason = {}));
10
+ //# sourceMappingURL=notification-delivery-cancel-reason.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-delivery-cancel-reason.enum.js","sourceRoot":"","sources":["../../../src/types/enum/notification-delivery-cancel-reason.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,gCAOX;AAPD,WAAY,gCAAgC;IAE1C,mEAA+B,CAAA;IAE/B,yEAAqC,CAAA;IAErC,uEAAmC,CAAA;AACrC,CAAC,EAPW,gCAAgC,gDAAhC,gCAAgC,QAO3C"}
@@ -0,0 +1,7 @@
1
+ export declare enum NotificationDeliveryKind {
2
+ ALERT = "ALERT",
3
+ SUMMARY = "SUMMARY",
4
+ RECOVERY = "RECOVERY",
5
+ TEST = "TEST",
6
+ REPLAY = "REPLAY"
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationDeliveryKind = void 0;
4
+ var NotificationDeliveryKind;
5
+ (function (NotificationDeliveryKind) {
6
+ NotificationDeliveryKind["ALERT"] = "ALERT";
7
+ NotificationDeliveryKind["SUMMARY"] = "SUMMARY";
8
+ NotificationDeliveryKind["RECOVERY"] = "RECOVERY";
9
+ NotificationDeliveryKind["TEST"] = "TEST";
10
+ NotificationDeliveryKind["REPLAY"] = "REPLAY";
11
+ })(NotificationDeliveryKind || (exports.NotificationDeliveryKind = NotificationDeliveryKind = {}));
12
+ //# sourceMappingURL=notification-delivery-kind.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-delivery-kind.enum.js","sourceRoot":"","sources":["../../../src/types/enum/notification-delivery-kind.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,wBAOX;AAPD,WAAY,wBAAwB;IAClC,2CAAe,CAAA;IACf,+CAAmB,CAAA;IACnB,iDAAqB,CAAA;IACrB,yCAAa,CAAA;IAEb,6CAAiB,CAAA;AACnB,CAAC,EAPW,wBAAwB,wCAAxB,wBAAwB,QAOnC"}
@@ -0,0 +1,10 @@
1
+ export declare enum NotificationDeliveryStatus {
2
+ PENDING = "PENDING",
3
+ SENDING = "SENDING",
4
+ SENT = "SENT",
5
+ FAILED = "FAILED",
6
+ THROTTLED = "THROTTLED",
7
+ DROPPED_THROTTLED = "DROPPED_THROTTLED",
8
+ EXPIRED = "EXPIRED",
9
+ CANCELLED = "CANCELLED"
10
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationDeliveryStatus = void 0;
4
+ var NotificationDeliveryStatus;
5
+ (function (NotificationDeliveryStatus) {
6
+ NotificationDeliveryStatus["PENDING"] = "PENDING";
7
+ NotificationDeliveryStatus["SENDING"] = "SENDING";
8
+ NotificationDeliveryStatus["SENT"] = "SENT";
9
+ NotificationDeliveryStatus["FAILED"] = "FAILED";
10
+ NotificationDeliveryStatus["THROTTLED"] = "THROTTLED";
11
+ NotificationDeliveryStatus["DROPPED_THROTTLED"] = "DROPPED_THROTTLED";
12
+ NotificationDeliveryStatus["EXPIRED"] = "EXPIRED";
13
+ NotificationDeliveryStatus["CANCELLED"] = "CANCELLED";
14
+ })(NotificationDeliveryStatus || (exports.NotificationDeliveryStatus = NotificationDeliveryStatus = {}));
15
+ //# sourceMappingURL=notification-delivery-status.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-delivery-status.enum.js","sourceRoot":"","sources":["../../../src/types/enum/notification-delivery-status.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,0BAkBX;AAlBD,WAAY,0BAA0B;IAEpC,iDAAmB,CAAA;IAKnB,iDAAmB,CAAA;IACnB,2CAAa,CAAA;IACb,+CAAiB,CAAA;IAEjB,qDAAuB,CAAA;IAEvB,qEAAuC,CAAA;IAEvC,iDAAmB,CAAA;IAEnB,qDAAuB,CAAA;AACzB,CAAC,EAlBW,0BAA0B,0CAA1B,0BAA0B,QAkBrC"}
@@ -0,0 +1,6 @@
1
+ export declare enum NotificationFailureClass {
2
+ RATE_LIMITED = "RATE_LIMITED",
3
+ BROKEN = "BROKEN",
4
+ MALFORMED = "MALFORMED",
5
+ OTHER = "OTHER"
6
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationFailureClass = void 0;
4
+ var NotificationFailureClass;
5
+ (function (NotificationFailureClass) {
6
+ NotificationFailureClass["RATE_LIMITED"] = "RATE_LIMITED";
7
+ NotificationFailureClass["BROKEN"] = "BROKEN";
8
+ NotificationFailureClass["MALFORMED"] = "MALFORMED";
9
+ NotificationFailureClass["OTHER"] = "OTHER";
10
+ })(NotificationFailureClass || (exports.NotificationFailureClass = NotificationFailureClass = {}));
11
+ //# sourceMappingURL=notification-failure-class.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-failure-class.enum.js","sourceRoot":"","sources":["../../../src/types/enum/notification-failure-class.enum.ts"],"names":[],"mappings":";;;AAIA,IAAY,wBASX;AATD,WAAY,wBAAwB;IAElC,yDAA6B,CAAA;IAE7B,6CAAiB,CAAA;IAEjB,mDAAuB,CAAA;IAEvB,2CAAe,CAAA;AACjB,CAAC,EATW,wBAAwB,wCAAxB,wBAAwB,QASnC"}
@@ -0,0 +1,7 @@
1
+ export declare enum NotificationProvider {
2
+ ABYSS_MEMBERS = "ABYSS_MEMBERS",
3
+ DISCORD = "DISCORD",
4
+ SLACK = "SLACK",
5
+ TEAMS = "TEAMS",
6
+ WEBHOOK_GENERIC = "WEBHOOK_GENERIC"
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationProvider = void 0;
4
+ var NotificationProvider;
5
+ (function (NotificationProvider) {
6
+ NotificationProvider["ABYSS_MEMBERS"] = "ABYSS_MEMBERS";
7
+ NotificationProvider["DISCORD"] = "DISCORD";
8
+ NotificationProvider["SLACK"] = "SLACK";
9
+ NotificationProvider["TEAMS"] = "TEAMS";
10
+ NotificationProvider["WEBHOOK_GENERIC"] = "WEBHOOK_GENERIC";
11
+ })(NotificationProvider || (exports.NotificationProvider = NotificationProvider = {}));
12
+ //# sourceMappingURL=notification-provider.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-provider.enum.js","sourceRoot":"","sources":["../../../src/types/enum/notification-provider.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAE9B,uDAA+B,CAAA;IAC/B,2CAAmB,CAAA;IACnB,uCAAe,CAAA;IACf,uCAAe,CAAA;IACf,2DAAmC,CAAA;AACrC,CAAC,EAPW,oBAAoB,oCAApB,oBAAoB,QAO/B"}
@@ -20,6 +20,12 @@ export * from './requests/application-webhook-history.request';
20
20
  export * from './requests/application-sentinel.admin.request';
21
21
  export * from './requests/application-sentinel.request';
22
22
  export * from './requests/metrics.request';
23
+ export * from './requests/incident.request';
24
+ export * from './requests/notification-channel.request';
25
+ export * from './requests/notification-delivery.request';
26
+ export * from './requests/monitor-warning.request';
27
+ export * from './requests/notification-usage.request';
28
+ export * from './requests/alert-rule.request';
23
29
  export * from './requests/metrics.admin.request';
24
30
  export * from './requests/hourly-metrics.request';
25
31
  export * from './requests/report.admin.request';
@@ -42,6 +48,12 @@ export * from './responses/application-webhook-history.response';
42
48
  export * from './responses/application-sentinel.admin.response';
43
49
  export * from './responses/application-sentinel.response';
44
50
  export * from './responses/metrics.response';
51
+ export * from './responses/incident.response';
52
+ export * from './responses/notification-channel.response';
53
+ export * from './responses/notification-delivery.response';
54
+ export * from './responses/monitor-warning.response';
55
+ export * from './responses/notification-usage.response';
56
+ export * from './responses/alert-rule.response';
45
57
  export * from './responses/metrics.admin.response';
46
58
  export * from './responses/hourly-metrics.response';
47
59
  export * from './responses/report.admin.response';
@@ -36,6 +36,12 @@ __exportStar(require("./requests/application-webhook-history.request"), exports)
36
36
  __exportStar(require("./requests/application-sentinel.admin.request"), exports);
37
37
  __exportStar(require("./requests/application-sentinel.request"), exports);
38
38
  __exportStar(require("./requests/metrics.request"), exports);
39
+ __exportStar(require("./requests/incident.request"), exports);
40
+ __exportStar(require("./requests/notification-channel.request"), exports);
41
+ __exportStar(require("./requests/notification-delivery.request"), exports);
42
+ __exportStar(require("./requests/monitor-warning.request"), exports);
43
+ __exportStar(require("./requests/notification-usage.request"), exports);
44
+ __exportStar(require("./requests/alert-rule.request"), exports);
39
45
  __exportStar(require("./requests/metrics.admin.request"), exports);
40
46
  __exportStar(require("./requests/hourly-metrics.request"), exports);
41
47
  __exportStar(require("./requests/report.admin.request"), exports);
@@ -58,6 +64,12 @@ __exportStar(require("./responses/application-webhook-history.response"), export
58
64
  __exportStar(require("./responses/application-sentinel.admin.response"), exports);
59
65
  __exportStar(require("./responses/application-sentinel.response"), exports);
60
66
  __exportStar(require("./responses/metrics.response"), exports);
67
+ __exportStar(require("./responses/incident.response"), exports);
68
+ __exportStar(require("./responses/notification-channel.response"), exports);
69
+ __exportStar(require("./responses/notification-delivery.response"), exports);
70
+ __exportStar(require("./responses/monitor-warning.response"), exports);
71
+ __exportStar(require("./responses/notification-usage.response"), exports);
72
+ __exportStar(require("./responses/alert-rule.response"), exports);
61
73
  __exportStar(require("./responses/metrics.admin.response"), exports);
62
74
  __exportStar(require("./responses/hourly-metrics.response"), exports);
63
75
  __exportStar(require("./responses/report.admin.response"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/interface/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,0DAAwC;AACxC,4DAA0C;AAC1C,+DAA6C;AAC7C,iEAA+C;AAE/C,iEAA+C;AAC/C,uEAAqD;AACrD,6EAA2D;AAC3D,uEAAqD;AACrD,iFAA+D;AAC/D,2EAAyD;AACzD,2EAAyD;AACzD,qEAAmD;AACnD,uEAAqD;AACrD,6EAA2D;AAC3D,yEAAuD;AACvD,+EAA6D;AAC7D,uFAAqE;AACrE,iFAA+D;AAC/D,gFAA8D;AAC9D,0EAAwD;AACxD,6DAA2C;AAC3C,mEAAiD;AACjD,oEAAkD;AAClD,kEAAgD;AAChD,0EAAwD;AAExD,mEAAiD;AACjD,yEAAuD;AACvD,+EAA6D;AAC7D,yEAAuD;AACvD,mFAAiE;AACjE,6EAA2D;AAC3D,6EAA2D;AAC3D,uEAAqD;AACrD,+DAA6C;AAC7C,yEAAuD;AACvD,+EAA6D;AAC7D,2EAAyD;AACzD,iFAA+D;AAC/D,yFAAuE;AACvE,mFAAiE;AACjE,kFAAgE;AAChE,4EAA0D;AAC1D,+DAA6C;AAC7C,qEAAmD;AACnD,sEAAoD;AACpD,oEAAkD;AAClD,4EAA0D"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/interface/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,0DAAwC;AACxC,4DAA0C;AAC1C,+DAA6C;AAC7C,iEAA+C;AAE/C,iEAA+C;AAC/C,uEAAqD;AACrD,6EAA2D;AAC3D,uEAAqD;AACrD,iFAA+D;AAC/D,2EAAyD;AACzD,2EAAyD;AACzD,qEAAmD;AACnD,uEAAqD;AACrD,6EAA2D;AAC3D,yEAAuD;AACvD,+EAA6D;AAC7D,uFAAqE;AACrE,iFAA+D;AAC/D,gFAA8D;AAC9D,0EAAwD;AACxD,6DAA2C;AAC3C,8DAA4C;AAC5C,0EAAwD;AACxD,2EAAyD;AACzD,qEAAmD;AACnD,wEAAsD;AACtD,gEAA8C;AAC9C,mEAAiD;AACjD,oEAAkD;AAClD,kEAAgD;AAChD,0EAAwD;AAExD,mEAAiD;AACjD,yEAAuD;AACvD,+EAA6D;AAC7D,yEAAuD;AACvD,mFAAiE;AACjE,6EAA2D;AAC3D,6EAA2D;AAC3D,uEAAqD;AACrD,+DAA6C;AAC7C,yEAAuD;AACvD,+EAA6D;AAC7D,2EAAyD;AACzD,iFAA+D;AAC/D,yFAAuE;AACvE,mFAAiE;AACjE,kFAAgE;AAChE,4EAA0D;AAC1D,+DAA6C;AAC7C,gEAA8C;AAC9C,4EAA0D;AAC1D,6EAA2D;AAC3D,uEAAqD;AACrD,0EAAwD;AACxD,kEAAgD;AAChD,qEAAmD;AACnD,sEAAoD;AACpD,oEAAkD;AAClD,4EAA0D"}
@@ -0,0 +1,18 @@
1
+ import { AlertRuleGroupBy } from '../../../enum';
2
+ import { IMonitorAlertRule } from '../../models/monitor-alert-rule.model';
3
+ export interface IAlertRuleProjectParams {
4
+ projectId: string;
5
+ }
6
+ export interface IAlertRuleParams extends IAlertRuleProjectParams {
7
+ ruleId: string;
8
+ }
9
+ type AlertRuleDefinitionMembers = Pick<IMonitorAlertRule, 'name' | 'slug' | 'isEnabled' | 'applicationIds' | 'mode' | 'filter' | 'windowMinutes' | 'threshold' | 'groupBy' | 'severity'>;
10
+ export type ICreateAlertRuleBody = Omit<AlertRuleDefinitionMembers, 'isEnabled' | 'groupBy'> & {
11
+ isEnabled?: boolean;
12
+ groupBy?: AlertRuleGroupBy[];
13
+ };
14
+ export type IUpdateAlertRuleBody = Partial<AlertRuleDefinitionMembers>;
15
+ export type IPreviewAlertRuleBody = Pick<AlertRuleDefinitionMembers, 'applicationIds' | 'mode' | 'filter' | 'windowMinutes'> & {
16
+ groupBy?: AlertRuleGroupBy[];
17
+ };
18
+ export {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=alert-rule.request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert-rule.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/alert-rule.request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
1
+ import { QueryPaginate } from '..';
2
+ import { IncidentSeverity, IncidentSource, IncidentStatus } from '../../../enum';
3
+ export interface IIncidentRouteParams {
4
+ projectId: string;
5
+ number: number;
6
+ }
7
+ export interface IPaginateIncidentParams {
8
+ projectId: string;
9
+ }
10
+ export type IPaginateIncidentQuery = {
11
+ status?: IncidentStatus[];
12
+ severity?: IncidentSeverity[];
13
+ source?: IncidentSource[];
14
+ applicationIds?: string[];
15
+ } & QueryPaginate;
16
+ export type IGetIncidentParams = IIncidentRouteParams;
17
+ export type IListTimelineIncidentParams = IIncidentRouteParams;
18
+ export type IAcknowledgeIncidentParams = IIncidentRouteParams;
19
+ export type IAssignIncidentParams = IIncidentRouteParams;
20
+ export interface IAssignIncidentBody {
21
+ assignedToUserId: string | null;
22
+ }
23
+ export type ICommentIncidentParams = IIncidentRouteParams;
24
+ export interface ICommentIncidentBody {
25
+ comment: string;
26
+ }
27
+ export type IMuteIncidentParams = IIncidentRouteParams;
28
+ export interface IMuteIncidentBody {
29
+ durationMinutes?: number;
30
+ }
31
+ export type IUnmuteIncidentParams = IIncidentRouteParams;
32
+ export interface IGetMuteByTokenIncidentQuery {
33
+ token: string;
34
+ }
35
+ export interface IMuteByTokenIncidentBody {
36
+ token: string;
37
+ durationMinutes?: number;
38
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=incident.request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incident.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/incident.request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export interface IListActiveMonitorWarningParams {
2
+ projectId: string;
3
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=monitor-warning.request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monitor-warning.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/monitor-warning.request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
1
+ import { NotificationProvider } from '../../../enum';
2
+ import { IMonitorNotificationChannelFilters } from '../../models/monitor-notification-channel.model';
3
+ export interface IListNotificationChannelParams {
4
+ projectId: string;
5
+ }
6
+ export interface INotificationChannelRouteParams {
7
+ projectId: string;
8
+ channelId: string;
9
+ }
10
+ export type IGetNotificationChannelParams = INotificationChannelRouteParams;
11
+ export interface ICreateNotificationChannelParams {
12
+ projectId: string;
13
+ }
14
+ export interface ICreateNotificationChannelBody {
15
+ name: string;
16
+ description?: string | null;
17
+ provider: Exclude<NotificationProvider, NotificationProvider.ABYSS_MEMBERS>;
18
+ url: string;
19
+ isEnabled?: boolean;
20
+ filters?: IMonitorNotificationChannelFilters;
21
+ budgetPerHour?: number;
22
+ windowSteps?: number[];
23
+ }
24
+ export type IUpdateNotificationChannelParams = INotificationChannelRouteParams;
25
+ export interface IUpdateNotificationChannelBody {
26
+ name?: string;
27
+ description?: string | null;
28
+ url?: string;
29
+ isEnabled?: boolean;
30
+ filters?: IMonitorNotificationChannelFilters;
31
+ budgetPerHour?: number;
32
+ windowSteps?: number[];
33
+ }
34
+ export type IDeleteNotificationChannelParams = INotificationChannelRouteParams;
35
+ export type ITestNotificationChannelParams = INotificationChannelRouteParams;
36
+ export type IEnableNotificationChannelParams = INotificationChannelRouteParams;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=notification-channel.request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-channel.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/notification-channel.request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import { QueryPaginate } from '..';
2
+ import { NotificationDeliveryKind, NotificationDeliveryStatus } from '../../../enum';
3
+ export interface IPaginateNotificationDeliveryParams {
4
+ projectId: string;
5
+ }
6
+ export type IPaginateNotificationDeliveryQuery = {
7
+ status?: NotificationDeliveryStatus[];
8
+ kind?: NotificationDeliveryKind[];
9
+ channelId?: string;
10
+ incidentId?: string;
11
+ } & QueryPaginate;
12
+ export interface IListByPublicRefNotificationDeliveryParams {
13
+ projectId: string;
14
+ publicRef: string;
15
+ }
16
+ export interface IReplayNotificationDeliveryParams {
17
+ projectId: string;
18
+ deliveryId: string;
19
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=notification-delivery.request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-delivery.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/notification-delivery.request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface IListNotificationUsageParams {
2
+ projectId: string;
3
+ }
4
+ export interface IListNotificationUsageQuery {
5
+ months?: number;
6
+ }