namirasoft-log 1.3.13 → 1.3.15
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/NamirasoftLogServer.d.ts +2 -0
- package/dist/NamirasoftLogServer.js +2 -0
- package/dist/NamirasoftLogServer.js.map +1 -1
- package/dist/NamirasoftLogServerAlarm.d.ts +10 -0
- package/dist/NamirasoftLogServerAlarm.js +53 -0
- package/dist/NamirasoftLogServerAlarm.js.map +1 -0
- package/dist/NamirasoftLogServerLog.d.ts +2 -2
- package/dist/NamirasoftLogServerLog.js +2 -2
- package/dist/NamirasoftLogServerLog.js.map +1 -1
- package/dist/NamirasoftLogServerLogGroup.d.ts +7 -7
- package/dist/NamirasoftLogServerLogGroup.js +2 -2
- package/dist/NamirasoftLogServerLogGroup.js.map +1 -1
- package/dist/command/AlarmAlarmCommand.d.ts +5 -0
- package/dist/command/AlarmAlarmCommand.js +37 -0
- package/dist/command/AlarmAlarmCommand.js.map +1 -0
- package/dist/command/AlarmCommand.d.ts +4 -0
- package/dist/command/AlarmCommand.js +23 -0
- package/dist/command/AlarmCommand.js.map +1 -0
- package/dist/command/AlarmCreateCommand.d.ts +5 -0
- package/dist/command/AlarmCreateCommand.js +102 -0
- package/dist/command/AlarmCreateCommand.js.map +1 -0
- package/dist/command/AlarmGetAllCommand.d.ts +5 -0
- package/dist/command/AlarmGetAllCommand.js +37 -0
- package/dist/command/AlarmGetAllCommand.js.map +1 -0
- package/dist/command/AlarmGetCommand.d.ts +5 -0
- package/dist/command/AlarmGetCommand.js +37 -0
- package/dist/command/AlarmGetCommand.js.map +1 -0
- package/dist/command/AlarmUpdateCommand.d.ts +5 -0
- package/dist/command/AlarmUpdateCommand.js +102 -0
- package/dist/command/AlarmUpdateCommand.js.map +1 -0
- package/dist/command/LogGetAllCommand.js +1 -1
- package/dist/command/LogGetAllCommand.js.map +1 -1
- package/dist/command/LogGroupGetAllCommand.js +2 -2
- package/dist/command/LogGroupGetAllCommand.js.map +1 -1
- package/dist/command/cli.js +2 -0
- package/dist/command/cli.js.map +1 -1
- package/dist/enum/AlarmLevel.d.ts +11 -0
- package/dist/enum/AlarmLevel.js +16 -0
- package/dist/enum/AlarmLevel.js.map +1 -0
- package/dist/index.d.ts +14 -3
- package/dist/index.js +14 -3
- package/dist/index.js.map +1 -1
- package/dist/row/AlarmRow.d.ts +3 -0
- package/dist/row/{LoggroupRow.js → AlarmRow.js} +1 -1
- package/dist/row/AlarmRow.js.map +1 -0
- package/dist/row/AlarmRowInput.d.ts +10 -0
- package/dist/row/{LoggroupRowInput.js → AlarmRowInput.js} +1 -1
- package/dist/row/AlarmRowInput.js.map +1 -0
- package/dist/row/AlarmRowOutput.d.ts +4 -0
- package/dist/row/{LoggroupRowOutput.js → AlarmRowOutput.js} +1 -1
- package/dist/row/AlarmRowOutput.js.map +1 -0
- package/dist/row/LogGroupRow.d.ts +3 -0
- package/dist/row/LogGroupRow.js +3 -0
- package/dist/row/LogGroupRow.js.map +1 -0
- package/dist/row/{LoggroupRowInput.d.ts → LogGroupRowInput.d.ts} +1 -1
- package/dist/row/LogGroupRowInput.js +3 -0
- package/dist/row/LogGroupRowInput.js.map +1 -0
- package/dist/row/{LoggroupRowOutput.d.ts → LogGroupRowOutput.d.ts} +1 -1
- package/dist/row/LogGroupRowOutput.js +3 -0
- package/dist/row/LogGroupRowOutput.js.map +1 -0
- package/dist/row/LogRowOutput.d.ts +0 -1
- package/package.json +4 -4
- package/src/NamirasoftLogServer.ts +3 -0
- package/src/NamirasoftLogServerAlarm.ts +58 -0
- package/src/NamirasoftLogServerLog.ts +3 -3
- package/src/NamirasoftLogServerLogGroup.ts +11 -11
- package/src/command/AlarmAlarmCommand.ts +45 -0
- package/src/command/AlarmCommand.ts +41 -0
- package/src/command/AlarmCreateCommand.ts +110 -0
- package/src/command/AlarmGetAllCommand.ts +45 -0
- package/src/command/AlarmGetCommand.ts +45 -0
- package/src/command/AlarmUpdateCommand.ts +110 -0
- package/src/command/LogGetAllCommand.ts +1 -1
- package/src/command/LogGroupGetAllCommand.ts +2 -2
- package/src/command/cli.ts +2 -0
- package/src/enum/AlarmLevel.ts +33 -0
- package/src/index.ts +14 -3
- package/src/row/{LoggroupRow.ts → AlarmRow.ts} +3 -3
- package/src/row/AlarmRowInput.ts +33 -0
- package/src/row/AlarmRowOutput.ts +26 -0
- package/src/row/LogGroupRow.ts +25 -0
- package/src/row/{LoggroupRowInput.ts → LogGroupRowInput.ts} +1 -1
- package/src/row/{LoggroupRowOutput.ts → LogGroupRowOutput.ts} +1 -1
- package/src/row/LogRowOutput.ts +0 -1
- package/dist/row/LoggroupRow.d.ts +0 -3
- package/dist/row/LoggroupRow.js.map +0 -1
- package/dist/row/LoggroupRowInput.js.map +0 -1
- package/dist/row/LoggroupRowOutput.js.map +0 -1
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
|
|
2
|
+
/****************************************************************/
|
|
3
|
+
/* */
|
|
4
|
+
/* This is an Auto-Generated File */
|
|
5
|
+
/* Made By */
|
|
6
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
7
|
+
/* */
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/****************************************************************/
|
|
10
|
+
/* */
|
|
11
|
+
/* Please do not make any change to this file */
|
|
12
|
+
/* If any changed is reqired, ns-sdkg command must be used */
|
|
13
|
+
/* */
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/****************************************************************/
|
|
16
|
+
/* */
|
|
17
|
+
/* Namira Software Corporation */
|
|
18
|
+
/* https://namirasoft.com */
|
|
19
|
+
/* */
|
|
20
|
+
/****************************************************************/
|
|
21
|
+
|
|
22
|
+
import { BaseFinalCommand } from "namirasoft-node-cli";
|
|
23
|
+
import { IStorageMemory } from "namirasoft-core";
|
|
24
|
+
import { NamirasoftLogServer } from "../NamirasoftLogServer";
|
|
25
|
+
import { TokenManager } from "namirasoft-account";
|
|
26
|
+
|
|
27
|
+
export class AlarmCreateCommand extends BaseFinalCommand
|
|
28
|
+
{
|
|
29
|
+
constructor(argv: string[])
|
|
30
|
+
{
|
|
31
|
+
super(argv, [], [
|
|
32
|
+
{
|
|
33
|
+
name: "log_group_id",
|
|
34
|
+
short: "",
|
|
35
|
+
description: "Provides the value of 'log_group_id' in body",
|
|
36
|
+
optional: true,
|
|
37
|
+
args: ["log_group_id"],
|
|
38
|
+
defaults: [""]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: "product_id",
|
|
42
|
+
short: "",
|
|
43
|
+
description: "Provides the value of 'product_id' in body",
|
|
44
|
+
optional: true,
|
|
45
|
+
args: ["product_id"],
|
|
46
|
+
defaults: [""]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: "project_id",
|
|
50
|
+
short: "",
|
|
51
|
+
description: "Provides the value of 'project_id' in body",
|
|
52
|
+
optional: true,
|
|
53
|
+
args: ["project_id"],
|
|
54
|
+
defaults: [""]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: "level",
|
|
58
|
+
short: "",
|
|
59
|
+
description: "Provides the value of 'level' in body",
|
|
60
|
+
optional: true,
|
|
61
|
+
args: ["level"],
|
|
62
|
+
defaults: [""]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: "message",
|
|
66
|
+
short: "",
|
|
67
|
+
description: "Provides the value of 'message' in body",
|
|
68
|
+
optional: true,
|
|
69
|
+
args: ["message"],
|
|
70
|
+
defaults: [""]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "stack",
|
|
74
|
+
short: "",
|
|
75
|
+
description: "Provides the value of 'stack' in body",
|
|
76
|
+
optional: true,
|
|
77
|
+
args: ["stack"],
|
|
78
|
+
defaults: [""]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: "notification_sender_topic_id",
|
|
82
|
+
short: "",
|
|
83
|
+
description: "Provides the value of 'notification_sender_topic_id' in body",
|
|
84
|
+
optional: false,
|
|
85
|
+
args: ["notification_sender_topic_id"],
|
|
86
|
+
defaults: [""]
|
|
87
|
+
}
|
|
88
|
+
]);
|
|
89
|
+
}
|
|
90
|
+
override async exec()
|
|
91
|
+
{
|
|
92
|
+
let token = this.app.storage.getNSAToken();
|
|
93
|
+
if (token == null)
|
|
94
|
+
throw new Error("Token is not available. Please login first using:\nns-log account config \nor \n{this.command} account login.");
|
|
95
|
+
let storage = new IStorageMemory();
|
|
96
|
+
let manager = new TokenManager(storage, () => { });
|
|
97
|
+
manager.setValue(token, false);
|
|
98
|
+
let server = new NamirasoftLogServer(manager, e => this.app.logger.error(e.message));
|
|
99
|
+
let ans = await server.alarm.Create({
|
|
100
|
+
log_group_id: this.option_values.log_group_id,
|
|
101
|
+
product_id: this.option_values.product_id,
|
|
102
|
+
project_id: this.option_values.project_id,
|
|
103
|
+
level: this.option_values.level,
|
|
104
|
+
message: this.option_values.message,
|
|
105
|
+
stack: this.option_values.stack,
|
|
106
|
+
notification_sender_topic_id: this.option_values.notification_sender_topic_id
|
|
107
|
+
});
|
|
108
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
109
|
+
}
|
|
110
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
|
|
2
|
+
/****************************************************************/
|
|
3
|
+
/* */
|
|
4
|
+
/* This is an Auto-Generated File */
|
|
5
|
+
/* Made By */
|
|
6
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
7
|
+
/* */
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/****************************************************************/
|
|
10
|
+
/* */
|
|
11
|
+
/* Please do not make any change to this file */
|
|
12
|
+
/* If any changed is reqired, ns-sdkg command must be used */
|
|
13
|
+
/* */
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/****************************************************************/
|
|
16
|
+
/* */
|
|
17
|
+
/* Namira Software Corporation */
|
|
18
|
+
/* https://namirasoft.com */
|
|
19
|
+
/* */
|
|
20
|
+
/****************************************************************/
|
|
21
|
+
|
|
22
|
+
import { BaseFinalCommand } from "namirasoft-node-cli";
|
|
23
|
+
import { IStorageMemory } from "namirasoft-core";
|
|
24
|
+
import { NamirasoftLogServer } from "../NamirasoftLogServer";
|
|
25
|
+
import { TokenManager } from "namirasoft-account";
|
|
26
|
+
|
|
27
|
+
export class AlarmGetAllCommand extends BaseFinalCommand
|
|
28
|
+
{
|
|
29
|
+
constructor(argv: string[])
|
|
30
|
+
{
|
|
31
|
+
super(argv, ["filters", "page", "size"], []);
|
|
32
|
+
}
|
|
33
|
+
override async exec()
|
|
34
|
+
{
|
|
35
|
+
let token = this.app.storage.getNSAToken();
|
|
36
|
+
if (token == null)
|
|
37
|
+
throw new Error("Token is not available. Please login first using:\nns-log account config \nor \n{this.command} account login.");
|
|
38
|
+
let storage = new IStorageMemory();
|
|
39
|
+
let manager = new TokenManager(storage, () => { });
|
|
40
|
+
manager.setValue(token, false);
|
|
41
|
+
let server = new NamirasoftLogServer(manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.alarm.GetAll(this.arg_values[0], this.arg_values[1], this.arg_values[2]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
|
|
2
|
+
/****************************************************************/
|
|
3
|
+
/* */
|
|
4
|
+
/* This is an Auto-Generated File */
|
|
5
|
+
/* Made By */
|
|
6
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
7
|
+
/* */
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/****************************************************************/
|
|
10
|
+
/* */
|
|
11
|
+
/* Please do not make any change to this file */
|
|
12
|
+
/* If any changed is reqired, ns-sdkg command must be used */
|
|
13
|
+
/* */
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/****************************************************************/
|
|
16
|
+
/* */
|
|
17
|
+
/* Namira Software Corporation */
|
|
18
|
+
/* https://namirasoft.com */
|
|
19
|
+
/* */
|
|
20
|
+
/****************************************************************/
|
|
21
|
+
|
|
22
|
+
import { BaseFinalCommand } from "namirasoft-node-cli";
|
|
23
|
+
import { IStorageMemory } from "namirasoft-core";
|
|
24
|
+
import { NamirasoftLogServer } from "../NamirasoftLogServer";
|
|
25
|
+
import { TokenManager } from "namirasoft-account";
|
|
26
|
+
|
|
27
|
+
export class AlarmGetCommand extends BaseFinalCommand
|
|
28
|
+
{
|
|
29
|
+
constructor(argv: string[])
|
|
30
|
+
{
|
|
31
|
+
super(argv, ["id"], []);
|
|
32
|
+
}
|
|
33
|
+
override async exec()
|
|
34
|
+
{
|
|
35
|
+
let token = this.app.storage.getNSAToken();
|
|
36
|
+
if (token == null)
|
|
37
|
+
throw new Error("Token is not available. Please login first using:\nns-log account config \nor \n{this.command} account login.");
|
|
38
|
+
let storage = new IStorageMemory();
|
|
39
|
+
let manager = new TokenManager(storage, () => { });
|
|
40
|
+
manager.setValue(token, false);
|
|
41
|
+
let server = new NamirasoftLogServer(manager, e => this.app.logger.error(e.message));
|
|
42
|
+
let ans = await server.alarm.Get(this.arg_values[0]);
|
|
43
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
|
|
2
|
+
/****************************************************************/
|
|
3
|
+
/* */
|
|
4
|
+
/* This is an Auto-Generated File */
|
|
5
|
+
/* Made By */
|
|
6
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
7
|
+
/* */
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/****************************************************************/
|
|
10
|
+
/* */
|
|
11
|
+
/* Please do not make any change to this file */
|
|
12
|
+
/* If any changed is reqired, ns-sdkg command must be used */
|
|
13
|
+
/* */
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/****************************************************************/
|
|
16
|
+
/* */
|
|
17
|
+
/* Namira Software Corporation */
|
|
18
|
+
/* https://namirasoft.com */
|
|
19
|
+
/* */
|
|
20
|
+
/****************************************************************/
|
|
21
|
+
|
|
22
|
+
import { BaseFinalCommand } from "namirasoft-node-cli";
|
|
23
|
+
import { IStorageMemory } from "namirasoft-core";
|
|
24
|
+
import { NamirasoftLogServer } from "../NamirasoftLogServer";
|
|
25
|
+
import { TokenManager } from "namirasoft-account";
|
|
26
|
+
|
|
27
|
+
export class AlarmUpdateCommand extends BaseFinalCommand
|
|
28
|
+
{
|
|
29
|
+
constructor(argv: string[])
|
|
30
|
+
{
|
|
31
|
+
super(argv, ["id"], [
|
|
32
|
+
{
|
|
33
|
+
name: "log_group_id",
|
|
34
|
+
short: "",
|
|
35
|
+
description: "Provides the value of 'log_group_id' in body",
|
|
36
|
+
optional: true,
|
|
37
|
+
args: ["log_group_id"],
|
|
38
|
+
defaults: [""]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: "product_id",
|
|
42
|
+
short: "",
|
|
43
|
+
description: "Provides the value of 'product_id' in body",
|
|
44
|
+
optional: true,
|
|
45
|
+
args: ["product_id"],
|
|
46
|
+
defaults: [""]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: "project_id",
|
|
50
|
+
short: "",
|
|
51
|
+
description: "Provides the value of 'project_id' in body",
|
|
52
|
+
optional: true,
|
|
53
|
+
args: ["project_id"],
|
|
54
|
+
defaults: [""]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: "level",
|
|
58
|
+
short: "",
|
|
59
|
+
description: "Provides the value of 'level' in body",
|
|
60
|
+
optional: true,
|
|
61
|
+
args: ["level"],
|
|
62
|
+
defaults: [""]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: "message",
|
|
66
|
+
short: "",
|
|
67
|
+
description: "Provides the value of 'message' in body",
|
|
68
|
+
optional: true,
|
|
69
|
+
args: ["message"],
|
|
70
|
+
defaults: [""]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "stack",
|
|
74
|
+
short: "",
|
|
75
|
+
description: "Provides the value of 'stack' in body",
|
|
76
|
+
optional: true,
|
|
77
|
+
args: ["stack"],
|
|
78
|
+
defaults: [""]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: "notification_sender_topic_id",
|
|
82
|
+
short: "",
|
|
83
|
+
description: "Provides the value of 'notification_sender_topic_id' in body",
|
|
84
|
+
optional: false,
|
|
85
|
+
args: ["notification_sender_topic_id"],
|
|
86
|
+
defaults: [""]
|
|
87
|
+
}
|
|
88
|
+
]);
|
|
89
|
+
}
|
|
90
|
+
override async exec()
|
|
91
|
+
{
|
|
92
|
+
let token = this.app.storage.getNSAToken();
|
|
93
|
+
if (token == null)
|
|
94
|
+
throw new Error("Token is not available. Please login first using:\nns-log account config \nor \n{this.command} account login.");
|
|
95
|
+
let storage = new IStorageMemory();
|
|
96
|
+
let manager = new TokenManager(storage, () => { });
|
|
97
|
+
manager.setValue(token, false);
|
|
98
|
+
let server = new NamirasoftLogServer(manager, e => this.app.logger.error(e.message));
|
|
99
|
+
let ans = await server.alarm.Update(this.arg_values[0], {
|
|
100
|
+
log_group_id: this.option_values.log_group_id,
|
|
101
|
+
product_id: this.option_values.product_id,
|
|
102
|
+
project_id: this.option_values.project_id,
|
|
103
|
+
level: this.option_values.level,
|
|
104
|
+
message: this.option_values.message,
|
|
105
|
+
stack: this.option_values.stack,
|
|
106
|
+
notification_sender_topic_id: this.option_values.notification_sender_topic_id
|
|
107
|
+
});
|
|
108
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
109
|
+
}
|
|
110
|
+
};
|
|
@@ -28,7 +28,7 @@ export class LogGroupGetAllCommand extends BaseFinalCommand
|
|
|
28
28
|
{
|
|
29
29
|
constructor(argv: string[])
|
|
30
30
|
{
|
|
31
|
-
super(argv, ["
|
|
31
|
+
super(argv, ["filters", "page", "size"], []);
|
|
32
32
|
}
|
|
33
33
|
override async exec()
|
|
34
34
|
{
|
|
@@ -39,7 +39,7 @@ export class LogGroupGetAllCommand extends BaseFinalCommand
|
|
|
39
39
|
let manager = new TokenManager(storage, () => { });
|
|
40
40
|
manager.setValue(token, false);
|
|
41
41
|
let server = new NamirasoftLogServer(manager, e => this.app.logger.error(e.message));
|
|
42
|
-
let ans = await server.loggroup.GetAll(this.arg_values[0], this.arg_values[1]);
|
|
42
|
+
let ans = await server.loggroup.GetAll(this.arg_values[0], this.arg_values[1], this.arg_values[2]);
|
|
43
43
|
this.app.logger.success(JSON.stringify(ans));
|
|
44
44
|
}
|
|
45
45
|
};
|
package/src/command/cli.ts
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
/****************************************************************/
|
|
21
21
|
|
|
22
22
|
import { AccountCommand } from "namirasoft-account";
|
|
23
|
+
import { AlarmCommand } from "./AlarmCommand";
|
|
23
24
|
import { Application, BaseStorage } from "namirasoft-node-cli";
|
|
24
25
|
import { HealthzCommand } from "./HealthzCommand";
|
|
25
26
|
import { LogCommand } from "./LogCommand";
|
|
@@ -30,6 +31,7 @@ let app = new Application("ns-log", new BaseStorage(),
|
|
|
30
31
|
"healthz": HealthzCommand,
|
|
31
32
|
"log": LogCommand,
|
|
32
33
|
"loggroup": LogGroupCommand,
|
|
34
|
+
"alarm": AlarmCommand,
|
|
33
35
|
"account": AccountCommand
|
|
34
36
|
});
|
|
35
37
|
app.run();
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
/****************************************************************/
|
|
3
|
+
/* */
|
|
4
|
+
/* This is an Auto-Generated File */
|
|
5
|
+
/* Made By */
|
|
6
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
7
|
+
/* */
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/****************************************************************/
|
|
10
|
+
/* */
|
|
11
|
+
/* Please do not make any change to this file */
|
|
12
|
+
/* If any changed is reqired, ns-sdkg command must be used */
|
|
13
|
+
/* */
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/****************************************************************/
|
|
16
|
+
/* */
|
|
17
|
+
/* Namira Software Corporation */
|
|
18
|
+
/* https://namirasoft.com */
|
|
19
|
+
/* */
|
|
20
|
+
/****************************************************************/
|
|
21
|
+
|
|
22
|
+
export enum AlarmLevel
|
|
23
|
+
{
|
|
24
|
+
Trace = "Trace",
|
|
25
|
+
Verbose = "Verbose",
|
|
26
|
+
Debug = "Debug",
|
|
27
|
+
Info = "Info",
|
|
28
|
+
Success = "Success",
|
|
29
|
+
Warning = "Warning",
|
|
30
|
+
Error = "Error",
|
|
31
|
+
Critical = "Critical",
|
|
32
|
+
Fatal = "Fatal",
|
|
33
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -29,6 +29,7 @@ export * from "./Log";
|
|
|
29
29
|
export * from "./LogLevel";
|
|
30
30
|
export * from "./Logger";
|
|
31
31
|
export * from "./NamirasoftLogServer";
|
|
32
|
+
export * from "./NamirasoftLogServerAlarm";
|
|
32
33
|
export * from "./NamirasoftLogServerBase";
|
|
33
34
|
export * from "./NamirasoftLogServerHealthz";
|
|
34
35
|
export * from "./NamirasoftLogServerLog";
|
|
@@ -36,6 +37,12 @@ export * from "./NamirasoftLogServerLogGroup";
|
|
|
36
37
|
export * from "./StreamConsole";
|
|
37
38
|
export * from "./StreamFile";
|
|
38
39
|
export * from "./StreamNamirasoftLog";
|
|
40
|
+
export * from "./command/AlarmAlarmCommand";
|
|
41
|
+
export * from "./command/AlarmCommand";
|
|
42
|
+
export * from "./command/AlarmCreateCommand";
|
|
43
|
+
export * from "./command/AlarmGetAllCommand";
|
|
44
|
+
export * from "./command/AlarmGetCommand";
|
|
45
|
+
export * from "./command/AlarmUpdateCommand";
|
|
39
46
|
export * from "./command/HealthzCommand";
|
|
40
47
|
export * from "./command/HealthzGetCommand";
|
|
41
48
|
export * from "./command/LogCommand";
|
|
@@ -48,9 +55,13 @@ export * from "./command/LogGroupDeleteCommand";
|
|
|
48
55
|
export * from "./command/LogGroupGetAllCommand";
|
|
49
56
|
export * from "./command/LogGroupGetCommand";
|
|
50
57
|
export * from "./command/LogGroupUpdateCommand";
|
|
58
|
+
export * from "./enum/AlarmLevel";
|
|
59
|
+
export * from "./row/AlarmRow";
|
|
60
|
+
export * from "./row/AlarmRowInput";
|
|
61
|
+
export * from "./row/AlarmRowOutput";
|
|
62
|
+
export * from "./row/LogGroupRow";
|
|
63
|
+
export * from "./row/LogGroupRowInput";
|
|
64
|
+
export * from "./row/LogGroupRowOutput";
|
|
51
65
|
export * from "./row/LogRow";
|
|
52
66
|
export * from "./row/LogRowInput";
|
|
53
67
|
export * from "./row/LogRowOutput";
|
|
54
|
-
export * from "./row/LoggroupRow";
|
|
55
|
-
export * from "./row/LoggroupRowInput";
|
|
56
|
-
export * from "./row/LoggroupRowOutput";
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
/* */
|
|
20
20
|
/****************************************************************/
|
|
21
21
|
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
22
|
+
import { AlarmRowInput } from "./AlarmRowInput";
|
|
23
|
+
import { AlarmRowOutput } from "./AlarmRowOutput";
|
|
24
24
|
|
|
25
|
-
export type
|
|
25
|
+
export type AlarmRow = AlarmRowInput & AlarmRowOutput;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
/****************************************************************/
|
|
3
|
+
/* */
|
|
4
|
+
/* This is an Auto-Generated File */
|
|
5
|
+
/* Made By */
|
|
6
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
7
|
+
/* */
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/****************************************************************/
|
|
10
|
+
/* */
|
|
11
|
+
/* Please do not make any change to this file */
|
|
12
|
+
/* If any changed is reqired, ns-sdkg command must be used */
|
|
13
|
+
/* */
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/****************************************************************/
|
|
16
|
+
/* */
|
|
17
|
+
/* Namira Software Corporation */
|
|
18
|
+
/* https://namirasoft.com */
|
|
19
|
+
/* */
|
|
20
|
+
/****************************************************************/
|
|
21
|
+
|
|
22
|
+
import { AlarmLevel } from "../enum/AlarmLevel";
|
|
23
|
+
|
|
24
|
+
export type AlarmRowInput =
|
|
25
|
+
{
|
|
26
|
+
log_group_id: (string | null);
|
|
27
|
+
product_id: (string | null);
|
|
28
|
+
project_id: (string | null);
|
|
29
|
+
level: (AlarmLevel | null);
|
|
30
|
+
message: (string | null);
|
|
31
|
+
stack: (string | null);
|
|
32
|
+
notification_sender_topic_id: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
/****************************************************************/
|
|
3
|
+
/* */
|
|
4
|
+
/* This is an Auto-Generated File */
|
|
5
|
+
/* Made By */
|
|
6
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
7
|
+
/* */
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/****************************************************************/
|
|
10
|
+
/* */
|
|
11
|
+
/* Please do not make any change to this file */
|
|
12
|
+
/* If any changed is reqired, ns-sdkg command must be used */
|
|
13
|
+
/* */
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/****************************************************************/
|
|
16
|
+
/* */
|
|
17
|
+
/* Namira Software Corporation */
|
|
18
|
+
/* https://namirasoft.com */
|
|
19
|
+
/* */
|
|
20
|
+
/****************************************************************/
|
|
21
|
+
|
|
22
|
+
export type AlarmRowOutput =
|
|
23
|
+
{
|
|
24
|
+
id: number;
|
|
25
|
+
user_id: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
/****************************************************************/
|
|
3
|
+
/* */
|
|
4
|
+
/* This is an Auto-Generated File */
|
|
5
|
+
/* Made By */
|
|
6
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
7
|
+
/* */
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/****************************************************************/
|
|
10
|
+
/* */
|
|
11
|
+
/* Please do not make any change to this file */
|
|
12
|
+
/* If any changed is reqired, ns-sdkg command must be used */
|
|
13
|
+
/* */
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/****************************************************************/
|
|
16
|
+
/* */
|
|
17
|
+
/* Namira Software Corporation */
|
|
18
|
+
/* https://namirasoft.com */
|
|
19
|
+
/* */
|
|
20
|
+
/****************************************************************/
|
|
21
|
+
|
|
22
|
+
import { LogGroupRowInput } from "./LogGroupRowInput";
|
|
23
|
+
import { LogGroupRowOutput } from "./LogGroupRowOutput";
|
|
24
|
+
|
|
25
|
+
export type LogGroupRow = LogGroupRowInput & LogGroupRowOutput;
|
package/src/row/LogRowOutput.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoggroupRow.js","sourceRoot":"","sources":["../../src/row/LoggroupRow.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoggroupRowInput.js","sourceRoot":"","sources":["../../src/row/LoggroupRowInput.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoggroupRowOutput.js","sourceRoot":"","sources":["../../src/row/LoggroupRowOutput.ts"],"names":[],"mappings":""}
|