@longvansoftware/service-js-client 1.2.5 → 1.2.6
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.
@@ -5,3 +5,4 @@ export declare const RAM_USAGE_START_TIME: import("graphql").DocumentNode;
|
|
5
5
|
export declare const CPU_USAGE_START_TIME: import("graphql").DocumentNode;
|
6
6
|
export declare const RAM_USAGE_DATE_RANGE: import("graphql").DocumentNode;
|
7
7
|
export declare const CPU_USAGE_DATE_RANGE: import("graphql").DocumentNode;
|
8
|
+
export declare const BACKUP_POINT: import("graphql").DocumentNode;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CPU_USAGE_DATE_RANGE = exports.RAM_USAGE_DATE_RANGE = exports.CPU_USAGE_START_TIME = exports.RAM_USAGE_START_TIME = exports.SNAP_SHOTS = exports.PORTNATS = exports.COMPUTING_DETAIL = void 0;
|
3
|
+
exports.BACKUP_POINT = exports.CPU_USAGE_DATE_RANGE = exports.RAM_USAGE_DATE_RANGE = exports.CPU_USAGE_START_TIME = exports.RAM_USAGE_START_TIME = exports.SNAP_SHOTS = exports.PORTNATS = exports.COMPUTING_DETAIL = void 0;
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
5
5
|
exports.COMPUTING_DETAIL = (0, graphql_tag_1.gql) `
|
6
6
|
query ComputingDetail($computingId: String!) {
|
@@ -100,3 +100,17 @@ exports.CPU_USAGE_DATE_RANGE = (0, graphql_tag_1.gql) `
|
|
100
100
|
}
|
101
101
|
}
|
102
102
|
`;
|
103
|
+
exports.BACKUP_POINT = (0, graphql_tag_1.gql) `
|
104
|
+
query BackupPoint($computingId: String!) {
|
105
|
+
backupPoint(computingId: $computingId) {
|
106
|
+
partnerId
|
107
|
+
description
|
108
|
+
format
|
109
|
+
virtualId
|
110
|
+
backupDate
|
111
|
+
jobBackupId
|
112
|
+
backupServerId
|
113
|
+
vmId
|
114
|
+
}
|
115
|
+
}
|
116
|
+
`;
|
@@ -26,4 +26,5 @@ export declare class ComputingService extends Service {
|
|
26
26
|
cpuUsageStartTime(computingId: string, startTime: string): Promise<any>;
|
27
27
|
ramUsageDateRange(computingId: string, fromDate: any, toDate: any): Promise<any>;
|
28
28
|
cpuUsageDateRange(computingId: string, fromDate: any, toDate: any): Promise<any>;
|
29
|
+
backupPoint(computingId: string): Promise<any>;
|
29
30
|
}
|
@@ -320,5 +320,21 @@ class ComputingService extends serviceSDK_1.Service {
|
|
320
320
|
}
|
321
321
|
});
|
322
322
|
}
|
323
|
+
backupPoint(computingId) {
|
324
|
+
return __awaiter(this, void 0, void 0, function* () {
|
325
|
+
const query = queries_1.BACKUP_POINT;
|
326
|
+
const variables = {
|
327
|
+
computingId,
|
328
|
+
};
|
329
|
+
try {
|
330
|
+
const response = yield this.graphqlQueryV2(query, variables);
|
331
|
+
return response.backupPoint;
|
332
|
+
}
|
333
|
+
catch (error) {
|
334
|
+
console.log(`Error fetching get backupPoint method: ${error}`);
|
335
|
+
throw error;
|
336
|
+
}
|
337
|
+
});
|
338
|
+
}
|
323
339
|
}
|
324
340
|
exports.ComputingService = ComputingService;
|