@jfvilas/kwirth-common 0.3.35 → 0.3.37

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.
@@ -0,0 +1,6 @@
1
+ import { ServiceConfig } from './ServiceConfig';
2
+ export interface AlarmConfig extends ServiceConfig {
3
+ regexInfo: string[];
4
+ regexWarning: string[];
5
+ regexError: string[];
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import { ServiceMessage } from './ServiceMessage';
2
+ export declare enum AlarmSeverityEnum {
3
+ INFO = "info",
4
+ WARNING = "warning",
5
+ ERROR = "error"
6
+ }
7
+ export interface AlarmMessage extends ServiceMessage {
8
+ timestamp?: Date;
9
+ severity: AlarmSeverityEnum;
10
+ text: string;
11
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AlarmSeverityEnum = void 0;
4
+ var AlarmSeverityEnum;
5
+ (function (AlarmSeverityEnum) {
6
+ AlarmSeverityEnum["INFO"] = "info";
7
+ AlarmSeverityEnum["WARNING"] = "warning";
8
+ AlarmSeverityEnum["ERROR"] = "error";
9
+ })(AlarmSeverityEnum || (exports.AlarmSeverityEnum = AlarmSeverityEnum = {}));
@@ -1,14 +1,16 @@
1
1
  export declare enum ServiceConfigChannelEnum {
2
2
  LOG = "log",
3
3
  METRICS = "metrics",
4
- AUDIT = "audit"
4
+ AUDIT = "audit",
5
+ ALARM = "alarm"
5
6
  }
6
7
  export declare enum ServiceConfigActionEnum {
7
8
  START = "start",
8
9
  STOP = "stop",
9
10
  PAUSE = "pause",
10
11
  CONTINUE = "continue",
11
- MODIFY = "modify"
12
+ MODIFY = "modify",
13
+ PING = "ping"
12
14
  }
13
15
  export declare enum ServiceConfigFlowEnum {
14
16
  REQUEST = "request",
@@ -30,7 +32,9 @@ export declare enum ServiceConfigScopeEnum {
30
32
  API = "api",
31
33
  CLUSTER = "cluster",
32
34
  SNAPSHOT = "snapshot",
33
- STREAM = "stream"
35
+ STREAM = "stream",
36
+ CREATE = "create",
37
+ SUBSCRIBE = "subscribe"
34
38
  }
35
39
  export interface ServiceConfig {
36
40
  channel: ServiceConfigChannelEnum;
@@ -6,6 +6,7 @@ var ServiceConfigChannelEnum;
6
6
  ServiceConfigChannelEnum["LOG"] = "log";
7
7
  ServiceConfigChannelEnum["METRICS"] = "metrics";
8
8
  ServiceConfigChannelEnum["AUDIT"] = "audit";
9
+ ServiceConfigChannelEnum["ALARM"] = "alarm";
9
10
  })(ServiceConfigChannelEnum || (exports.ServiceConfigChannelEnum = ServiceConfigChannelEnum = {}));
10
11
  var ServiceConfigActionEnum;
11
12
  (function (ServiceConfigActionEnum) {
@@ -14,6 +15,7 @@ var ServiceConfigActionEnum;
14
15
  ServiceConfigActionEnum["PAUSE"] = "pause";
15
16
  ServiceConfigActionEnum["CONTINUE"] = "continue";
16
17
  ServiceConfigActionEnum["MODIFY"] = "modify";
18
+ ServiceConfigActionEnum["PING"] = "ping";
17
19
  })(ServiceConfigActionEnum || (exports.ServiceConfigActionEnum = ServiceConfigActionEnum = {}));
18
20
  var ServiceConfigFlowEnum;
19
21
  (function (ServiceConfigFlowEnum) {
@@ -41,4 +43,7 @@ var ServiceConfigScopeEnum;
41
43
  // METRICS
42
44
  ServiceConfigScopeEnum["SNAPSHOT"] = "snapshot";
43
45
  ServiceConfigScopeEnum["STREAM"] = "stream";
46
+ // ALARM
47
+ ServiceConfigScopeEnum["CREATE"] = "create";
48
+ ServiceConfigScopeEnum["SUBSCRIBE"] = "subscribe";
44
49
  })(ServiceConfigScopeEnum || (exports.ServiceConfigScopeEnum = ServiceConfigScopeEnum = {}));
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
+ // DEPRECATED
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.d.ts CHANGED
@@ -1,11 +1,13 @@
1
1
  export * from './StreamMessage';
2
2
  export * from './ServiceMessage';
3
+ export * from './AlarmMessage';
3
4
  export * from './LogMessage';
4
5
  export * from './MetricsMessage';
5
6
  export * from './SignalMessage';
6
7
  export * from './ApiKey';
7
8
  export * from './AccessKey';
8
9
  export * from './KwirthData';
10
+ export * from './AlarmConfig';
9
11
  export * from './ServiceConfig';
10
12
  export * from './LogConfig';
11
13
  export * from './MetricsConfig';
package/dist/index.js CHANGED
@@ -31,12 +31,14 @@ limitations under the License.
31
31
  */
32
32
  __exportStar(require("./StreamMessage"), exports);
33
33
  __exportStar(require("./ServiceMessage"), exports);
34
+ __exportStar(require("./AlarmMessage"), exports);
34
35
  __exportStar(require("./LogMessage"), exports);
35
36
  __exportStar(require("./MetricsMessage"), exports);
36
37
  __exportStar(require("./SignalMessage"), exports);
37
38
  __exportStar(require("./ApiKey"), exports);
38
39
  __exportStar(require("./AccessKey"), exports);
39
40
  __exportStar(require("./KwirthData"), exports);
41
+ __exportStar(require("./AlarmConfig"), exports);
40
42
  __exportStar(require("./ServiceConfig"), exports);
41
43
  __exportStar(require("./LogConfig"), exports);
42
44
  __exportStar(require("./MetricsConfig"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jfvilas/kwirth-common",
3
- "version": "0.3.35",
3
+ "version": "0.3.37",
4
4
  "description": "Common interfaces for integrating applications with Kwirth",
5
5
  "scripts": {
6
6
  "build": "del .\\dist\\* /s /q && tsc"