namirasoft-infra 1.4.0 → 1.4.1
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/NamirasoftInfraServer.d.ts +16 -0
- package/dist/NamirasoftInfraServer.js +17 -1
- package/dist/NamirasoftInfraServer.js.map +1 -1
- package/dist/NamirasoftInfraServerMetric.d.ts +19 -0
- package/dist/NamirasoftInfraServerMetric.js +72 -0
- package/dist/NamirasoftInfraServerMetric.js.map +1 -0
- package/dist/NamirasoftInfraServerMetricCategory.d.ts +17 -0
- package/dist/NamirasoftInfraServerMetricCategory.js +56 -0
- package/dist/NamirasoftInfraServerMetricCategory.js.map +1 -0
- package/dist/NamirasoftInfraServerMetricField.d.ts +18 -0
- package/dist/NamirasoftInfraServerMetricField.js +64 -0
- package/dist/NamirasoftInfraServerMetricField.js.map +1 -0
- package/dist/NamirasoftInfraServerMetricTag.d.ts +18 -0
- package/dist/NamirasoftInfraServerMetricTag.js +64 -0
- package/dist/NamirasoftInfraServerMetricTag.js.map +1 -0
- package/dist/NamirasoftInfraServerMonitor.d.ts +20 -0
- package/dist/NamirasoftInfraServerMonitor.js +72 -0
- package/dist/NamirasoftInfraServerMonitor.js.map +1 -0
- package/dist/NamirasoftInfraServerMonitorCategory.d.ts +17 -0
- package/dist/NamirasoftInfraServerMonitorCategory.js +56 -0
- package/dist/NamirasoftInfraServerMonitorCategory.js.map +1 -0
- package/dist/NamirasoftInfraServerMonitorField.d.ts +18 -0
- package/dist/NamirasoftInfraServerMonitorField.js +64 -0
- package/dist/NamirasoftInfraServerMonitorField.js.map +1 -0
- package/dist/NamirasoftInfraServerMonitorTag.d.ts +18 -0
- package/dist/NamirasoftInfraServerMonitorTag.js +64 -0
- package/dist/NamirasoftInfraServerMonitorTag.js.map +1 -0
- package/dist/command/MetricCategoryCommand.d.ts +4 -0
- package/dist/command/MetricCategoryCommand.js +21 -0
- package/dist/command/MetricCategoryCommand.js.map +1 -0
- package/dist/command/MetricCategoryCreateCommand.d.ts +5 -0
- package/dist/command/MetricCategoryCreateCommand.js +58 -0
- package/dist/command/MetricCategoryCreateCommand.js.map +1 -0
- package/dist/command/MetricCategoryDeleteCommand.d.ts +5 -0
- package/dist/command/MetricCategoryDeleteCommand.js +38 -0
- package/dist/command/MetricCategoryDeleteCommand.js.map +1 -0
- package/dist/command/MetricCategoryGetCommand.d.ts +5 -0
- package/dist/command/MetricCategoryGetCommand.js +38 -0
- package/dist/command/MetricCategoryGetCommand.js.map +1 -0
- package/dist/command/MetricCategoryListCommand.d.ts +5 -0
- package/dist/command/MetricCategoryListCommand.js +38 -0
- package/dist/command/MetricCategoryListCommand.js.map +1 -0
- package/dist/command/MetricCommand.d.ts +4 -0
- package/dist/command/MetricCommand.js +25 -0
- package/dist/command/MetricCommand.js.map +1 -0
- package/dist/command/MetricCreateCommand.d.ts +5 -0
- package/dist/command/MetricCreateCommand.js +139 -0
- package/dist/command/MetricCreateCommand.js.map +1 -0
- package/dist/command/MetricDeleteCommand.d.ts +5 -0
- package/dist/command/MetricDeleteCommand.js +38 -0
- package/dist/command/MetricDeleteCommand.js.map +1 -0
- package/dist/command/MetricFieldCommand.d.ts +4 -0
- package/dist/command/MetricFieldCommand.js +23 -0
- package/dist/command/MetricFieldCommand.js.map +1 -0
- package/dist/command/MetricFieldCreateCommand.d.ts +5 -0
- package/dist/command/MetricFieldCreateCommand.js +67 -0
- package/dist/command/MetricFieldCreateCommand.js.map +1 -0
- package/dist/command/MetricFieldDeleteCommand.d.ts +5 -0
- package/dist/command/MetricFieldDeleteCommand.js +38 -0
- package/dist/command/MetricFieldDeleteCommand.js.map +1 -0
- package/dist/command/MetricFieldGetCommand.d.ts +5 -0
- package/dist/command/MetricFieldGetCommand.js +38 -0
- package/dist/command/MetricFieldGetCommand.js.map +1 -0
- package/dist/command/MetricFieldListCommand.d.ts +5 -0
- package/dist/command/MetricFieldListCommand.js +38 -0
- package/dist/command/MetricFieldListCommand.js.map +1 -0
- package/dist/command/MetricFieldUpdateCommand.d.ts +5 -0
- package/dist/command/MetricFieldUpdateCommand.js +67 -0
- package/dist/command/MetricFieldUpdateCommand.js.map +1 -0
- package/dist/command/MetricGetCommand.d.ts +5 -0
- package/dist/command/MetricGetCommand.js +38 -0
- package/dist/command/MetricGetCommand.js.map +1 -0
- package/dist/command/MetricListCommand.d.ts +5 -0
- package/dist/command/MetricListCommand.js +38 -0
- package/dist/command/MetricListCommand.js.map +1 -0
- package/dist/command/MetricResultCommand.d.ts +5 -0
- package/dist/command/MetricResultCommand.js +38 -0
- package/dist/command/MetricResultCommand.js.map +1 -0
- package/dist/command/MetricTagCommand.d.ts +4 -0
- package/dist/command/MetricTagCommand.js +23 -0
- package/dist/command/MetricTagCommand.js.map +1 -0
- package/dist/command/MetricTagCreateCommand.d.ts +5 -0
- package/dist/command/MetricTagCreateCommand.js +67 -0
- package/dist/command/MetricTagCreateCommand.js.map +1 -0
- package/dist/command/MetricTagDeleteCommand.d.ts +5 -0
- package/dist/command/MetricTagDeleteCommand.js +38 -0
- package/dist/command/MetricTagDeleteCommand.js.map +1 -0
- package/dist/command/MetricTagGetCommand.d.ts +5 -0
- package/dist/command/MetricTagGetCommand.js +38 -0
- package/dist/command/MetricTagGetCommand.js.map +1 -0
- package/dist/command/MetricTagListCommand.d.ts +5 -0
- package/dist/command/MetricTagListCommand.js +38 -0
- package/dist/command/MetricTagListCommand.js.map +1 -0
- package/dist/command/MetricTagUpdateCommand.d.ts +5 -0
- package/dist/command/MetricTagUpdateCommand.js +67 -0
- package/dist/command/MetricTagUpdateCommand.js.map +1 -0
- package/dist/command/MetricUpdateCommand.d.ts +5 -0
- package/dist/command/MetricUpdateCommand.js +139 -0
- package/dist/command/MetricUpdateCommand.js.map +1 -0
- package/dist/command/MonitorCategoryCommand.d.ts +4 -0
- package/dist/command/MonitorCategoryCommand.js +21 -0
- package/dist/command/MonitorCategoryCommand.js.map +1 -0
- package/dist/command/MonitorCategoryCreateCommand.d.ts +5 -0
- package/dist/command/MonitorCategoryCreateCommand.js +58 -0
- package/dist/command/MonitorCategoryCreateCommand.js.map +1 -0
- package/dist/command/MonitorCategoryDeleteCommand.d.ts +5 -0
- package/dist/command/MonitorCategoryDeleteCommand.js +38 -0
- package/dist/command/MonitorCategoryDeleteCommand.js.map +1 -0
- package/dist/command/MonitorCategoryGetCommand.d.ts +5 -0
- package/dist/command/MonitorCategoryGetCommand.js +38 -0
- package/dist/command/MonitorCategoryGetCommand.js.map +1 -0
- package/dist/command/MonitorCategoryListCommand.d.ts +5 -0
- package/dist/command/MonitorCategoryListCommand.js +38 -0
- package/dist/command/MonitorCategoryListCommand.js.map +1 -0
- package/dist/command/MonitorCommand.d.ts +4 -0
- package/dist/command/MonitorCommand.js +25 -0
- package/dist/command/MonitorCommand.js.map +1 -0
- package/dist/command/MonitorCreateCommand.d.ts +5 -0
- package/dist/command/MonitorCreateCommand.js +382 -0
- package/dist/command/MonitorCreateCommand.js.map +1 -0
- package/dist/command/MonitorDeleteCommand.d.ts +5 -0
- package/dist/command/MonitorDeleteCommand.js +38 -0
- package/dist/command/MonitorDeleteCommand.js.map +1 -0
- package/dist/command/MonitorFieldCommand.d.ts +4 -0
- package/dist/command/MonitorFieldCommand.js +23 -0
- package/dist/command/MonitorFieldCommand.js.map +1 -0
- package/dist/command/MonitorFieldCreateCommand.d.ts +5 -0
- package/dist/command/MonitorFieldCreateCommand.js +67 -0
- package/dist/command/MonitorFieldCreateCommand.js.map +1 -0
- package/dist/command/MonitorFieldDeleteCommand.d.ts +5 -0
- package/dist/command/MonitorFieldDeleteCommand.js +38 -0
- package/dist/command/MonitorFieldDeleteCommand.js.map +1 -0
- package/dist/command/MonitorFieldGetCommand.d.ts +5 -0
- package/dist/command/MonitorFieldGetCommand.js +38 -0
- package/dist/command/MonitorFieldGetCommand.js.map +1 -0
- package/dist/command/MonitorFieldListCommand.d.ts +5 -0
- package/dist/command/MonitorFieldListCommand.js +38 -0
- package/dist/command/MonitorFieldListCommand.js.map +1 -0
- package/dist/command/MonitorFieldUpdateCommand.d.ts +5 -0
- package/dist/command/MonitorFieldUpdateCommand.js +67 -0
- package/dist/command/MonitorFieldUpdateCommand.js.map +1 -0
- package/dist/command/MonitorGetCommand.d.ts +5 -0
- package/dist/command/MonitorGetCommand.js +38 -0
- package/dist/command/MonitorGetCommand.js.map +1 -0
- package/dist/command/MonitorListCommand.d.ts +5 -0
- package/dist/command/MonitorListCommand.js +38 -0
- package/dist/command/MonitorListCommand.js.map +1 -0
- package/dist/command/MonitorResultCommand.d.ts +5 -0
- package/dist/command/MonitorResultCommand.js +38 -0
- package/dist/command/MonitorResultCommand.js.map +1 -0
- package/dist/command/MonitorTagCommand.d.ts +4 -0
- package/dist/command/MonitorTagCommand.js +23 -0
- package/dist/command/MonitorTagCommand.js.map +1 -0
- package/dist/command/MonitorTagCreateCommand.d.ts +5 -0
- package/dist/command/MonitorTagCreateCommand.js +67 -0
- package/dist/command/MonitorTagCreateCommand.js.map +1 -0
- package/dist/command/MonitorTagDeleteCommand.d.ts +5 -0
- package/dist/command/MonitorTagDeleteCommand.js +38 -0
- package/dist/command/MonitorTagDeleteCommand.js.map +1 -0
- package/dist/command/MonitorTagGetCommand.d.ts +5 -0
- package/dist/command/MonitorTagGetCommand.js +38 -0
- package/dist/command/MonitorTagGetCommand.js.map +1 -0
- package/dist/command/MonitorTagListCommand.d.ts +5 -0
- package/dist/command/MonitorTagListCommand.js +38 -0
- package/dist/command/MonitorTagListCommand.js.map +1 -0
- package/dist/command/MonitorTagUpdateCommand.d.ts +5 -0
- package/dist/command/MonitorTagUpdateCommand.js +67 -0
- package/dist/command/MonitorTagUpdateCommand.js.map +1 -0
- package/dist/command/MonitorUpdateCommand.d.ts +5 -0
- package/dist/command/MonitorUpdateCommand.js +382 -0
- package/dist/command/MonitorUpdateCommand.js.map +1 -0
- package/dist/command/cli.js +16 -0
- package/dist/command/cli.js.map +1 -1
- package/dist/enum/MetricCallerType.d.ts +5 -0
- package/dist/enum/MetricCallerType.js +10 -0
- package/dist/enum/MetricCallerType.js.map +1 -0
- package/dist/enum/MetricIntervalUnit.d.ts +5 -0
- package/dist/enum/MetricIntervalUnit.js +10 -0
- package/dist/enum/MetricIntervalUnit.js.map +1 -0
- package/dist/enum/MonitorCallerType.d.ts +5 -0
- package/dist/enum/MonitorCallerType.js +10 -0
- package/dist/enum/MonitorCallerType.js.map +1 -0
- package/dist/enum/MonitorDockerContainerConnectionType.d.ts +4 -0
- package/dist/enum/MonitorDockerContainerConnectionType.js +9 -0
- package/dist/enum/MonitorDockerContainerConnectionType.js.map +1 -0
- package/dist/enum/MonitorHTTPBodyEncoding.d.ts +5 -0
- package/dist/enum/MonitorHTTPBodyEncoding.js +10 -0
- package/dist/enum/MonitorHTTPBodyEncoding.js.map +1 -0
- package/dist/enum/MonitorHeartbeatIntervalUnit.d.ts +5 -0
- package/dist/enum/MonitorHeartbeatIntervalUnit.js +10 -0
- package/dist/enum/MonitorHeartbeatIntervalUnit.js.map +1 -0
- package/dist/enum/MonitorHeartbeatRetryIntervalUnit.d.ts +5 -0
- package/dist/enum/MonitorHeartbeatRetryIntervalUnit.js +10 -0
- package/dist/enum/MonitorHeartbeatRetryIntervalUnit.js.map +1 -0
- package/dist/enum/MonitorKubernetesPodControllerType.d.ts +5 -0
- package/dist/enum/MonitorKubernetesPodControllerType.js +10 -0
- package/dist/enum/MonitorKubernetesPodControllerType.js.map +1 -0
- package/dist/enum/MonitorRequestTimeoutUnit.d.ts +4 -0
- package/dist/enum/MonitorRequestTimeoutUnit.js +9 -0
- package/dist/enum/MonitorRequestTimeoutUnit.js.map +1 -0
- package/dist/enum/MonitorType.d.ts +10 -0
- package/dist/enum/MonitorType.js +15 -0
- package/dist/enum/MonitorType.js.map +1 -0
- package/dist/index.d.ts +84 -0
- package/dist/index.js +84 -0
- package/dist/index.js.map +1 -1
- package/dist/meta/MetricCategoryMetaTable.d.ts +15 -0
- package/dist/meta/MetricCategoryMetaTable.js +39 -0
- package/dist/meta/MetricCategoryMetaTable.js.map +1 -0
- package/dist/meta/MetricFieldMetaTable.d.ts +16 -0
- package/dist/meta/MetricFieldMetaTable.js +39 -0
- package/dist/meta/MetricFieldMetaTable.js.map +1 -0
- package/dist/meta/MetricMetaTable.d.ts +24 -0
- package/dist/meta/MetricMetaTable.js +47 -0
- package/dist/meta/MetricMetaTable.js.map +1 -0
- package/dist/meta/MetricTagMetaTable.d.ts +16 -0
- package/dist/meta/MetricTagMetaTable.js +39 -0
- package/dist/meta/MetricTagMetaTable.js.map +1 -0
- package/dist/meta/MonitorCategoryMetaTable.d.ts +15 -0
- package/dist/meta/MonitorCategoryMetaTable.js +39 -0
- package/dist/meta/MonitorCategoryMetaTable.js.map +1 -0
- package/dist/meta/MonitorFieldMetaTable.d.ts +16 -0
- package/dist/meta/MonitorFieldMetaTable.js +39 -0
- package/dist/meta/MonitorFieldMetaTable.js.map +1 -0
- package/dist/meta/MonitorMetaTable.d.ts +51 -0
- package/dist/meta/MonitorMetaTable.js +74 -0
- package/dist/meta/MonitorMetaTable.js.map +1 -0
- package/dist/meta/MonitorTagMetaTable.d.ts +16 -0
- package/dist/meta/MonitorTagMetaTable.js +39 -0
- package/dist/meta/MonitorTagMetaTable.js.map +1 -0
- package/dist/meta/NamirasoftInfraMetaDatabase.d.ts +16 -0
- package/dist/meta/NamirasoftInfraMetaDatabase.js +16 -0
- package/dist/meta/NamirasoftInfraMetaDatabase.js.map +1 -1
- package/dist/row/MetricCategoryRow.d.ts +8 -0
- package/dist/row/MetricCategoryRow.js +3 -0
- package/dist/row/MetricCategoryRow.js.map +1 -0
- package/dist/row/MetricFieldRow.d.ts +9 -0
- package/dist/row/MetricFieldRow.js +3 -0
- package/dist/row/MetricFieldRow.js.map +1 -0
- package/dist/row/MetricInputRow.d.ts +15 -0
- package/dist/row/MetricInputRow.js +3 -0
- package/dist/row/MetricInputRow.js.map +1 -0
- package/dist/row/MetricRow.d.ts +19 -0
- package/dist/row/MetricRow.js +3 -0
- package/dist/row/MetricRow.js.map +1 -0
- package/dist/row/MetricTagRow.d.ts +9 -0
- package/dist/row/MetricTagRow.js +3 -0
- package/dist/row/MetricTagRow.js.map +1 -0
- package/dist/row/MonitorCategoryRow.d.ts +8 -0
- package/dist/row/MonitorCategoryRow.js +3 -0
- package/dist/row/MonitorCategoryRow.js.map +1 -0
- package/dist/row/MonitorFieldRow.d.ts +9 -0
- package/dist/row/MonitorFieldRow.js +3 -0
- package/dist/row/MonitorFieldRow.js.map +1 -0
- package/dist/row/MonitorInputRow.d.ts +48 -0
- package/dist/row/MonitorInputRow.js +3 -0
- package/dist/row/MonitorInputRow.js.map +1 -0
- package/dist/row/MonitorRow.d.ts +52 -0
- package/dist/row/MonitorRow.js +3 -0
- package/dist/row/MonitorRow.js.map +1 -0
- package/dist/row/MonitorTagRow.d.ts +9 -0
- package/dist/row/MonitorTagRow.js +3 -0
- package/dist/row/MonitorTagRow.js.map +1 -0
- package/package.json +1 -1
- package/src/NamirasoftInfraServer.ts +25 -1
- package/src/NamirasoftInfraServerMetric.ts +78 -0
- package/src/NamirasoftInfraServerMetricCategory.ts +64 -0
- package/src/NamirasoftInfraServerMetricField.ts +71 -0
- package/src/NamirasoftInfraServerMetricTag.ts +71 -0
- package/src/NamirasoftInfraServerMonitor.ts +79 -0
- package/src/NamirasoftInfraServerMonitorCategory.ts +64 -0
- package/src/NamirasoftInfraServerMonitorField.ts +71 -0
- package/src/NamirasoftInfraServerMonitorTag.ts +71 -0
- package/src/command/MetricCategoryCommand.ts +38 -0
- package/src/command/MetricCategoryCreateCommand.ts +65 -0
- package/src/command/MetricCategoryDeleteCommand.ts +45 -0
- package/src/command/MetricCategoryGetCommand.ts +45 -0
- package/src/command/MetricCategoryListCommand.ts +45 -0
- package/src/command/MetricCommand.ts +42 -0
- package/src/command/MetricCreateCommand.ts +146 -0
- package/src/command/MetricDeleteCommand.ts +45 -0
- package/src/command/MetricFieldCommand.ts +40 -0
- package/src/command/MetricFieldCreateCommand.ts +74 -0
- package/src/command/MetricFieldDeleteCommand.ts +45 -0
- package/src/command/MetricFieldGetCommand.ts +45 -0
- package/src/command/MetricFieldListCommand.ts +45 -0
- package/src/command/MetricFieldUpdateCommand.ts +74 -0
- package/src/command/MetricGetCommand.ts +45 -0
- package/src/command/MetricListCommand.ts +45 -0
- package/src/command/MetricResultCommand.ts +45 -0
- package/src/command/MetricTagCommand.ts +40 -0
- package/src/command/MetricTagCreateCommand.ts +74 -0
- package/src/command/MetricTagDeleteCommand.ts +45 -0
- package/src/command/MetricTagGetCommand.ts +45 -0
- package/src/command/MetricTagListCommand.ts +45 -0
- package/src/command/MetricTagUpdateCommand.ts +74 -0
- package/src/command/MetricUpdateCommand.ts +146 -0
- package/src/command/MonitorCategoryCommand.ts +38 -0
- package/src/command/MonitorCategoryCreateCommand.ts +65 -0
- package/src/command/MonitorCategoryDeleteCommand.ts +45 -0
- package/src/command/MonitorCategoryGetCommand.ts +45 -0
- package/src/command/MonitorCategoryListCommand.ts +45 -0
- package/src/command/MonitorCommand.ts +42 -0
- package/src/command/MonitorCreateCommand.ts +389 -0
- package/src/command/MonitorDeleteCommand.ts +45 -0
- package/src/command/MonitorFieldCommand.ts +40 -0
- package/src/command/MonitorFieldCreateCommand.ts +74 -0
- package/src/command/MonitorFieldDeleteCommand.ts +45 -0
- package/src/command/MonitorFieldGetCommand.ts +45 -0
- package/src/command/MonitorFieldListCommand.ts +45 -0
- package/src/command/MonitorFieldUpdateCommand.ts +74 -0
- package/src/command/MonitorGetCommand.ts +45 -0
- package/src/command/MonitorListCommand.ts +45 -0
- package/src/command/MonitorResultCommand.ts +45 -0
- package/src/command/MonitorTagCommand.ts +40 -0
- package/src/command/MonitorTagCreateCommand.ts +74 -0
- package/src/command/MonitorTagDeleteCommand.ts +45 -0
- package/src/command/MonitorTagGetCommand.ts +45 -0
- package/src/command/MonitorTagListCommand.ts +45 -0
- package/src/command/MonitorTagUpdateCommand.ts +74 -0
- package/src/command/MonitorUpdateCommand.ts +389 -0
- package/src/command/cli.ts +16 -0
- package/src/enum/MetricCallerType.ts +26 -0
- package/src/enum/MetricIntervalUnit.ts +26 -0
- package/src/enum/MonitorCallerType.ts +26 -0
- package/src/enum/MonitorDockerContainerConnectionType.ts +25 -0
- package/src/enum/MonitorHTTPBodyEncoding.ts +26 -0
- package/src/enum/MonitorHeartbeatIntervalUnit.ts +26 -0
- package/src/enum/MonitorHeartbeatRetryIntervalUnit.ts +26 -0
- package/src/enum/MonitorKubernetesPodControllerType.ts +26 -0
- package/src/enum/MonitorRequestTimeoutUnit.ts +25 -0
- package/src/enum/MonitorType.ts +31 -0
- package/src/index.ts +84 -0
- package/src/meta/MetricCategoryMetaTable.ts +60 -0
- package/src/meta/MetricFieldMetaTable.ts +61 -0
- package/src/meta/MetricMetaTable.ts +77 -0
- package/src/meta/MetricTagMetaTable.ts +61 -0
- package/src/meta/MonitorCategoryMetaTable.ts +60 -0
- package/src/meta/MonitorFieldMetaTable.ts +61 -0
- package/src/meta/MonitorMetaTable.ts +131 -0
- package/src/meta/MonitorTagMetaTable.ts +61 -0
- package/src/meta/NamirasoftInfraMetaDatabase.ts +24 -0
- package/src/row/MetricCategoryRow.ts +29 -0
- package/src/row/MetricFieldRow.ts +30 -0
- package/src/row/MetricInputRow.ts +37 -0
- package/src/row/MetricRow.ts +41 -0
- package/src/row/MetricTagRow.ts +30 -0
- package/src/row/MonitorCategoryRow.ts +29 -0
- package/src/row/MonitorFieldRow.ts +30 -0
- package/src/row/MonitorInputRow.ts +70 -0
- package/src/row/MonitorRow.ts +74 -0
- package/src/row/MonitorTagRow.ts +30 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MetricCallerType } from "../enum/MetricCallerType";
|
|
2
|
+
import { MetricIntervalUnit } from "../enum/MetricIntervalUnit";
|
|
3
|
+
export type MetricRow = {
|
|
4
|
+
id: string;
|
|
5
|
+
user_id: string;
|
|
6
|
+
workspace_id: string;
|
|
7
|
+
project_id: string;
|
|
8
|
+
environment_id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
caller_type: MetricCallerType;
|
|
11
|
+
caller_server_id: (string | null);
|
|
12
|
+
caller_kubernetes_id: (string | null);
|
|
13
|
+
url: string;
|
|
14
|
+
interval_value: number;
|
|
15
|
+
interval_unit: MetricIntervalUnit;
|
|
16
|
+
description: string;
|
|
17
|
+
created_at: Date;
|
|
18
|
+
updated_at: Date;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetricRow.js","sourceRoot":"","sources":["../../src/row/MetricRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetricTagRow.js","sourceRoot":"","sources":["../../src/row/MetricTagRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MonitorCategoryRow.js","sourceRoot":"","sources":["../../src/row/MonitorCategoryRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MonitorFieldRow.js","sourceRoot":"","sources":["../../src/row/MonitorFieldRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { MonitorCallerType } from "../enum/MonitorCallerType";
|
|
2
|
+
import { MonitorDockerContainerConnectionType } from "../enum/MonitorDockerContainerConnectionType";
|
|
3
|
+
import { MonitorHTTPBodyEncoding } from "../enum/MonitorHTTPBodyEncoding";
|
|
4
|
+
import { MonitorHeartbeatIntervalUnit } from "../enum/MonitorHeartbeatIntervalUnit";
|
|
5
|
+
import { MonitorHeartbeatRetryIntervalUnit } from "../enum/MonitorHeartbeatRetryIntervalUnit";
|
|
6
|
+
import { MonitorKubernetesPodControllerType } from "../enum/MonitorKubernetesPodControllerType";
|
|
7
|
+
import { MonitorRequestTimeoutUnit } from "../enum/MonitorRequestTimeoutUnit";
|
|
8
|
+
import { MonitorType } from "../enum/MonitorType";
|
|
9
|
+
export type MonitorInputRow = {
|
|
10
|
+
workspace_id: string;
|
|
11
|
+
project_id: string;
|
|
12
|
+
environment_id: string;
|
|
13
|
+
topic_id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
caller_type: MonitorCallerType;
|
|
16
|
+
caller_server_id: (string | null);
|
|
17
|
+
caller_kubernetes_id: (string | null);
|
|
18
|
+
up_side_down: boolean;
|
|
19
|
+
heartbeat_interval_value: number;
|
|
20
|
+
heartbeat_interval_unit: MonitorHeartbeatIntervalUnit;
|
|
21
|
+
retries: number;
|
|
22
|
+
heartbeat_retry_interval_value: number;
|
|
23
|
+
heartbeat_retry_interval_unit: MonitorHeartbeatRetryIntervalUnit;
|
|
24
|
+
request_timeout_value: number;
|
|
25
|
+
request_timeout_unit: MonitorRequestTimeoutUnit;
|
|
26
|
+
type: MonitorType;
|
|
27
|
+
http_url: (string | null);
|
|
28
|
+
http_method: (string | null);
|
|
29
|
+
http_header: (string | null);
|
|
30
|
+
http_body_encoding: (MonitorHTTPBodyEncoding | null);
|
|
31
|
+
http_body: (string | null);
|
|
32
|
+
http_ignore_ssl_tls: (string | null);
|
|
33
|
+
ping_host: (string | null);
|
|
34
|
+
ping_max_packets: (string | null);
|
|
35
|
+
ping_packdet_size: (string | null);
|
|
36
|
+
port_host: (string | null);
|
|
37
|
+
port_port: (number | null);
|
|
38
|
+
database_credentail_id: (string | null);
|
|
39
|
+
database_query: (string | null);
|
|
40
|
+
in_memory_store_credentail_id: (string | null);
|
|
41
|
+
message_broker_credentail_id: (string | null);
|
|
42
|
+
docker_container_connection_type: (MonitorDockerContainerConnectionType | null);
|
|
43
|
+
docker_container_deamon: (string | null);
|
|
44
|
+
docker_container_id_or_name: (string | null);
|
|
45
|
+
kubernetes_pod_controller_type: (MonitorKubernetesPodControllerType | null);
|
|
46
|
+
kubernetes_pod_controller_name: (string | null);
|
|
47
|
+
description: string;
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MonitorInputRow.js","sourceRoot":"","sources":["../../src/row/MonitorInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { MonitorCallerType } from "../enum/MonitorCallerType";
|
|
2
|
+
import { MonitorDockerContainerConnectionType } from "../enum/MonitorDockerContainerConnectionType";
|
|
3
|
+
import { MonitorHTTPBodyEncoding } from "../enum/MonitorHTTPBodyEncoding";
|
|
4
|
+
import { MonitorHeartbeatIntervalUnit } from "../enum/MonitorHeartbeatIntervalUnit";
|
|
5
|
+
import { MonitorHeartbeatRetryIntervalUnit } from "../enum/MonitorHeartbeatRetryIntervalUnit";
|
|
6
|
+
import { MonitorKubernetesPodControllerType } from "../enum/MonitorKubernetesPodControllerType";
|
|
7
|
+
import { MonitorRequestTimeoutUnit } from "../enum/MonitorRequestTimeoutUnit";
|
|
8
|
+
import { MonitorType } from "../enum/MonitorType";
|
|
9
|
+
export type MonitorRow = {
|
|
10
|
+
id: string;
|
|
11
|
+
user_id: string;
|
|
12
|
+
workspace_id: string;
|
|
13
|
+
project_id: string;
|
|
14
|
+
environment_id: string;
|
|
15
|
+
topic_id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
caller_type: MonitorCallerType;
|
|
18
|
+
caller_server_id: (string | null);
|
|
19
|
+
caller_kubernetes_id: (string | null);
|
|
20
|
+
up_side_down: boolean;
|
|
21
|
+
heartbeat_interval_value: number;
|
|
22
|
+
heartbeat_interval_unit: MonitorHeartbeatIntervalUnit;
|
|
23
|
+
retries: number;
|
|
24
|
+
heartbeat_retry_interval_value: number;
|
|
25
|
+
heartbeat_retry_interval_unit: MonitorHeartbeatRetryIntervalUnit;
|
|
26
|
+
request_timeout_value: number;
|
|
27
|
+
request_timeout_unit: MonitorRequestTimeoutUnit;
|
|
28
|
+
type: MonitorType;
|
|
29
|
+
http_url: (string | null);
|
|
30
|
+
http_method: (string | null);
|
|
31
|
+
http_header: (string | null);
|
|
32
|
+
http_body_encoding: (MonitorHTTPBodyEncoding | null);
|
|
33
|
+
http_body: (string | null);
|
|
34
|
+
http_ignore_ssl_tls: (string | null);
|
|
35
|
+
ping_host: (string | null);
|
|
36
|
+
ping_max_packets: (string | null);
|
|
37
|
+
ping_packdet_size: (string | null);
|
|
38
|
+
port_host: (string | null);
|
|
39
|
+
port_port: (number | null);
|
|
40
|
+
database_credentail_id: (string | null);
|
|
41
|
+
database_query: (string | null);
|
|
42
|
+
in_memory_store_credentail_id: (string | null);
|
|
43
|
+
message_broker_credentail_id: (string | null);
|
|
44
|
+
docker_container_connection_type: (MonitorDockerContainerConnectionType | null);
|
|
45
|
+
docker_container_deamon: (string | null);
|
|
46
|
+
docker_container_id_or_name: (string | null);
|
|
47
|
+
kubernetes_pod_controller_type: (MonitorKubernetesPodControllerType | null);
|
|
48
|
+
kubernetes_pod_controller_name: (string | null);
|
|
49
|
+
description: string;
|
|
50
|
+
created_at: Date;
|
|
51
|
+
updated_at: Date;
|
|
52
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MonitorRow.js","sourceRoot":"","sources":["../../src/row/MonitorRow.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MonitorTagRow.js","sourceRoot":"","sources":["../../src/row/MonitorTagRow.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -53,7 +53,15 @@ import { NamirasoftInfraServerMessageBroker } from "./NamirasoftInfraServerMessa
|
|
|
53
53
|
import { NamirasoftInfraServerMessageBrokerCategory } from "./NamirasoftInfraServerMessageBrokerCategory";
|
|
54
54
|
import { NamirasoftInfraServerMessageBrokerField } from "./NamirasoftInfraServerMessageBrokerField";
|
|
55
55
|
import { NamirasoftInfraServerMessageBrokerTag } from "./NamirasoftInfraServerMessageBrokerTag";
|
|
56
|
+
import { NamirasoftInfraServerMetric } from "./NamirasoftInfraServerMetric";
|
|
57
|
+
import { NamirasoftInfraServerMetricCategory } from "./NamirasoftInfraServerMetricCategory";
|
|
58
|
+
import { NamirasoftInfraServerMetricField } from "./NamirasoftInfraServerMetricField";
|
|
59
|
+
import { NamirasoftInfraServerMetricTag } from "./NamirasoftInfraServerMetricTag";
|
|
56
60
|
import { NamirasoftInfraServerMetrics } from "./NamirasoftInfraServerMetrics";
|
|
61
|
+
import { NamirasoftInfraServerMonitor } from "./NamirasoftInfraServerMonitor";
|
|
62
|
+
import { NamirasoftInfraServerMonitorCategory } from "./NamirasoftInfraServerMonitorCategory";
|
|
63
|
+
import { NamirasoftInfraServerMonitorField } from "./NamirasoftInfraServerMonitorField";
|
|
64
|
+
import { NamirasoftInfraServerMonitorTag } from "./NamirasoftInfraServerMonitorTag";
|
|
57
65
|
import { NamirasoftInfraServerProject } from "./NamirasoftInfraServerProject";
|
|
58
66
|
import { NamirasoftInfraServerProjectCategory } from "./NamirasoftInfraServerProjectCategory";
|
|
59
67
|
import { NamirasoftInfraServerProjectField } from "./NamirasoftInfraServerProjectField";
|
|
@@ -111,9 +119,17 @@ export class NamirasoftInfraServer extends NSABaseServer
|
|
|
111
119
|
message_broker_field: NamirasoftInfraServerMessageBrokerField;
|
|
112
120
|
message_broker_tag: NamirasoftInfraServerMessageBrokerTag;
|
|
113
121
|
message_broker: NamirasoftInfraServerMessageBroker;
|
|
122
|
+
metric_category: NamirasoftInfraServerMetricCategory;
|
|
123
|
+
metric_field: NamirasoftInfraServerMetricField;
|
|
124
|
+
metric_tag: NamirasoftInfraServerMetricTag;
|
|
125
|
+
metric: NamirasoftInfraServerMetric;
|
|
126
|
+
monitor_category: NamirasoftInfraServerMonitorCategory;
|
|
127
|
+
monitor_field: NamirasoftInfraServerMonitorField;
|
|
128
|
+
monitor_tag: NamirasoftInfraServerMonitorTag;
|
|
129
|
+
monitor: NamirasoftInfraServerMonitor;
|
|
114
130
|
constructor(base_url: string, token_manager: TokenManager, onError: (error: Error) => void)
|
|
115
131
|
{
|
|
116
|
-
super(base_url, `1.4.
|
|
132
|
+
super(base_url, `1.4.1`, token_manager, onError);
|
|
117
133
|
this.healthz = new NamirasoftInfraServerHealthz(this);
|
|
118
134
|
this.health = new NamirasoftInfraServerHealth(this);
|
|
119
135
|
this.metrics = new NamirasoftInfraServerMetrics(this);
|
|
@@ -158,5 +174,13 @@ export class NamirasoftInfraServer extends NSABaseServer
|
|
|
158
174
|
this.message_broker_field = new NamirasoftInfraServerMessageBrokerField(this);
|
|
159
175
|
this.message_broker_tag = new NamirasoftInfraServerMessageBrokerTag(this);
|
|
160
176
|
this.message_broker = new NamirasoftInfraServerMessageBroker(this);
|
|
177
|
+
this.metric_category = new NamirasoftInfraServerMetricCategory(this);
|
|
178
|
+
this.metric_field = new NamirasoftInfraServerMetricField(this);
|
|
179
|
+
this.metric_tag = new NamirasoftInfraServerMetricTag(this);
|
|
180
|
+
this.metric = new NamirasoftInfraServerMetric(this);
|
|
181
|
+
this.monitor_category = new NamirasoftInfraServerMonitorCategory(this);
|
|
182
|
+
this.monitor_field = new NamirasoftInfraServerMonitorField(this);
|
|
183
|
+
this.monitor_tag = new NamirasoftInfraServerMonitorTag(this);
|
|
184
|
+
this.monitor = new NamirasoftInfraServerMonitor(this);
|
|
161
185
|
}
|
|
162
186
|
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseServerConfig } from "namirasoft-core";
|
|
22
|
+
import { FilterItem } from "namirasoft-core";
|
|
23
|
+
import { MetricInputRow } from "./row/MetricInputRow";
|
|
24
|
+
import { MetricRow } from "./row/MetricRow";
|
|
25
|
+
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
26
|
+
import { NamirasoftInfraServerBase } from "./NamirasoftInfraServerBase";
|
|
27
|
+
import { SortItem } from "namirasoft-core";
|
|
28
|
+
|
|
29
|
+
export class NamirasoftInfraServerMetric extends NamirasoftInfraServerBase
|
|
30
|
+
{
|
|
31
|
+
constructor(server: NamirasoftInfraServer)
|
|
32
|
+
{
|
|
33
|
+
super(server);
|
|
34
|
+
this.Get = this.Get.bind(this);
|
|
35
|
+
this.Create = this.Create.bind(this);
|
|
36
|
+
this.Update = this.Update.bind(this);
|
|
37
|
+
this.Delete = this.Delete.bind(this);
|
|
38
|
+
this.List = this.List.bind(this);
|
|
39
|
+
this.Result = this.Result.bind(this);
|
|
40
|
+
}
|
|
41
|
+
async Get(id: (string | null), config?: BaseServerConfig<any>): Promise<MetricRow>
|
|
42
|
+
{
|
|
43
|
+
let path = `/metric/${id}`;
|
|
44
|
+
let { data } = await this.server._get<MetricRow>(path, {}, config);
|
|
45
|
+
return data;
|
|
46
|
+
}
|
|
47
|
+
async Create(body: MetricInputRow, config?: BaseServerConfig<any>): Promise<MetricRow>
|
|
48
|
+
{
|
|
49
|
+
let path = `/metric`;
|
|
50
|
+
let { data } = await this.server._post<MetricRow>(path, {}, body, config);
|
|
51
|
+
return data;
|
|
52
|
+
}
|
|
53
|
+
async Update(id: (string | null), body: MetricInputRow, config?: BaseServerConfig<any>): Promise<MetricRow>
|
|
54
|
+
{
|
|
55
|
+
let path = `/metric/${id}`;
|
|
56
|
+
let { data } = await this.server._put<MetricRow>(path, {}, body, config);
|
|
57
|
+
return data;
|
|
58
|
+
}
|
|
59
|
+
async Delete(id: string, config?: BaseServerConfig<any>): Promise<void>
|
|
60
|
+
{
|
|
61
|
+
let path = `/metric/${id}`;
|
|
62
|
+
await this.server._delete<void>(path, {}, config);
|
|
63
|
+
}
|
|
64
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: MetricRow[], count: number }>
|
|
65
|
+
{
|
|
66
|
+
let filters_string_value: string = FilterItem.stringify(filters);
|
|
67
|
+
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
68
|
+
let path = `/metric/list`;
|
|
69
|
+
let { data } = await this.server._get<{ rows: MetricRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
70
|
+
return data;
|
|
71
|
+
}
|
|
72
|
+
async Result(config?: BaseServerConfig<any>): Promise<MetricRow>
|
|
73
|
+
{
|
|
74
|
+
let path = `/result`;
|
|
75
|
+
let { data } = await this.server._get<MetricRow>(path, {}, config);
|
|
76
|
+
return data;
|
|
77
|
+
}
|
|
78
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseServerConfig } from "namirasoft-core";
|
|
22
|
+
import { EntityCategoryInputRow } from "./row/EntityCategoryInputRow";
|
|
23
|
+
import { FilterItem } from "namirasoft-core";
|
|
24
|
+
import { MetricCategoryRow } from "./row/MetricCategoryRow";
|
|
25
|
+
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
26
|
+
import { NamirasoftInfraServerBase } from "./NamirasoftInfraServerBase";
|
|
27
|
+
import { SortItem } from "namirasoft-core";
|
|
28
|
+
|
|
29
|
+
export class NamirasoftInfraServerMetricCategory extends NamirasoftInfraServerBase
|
|
30
|
+
{
|
|
31
|
+
constructor(server: NamirasoftInfraServer)
|
|
32
|
+
{
|
|
33
|
+
super(server);
|
|
34
|
+
this.List = this.List.bind(this);
|
|
35
|
+
this.Get = this.Get.bind(this);
|
|
36
|
+
this.Create = this.Create.bind(this);
|
|
37
|
+
this.Delete = this.Delete.bind(this);
|
|
38
|
+
}
|
|
39
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: MetricCategoryRow[], count: number }>
|
|
40
|
+
{
|
|
41
|
+
let filters_string_value: string = FilterItem.stringify(filters);
|
|
42
|
+
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
43
|
+
let path = `metric/category/list`;
|
|
44
|
+
let { data } = await this.server._get<{ rows: MetricCategoryRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
45
|
+
return data;
|
|
46
|
+
}
|
|
47
|
+
async Get(id: string, config?: BaseServerConfig<any>): Promise<MetricCategoryRow>
|
|
48
|
+
{
|
|
49
|
+
let path = `metric/category/${id}`;
|
|
50
|
+
let { data } = await this.server._get<MetricCategoryRow>(path, {}, config);
|
|
51
|
+
return data;
|
|
52
|
+
}
|
|
53
|
+
async Create(body: EntityCategoryInputRow, config?: BaseServerConfig<any>): Promise<MetricCategoryRow>
|
|
54
|
+
{
|
|
55
|
+
let path = `metric/category`;
|
|
56
|
+
let { data } = await this.server._post<MetricCategoryRow>(path, {}, body, config);
|
|
57
|
+
return data;
|
|
58
|
+
}
|
|
59
|
+
async Delete(id: number, config?: BaseServerConfig<any>): Promise<void>
|
|
60
|
+
{
|
|
61
|
+
let path = `metric/category/${id}`;
|
|
62
|
+
await this.server._delete<void>(path, {}, config);
|
|
63
|
+
}
|
|
64
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseServerConfig } from "namirasoft-core";
|
|
22
|
+
import { EntityFieldInputRow } from "./row/EntityFieldInputRow";
|
|
23
|
+
import { FilterItem } from "namirasoft-core";
|
|
24
|
+
import { MetricFieldRow } from "./row/MetricFieldRow";
|
|
25
|
+
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
26
|
+
import { NamirasoftInfraServerBase } from "./NamirasoftInfraServerBase";
|
|
27
|
+
import { SortItem } from "namirasoft-core";
|
|
28
|
+
|
|
29
|
+
export class NamirasoftInfraServerMetricField extends NamirasoftInfraServerBase
|
|
30
|
+
{
|
|
31
|
+
constructor(server: NamirasoftInfraServer)
|
|
32
|
+
{
|
|
33
|
+
super(server);
|
|
34
|
+
this.List = this.List.bind(this);
|
|
35
|
+
this.Get = this.Get.bind(this);
|
|
36
|
+
this.Create = this.Create.bind(this);
|
|
37
|
+
this.Update = this.Update.bind(this);
|
|
38
|
+
this.Delete = this.Delete.bind(this);
|
|
39
|
+
}
|
|
40
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: MetricFieldRow[], count: number }>
|
|
41
|
+
{
|
|
42
|
+
let filters_string_value: string = FilterItem.stringify(filters);
|
|
43
|
+
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
44
|
+
let path = `metric/field/list`;
|
|
45
|
+
let { data } = await this.server._get<{ rows: MetricFieldRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
46
|
+
return data;
|
|
47
|
+
}
|
|
48
|
+
async Get(id: string, config?: BaseServerConfig<any>): Promise<MetricFieldRow>
|
|
49
|
+
{
|
|
50
|
+
let path = `metric/field/${id}`;
|
|
51
|
+
let { data } = await this.server._get<MetricFieldRow>(path, {}, config);
|
|
52
|
+
return data;
|
|
53
|
+
}
|
|
54
|
+
async Create(body: EntityFieldInputRow, config?: BaseServerConfig<any>): Promise<MetricFieldRow>
|
|
55
|
+
{
|
|
56
|
+
let path = `metric/field`;
|
|
57
|
+
let { data } = await this.server._post<MetricFieldRow>(path, {}, body, config);
|
|
58
|
+
return data;
|
|
59
|
+
}
|
|
60
|
+
async Update(id: number, body: EntityFieldInputRow, config?: BaseServerConfig<any>): Promise<MetricFieldRow>
|
|
61
|
+
{
|
|
62
|
+
let path = `metric/field/${id}`;
|
|
63
|
+
let { data } = await this.server._put<MetricFieldRow>(path, {}, body, config);
|
|
64
|
+
return data;
|
|
65
|
+
}
|
|
66
|
+
async Delete(id: number, config?: BaseServerConfig<any>): Promise<void>
|
|
67
|
+
{
|
|
68
|
+
let path = `metric/field/${id}`;
|
|
69
|
+
await this.server._delete<void>(path, {}, config);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseServerConfig } from "namirasoft-core";
|
|
22
|
+
import { EntityTagInputRow } from "./row/EntityTagInputRow";
|
|
23
|
+
import { FilterItem } from "namirasoft-core";
|
|
24
|
+
import { MetricTagRow } from "./row/MetricTagRow";
|
|
25
|
+
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
26
|
+
import { NamirasoftInfraServerBase } from "./NamirasoftInfraServerBase";
|
|
27
|
+
import { SortItem } from "namirasoft-core";
|
|
28
|
+
|
|
29
|
+
export class NamirasoftInfraServerMetricTag extends NamirasoftInfraServerBase
|
|
30
|
+
{
|
|
31
|
+
constructor(server: NamirasoftInfraServer)
|
|
32
|
+
{
|
|
33
|
+
super(server);
|
|
34
|
+
this.List = this.List.bind(this);
|
|
35
|
+
this.Get = this.Get.bind(this);
|
|
36
|
+
this.Create = this.Create.bind(this);
|
|
37
|
+
this.Update = this.Update.bind(this);
|
|
38
|
+
this.Delete = this.Delete.bind(this);
|
|
39
|
+
}
|
|
40
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: MetricTagRow[], count: number }>
|
|
41
|
+
{
|
|
42
|
+
let filters_string_value: string = FilterItem.stringify(filters);
|
|
43
|
+
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
44
|
+
let path = `metric/tag/list`;
|
|
45
|
+
let { data } = await this.server._get<{ rows: MetricTagRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
46
|
+
return data;
|
|
47
|
+
}
|
|
48
|
+
async Get(id: string, config?: BaseServerConfig<any>): Promise<MetricTagRow>
|
|
49
|
+
{
|
|
50
|
+
let path = `metric/tag/${id}`;
|
|
51
|
+
let { data } = await this.server._get<MetricTagRow>(path, {}, config);
|
|
52
|
+
return data;
|
|
53
|
+
}
|
|
54
|
+
async Create(body: EntityTagInputRow, config?: BaseServerConfig<any>): Promise<MetricTagRow>
|
|
55
|
+
{
|
|
56
|
+
let path = `metric/tag`;
|
|
57
|
+
let { data } = await this.server._post<MetricTagRow>(path, {}, body, config);
|
|
58
|
+
return data;
|
|
59
|
+
}
|
|
60
|
+
async Update(id: number, body: EntityTagInputRow, config?: BaseServerConfig<any>): Promise<MetricTagRow>
|
|
61
|
+
{
|
|
62
|
+
let path = `metric/tag/${id}`;
|
|
63
|
+
let { data } = await this.server._put<MetricTagRow>(path, {}, body, config);
|
|
64
|
+
return data;
|
|
65
|
+
}
|
|
66
|
+
async Delete(id: number, config?: BaseServerConfig<any>): Promise<void>
|
|
67
|
+
{
|
|
68
|
+
let path = `metric/tag/${id}`;
|
|
69
|
+
await this.server._delete<void>(path, {}, config);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/****************************************************************/
|
|
2
|
+
/* */
|
|
3
|
+
/* This is an Auto-Generated File */
|
|
4
|
+
/* Made By */
|
|
5
|
+
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
+
/* */
|
|
7
|
+
/****************************************************************/
|
|
8
|
+
/****************************************************************/
|
|
9
|
+
/* */
|
|
10
|
+
/* Please do not make any change to this file */
|
|
11
|
+
/* If any change is required, ns-sdkg command must be used */
|
|
12
|
+
/* */
|
|
13
|
+
/****************************************************************/
|
|
14
|
+
/****************************************************************/
|
|
15
|
+
/* */
|
|
16
|
+
/* Namira Software Corporation */
|
|
17
|
+
/* https://namirasoft.com */
|
|
18
|
+
/* */
|
|
19
|
+
/****************************************************************/
|
|
20
|
+
|
|
21
|
+
import { BaseServerConfig } from "namirasoft-core";
|
|
22
|
+
import { FilterItem } from "namirasoft-core";
|
|
23
|
+
import { MetricRow } from "./row/MetricRow";
|
|
24
|
+
import { MonitorInputRow } from "./row/MonitorInputRow";
|
|
25
|
+
import { MonitorRow } from "./row/MonitorRow";
|
|
26
|
+
import { NamirasoftInfraServer } from "./NamirasoftInfraServer";
|
|
27
|
+
import { NamirasoftInfraServerBase } from "./NamirasoftInfraServerBase";
|
|
28
|
+
import { SortItem } from "namirasoft-core";
|
|
29
|
+
|
|
30
|
+
export class NamirasoftInfraServerMonitor extends NamirasoftInfraServerBase
|
|
31
|
+
{
|
|
32
|
+
constructor(server: NamirasoftInfraServer)
|
|
33
|
+
{
|
|
34
|
+
super(server);
|
|
35
|
+
this.Get = this.Get.bind(this);
|
|
36
|
+
this.Create = this.Create.bind(this);
|
|
37
|
+
this.Update = this.Update.bind(this);
|
|
38
|
+
this.Delete = this.Delete.bind(this);
|
|
39
|
+
this.List = this.List.bind(this);
|
|
40
|
+
this.Result = this.Result.bind(this);
|
|
41
|
+
}
|
|
42
|
+
async Get(id: (string | null), config?: BaseServerConfig<any>): Promise<MonitorRow>
|
|
43
|
+
{
|
|
44
|
+
let path = `/monitor/${id}`;
|
|
45
|
+
let { data } = await this.server._get<MonitorRow>(path, {}, config);
|
|
46
|
+
return data;
|
|
47
|
+
}
|
|
48
|
+
async Create(body: MonitorInputRow, config?: BaseServerConfig<any>): Promise<MonitorRow>
|
|
49
|
+
{
|
|
50
|
+
let path = `/monitor`;
|
|
51
|
+
let { data } = await this.server._post<MonitorRow>(path, {}, body, config);
|
|
52
|
+
return data;
|
|
53
|
+
}
|
|
54
|
+
async Update(id: (string | null), body: MonitorInputRow, config?: BaseServerConfig<any>): Promise<MonitorRow>
|
|
55
|
+
{
|
|
56
|
+
let path = `/monitor/${id}`;
|
|
57
|
+
let { data } = await this.server._put<MonitorRow>(path, {}, body, config);
|
|
58
|
+
return data;
|
|
59
|
+
}
|
|
60
|
+
async Delete(id: string, config?: BaseServerConfig<any>): Promise<void>
|
|
61
|
+
{
|
|
62
|
+
let path = `/monitor/${id}`;
|
|
63
|
+
await this.server._delete<void>(path, {}, config);
|
|
64
|
+
}
|
|
65
|
+
async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[], config?: BaseServerConfig<any>): Promise<{ rows: MonitorRow[], count: number }>
|
|
66
|
+
{
|
|
67
|
+
let filters_string_value: string = FilterItem.stringify(filters);
|
|
68
|
+
let sorts_string_value: string = SortItem.stringify(sorts);
|
|
69
|
+
let path = `/monitor/list`;
|
|
70
|
+
let { data } = await this.server._get<{ rows: MonitorRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value }, config);
|
|
71
|
+
return data;
|
|
72
|
+
}
|
|
73
|
+
async Result(config?: BaseServerConfig<any>): Promise<MetricRow>
|
|
74
|
+
{
|
|
75
|
+
let path = `/result`;
|
|
76
|
+
let { data } = await this.server._get<MetricRow>(path, {}, config);
|
|
77
|
+
return data;
|
|
78
|
+
}
|
|
79
|
+
};
|