@broadcom/mat-analyze-for-zowe-cli 2.0.6 → 2.0.7
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/README.md +6 -6
- package/lib/cli/monitor/codeview/Histogram/Histogram.handler.d.ts +5 -4
- package/lib/cli/monitor/codeview/Histogram/Histogram.handler.js +235 -123
- package/lib/cli/monitor/codeview/Histogram/Histogram.handler.js.map +1 -1
- package/lib/handlers/AbstractGetHandler.js +7 -7
- package/lib/handlers/AbstractGetHandler.js.map +1 -1
- package/lib/index.js +6 -2
- package/lib/index.js.map +1 -1
- package/package.json +8 -9
package/README.md
CHANGED
|
@@ -30,11 +30,11 @@ You can use the MAT Analyze plug-in for Zowe CLI to perform the following tasks:
|
|
|
30
30
|
- [history | hs](#history--hs)
|
|
31
31
|
- [overview | ov](#overview--ov)
|
|
32
32
|
- [delayview](#delayview)
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
- [delay | de](#delay--de)
|
|
34
|
+
- [address | ad](#address--ad)
|
|
35
|
+
- [codeview](#codeview)
|
|
36
|
+
- [module | mod](module--mod)
|
|
37
|
+
- [csect | cs](#csect--cs)
|
|
38
38
|
- [histogram | hsg](#histogram--hsg)
|
|
39
39
|
- [callerid | cil](#callerid--cil)
|
|
40
40
|
- [db2](#db2)
|
|
@@ -69,7 +69,7 @@ You can install the MAT Analyze Plug-in for Zowe CLI from the Zowe Package.
|
|
|
69
69
|
|
|
70
70
|
Before starting the installation of the MAT Analyze Plug-in for Zowe CLI, verify that you have:
|
|
71
71
|
|
|
72
|
-
- Zowe CLI installed.
|
|
72
|
+
- Zowe version 2 (Zowe CLI version 7.x) is installed.
|
|
73
73
|
- MAT database and the REST API installed, configured, and running.
|
|
74
74
|
- (Optional) To use the automated listing registration and retrieval option through Endevor® footprints, install and configure the Endevor® Web Services and specify the Endevor® web server details in the MAT database configuration.
|
|
75
75
|
|
|
@@ -2,9 +2,10 @@ import AbstractAnalyzeHandler from "../../../../handlers/AbstractAnalyzeHandler"
|
|
|
2
2
|
import { IHistogram } from "../../../../api/response/IHistogram";
|
|
3
3
|
import { IHandlerParameters } from "@zowe/imperative";
|
|
4
4
|
export default class HistogramHandler extends AbstractAnalyzeHandler<IHistogram> {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
private Helper;
|
|
6
|
+
getAnalyzeURI(): string;
|
|
7
|
+
getFields(json: any): string[];
|
|
8
|
+
getOutput(json: any, params: IHandlerParameters): Promise<any>;
|
|
9
|
+
getOptionalParams(): string[];
|
|
9
10
|
private getExtension;
|
|
10
11
|
}
|
|
@@ -34,9 +34,72 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
34
34
|
const AbstractAnalyzeHandler_1 = require("../../../../handlers/AbstractAnalyzeHandler");
|
|
35
35
|
const MATRest_1 = require("../../../../api/MATRest");
|
|
36
36
|
const imperative_1 = require("@zowe/imperative");
|
|
37
|
-
|
|
38
|
-
const
|
|
37
|
+
const fs = require("fs");
|
|
38
|
+
const path = require("path");
|
|
39
39
|
class HistogramHandler extends AbstractAnalyzeHandler_1.default {
|
|
40
|
+
constructor() {
|
|
41
|
+
// Helper class to encapsulate specific operations
|
|
42
|
+
super(...arguments);
|
|
43
|
+
this.Helper = {
|
|
44
|
+
// Extract and parse the footprint from the JSON object
|
|
45
|
+
extractFootprint(json) {
|
|
46
|
+
let footprint = JSON.stringify(json.footprint);
|
|
47
|
+
footprint = footprint.substring(footprint.indexOf("[") + 1, footprint.indexOf("]"));
|
|
48
|
+
return JSON.parse(footprint); // Return the parsed footprint object
|
|
49
|
+
},
|
|
50
|
+
// Construct the REST API request URL using the footprint data
|
|
51
|
+
constructRequestUrl(jsonFootprint) {
|
|
52
|
+
return "/" + jsonFootprint.endevorBasePath + "/" + jsonFootprint.endevorContext + "/env/" + jsonFootprint.environment + "/stgnum/"
|
|
53
|
+
+ jsonFootprint.stage + "/sys/" + jsonFootprint.system + "/subsys/" + jsonFootprint.subsystem + "/type/" + jsonFootprint.type + "/ele/"
|
|
54
|
+
+ jsonFootprint.element + "?print=listing";
|
|
55
|
+
},
|
|
56
|
+
// Create a session with the required authentication details
|
|
57
|
+
createSession(jsonFootprint, user, password) {
|
|
58
|
+
const endevorProtocolFoot = jsonFootprint.endevorHost.substring(0, jsonFootprint.endevorHost.indexOf(":"));
|
|
59
|
+
const endevorHostFoot = jsonFootprint.endevorHost.substring(jsonFootprint.endevorHost.indexOf("//") + 2);
|
|
60
|
+
const auth = "Basic " + Buffer.from(user + ":" + password).toString("base64");
|
|
61
|
+
// Return a new session object with the configured parameters
|
|
62
|
+
return new imperative_1.Session({
|
|
63
|
+
hostname: endevorHostFoot,
|
|
64
|
+
port: jsonFootprint.endevorPort,
|
|
65
|
+
protocol: endevorProtocolFoot,
|
|
66
|
+
type: "basic",
|
|
67
|
+
base64EncodedAuth: auth
|
|
68
|
+
});
|
|
69
|
+
},
|
|
70
|
+
// Write the API response to a file and return the file location
|
|
71
|
+
writeResponseToFile(response, listingDir, elementName, extension) {
|
|
72
|
+
const dir = listingDir;
|
|
73
|
+
// Create the directory if it does not exist
|
|
74
|
+
if (!fs.existsSync(dir)) {
|
|
75
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
76
|
+
}
|
|
77
|
+
// Construct the full file path and write the response to the file
|
|
78
|
+
const location = path.join(listingDir, elementName + "." + extension);
|
|
79
|
+
fs.writeFileSync(location, response); // Write the response content to the file
|
|
80
|
+
return location; // Return the location of the file
|
|
81
|
+
},
|
|
82
|
+
// Process the file content by searching for matching statements and verbs in the histogram
|
|
83
|
+
processFileContent(response, histogram, location) {
|
|
84
|
+
const lines = response.split("\n"); // Split the response into lines
|
|
85
|
+
// Iterate over each histogram item and search for matching lines in the file content
|
|
86
|
+
for (const hist of histogram) {
|
|
87
|
+
for (let index = 0; index < lines.length; index++) {
|
|
88
|
+
const stmtLine = lines[index].indexOf(hist.stmt);
|
|
89
|
+
if (stmtLine >= 0) {
|
|
90
|
+
const columnNum = lines[index].indexOf(hist.verb, stmtLine);
|
|
91
|
+
if (columnNum >= 0) {
|
|
92
|
+
const lineNum = index + 1;
|
|
93
|
+
hist.listing = `${location}:${lineNum}:${columnNum}`;
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return histogram;
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
}
|
|
40
103
|
getAnalyzeURI() {
|
|
41
104
|
return MATRest_1.MATRest.ANALYSIS_CODEVIEW_HISTOGRAM;
|
|
42
105
|
}
|
|
@@ -51,84 +114,174 @@ class HistogramHandler extends AbstractAnalyzeHandler_1.default {
|
|
|
51
114
|
}
|
|
52
115
|
return fields;
|
|
53
116
|
}
|
|
54
|
-
getOutput(json, params) {
|
|
55
|
-
|
|
56
|
-
if (
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
print: "listing",
|
|
83
|
-
listString: undefined,
|
|
84
|
-
search: undefined,
|
|
85
|
-
headings: undefined,
|
|
86
|
-
explode: undefined,
|
|
87
|
-
whereProcGroup: undefined,
|
|
88
|
-
whereCcidCurrent: undefined,
|
|
89
|
-
whereCcidAll: undefined,
|
|
90
|
-
whereCcidRetrieve: undefined,
|
|
91
|
-
};*/
|
|
92
|
-
const requestBody = {
|
|
93
|
-
print: "listing",
|
|
117
|
+
/*protected async getOutput(json: any, params: IHandlerParameters) {
|
|
118
|
+
if (params.arguments.listing === true) {
|
|
119
|
+
if ("footprint" in json) {
|
|
120
|
+
const endconerror = "Endevor Connection Error";
|
|
121
|
+
// const matProfile = params.profiles.get("mat", true);
|
|
122
|
+
const endevorFootprint = json.footprint[0]; // 1. CLARIFY WITH GAS WHY THE JSON FOOTPRINT IS AN ARRAY, CAN WE HAVE MORE THAN 1 FOOTPRINT PER MODULE AND CSECT?
|
|
123
|
+
|
|
124
|
+
const requestBody: PrintElmCompDictionary = {
|
|
125
|
+
print: "listing",
|
|
126
|
+
};
|
|
127
|
+
type CombinedElmArg = ElmSpecDictionary & PrintElmCompDictionary;
|
|
128
|
+
|
|
129
|
+
const elemDef: CombinedElmArg = {
|
|
130
|
+
"environment": endevorFootprint.environment.trim(),
|
|
131
|
+
"stage-number": endevorFootprint.stage.trim(),
|
|
132
|
+
"system": endevorFootprint.system.trim(),
|
|
133
|
+
"subsystem": endevorFootprint.subsystem.trim(), // SUBSYSTEM IS COMING WITH WHITE SPACES IN THE END.
|
|
134
|
+
"type": endevorFootprint.type.trim(),
|
|
135
|
+
"element": endevorFootprint.element.trim(),
|
|
136
|
+
"print": "listing",
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
let endevorSession;
|
|
140
|
+
if (!endevorFootprint.endevorHost.includes("http")) {
|
|
141
|
+
const exception: HistogramError = {
|
|
142
|
+
name: "HistogramException",
|
|
143
|
+
header: "Footprint Data Error",
|
|
144
|
+
message: "Histogram footprint contains the wrong protocol type. The allowed protocol types are: http and https. \n REST client reports: " + endevorFootprint.endevorHost
|
|
94
145
|
};
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"print": "listing",
|
|
146
|
+
throw exception;
|
|
147
|
+
}
|
|
148
|
+
if (!endevorFootprint.endevorHost.includes("//") || !endevorFootprint.endevorHost.includes(":")) {
|
|
149
|
+
const exception: HistogramError = {
|
|
150
|
+
name: "HistogramException",
|
|
151
|
+
header: "Footprint Data Error",
|
|
152
|
+
message: "Histogram footprint contains the wrong Endevor Host. \n REST client reports: " + endevorFootprint.endevorHost
|
|
103
153
|
};
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
154
|
+
throw exception;
|
|
155
|
+
}
|
|
156
|
+
try {
|
|
157
|
+
endevorSession = new Session({
|
|
158
|
+
hostname: endevorFootprint.endevorHost.substring(endevorFootprint.endevorHost.indexOf("//") + 2), // THE FOOTPRINT HOSTNAME MUST BE SPLIT IN PROTOCOL AND HOSTNAME.
|
|
159
|
+
port: endevorFootprint.endevorPort,
|
|
160
|
+
protocol: endevorFootprint.endevorHost.substring(0, endevorFootprint.endevorHost.indexOf(":")),
|
|
161
|
+
user: params.arguments.user,
|
|
162
|
+
password: params.arguments.password,
|
|
163
|
+
basePath: endevorFootprint.endevorBasePath,
|
|
164
|
+
rejectUnauthorized: false,
|
|
165
|
+
type: "basic"
|
|
166
|
+
});
|
|
167
|
+
} catch (error) {
|
|
168
|
+
const exception: HistogramError = {
|
|
169
|
+
name: "HistogramException",
|
|
170
|
+
header: endconerror,
|
|
171
|
+
message: "An error occurred while connecting to the endevor web services: \n" + error.message
|
|
172
|
+
};
|
|
173
|
+
throw exception;
|
|
174
|
+
}
|
|
175
|
+
let responseEndevor;
|
|
176
|
+
try {
|
|
177
|
+
responseEndevor = await EndevorClient.printElement(endevorSession)(endevorFootprint.endevorContext.trim())(elemDef);
|
|
178
|
+
// responseEndevor = await EndevorClient.printElement(endevorSession, elemDef, requestBody, false);
|
|
179
|
+
} catch (error) {
|
|
180
|
+
if (error instanceof RestClientError) {
|
|
181
|
+
const exception: HistogramError = {
|
|
182
|
+
name: "HistogramException",
|
|
183
|
+
header: endconerror,
|
|
184
|
+
message: "Cannot download the listing file from Endevor: \n" + error.mDetails.additionalDetails
|
|
185
|
+
};
|
|
186
|
+
throw exception;
|
|
187
|
+
} else {
|
|
188
|
+
const exception: HistogramError = {
|
|
107
189
|
name: "HistogramException",
|
|
108
|
-
header:
|
|
109
|
-
message: "
|
|
190
|
+
header: endconerror,
|
|
191
|
+
message: "An error occurred while connecting to the Endevor web services: \n" + error.message
|
|
110
192
|
};
|
|
111
193
|
throw exception;
|
|
112
194
|
}
|
|
113
|
-
|
|
114
|
-
|
|
195
|
+
}
|
|
196
|
+
if (responseEndevor.body.data !== null && responseEndevor.body.data !== undefined) {
|
|
197
|
+
let tofileName = params.arguments.listingDir === undefined ? "." : params.arguments.listingDir;
|
|
198
|
+
try {
|
|
199
|
+
const fs = require("fs");
|
|
200
|
+
if (!fs.existsSync(tofileName)) {
|
|
201
|
+
await fs.mkdirSync(tofileName, { recursive: true }, (err: any) => {
|
|
202
|
+
if (err) {
|
|
203
|
+
throw err;
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
tofileName += "\\" + endevorFootprint.element + "." + this.getExtension(endevorFootprint.type);
|
|
208
|
+
fs.writeFileSync(tofileName, responseEndevor.body.data[0], { encoding: "latin1" });
|
|
209
|
+
// THIS IS HOW YOU WRITE A FILE USING ENDEVOR
|
|
210
|
+
// EndevorUtils.generalWriteFile(tofileName, responseEndevor.data[0]);
|
|
211
|
+
} catch (error) {
|
|
212
|
+
const exception: HistogramError = {
|
|
115
213
|
name: "HistogramException",
|
|
116
|
-
header: "
|
|
117
|
-
|
|
214
|
+
header: "File or Folder Access Error",
|
|
215
|
+
errno: error.errno ? error.errno : null,
|
|
216
|
+
message: error.message
|
|
118
217
|
};
|
|
119
218
|
throw exception;
|
|
120
219
|
}
|
|
220
|
+
if (responseEndevor.body.data[0].length === 0) {
|
|
221
|
+
const exception: HistogramError = {
|
|
222
|
+
name: "HistogramException",
|
|
223
|
+
header: "Endevor Data Error",
|
|
224
|
+
message: "No data in response from Endevor."
|
|
225
|
+
};
|
|
226
|
+
throw exception;
|
|
227
|
+
}
|
|
228
|
+
responseEndevor.body.data[0] = responseEndevor.body.data[0] + "";
|
|
229
|
+
const lines = responseEndevor.body.data[0].split("\n");
|
|
230
|
+
for (const histogram of json.histogram) {
|
|
231
|
+
histogram.listing = "not found";
|
|
232
|
+
for (let index = 0; index < lines.length; index++) {
|
|
233
|
+
const stmtLine = lines[index].indexOf(histogram.stmt);
|
|
234
|
+
if (stmtLine >= 0) {
|
|
235
|
+
const columnNum = lines[index].indexOf(histogram.verb, stmtLine) + 1;
|
|
236
|
+
if (columnNum >= 1) {
|
|
237
|
+
const lineNum = index + 1;
|
|
238
|
+
histogram.listing = tofileName + ":" + lineNum + ":" + columnNum;
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
} else {
|
|
245
|
+
const exception: HistogramError = {
|
|
246
|
+
name: "HistogramException",
|
|
247
|
+
header: "Resource Access Error",
|
|
248
|
+
message: "Listing not found. Caused by: \n" + responseEndevor.body.messages
|
|
249
|
+
};
|
|
250
|
+
throw exception;
|
|
251
|
+
}
|
|
252
|
+
// } else if (("message" in json) && ((json.message === "No footprint data in the database for requested measurement") || (json.message === "No listing data in the database for requested measurement"))) {
|
|
253
|
+
} else if (("message" in json) && (json.message !== "OK")) {
|
|
254
|
+
for (const histogram of json.histogram) {
|
|
255
|
+
histogram.listing = json.message;
|
|
256
|
+
}
|
|
257
|
+
} else {
|
|
258
|
+
const exception: HistogramError = {
|
|
259
|
+
name: "HistogramException",
|
|
260
|
+
header: "Resource Access Error",
|
|
261
|
+
message: "The listing data set for the measurement is not registered with MAT"
|
|
262
|
+
};
|
|
263
|
+
throw exception;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
return json.histogram;
|
|
267
|
+
}*/
|
|
268
|
+
// Main method to handle the histogram request
|
|
269
|
+
getOutput(json, params) {
|
|
270
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
271
|
+
// Check if the listing argument is not true
|
|
272
|
+
// If listing is not true, return the histogram from json
|
|
273
|
+
if (params.arguments.listing === true) {
|
|
274
|
+
if ("footprint" in json) {
|
|
275
|
+
const endconerror = "Endevor Connection Error";
|
|
276
|
+
const listingDir = params.arguments.listingDir; // Directory where the listing will be stored
|
|
277
|
+
const jsonFootprint = this.Helper.extractFootprint(json); // Extract and parse the footprint from JSON
|
|
278
|
+
const request = this.Helper.constructRequestUrl(jsonFootprint); // Construct the REST API request URL
|
|
279
|
+
let response;
|
|
280
|
+
let session;
|
|
281
|
+
let headers;
|
|
282
|
+
// Create a session for making the API call with authentication
|
|
121
283
|
try {
|
|
122
|
-
|
|
123
|
-
hostname: endevorFootprint.endevorHost.substring(endevorFootprint.endevorHost.indexOf("//") + 2),
|
|
124
|
-
port: endevorFootprint.endevorPort,
|
|
125
|
-
protocol: endevorFootprint.endevorHost.substring(0, endevorFootprint.endevorHost.indexOf(":")),
|
|
126
|
-
user: params.arguments.user,
|
|
127
|
-
password: params.arguments.password,
|
|
128
|
-
basePath: endevorFootprint.endevorBasePath,
|
|
129
|
-
rejectUnauthorized: false,
|
|
130
|
-
type: "basic"
|
|
131
|
-
});
|
|
284
|
+
session = this.Helper.createSession(jsonFootprint, params.arguments.user, params.arguments.password);
|
|
132
285
|
}
|
|
133
286
|
catch (error) {
|
|
134
287
|
const exception = {
|
|
@@ -138,10 +291,11 @@ class HistogramHandler extends AbstractAnalyzeHandler_1.default {
|
|
|
138
291
|
};
|
|
139
292
|
throw exception;
|
|
140
293
|
}
|
|
141
|
-
|
|
294
|
+
// Make the REST API call to retrieve the listing as a string response
|
|
142
295
|
try {
|
|
143
|
-
|
|
144
|
-
|
|
296
|
+
// Prepare headers with the authorization information
|
|
297
|
+
headers = [{ Authorization: session.ISession.base64EncodedAuth }];
|
|
298
|
+
response = yield imperative_1.RestClient.getExpectString(session, request, headers);
|
|
145
299
|
}
|
|
146
300
|
catch (error) {
|
|
147
301
|
if (error instanceof imperative_1.RestClientError) {
|
|
@@ -161,65 +315,22 @@ class HistogramHandler extends AbstractAnalyzeHandler_1.default {
|
|
|
161
315
|
throw exception;
|
|
162
316
|
}
|
|
163
317
|
}
|
|
164
|
-
if
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
throw err;
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
tofileName += "\\" + endevorFootprint.element + "." + this.getExtension(endevorFootprint.type);
|
|
176
|
-
fs.writeFileSync(tofileName, responseEndevor.body.data[0], { encoding: "latin1" });
|
|
177
|
-
// THIS IS HOW YOU WRITE A FILE USING ENDEVOR
|
|
178
|
-
// EndevorUtils.generalWriteFile(tofileName, responseEndevor.data[0]);
|
|
179
|
-
}
|
|
180
|
-
catch (error) {
|
|
181
|
-
const exception = {
|
|
182
|
-
name: "HistogramException",
|
|
183
|
-
header: "File or Folder Access Error",
|
|
184
|
-
errno: error.errno ? error.errno : null,
|
|
185
|
-
message: error.message
|
|
186
|
-
};
|
|
187
|
-
throw exception;
|
|
188
|
-
}
|
|
189
|
-
if (responseEndevor.body.data[0].length === 0) {
|
|
190
|
-
const exception = {
|
|
191
|
-
name: "HistogramException",
|
|
192
|
-
header: "Endevor Data Error",
|
|
193
|
-
message: "No data in response from Endevor."
|
|
194
|
-
};
|
|
195
|
-
throw exception;
|
|
196
|
-
}
|
|
197
|
-
responseEndevor.body.data[0] = responseEndevor.body.data[0] + "";
|
|
198
|
-
const lines = responseEndevor.body.data[0].split("\n");
|
|
199
|
-
for (const histogram of json.histogram) {
|
|
200
|
-
histogram.listing = "not found";
|
|
201
|
-
for (let index = 0; index < lines.length; index++) {
|
|
202
|
-
const stmtLine = lines[index].indexOf(histogram.stmt);
|
|
203
|
-
if (stmtLine >= 0) {
|
|
204
|
-
const columnNum = lines[index].indexOf(histogram.verb, stmtLine) + 1;
|
|
205
|
-
if (columnNum >= 1) {
|
|
206
|
-
const lineNum = index + 1;
|
|
207
|
-
histogram.listing = tofileName + ":" + lineNum + ":" + columnNum;
|
|
208
|
-
break;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
318
|
+
// Check if the response is neither nor undefined
|
|
319
|
+
if (response !== null && response !== undefined) {
|
|
320
|
+
// Write the response to a file and return the file location
|
|
321
|
+
const location = this.Helper.writeResponseToFile(response, listingDir, jsonFootprint.element, this.getExtension(jsonFootprint.type));
|
|
322
|
+
response = fs.readFileSync(location, "utf8"); // Read the file content
|
|
323
|
+
// Process the file content to match statements and verbs in the histogram
|
|
324
|
+
return this.Helper.processFileContent(response, json.histogram, location);
|
|
213
325
|
}
|
|
214
326
|
else {
|
|
215
327
|
const exception = {
|
|
216
328
|
name: "HistogramException",
|
|
217
329
|
header: "Resource Access Error",
|
|
218
|
-
message: "Listing not found. Caused by: \n" +
|
|
330
|
+
message: "Listing not found. Caused by: \n" + json.message
|
|
219
331
|
};
|
|
220
332
|
throw exception;
|
|
221
333
|
}
|
|
222
|
-
// } else if (("message" in json) && ((json.message === "No footprint data in the database for requested measurement") || (json.message === "No listing data in the database for requested measurement"))) {
|
|
223
334
|
}
|
|
224
335
|
else if (("message" in json) && (json.message !== "OK")) {
|
|
225
336
|
for (const histogram of json.histogram) {
|
|
@@ -235,6 +346,7 @@ class HistogramHandler extends AbstractAnalyzeHandler_1.default {
|
|
|
235
346
|
throw exception;
|
|
236
347
|
}
|
|
237
348
|
}
|
|
349
|
+
// Return the updated histogram data
|
|
238
350
|
return json.histogram;
|
|
239
351
|
});
|
|
240
352
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Histogram.handler.js","sourceRoot":"","sources":["../../../../../src/cli/monitor/codeview/Histogram/Histogram.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAEH,wFAAiF;AACjF,qDAAkD;AAElD,
|
|
1
|
+
{"version":3,"file":"Histogram.handler.js","sourceRoot":"","sources":["../../../../../src/cli/monitor/codeview/Histogram/Histogram.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;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I,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,EAAE;oBACvD,KAAK,MAAM,SAAS,IAAI,IAAI,CAAC,SAAS,EAAE;wBACpC,SAAS,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;qBACpC;iBACJ;qBAAM;oBACH,MAAM,SAAS,GAAmB;wBAC9B,IAAI,EAAE,oBAAoB;wBAC1B,MAAM,EAAE,uBAAuB;wBAC/B,OAAO,EAAE,qEAAqE;qBACjF,CAAC;oBACF,MAAM,SAAS,CAAC;iBACnB;aACJ;YACD,oCAAoC;YACpC,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;KAAA;IAEM,iBAAiB;QACpB,OAAO,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;IAC1D,CAAC;IAGO,YAAY,CAAC,QAAgB;QACjC,QAAQ,QAAQ,EAAE;YACd,KAAK,OAAO;gBACR,OAAO,KAAK,CAAC;YACjB,KAAK,QAAQ;gBACT,OAAO,KAAK,CAAC;YACjB,KAAK,KAAK;gBACN,OAAO,KAAK,CAAC;YACjB,KAAK,QAAQ;gBACT,OAAO,KAAK,CAAC;YACjB,KAAK,GAAG;gBACJ,OAAO,GAAG,CAAC;YACf,KAAK,KAAK;gBACN,OAAO,KAAK,CAAC;YACjB;gBACI,OAAO,KAAK,CAAC;SACpB;IACL,CAAC;CAEJ;AAvVD,mCAuVC"}
|
|
@@ -43,19 +43,19 @@ class AbstractGetHandler extends AbstractRestHandler_1.default {
|
|
|
43
43
|
for (const element of this.getRequestParams()) {
|
|
44
44
|
const paramter = this.arguments[element];
|
|
45
45
|
switch (true) {
|
|
46
|
-
case (this.constructor.name.toString() === "HistogramHandler" && element === "top" && util_1.isNullOrUndefined(this.arguments[element])):
|
|
46
|
+
case (this.constructor.name.toString() === "HistogramHandler" && element === "top" && (0, util_1.isNullOrUndefined)(this.arguments[element])):
|
|
47
47
|
parameters.set(element, encodeURIComponent("0"));
|
|
48
48
|
break;
|
|
49
|
-
case (this.constructor.name.toString() === "HistogramHandler" && element === "group" && util_1.isNullOrUndefined(this.arguments[element])):
|
|
49
|
+
case (this.constructor.name.toString() === "HistogramHandler" && element === "group" && (0, util_1.isNullOrUndefined)(this.arguments[element])):
|
|
50
50
|
parameters.set(element, encodeURIComponent("4"));
|
|
51
51
|
break;
|
|
52
|
-
case (this.constructor.name.toString() === "HistogramHandler" && element === "csect" && util_1.isNullOrUndefined(this.arguments[element])):
|
|
53
|
-
case (this.constructor.name.toString() === "HistogramHandler" && element === "module" && util_1.isNullOrUndefined(this.arguments[element])):
|
|
54
|
-
case (this.constructor.name.toString() === "CallerIDHandler" && element === "csect" && util_1.isNullOrUndefined(this.arguments[element])):
|
|
55
|
-
case (this.constructor.name.toString() === "CallerIDHandler" && element === "module" && util_1.isNullOrUndefined(this.arguments[element])):
|
|
52
|
+
case (this.constructor.name.toString() === "HistogramHandler" && element === "csect" && (0, util_1.isNullOrUndefined)(this.arguments[element])):
|
|
53
|
+
case (this.constructor.name.toString() === "HistogramHandler" && element === "module" && (0, util_1.isNullOrUndefined)(this.arguments[element])):
|
|
54
|
+
case (this.constructor.name.toString() === "CallerIDHandler" && element === "csect" && (0, util_1.isNullOrUndefined)(this.arguments[element])):
|
|
55
|
+
case (this.constructor.name.toString() === "CallerIDHandler" && element === "module" && (0, util_1.isNullOrUndefined)(this.arguments[element])):
|
|
56
56
|
parameters.set(element, encodeURIComponent(""));
|
|
57
57
|
break;
|
|
58
|
-
case (this.constructor.name.toString() === "DB2ViewHandler" && element === "top" && util_1.isNullOrUndefined(this.arguments[element])):
|
|
58
|
+
case (this.constructor.name.toString() === "DB2ViewHandler" && element === "top" && (0, util_1.isNullOrUndefined)(this.arguments[element])):
|
|
59
59
|
parameters.set(element, encodeURIComponent("0"));
|
|
60
60
|
break;
|
|
61
61
|
default:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractGetHandler.js","sourceRoot":"","sources":["../../src/handlers/AbstractGetHandler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAEH,iDAA6D;AAC7D,oCAAmC;AACnC,+DAAwD;AAExD,+BAAyC;AAEzC,MAA8B,kBAAwC,SAAQ,6BAAsB;IAChF,eAAe,CAAC,OAAgB,EAAE,QAAgB,EAAE,OAAY;;YAC5E,MAAM,UAAU,GAAG,IAAI,GAAG,EAAE,CAAC;YAC7B,mCAAmC;YACnC,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,gBAAgB,EAAE,EAAE;gBAC3C,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;gBAEzC,QAAQ,IAAI,EAAE;oBACT,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,kBAAkB,IAAI,OAAO,KAAK,KAAK,IAAI,wBAAiB,
|
|
1
|
+
{"version":3,"file":"AbstractGetHandler.js","sourceRoot":"","sources":["../../src/handlers/AbstractGetHandler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAEH,iDAA6D;AAC7D,oCAAmC;AACnC,+DAAwD;AAExD,+BAAyC;AAEzC,MAA8B,kBAAwC,SAAQ,6BAAsB;IAChF,eAAe,CAAC,OAAgB,EAAE,QAAgB,EAAE,OAAY;;YAC5E,MAAM,UAAU,GAAG,IAAI,GAAG,EAAE,CAAC;YAC7B,mCAAmC;YACnC,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,gBAAgB,EAAE,EAAE;gBAC3C,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;gBAEzC,QAAQ,IAAI,EAAE;oBACT,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,kBAAkB,IAAI,OAAO,KAAK,KA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,EAAE,kBAAkB,CAAC,EAAE,CAAC,CAAC,CAAC;wBAChD,MAAM;oBAER,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,gBAAgB,IAAI,OAAO,KAAK,KAAK,IAAI,IAAA,wBAAiB,EAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;wBAC7H,UAAU,CAAC,GAAG,CAAC,OAAO,EAAE,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC;wBACjD,MAAM;oBAER;wBACC,6BAAgB,CAAC,sBAAsB,CAAC,QAAQ,EAAE,OAAO,GAAG,oBAAoB,CAAC,CAAC;wBAClF,UAAU,CAAC,GAAG,CAAC,OAAO,EAAE,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;wBACrE,MAAM;iBACX;aACJ;YACD,KAAK,MAAM,OAAO,IAAI,IAAI,CAAC,iBAAiB,EAAE,EAAE;gBAC5C,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;gBACzC,IAAI,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,SAAS,EAAE;oBAC7C,UAAU,CAAC,GAAG,CAAC,OAAO,EAAE,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;iBACxE;aACJ;YACD,OAAO,eAAO,CAAC,cAAc,CAAI,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;QAC7E,CAAC;KAAA;CACJ;AAzCD,qCAyCC"}
|
package/lib/index.js
CHANGED
|
@@ -23,13 +23,17 @@
|
|
|
23
23
|
*/
|
|
24
24
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
25
25
|
if (k2 === undefined) k2 = k;
|
|
26
|
-
Object.
|
|
26
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
27
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
28
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
29
|
+
}
|
|
30
|
+
Object.defineProperty(o, k2, desc);
|
|
27
31
|
}) : (function(o, m, k, k2) {
|
|
28
32
|
if (k2 === undefined) k2 = k;
|
|
29
33
|
o[k2] = m[k];
|
|
30
34
|
}));
|
|
31
35
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
32
|
-
for (var p in m) if (p !== "default" && !
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
33
37
|
};
|
|
34
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
39
|
/**
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;;;;;;AAEH;;;;;;;;GAQG;AACH,2DAAyC;AACzC,gDAA8B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@broadcom/mat-analyze-for-zowe-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "MAT Analyze Plug-in for Zowe CLI",
|
|
5
5
|
"author": "Broadcom",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
"configurationModule": "lib/imperative.js"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@broadcom/endevor-for-zowe-cli": "7.3.0",
|
|
33
32
|
"object-mapper": "6.2.0"
|
|
34
33
|
},
|
|
35
34
|
"peerDependencies": {
|
|
@@ -42,7 +41,7 @@
|
|
|
42
41
|
"@types/mustache": "^0.8.32",
|
|
43
42
|
"@types/node": "^14.0.1",
|
|
44
43
|
"@types/yargs": "8.0.2",
|
|
45
|
-
"@zowe/cli": "7.
|
|
44
|
+
"@zowe/cli": "^7.29.18",
|
|
46
45
|
"@zowe/cli-test-utils": "^7.16.3",
|
|
47
46
|
"@zowe/imperative": "^5.14.2",
|
|
48
47
|
"config": "^3.2.2",
|
|
@@ -50,22 +49,22 @@
|
|
|
50
49
|
"env-cmd": "^8.0.2",
|
|
51
50
|
"fs-extra": "^8.1.0",
|
|
52
51
|
"glob": "^7.1.3",
|
|
53
|
-
"jest": "^
|
|
54
|
-
"jest-cli": "^
|
|
55
|
-
"jest-environment-node": "^
|
|
52
|
+
"jest": "^29.7.0",
|
|
53
|
+
"jest-cli": "^29.7.0",
|
|
54
|
+
"jest-environment-node": "^29.7.0",
|
|
56
55
|
"jest-environment-node-debug": "^2.0.0",
|
|
57
|
-
"jest-html-reporter": "^3.
|
|
56
|
+
"jest-html-reporter": "^3.10.2",
|
|
58
57
|
"jest-junit": "^6.3.0",
|
|
59
58
|
"jest-stare": "^2.2.0",
|
|
60
59
|
"js-yaml": "^3.13.1",
|
|
61
60
|
"rimraf": "^2.7.1",
|
|
62
61
|
"shebang-regex": "^2.0.0",
|
|
63
|
-
"ts-jest": "^
|
|
62
|
+
"ts-jest": "^29.4.6",
|
|
64
63
|
"ts-node": "^7.0.1",
|
|
65
64
|
"tslint": "^5.20.1",
|
|
66
65
|
"tslint-etc": "^1.10.0",
|
|
67
66
|
"tsutils": "^3.17.1",
|
|
68
|
-
"typescript": "^3.
|
|
67
|
+
"typescript": "^4.3.5",
|
|
69
68
|
"uuid": "^3.2.1"
|
|
70
69
|
},
|
|
71
70
|
"jest": {
|