@jfvilas/kwirth-common 0.3.0 → 0.3.2

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 LogConfig extends ServiceConfig {
3
+ timestamp: boolean;
4
+ previous: boolean;
5
+ maxMessages: number;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { ServiceConfig } from "./ServiceConfig";
2
+ export interface MetricsConfig extends ServiceConfig {
3
+ interval: number;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,5 @@
1
1
  import { ServiceMessage } from "./ServiceMessage";
2
2
  export interface MetricsMessage extends ServiceMessage {
3
- metrics: string;
4
- value: number;
3
+ metrics: string[];
4
+ value: number[];
5
5
  }
@@ -0,0 +1,15 @@
1
+ export declare enum ServiceConfigTypeEnum {
2
+ LOG = "log",
3
+ METRICS = "metrics"
4
+ }
5
+ export interface ServiceConfig {
6
+ type: ServiceConfigTypeEnum;
7
+ accessKey: string;
8
+ view: string;
9
+ scope: string;
10
+ namespace: string;
11
+ group: string;
12
+ set: string;
13
+ pod: string;
14
+ container: string;
15
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceConfigTypeEnum = void 0;
4
+ var ServiceConfigTypeEnum;
5
+ (function (ServiceConfigTypeEnum) {
6
+ ServiceConfigTypeEnum["LOG"] = "log";
7
+ ServiceConfigTypeEnum["METRICS"] = "metrics";
8
+ // OPER='oper' will be implemented for segregating restart from log
9
+ })(ServiceConfigTypeEnum || (exports.ServiceConfigTypeEnum = ServiceConfigTypeEnum = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jfvilas/kwirth-common",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Common interfaces for integrating applications with Kwirth",
5
5
  "scripts": {
6
6
  "build": "del .\\dist\\* /s /q && tsc"