namirasoft-cost 1.4.20 → 1.4.22
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/.ns-sdkg-dir-deep +3 -2
- package/.ns-sdkg-file-keep +21 -5
- package/dist/NamirasoftCostServer.d.ts +2 -0
- package/dist/NamirasoftCostServer.js +3 -1
- package/dist/NamirasoftCostServer.js.map +1 -1
- package/dist/NamirasoftCostServerBillWatchAWS.d.ts +4 -4
- package/dist/NamirasoftCostServerBillWatchAWS.js +6 -6
- package/dist/NamirasoftCostServerBillWatchAWS.js.map +1 -1
- package/dist/NamirasoftCostServerBillWatchAzure.d.ts +4 -4
- package/dist/NamirasoftCostServerBillWatchAzure.js +6 -6
- package/dist/NamirasoftCostServerBillWatchAzure.js.map +1 -1
- package/dist/NamirasoftCostServerBillWatchGCP.d.ts +4 -4
- package/dist/NamirasoftCostServerBillWatchGCP.js +6 -6
- package/dist/NamirasoftCostServerBillWatchGCP.js.map +1 -1
- package/dist/NamirasoftCostServerFieldCategory.d.ts +4 -4
- package/dist/NamirasoftCostServerFieldCategory.js +6 -6
- package/dist/NamirasoftCostServerFieldCategory.js.map +1 -1
- package/dist/NamirasoftCostServerFieldField.d.ts +4 -4
- package/dist/NamirasoftCostServerFieldField.js +6 -6
- package/dist/NamirasoftCostServerFieldField.js.map +1 -1
- package/dist/NamirasoftCostServerSecretSecret.d.ts +36 -0
- package/dist/NamirasoftCostServerSecretSecret.js +53 -0
- package/dist/NamirasoftCostServerSecretSecret.js.map +1 -0
- package/dist/bonus/BaseBonus.d.ts +13 -0
- package/dist/bonus/BaseBonus.js +11 -0
- package/dist/bonus/BaseBonus.js.map +1 -0
- package/dist/bonus/DeactiveBonus.d.ts +10 -0
- package/dist/bonus/DeactiveBonus.js +27 -0
- package/dist/bonus/DeactiveBonus.js.map +1 -0
- package/dist/bonus/FreeCountBonus.d.ts +10 -0
- package/dist/bonus/FreeCountBonus.js +27 -0
- package/dist/bonus/FreeCountBonus.js.map +1 -0
- package/dist/bonus/FreeTotalValueBonus.d.ts +33 -0
- package/dist/bonus/FreeTotalValueBonus.js +39 -0
- package/dist/bonus/FreeTotalValueBonus.js.map +1 -0
- package/dist/bonus/LowAmountBonus.d.ts +10 -0
- package/dist/bonus/LowAmountBonus.js +27 -0
- package/dist/bonus/LowAmountBonus.js.map +1 -0
- package/dist/bonus/LowSecondsBonus.d.ts +10 -0
- package/dist/bonus/LowSecondsBonus.js +27 -0
- package/dist/bonus/LowSecondsBonus.js.map +1 -0
- package/dist/bonus/LowTotalCountBonus.d.ts +10 -0
- package/dist/bonus/LowTotalCountBonus.js +27 -0
- package/dist/bonus/LowTotalCountBonus.js.map +1 -0
- package/dist/bonus/LowTotalValueBonus.d.ts +10 -0
- package/dist/bonus/LowTotalValueBonus.js +27 -0
- package/dist/bonus/LowTotalValueBonus.js.map +1 -0
- package/dist/bonus/TrialBonus.d.ts +12 -0
- package/dist/bonus/TrialBonus.js +32 -0
- package/dist/bonus/TrialBonus.js.map +1 -0
- package/dist/command/BillWatchAWSCommand.js +4 -4
- package/dist/command/BillWatchAWSCommand.js.map +1 -1
- package/dist/command/{BillWatchAWS_CreateForCommand.d.ts → BillWatchAWSEstimateHourlyCommand.d.ts} +1 -1
- package/dist/command/{BillWatchGCPEstimationCommand.js → BillWatchAWSEstimateHourlyCommand.js} +15 -15
- package/dist/command/BillWatchAWSEstimateHourlyCommand.js.map +1 -0
- package/dist/command/BillWatchAWS_CreateForHourlyCommand.d.ts +5 -0
- package/dist/command/{BillWatchAWS_CreateForCommand.js → BillWatchAWS_CreateForHourlyCommand.js} +14 -14
- package/dist/command/BillWatchAWS_CreateForHourlyCommand.js.map +1 -0
- package/dist/command/BillWatchAzureCommand.js +4 -4
- package/dist/command/BillWatchAzureCommand.js.map +1 -1
- package/dist/command/BillWatchAzureEstimateHourlyCommand.d.ts +5 -0
- package/dist/command/BillWatchAzureEstimateHourlyCommand.js +76 -0
- package/dist/command/BillWatchAzureEstimateHourlyCommand.js.map +1 -0
- package/dist/command/BillWatchAzure_CreateForHourlyCommand.d.ts +5 -0
- package/dist/command/BillWatchAzure_CreateForHourlyCommand.js +94 -0
- package/dist/command/BillWatchAzure_CreateForHourlyCommand.js.map +1 -0
- package/dist/command/BillWatchGCPCommand.js +4 -4
- package/dist/command/BillWatchGCPCommand.js.map +1 -1
- package/dist/command/{BillWatchAWSEstimationCommand.d.ts → BillWatchGCPEstimateHourlyCommand.d.ts} +1 -1
- package/dist/command/{FieldCategoryEstimationCommand.js → BillWatchGCPEstimateHourlyCommand.js} +15 -15
- package/dist/command/BillWatchGCPEstimateHourlyCommand.js.map +1 -0
- package/dist/command/BillWatchGCP_CreateForHourlyCommand.d.ts +5 -0
- package/dist/command/{FieldCategory_CreateForCommand.js → BillWatchGCP_CreateForHourlyCommand.js} +14 -14
- package/dist/command/BillWatchGCP_CreateForHourlyCommand.js.map +1 -0
- package/dist/command/FieldCategoryCommand.js +4 -4
- package/dist/command/FieldCategoryCommand.js.map +1 -1
- package/dist/command/FieldCategoryEstimateHourlyCommand.d.ts +5 -0
- package/dist/command/FieldCategoryEstimateHourlyCommand.js +76 -0
- package/dist/command/FieldCategoryEstimateHourlyCommand.js.map +1 -0
- package/dist/command/FieldCategory_CreateForHourlyCommand.d.ts +5 -0
- package/dist/command/FieldCategory_CreateForHourlyCommand.js +94 -0
- package/dist/command/FieldCategory_CreateForHourlyCommand.js.map +1 -0
- package/dist/command/FieldFieldCommand.js +4 -4
- package/dist/command/FieldFieldCommand.js.map +1 -1
- package/dist/command/{BillWatchAzure_CreateForCommand.d.ts → FieldFieldEstimateHourlyCommand.d.ts} +1 -1
- package/dist/command/{BillWatchAzureEstimationCommand.js → FieldFieldEstimateHourlyCommand.js} +15 -15
- package/dist/command/{BillWatchAzureEstimationCommand.js.map → FieldFieldEstimateHourlyCommand.js.map} +1 -1
- package/dist/command/FieldField_CreateForHourlyCommand.d.ts +5 -0
- package/dist/command/{BillWatchGCP_CreateForCommand.js → FieldField_CreateForHourlyCommand.js} +14 -14
- package/dist/command/FieldField_CreateForHourlyCommand.js.map +1 -0
- package/dist/command/SecretSecretCommand.d.ts +4 -0
- package/dist/command/SecretSecretCommand.js +21 -0
- package/dist/command/SecretSecretCommand.js.map +1 -0
- package/dist/command/SecretSecretEstimateHourlyCommand.d.ts +5 -0
- package/dist/command/{BillWatchAWSEstimationCommand.js → SecretSecretEstimateHourlyCommand.js} +15 -15
- package/dist/command/SecretSecretEstimateHourlyCommand.js.map +1 -0
- package/dist/command/{BillWatchAzureEstimationCommand.d.ts → SecretSecretEstimateReadCommand.d.ts} +1 -1
- package/dist/command/{FieldFieldEstimationCommand.js → SecretSecretEstimateReadCommand.js} +17 -17
- package/dist/command/SecretSecretEstimateReadCommand.js.map +1 -0
- package/dist/command/SecretSecret_CreateForHourlyCommand.d.ts +5 -0
- package/dist/command/{BillWatchAzure_CreateForCommand.js → SecretSecret_CreateForHourlyCommand.js} +14 -14
- package/dist/command/SecretSecret_CreateForHourlyCommand.js.map +1 -0
- package/dist/command/SecretSecret_CreateForReadCommand.d.ts +5 -0
- package/dist/command/{FieldField_CreateForCommand.js → SecretSecret_CreateForReadCommand.js} +16 -16
- package/dist/command/SecretSecret_CreateForReadCommand.js.map +1 -0
- package/dist/command/cli.js +2 -0
- package/dist/command/cli.js.map +1 -1
- package/dist/estimator/BaseEstimator.d.ts +15 -0
- package/dist/estimator/BaseEstimator.js +58 -0
- package/dist/estimator/BaseEstimator.js.map +1 -0
- package/dist/estimator/BillWatchAWSHourlyEstimator.d.ts +3 -0
- package/dist/estimator/BillWatchAWSHourlyEstimator.js +8 -0
- package/dist/estimator/BillWatchAWSHourlyEstimator.js.map +1 -0
- package/dist/estimator/BillWatchAzureHourlyEstimator.d.ts +3 -0
- package/dist/estimator/BillWatchAzureHourlyEstimator.js +8 -0
- package/dist/estimator/BillWatchAzureHourlyEstimator.js.map +1 -0
- package/dist/estimator/BillWatchBaseHourlyEstimator.d.ts +14 -0
- package/dist/estimator/BillWatchBaseHourlyEstimator.js +26 -0
- package/dist/estimator/BillWatchBaseHourlyEstimator.js.map +1 -0
- package/dist/estimator/BillWatchGCPHourlyEstimator.d.ts +3 -0
- package/dist/estimator/BillWatchGCPHourlyEstimator.js +8 -0
- package/dist/estimator/BillWatchGCPHourlyEstimator.js.map +1 -0
- package/dist/estimator/FieldBaseHourlyEstimator.d.ts +9 -0
- package/dist/estimator/FieldBaseHourlyEstimator.js +22 -0
- package/dist/estimator/FieldBaseHourlyEstimator.js.map +1 -0
- package/dist/estimator/FieldCategoryHourlyEstimator.d.ts +8 -0
- package/dist/estimator/FieldCategoryHourlyEstimator.js +12 -0
- package/dist/estimator/FieldCategoryHourlyEstimator.js.map +1 -0
- package/dist/estimator/FieldFieldHourlyEstimator.d.ts +8 -0
- package/dist/estimator/FieldFieldHourlyEstimator.js +12 -0
- package/dist/estimator/FieldFieldHourlyEstimator.js.map +1 -0
- package/dist/estimator/SecretSecretHourlyEstimator.d.ts +14 -0
- package/dist/estimator/SecretSecretHourlyEstimator.js +25 -0
- package/dist/estimator/SecretSecretHourlyEstimator.js.map +1 -0
- package/dist/estimator/SecretSecretReadEstimator.d.ts +14 -0
- package/dist/estimator/SecretSecretReadEstimator.js +25 -0
- package/dist/estimator/SecretSecretReadEstimator.js.map +1 -0
- package/dist/index.d.ts +16 -15
- package/dist/index.js +16 -15
- package/dist/index.js.map +1 -1
- package/dist/type/Estimation.d.ts +10 -3
- package/dist/type/EstimationOption.d.ts +10 -0
- package/dist/type/{EstimationRow.js → EstimationOption.js} +2 -1
- package/dist/type/EstimationOption.js.map +1 -0
- package/dist/type/Period.d.ts +20 -2
- package/dist/type/Period.js +61 -0
- package/dist/type/Period.js.map +1 -1
- package/dist/type/Usage.d.ts +24 -0
- package/dist/type/Usage.js +30 -0
- package/dist/type/Usage.js.map +1 -0
- package/package.json +2 -2
- package/src/NamirasoftCostServer.ts +4 -1
- package/src/NamirasoftCostServerBillWatchAWS.ts +6 -6
- package/src/NamirasoftCostServerBillWatchAzure.ts +6 -6
- package/src/NamirasoftCostServerBillWatchGCP.ts +6 -6
- package/src/NamirasoftCostServerFieldCategory.ts +6 -6
- package/src/NamirasoftCostServerFieldField.ts +6 -6
- package/src/NamirasoftCostServerSecretSecret.ts +61 -0
- package/src/bonus/BaseBonus.ts +14 -0
- package/src/bonus/DeactiveBonus.ts +15 -0
- package/src/bonus/FreeCountBonus.ts +15 -0
- package/src/bonus/FreeTotalValueBonus.ts +29 -0
- package/src/bonus/LowAmountBonus.ts +15 -0
- package/src/bonus/LowSecondsBonus.ts +15 -0
- package/src/bonus/LowTotalCountBonus.ts +15 -0
- package/src/bonus/LowTotalValueBonus.ts +15 -0
- package/src/bonus/TrialBonus.ts +19 -0
- package/src/command/BillWatchAWSCommand.ts +4 -4
- package/src/command/{FieldCategoryEstimationCommand.ts → BillWatchAWSEstimateHourlyCommand.ts} +12 -12
- package/src/command/{BillWatchAzure_CreateForCommand.ts → BillWatchAWS_CreateForHourlyCommand.ts} +11 -11
- package/src/command/BillWatchAzureCommand.ts +4 -4
- package/src/command/BillWatchAzureEstimateHourlyCommand.ts +83 -0
- package/src/command/BillWatchAzure_CreateForHourlyCommand.ts +101 -0
- package/src/command/BillWatchGCPCommand.ts +4 -4
- package/src/command/{BillWatchGCPEstimationCommand.ts → BillWatchGCPEstimateHourlyCommand.ts} +12 -12
- package/src/command/{FieldCategory_CreateForCommand.ts → BillWatchGCP_CreateForHourlyCommand.ts} +11 -11
- package/src/command/FieldCategoryCommand.ts +4 -4
- package/src/command/FieldCategoryEstimateHourlyCommand.ts +83 -0
- package/src/command/FieldCategory_CreateForHourlyCommand.ts +101 -0
- package/src/command/FieldFieldCommand.ts +4 -4
- package/src/command/{BillWatchAzureEstimationCommand.ts → FieldFieldEstimateHourlyCommand.ts} +12 -12
- package/src/command/{BillWatchGCP_CreateForCommand.ts → FieldField_CreateForHourlyCommand.ts} +11 -11
- package/src/command/SecretSecretCommand.ts +38 -0
- package/src/command/{BillWatchAWSEstimationCommand.ts → SecretSecretEstimateHourlyCommand.ts} +12 -12
- package/src/command/{FieldFieldEstimationCommand.ts → SecretSecretEstimateReadCommand.ts} +14 -14
- package/src/command/{BillWatchAWS_CreateForCommand.ts → SecretSecret_CreateForHourlyCommand.ts} +11 -11
- package/src/command/{FieldField_CreateForCommand.ts → SecretSecret_CreateForReadCommand.ts} +13 -13
- package/src/command/cli.ts +2 -0
- package/src/estimator/BaseEstimator.ts +63 -0
- package/src/estimator/BillWatchAWSHourlyEstimator.ts +5 -0
- package/src/estimator/BillWatchAzureHourlyEstimator.ts +5 -0
- package/src/estimator/BillWatchBaseHourlyEstimator.ts +26 -0
- package/src/estimator/BillWatchGCPHourlyEstimator.ts +5 -0
- package/src/estimator/FieldBaseHourlyEstimator.ts +21 -0
- package/src/estimator/FieldCategoryHourlyEstimator.ts +10 -0
- package/src/estimator/FieldFieldHourlyEstimator.ts +10 -0
- package/src/estimator/SecretSecretHourlyEstimator.ts +25 -0
- package/src/estimator/SecretSecretReadEstimator.ts +26 -0
- package/src/index.ts +17 -16
- package/src/type/Estimation.ts +10 -3
- package/src/type/EstimationOption.ts +12 -0
- package/src/type/Period.ts +72 -3
- package/src/type/Usage.ts +25 -0
- package/dist/TimeUtil.d.ts +0 -7
- package/dist/TimeUtil.js +0 -66
- package/dist/TimeUtil.js.map +0 -1
- package/dist/command/BillWatchAWSEstimationCommand.js.map +0 -1
- package/dist/command/BillWatchAWS_CreateForCommand.js.map +0 -1
- package/dist/command/BillWatchAzure_CreateForCommand.js.map +0 -1
- package/dist/command/BillWatchGCPEstimationCommand.d.ts +0 -5
- package/dist/command/BillWatchGCPEstimationCommand.js.map +0 -1
- package/dist/command/BillWatchGCP_CreateForCommand.d.ts +0 -5
- package/dist/command/BillWatchGCP_CreateForCommand.js.map +0 -1
- package/dist/command/FieldCategoryEstimationCommand.d.ts +0 -5
- package/dist/command/FieldCategoryEstimationCommand.js.map +0 -1
- package/dist/command/FieldCategory_CreateForCommand.d.ts +0 -5
- package/dist/command/FieldCategory_CreateForCommand.js.map +0 -1
- package/dist/command/FieldFieldEstimationCommand.d.ts +0 -5
- package/dist/command/FieldFieldEstimationCommand.js.map +0 -1
- package/dist/command/FieldField_CreateForCommand.d.ts +0 -5
- package/dist/command/FieldField_CreateForCommand.js.map +0 -1
- package/dist/enum/TrialUnit.d.ts +0 -5
- package/dist/enum/TrialUnit.js +0 -10
- package/dist/enum/TrialUnit.js.map +0 -1
- package/dist/type/EstimationRow.d.ts +0 -9
- package/dist/type/EstimationRow.js.map +0 -1
- package/dist/type/Trial.d.ts +0 -5
- package/dist/type/Trial.js +0 -3
- package/dist/type/Trial.js.map +0 -1
- package/dist/type/TrialDuration.d.ts +0 -5
- package/dist/type/TrialDuration.js +0 -3
- package/dist/type/TrialDuration.js.map +0 -1
- package/src/TimeUtil.ts +0 -67
- package/src/enum/TrialUnit.ts +0 -6
- package/src/type/EstimationRow.ts +0 -10
- package/src/type/Trial.ts +0 -7
- package/src/type/TrialDuration.ts +0 -7
@@ -0,0 +1,101 @@
|
|
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 { BaseFinalCommand } from "namirasoft-node-cli";
|
22
|
+
import { IStorageMemoryDedicated } from "namirasoft-core";
|
23
|
+
import { NamirasoftCostServer } from "../NamirasoftCostServer";
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
25
|
+
|
26
|
+
export class BillWatchAzure_CreateForHourlyCommand extends BaseFinalCommand
|
27
|
+
{
|
28
|
+
constructor(argv: string[])
|
29
|
+
{
|
30
|
+
super(argv, ["user_id"], [
|
31
|
+
{
|
32
|
+
name: "first_entity_created_at",
|
33
|
+
short: "",
|
34
|
+
description: "Provides the value of 'first_entity_created_at' in body",
|
35
|
+
optional: true,
|
36
|
+
args: ["first_entity_created_at"],
|
37
|
+
defaults: [""]
|
38
|
+
},
|
39
|
+
{
|
40
|
+
name: "period",
|
41
|
+
short: "",
|
42
|
+
description: "Provides the value of 'period' in body",
|
43
|
+
optional: false,
|
44
|
+
args: ["period"],
|
45
|
+
defaults: [""]
|
46
|
+
},
|
47
|
+
{
|
48
|
+
name: "row_number",
|
49
|
+
short: "",
|
50
|
+
description: "Provides the value of 'row_number' in body",
|
51
|
+
optional: false,
|
52
|
+
args: ["row_number"],
|
53
|
+
defaults: [""]
|
54
|
+
},
|
55
|
+
{
|
56
|
+
name: "active",
|
57
|
+
short: "",
|
58
|
+
description: "Provides the value of 'active' in body",
|
59
|
+
optional: false,
|
60
|
+
args: ["active"],
|
61
|
+
defaults: [""]
|
62
|
+
},
|
63
|
+
{
|
64
|
+
name: "workspace_id",
|
65
|
+
short: "",
|
66
|
+
description: "Provides the value of 'workspace_id' in body",
|
67
|
+
optional: false,
|
68
|
+
args: ["workspace_id"],
|
69
|
+
defaults: [""]
|
70
|
+
},
|
71
|
+
{
|
72
|
+
name: "resource_id",
|
73
|
+
short: "",
|
74
|
+
description: "Provides the value of 'resource_id' in body",
|
75
|
+
optional: false,
|
76
|
+
args: ["resource_id"],
|
77
|
+
defaults: [""]
|
78
|
+
}
|
79
|
+
]);
|
80
|
+
}
|
81
|
+
override async exec()
|
82
|
+
{
|
83
|
+
let token = this.app.storage.getNSAToken();
|
84
|
+
if (token == null)
|
85
|
+
throw new Error("Token is not available. Please login first using:\nns-cost account config \nor \nns-cost account login.");
|
86
|
+
let storage = new IStorageMemoryDedicated();
|
87
|
+
let manager = new TokenManager(storage, () => { });
|
88
|
+
manager.setValue(token, false);
|
89
|
+
let url = this.app.storage.getItem("ns-cost-server-url");
|
90
|
+
let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
91
|
+
let ans = await server.bill_watch_azure._CreateForHourly(this.arg_values[0], {
|
92
|
+
first_entity_created_at: this.option_values.first_entity_created_at,
|
93
|
+
period: this.option_values.period,
|
94
|
+
row_number: this.option_values.row_number,
|
95
|
+
active: this.option_values.active,
|
96
|
+
workspace_id: this.option_values.workspace_id,
|
97
|
+
resource_id: this.option_values.resource_id
|
98
|
+
});
|
99
|
+
this.app.logger.success(JSON.stringify(ans));
|
100
|
+
}
|
101
|
+
};
|
@@ -19,16 +19,16 @@
|
|
19
19
|
/****************************************************************/
|
20
20
|
|
21
21
|
import { BaseNavigatorCommand } from "namirasoft-node-cli";
|
22
|
-
import {
|
23
|
-
import {
|
22
|
+
import { BillWatchGCPEstimateHourlyCommand } from "./BillWatchGCPEstimateHourlyCommand";
|
23
|
+
import { BillWatchGCP_CreateForHourlyCommand } from "./BillWatchGCP_CreateForHourlyCommand";
|
24
24
|
|
25
25
|
export class BillWatchGCPCommand extends BaseNavigatorCommand
|
26
26
|
{
|
27
27
|
constructor(argv: string[])
|
28
28
|
{
|
29
29
|
super(argv, {
|
30
|
-
"
|
31
|
-
"
|
30
|
+
"estimatehourly": BillWatchGCPEstimateHourlyCommand,
|
31
|
+
"_createforhourly": BillWatchGCP_CreateForHourlyCommand,
|
32
32
|
});
|
33
33
|
}
|
34
34
|
};
|
package/src/command/{BillWatchGCPEstimationCommand.ts → BillWatchGCPEstimateHourlyCommand.ts}
RENAMED
@@ -23,7 +23,7 @@ import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
23
23
|
import { NamirasoftCostServer } from "../NamirasoftCostServer";
|
24
24
|
import { TokenManager } from "namirasoft-account";
|
25
25
|
|
26
|
-
export class
|
26
|
+
export class BillWatchGCPEstimateHourlyCommand extends BaseFinalCommand
|
27
27
|
{
|
28
28
|
constructor(argv: string[])
|
29
29
|
{
|
@@ -36,6 +36,14 @@ export class BillWatchGCPEstimationCommand extends BaseFinalCommand
|
|
36
36
|
args: ["first_entity_created_at"],
|
37
37
|
defaults: [""]
|
38
38
|
},
|
39
|
+
{
|
40
|
+
name: "period",
|
41
|
+
short: "",
|
42
|
+
description: "Provides the value of 'period' in body",
|
43
|
+
optional: false,
|
44
|
+
args: ["period"],
|
45
|
+
defaults: [""]
|
46
|
+
},
|
39
47
|
{
|
40
48
|
name: "row_number",
|
41
49
|
short: "",
|
@@ -51,14 +59,6 @@ export class BillWatchGCPEstimationCommand extends BaseFinalCommand
|
|
51
59
|
optional: false,
|
52
60
|
args: ["active"],
|
53
61
|
defaults: [""]
|
54
|
-
},
|
55
|
-
{
|
56
|
-
name: "period",
|
57
|
-
short: "",
|
58
|
-
description: "Provides the value of 'period' in body",
|
59
|
-
optional: false,
|
60
|
-
args: ["period"],
|
61
|
-
defaults: [""]
|
62
62
|
}
|
63
63
|
]);
|
64
64
|
}
|
@@ -72,11 +72,11 @@ export class BillWatchGCPEstimationCommand extends BaseFinalCommand
|
|
72
72
|
manager.setValue(token, false);
|
73
73
|
let url = this.app.storage.getItem("ns-cost-server-url");
|
74
74
|
let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
75
|
-
let ans = await server.bill_watch_gcp.
|
75
|
+
let ans = await server.bill_watch_gcp.EstimateHourly({
|
76
76
|
first_entity_created_at: this.option_values.first_entity_created_at,
|
77
|
+
period: this.option_values.period,
|
77
78
|
row_number: this.option_values.row_number,
|
78
|
-
active: this.option_values.active
|
79
|
-
period: this.option_values.period
|
79
|
+
active: this.option_values.active
|
80
80
|
});
|
81
81
|
this.app.logger.success(JSON.stringify(ans));
|
82
82
|
}
|
package/src/command/{FieldCategory_CreateForCommand.ts → BillWatchGCP_CreateForHourlyCommand.ts}
RENAMED
@@ -23,7 +23,7 @@ import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
23
23
|
import { NamirasoftCostServer } from "../NamirasoftCostServer";
|
24
24
|
import { TokenManager } from "namirasoft-account";
|
25
25
|
|
26
|
-
export class
|
26
|
+
export class BillWatchGCP_CreateForHourlyCommand extends BaseFinalCommand
|
27
27
|
{
|
28
28
|
constructor(argv: string[])
|
29
29
|
{
|
@@ -36,6 +36,14 @@ export class FieldCategory_CreateForCommand extends BaseFinalCommand
|
|
36
36
|
args: ["first_entity_created_at"],
|
37
37
|
defaults: [""]
|
38
38
|
},
|
39
|
+
{
|
40
|
+
name: "period",
|
41
|
+
short: "",
|
42
|
+
description: "Provides the value of 'period' in body",
|
43
|
+
optional: false,
|
44
|
+
args: ["period"],
|
45
|
+
defaults: [""]
|
46
|
+
},
|
39
47
|
{
|
40
48
|
name: "row_number",
|
41
49
|
short: "",
|
@@ -52,14 +60,6 @@ export class FieldCategory_CreateForCommand extends BaseFinalCommand
|
|
52
60
|
args: ["active"],
|
53
61
|
defaults: [""]
|
54
62
|
},
|
55
|
-
{
|
56
|
-
name: "period",
|
57
|
-
short: "",
|
58
|
-
description: "Provides the value of 'period' in body",
|
59
|
-
optional: false,
|
60
|
-
args: ["period"],
|
61
|
-
defaults: [""]
|
62
|
-
},
|
63
63
|
{
|
64
64
|
name: "workspace_id",
|
65
65
|
short: "",
|
@@ -88,11 +88,11 @@ export class FieldCategory_CreateForCommand extends BaseFinalCommand
|
|
88
88
|
manager.setValue(token, false);
|
89
89
|
let url = this.app.storage.getItem("ns-cost-server-url");
|
90
90
|
let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
91
|
-
let ans = await server.
|
91
|
+
let ans = await server.bill_watch_gcp._CreateForHourly(this.arg_values[0], {
|
92
92
|
first_entity_created_at: this.option_values.first_entity_created_at,
|
93
|
+
period: this.option_values.period,
|
93
94
|
row_number: this.option_values.row_number,
|
94
95
|
active: this.option_values.active,
|
95
|
-
period: this.option_values.period,
|
96
96
|
workspace_id: this.option_values.workspace_id,
|
97
97
|
resource_id: this.option_values.resource_id
|
98
98
|
});
|
@@ -19,16 +19,16 @@
|
|
19
19
|
/****************************************************************/
|
20
20
|
|
21
21
|
import { BaseNavigatorCommand } from "namirasoft-node-cli";
|
22
|
-
import {
|
23
|
-
import {
|
22
|
+
import { FieldCategoryEstimateHourlyCommand } from "./FieldCategoryEstimateHourlyCommand";
|
23
|
+
import { FieldCategory_CreateForHourlyCommand } from "./FieldCategory_CreateForHourlyCommand";
|
24
24
|
|
25
25
|
export class FieldCategoryCommand extends BaseNavigatorCommand
|
26
26
|
{
|
27
27
|
constructor(argv: string[])
|
28
28
|
{
|
29
29
|
super(argv, {
|
30
|
-
"
|
31
|
-
"
|
30
|
+
"estimatehourly": FieldCategoryEstimateHourlyCommand,
|
31
|
+
"_createforhourly": FieldCategory_CreateForHourlyCommand,
|
32
32
|
});
|
33
33
|
}
|
34
34
|
};
|
@@ -0,0 +1,83 @@
|
|
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 { BaseFinalCommand } from "namirasoft-node-cli";
|
22
|
+
import { IStorageMemoryDedicated } from "namirasoft-core";
|
23
|
+
import { NamirasoftCostServer } from "../NamirasoftCostServer";
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
25
|
+
|
26
|
+
export class FieldCategoryEstimateHourlyCommand extends BaseFinalCommand
|
27
|
+
{
|
28
|
+
constructor(argv: string[])
|
29
|
+
{
|
30
|
+
super(argv, [], [
|
31
|
+
{
|
32
|
+
name: "first_entity_created_at",
|
33
|
+
short: "",
|
34
|
+
description: "Provides the value of 'first_entity_created_at' in body",
|
35
|
+
optional: true,
|
36
|
+
args: ["first_entity_created_at"],
|
37
|
+
defaults: [""]
|
38
|
+
},
|
39
|
+
{
|
40
|
+
name: "period",
|
41
|
+
short: "",
|
42
|
+
description: "Provides the value of 'period' in body",
|
43
|
+
optional: false,
|
44
|
+
args: ["period"],
|
45
|
+
defaults: [""]
|
46
|
+
},
|
47
|
+
{
|
48
|
+
name: "row_number",
|
49
|
+
short: "",
|
50
|
+
description: "Provides the value of 'row_number' in body",
|
51
|
+
optional: false,
|
52
|
+
args: ["row_number"],
|
53
|
+
defaults: [""]
|
54
|
+
},
|
55
|
+
{
|
56
|
+
name: "active",
|
57
|
+
short: "",
|
58
|
+
description: "Provides the value of 'active' in body",
|
59
|
+
optional: false,
|
60
|
+
args: ["active"],
|
61
|
+
defaults: [""]
|
62
|
+
}
|
63
|
+
]);
|
64
|
+
}
|
65
|
+
override async exec()
|
66
|
+
{
|
67
|
+
let token = this.app.storage.getNSAToken();
|
68
|
+
if (token == null)
|
69
|
+
throw new Error("Token is not available. Please login first using:\nns-cost account config \nor \nns-cost account login.");
|
70
|
+
let storage = new IStorageMemoryDedicated();
|
71
|
+
let manager = new TokenManager(storage, () => { });
|
72
|
+
manager.setValue(token, false);
|
73
|
+
let url = this.app.storage.getItem("ns-cost-server-url");
|
74
|
+
let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
75
|
+
let ans = await server.field_category.EstimateHourly({
|
76
|
+
first_entity_created_at: this.option_values.first_entity_created_at,
|
77
|
+
period: this.option_values.period,
|
78
|
+
row_number: this.option_values.row_number,
|
79
|
+
active: this.option_values.active
|
80
|
+
});
|
81
|
+
this.app.logger.success(JSON.stringify(ans));
|
82
|
+
}
|
83
|
+
};
|
@@ -0,0 +1,101 @@
|
|
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 { BaseFinalCommand } from "namirasoft-node-cli";
|
22
|
+
import { IStorageMemoryDedicated } from "namirasoft-core";
|
23
|
+
import { NamirasoftCostServer } from "../NamirasoftCostServer";
|
24
|
+
import { TokenManager } from "namirasoft-account";
|
25
|
+
|
26
|
+
export class FieldCategory_CreateForHourlyCommand extends BaseFinalCommand
|
27
|
+
{
|
28
|
+
constructor(argv: string[])
|
29
|
+
{
|
30
|
+
super(argv, ["user_id"], [
|
31
|
+
{
|
32
|
+
name: "first_entity_created_at",
|
33
|
+
short: "",
|
34
|
+
description: "Provides the value of 'first_entity_created_at' in body",
|
35
|
+
optional: true,
|
36
|
+
args: ["first_entity_created_at"],
|
37
|
+
defaults: [""]
|
38
|
+
},
|
39
|
+
{
|
40
|
+
name: "period",
|
41
|
+
short: "",
|
42
|
+
description: "Provides the value of 'period' in body",
|
43
|
+
optional: false,
|
44
|
+
args: ["period"],
|
45
|
+
defaults: [""]
|
46
|
+
},
|
47
|
+
{
|
48
|
+
name: "row_number",
|
49
|
+
short: "",
|
50
|
+
description: "Provides the value of 'row_number' in body",
|
51
|
+
optional: false,
|
52
|
+
args: ["row_number"],
|
53
|
+
defaults: [""]
|
54
|
+
},
|
55
|
+
{
|
56
|
+
name: "active",
|
57
|
+
short: "",
|
58
|
+
description: "Provides the value of 'active' in body",
|
59
|
+
optional: false,
|
60
|
+
args: ["active"],
|
61
|
+
defaults: [""]
|
62
|
+
},
|
63
|
+
{
|
64
|
+
name: "workspace_id",
|
65
|
+
short: "",
|
66
|
+
description: "Provides the value of 'workspace_id' in body",
|
67
|
+
optional: false,
|
68
|
+
args: ["workspace_id"],
|
69
|
+
defaults: [""]
|
70
|
+
},
|
71
|
+
{
|
72
|
+
name: "resource_id",
|
73
|
+
short: "",
|
74
|
+
description: "Provides the value of 'resource_id' in body",
|
75
|
+
optional: false,
|
76
|
+
args: ["resource_id"],
|
77
|
+
defaults: [""]
|
78
|
+
}
|
79
|
+
]);
|
80
|
+
}
|
81
|
+
override async exec()
|
82
|
+
{
|
83
|
+
let token = this.app.storage.getNSAToken();
|
84
|
+
if (token == null)
|
85
|
+
throw new Error("Token is not available. Please login first using:\nns-cost account config \nor \nns-cost account login.");
|
86
|
+
let storage = new IStorageMemoryDedicated();
|
87
|
+
let manager = new TokenManager(storage, () => { });
|
88
|
+
manager.setValue(token, false);
|
89
|
+
let url = this.app.storage.getItem("ns-cost-server-url");
|
90
|
+
let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
91
|
+
let ans = await server.field_category._CreateForHourly(this.arg_values[0], {
|
92
|
+
first_entity_created_at: this.option_values.first_entity_created_at,
|
93
|
+
period: this.option_values.period,
|
94
|
+
row_number: this.option_values.row_number,
|
95
|
+
active: this.option_values.active,
|
96
|
+
workspace_id: this.option_values.workspace_id,
|
97
|
+
resource_id: this.option_values.resource_id
|
98
|
+
});
|
99
|
+
this.app.logger.success(JSON.stringify(ans));
|
100
|
+
}
|
101
|
+
};
|
@@ -19,16 +19,16 @@
|
|
19
19
|
/****************************************************************/
|
20
20
|
|
21
21
|
import { BaseNavigatorCommand } from "namirasoft-node-cli";
|
22
|
-
import {
|
23
|
-
import {
|
22
|
+
import { FieldFieldEstimateHourlyCommand } from "./FieldFieldEstimateHourlyCommand";
|
23
|
+
import { FieldField_CreateForHourlyCommand } from "./FieldField_CreateForHourlyCommand";
|
24
24
|
|
25
25
|
export class FieldFieldCommand extends BaseNavigatorCommand
|
26
26
|
{
|
27
27
|
constructor(argv: string[])
|
28
28
|
{
|
29
29
|
super(argv, {
|
30
|
-
"
|
31
|
-
"
|
30
|
+
"estimatehourly": FieldFieldEstimateHourlyCommand,
|
31
|
+
"_createforhourly": FieldField_CreateForHourlyCommand,
|
32
32
|
});
|
33
33
|
}
|
34
34
|
};
|
package/src/command/{BillWatchAzureEstimationCommand.ts → FieldFieldEstimateHourlyCommand.ts}
RENAMED
@@ -23,7 +23,7 @@ import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
23
23
|
import { NamirasoftCostServer } from "../NamirasoftCostServer";
|
24
24
|
import { TokenManager } from "namirasoft-account";
|
25
25
|
|
26
|
-
export class
|
26
|
+
export class FieldFieldEstimateHourlyCommand extends BaseFinalCommand
|
27
27
|
{
|
28
28
|
constructor(argv: string[])
|
29
29
|
{
|
@@ -36,6 +36,14 @@ export class BillWatchAzureEstimationCommand extends BaseFinalCommand
|
|
36
36
|
args: ["first_entity_created_at"],
|
37
37
|
defaults: [""]
|
38
38
|
},
|
39
|
+
{
|
40
|
+
name: "period",
|
41
|
+
short: "",
|
42
|
+
description: "Provides the value of 'period' in body",
|
43
|
+
optional: false,
|
44
|
+
args: ["period"],
|
45
|
+
defaults: [""]
|
46
|
+
},
|
39
47
|
{
|
40
48
|
name: "row_number",
|
41
49
|
short: "",
|
@@ -51,14 +59,6 @@ export class BillWatchAzureEstimationCommand extends BaseFinalCommand
|
|
51
59
|
optional: false,
|
52
60
|
args: ["active"],
|
53
61
|
defaults: [""]
|
54
|
-
},
|
55
|
-
{
|
56
|
-
name: "period",
|
57
|
-
short: "",
|
58
|
-
description: "Provides the value of 'period' in body",
|
59
|
-
optional: false,
|
60
|
-
args: ["period"],
|
61
|
-
defaults: [""]
|
62
62
|
}
|
63
63
|
]);
|
64
64
|
}
|
@@ -72,11 +72,11 @@ export class BillWatchAzureEstimationCommand extends BaseFinalCommand
|
|
72
72
|
manager.setValue(token, false);
|
73
73
|
let url = this.app.storage.getItem("ns-cost-server-url");
|
74
74
|
let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
75
|
-
let ans = await server.
|
75
|
+
let ans = await server.field_field.EstimateHourly({
|
76
76
|
first_entity_created_at: this.option_values.first_entity_created_at,
|
77
|
+
period: this.option_values.period,
|
77
78
|
row_number: this.option_values.row_number,
|
78
|
-
active: this.option_values.active
|
79
|
-
period: this.option_values.period
|
79
|
+
active: this.option_values.active
|
80
80
|
});
|
81
81
|
this.app.logger.success(JSON.stringify(ans));
|
82
82
|
}
|
package/src/command/{BillWatchGCP_CreateForCommand.ts → FieldField_CreateForHourlyCommand.ts}
RENAMED
@@ -23,7 +23,7 @@ import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
23
23
|
import { NamirasoftCostServer } from "../NamirasoftCostServer";
|
24
24
|
import { TokenManager } from "namirasoft-account";
|
25
25
|
|
26
|
-
export class
|
26
|
+
export class FieldField_CreateForHourlyCommand extends BaseFinalCommand
|
27
27
|
{
|
28
28
|
constructor(argv: string[])
|
29
29
|
{
|
@@ -36,6 +36,14 @@ export class BillWatchGCP_CreateForCommand extends BaseFinalCommand
|
|
36
36
|
args: ["first_entity_created_at"],
|
37
37
|
defaults: [""]
|
38
38
|
},
|
39
|
+
{
|
40
|
+
name: "period",
|
41
|
+
short: "",
|
42
|
+
description: "Provides the value of 'period' in body",
|
43
|
+
optional: false,
|
44
|
+
args: ["period"],
|
45
|
+
defaults: [""]
|
46
|
+
},
|
39
47
|
{
|
40
48
|
name: "row_number",
|
41
49
|
short: "",
|
@@ -52,14 +60,6 @@ export class BillWatchGCP_CreateForCommand extends BaseFinalCommand
|
|
52
60
|
args: ["active"],
|
53
61
|
defaults: [""]
|
54
62
|
},
|
55
|
-
{
|
56
|
-
name: "period",
|
57
|
-
short: "",
|
58
|
-
description: "Provides the value of 'period' in body",
|
59
|
-
optional: false,
|
60
|
-
args: ["period"],
|
61
|
-
defaults: [""]
|
62
|
-
},
|
63
63
|
{
|
64
64
|
name: "workspace_id",
|
65
65
|
short: "",
|
@@ -88,11 +88,11 @@ export class BillWatchGCP_CreateForCommand extends BaseFinalCommand
|
|
88
88
|
manager.setValue(token, false);
|
89
89
|
let url = this.app.storage.getItem("ns-cost-server-url");
|
90
90
|
let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
91
|
-
let ans = await server.
|
91
|
+
let ans = await server.field_field._CreateForHourly(this.arg_values[0], {
|
92
92
|
first_entity_created_at: this.option_values.first_entity_created_at,
|
93
|
+
period: this.option_values.period,
|
93
94
|
row_number: this.option_values.row_number,
|
94
95
|
active: this.option_values.active,
|
95
|
-
period: this.option_values.period,
|
96
96
|
workspace_id: this.option_values.workspace_id,
|
97
97
|
resource_id: this.option_values.resource_id
|
98
98
|
});
|
@@ -0,0 +1,38 @@
|
|
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 { BaseNavigatorCommand } from "namirasoft-node-cli";
|
22
|
+
import { SecretSecretEstimateHourlyCommand } from "./SecretSecretEstimateHourlyCommand";
|
23
|
+
import { SecretSecretEstimateReadCommand } from "./SecretSecretEstimateReadCommand";
|
24
|
+
import { SecretSecret_CreateForHourlyCommand } from "./SecretSecret_CreateForHourlyCommand";
|
25
|
+
import { SecretSecret_CreateForReadCommand } from "./SecretSecret_CreateForReadCommand";
|
26
|
+
|
27
|
+
export class SecretSecretCommand extends BaseNavigatorCommand
|
28
|
+
{
|
29
|
+
constructor(argv: string[])
|
30
|
+
{
|
31
|
+
super(argv, {
|
32
|
+
"estimatehourly": SecretSecretEstimateHourlyCommand,
|
33
|
+
"_createforhourly": SecretSecret_CreateForHourlyCommand,
|
34
|
+
"estimateread": SecretSecretEstimateReadCommand,
|
35
|
+
"_createforread": SecretSecret_CreateForReadCommand,
|
36
|
+
});
|
37
|
+
}
|
38
|
+
};
|
package/src/command/{BillWatchAWSEstimationCommand.ts → SecretSecretEstimateHourlyCommand.ts}
RENAMED
@@ -23,7 +23,7 @@ import { IStorageMemoryDedicated } from "namirasoft-core";
|
|
23
23
|
import { NamirasoftCostServer } from "../NamirasoftCostServer";
|
24
24
|
import { TokenManager } from "namirasoft-account";
|
25
25
|
|
26
|
-
export class
|
26
|
+
export class SecretSecretEstimateHourlyCommand extends BaseFinalCommand
|
27
27
|
{
|
28
28
|
constructor(argv: string[])
|
29
29
|
{
|
@@ -36,6 +36,14 @@ export class BillWatchAWSEstimationCommand extends BaseFinalCommand
|
|
36
36
|
args: ["first_entity_created_at"],
|
37
37
|
defaults: [""]
|
38
38
|
},
|
39
|
+
{
|
40
|
+
name: "period",
|
41
|
+
short: "",
|
42
|
+
description: "Provides the value of 'period' in body",
|
43
|
+
optional: false,
|
44
|
+
args: ["period"],
|
45
|
+
defaults: [""]
|
46
|
+
},
|
39
47
|
{
|
40
48
|
name: "row_number",
|
41
49
|
short: "",
|
@@ -51,14 +59,6 @@ export class BillWatchAWSEstimationCommand extends BaseFinalCommand
|
|
51
59
|
optional: false,
|
52
60
|
args: ["active"],
|
53
61
|
defaults: [""]
|
54
|
-
},
|
55
|
-
{
|
56
|
-
name: "period",
|
57
|
-
short: "",
|
58
|
-
description: "Provides the value of 'period' in body",
|
59
|
-
optional: false,
|
60
|
-
args: ["period"],
|
61
|
-
defaults: [""]
|
62
62
|
}
|
63
63
|
]);
|
64
64
|
}
|
@@ -72,11 +72,11 @@ export class BillWatchAWSEstimationCommand extends BaseFinalCommand
|
|
72
72
|
manager.setValue(token, false);
|
73
73
|
let url = this.app.storage.getItem("ns-cost-server-url");
|
74
74
|
let server = new NamirasoftCostServer(url, manager, e => this.app.logger.error(e.message));
|
75
|
-
let ans = await server.
|
75
|
+
let ans = await server.secret_secret.EstimateHourly({
|
76
76
|
first_entity_created_at: this.option_values.first_entity_created_at,
|
77
|
+
period: this.option_values.period,
|
77
78
|
row_number: this.option_values.row_number,
|
78
|
-
active: this.option_values.active
|
79
|
-
period: this.option_values.period
|
79
|
+
active: this.option_values.active
|
80
80
|
});
|
81
81
|
this.app.logger.success(JSON.stringify(ans));
|
82
82
|
}
|