@broadcom/mat-analyze-for-zowe-cli 1.0.3 → 1.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/CHANGELOG.md +22 -7
- package/README.md +38 -12
- package/lib/api/MATRest.d.ts +1 -0
- package/lib/api/MATRest.js +18 -0
- package/lib/api/MATRest.js.map +1 -1
- package/lib/api/error/HistogramError.d.ts +9 -0
- package/lib/api/error/HistogramError.js +25 -0
- package/lib/api/error/HistogramError.js.map +1 -0
- package/lib/cli/monitor/codeview/Histogram/Histogram.definition.js +20 -0
- package/lib/cli/monitor/codeview/Histogram/Histogram.definition.js.map +1 -1
- package/lib/cli/monitor/codeview/Histogram/Histogram.handler.d.ts +5 -3
- package/lib/cli/monitor/codeview/Histogram/Histogram.handler.js +203 -9
- package/lib/cli/monitor/codeview/Histogram/Histogram.handler.js.map +1 -1
- package/lib/cli/monitor/codeview/callerid/Callerid.handler.d.ts +1 -1
- package/lib/cli/monitor/codeview/callerid/Callerid.handler.js +12 -1
- package/lib/cli/monitor/codeview/callerid/Callerid.handler.js.map +1 -1
- package/lib/cli/monitor/codeview/csect/Csect.handler.d.ts +1 -1
- package/lib/cli/monitor/codeview/csect/Csect.handler.js +12 -1
- package/lib/cli/monitor/codeview/csect/Csect.handler.js.map +1 -1
- package/lib/cli/monitor/codeview/module/Module.handler.d.ts +1 -1
- package/lib/cli/monitor/codeview/module/Module.handler.js +12 -1
- package/lib/cli/monitor/codeview/module/Module.handler.js.map +1 -1
- package/lib/cli/monitor/db2/db2view/DB2View.definition.js +1 -1
- package/lib/cli/monitor/db2/db2view/DB2View.handler.d.ts +1 -1
- package/lib/cli/monitor/db2/db2view/DB2View.handler.js +13 -2
- package/lib/cli/monitor/db2/db2view/DB2View.handler.js.map +1 -1
- package/lib/cli/monitor/db2/sqlview/SQLView.definition.js +7 -7
- package/lib/cli/monitor/db2/sqlview/SQLView.definition.js.map +1 -1
- package/lib/cli/monitor/db2/sqlview/SQLView.handler.d.ts +1 -1
- package/lib/cli/monitor/db2/sqlview/SQLView.handler.js +14 -3
- package/lib/cli/monitor/db2/sqlview/SQLView.handler.js.map +1 -1
- package/lib/cli/monitor/delayview/address/Address.handler.d.ts +1 -1
- package/lib/cli/monitor/delayview/address/Address.handler.js +12 -1
- package/lib/cli/monitor/delayview/address/Address.handler.js.map +1 -1
- package/lib/cli/monitor/delayview/delay/Delay.handler.d.ts +1 -1
- package/lib/cli/monitor/delayview/delay/Delay.handler.js +12 -1
- package/lib/cli/monitor/delayview/delay/Delay.handler.js.map +1 -1
- package/lib/cli/monitor/history/History.handler.d.ts +1 -1
- package/lib/cli/monitor/history/History.handler.js +13 -2
- package/lib/cli/monitor/history/History.handler.js.map +1 -1
- package/lib/cli/monitor/overview/Overview.handler.d.ts +1 -1
- package/lib/cli/monitor/overview/Overview.handler.js +12 -1
- package/lib/cli/monitor/overview/Overview.handler.js.map +1 -1
- package/lib/cli/profile/create/CreateProfile.definition.js +5 -4
- package/lib/cli/profile/create/CreateProfile.definition.js.map +1 -1
- package/lib/cli/profile/create/CreateProfile.handler.d.ts +2 -0
- package/lib/cli/profile/create/CreateProfile.handler.js +140 -96
- package/lib/cli/profile/create/CreateProfile.handler.js.map +1 -1
- package/lib/cli/profile/invoke/InvokeProfile.definition.js +20 -2
- package/lib/cli/profile/invoke/InvokeProfile.definition.js.map +1 -1
- package/lib/cli/profile/invoke/InvokeProfile.handler.d.ts +3 -0
- package/lib/cli/profile/invoke/InvokeProfile.handler.js +22 -0
- package/lib/cli/profile/invoke/InvokeProfile.handler.js.map +1 -1
- package/lib/cli/profile/listprofile/ListProfile.handler.d.ts +1 -1
- package/lib/cli/profile/listprofile/ListProfile.handler.js +12 -1
- package/lib/cli/profile/listprofile/ListProfile.handler.js.map +1 -1
- package/lib/cli/session/MATSession.d.ts +1 -0
- package/lib/cli/session/MATSession.js +19 -2
- package/lib/cli/session/MATSession.js.map +1 -1
- package/lib/handlers/AbstractAnalyzeHandler.js.map +1 -1
- package/lib/handlers/AbstractGetHandler.js +24 -22
- package/lib/handlers/AbstractGetHandler.js.map +1 -1
- package/lib/handlers/AbstractObjectDisplayHandler.js.map +1 -1
- package/lib/handlers/AbstractProfileActionHandler.d.ts +1 -1
- package/lib/handlers/AbstractProfileActionHandler.js +12 -1
- package/lib/handlers/AbstractProfileActionHandler.js.map +1 -1
- package/lib/handlers/AbstractRestHandler.d.ts +3 -2
- package/lib/handlers/AbstractRestHandler.js +27 -34
- package/lib/handlers/AbstractRestHandler.js.map +1 -1
- package/lib/imperative.js +13 -5
- package/lib/imperative.js.map +1 -1
- package/package.json +117 -115
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,32 @@
|
|
|
1
1
|
# Change log
|
|
2
|
-
All notable changes to this project
|
|
2
|
+
All notable changes to this project are documented in this file.
|
|
3
|
+
|
|
4
|
+
## `1.0.7`
|
|
5
|
+
- Security updates
|
|
6
|
+
|
|
7
|
+
## `1.0.6`
|
|
8
|
+
- Issue resolution for correct boolean datatype for zowediscoverable/zdis parameter.
|
|
9
|
+
|
|
10
|
+
## `1.0.6`
|
|
11
|
+
- Issue resolution for correct boolean datatype for zowediscoverable/zdis parameter.
|
|
12
|
+
|
|
13
|
+
## `1.0.5`
|
|
14
|
+
- Program listing support enhancements: The `zowe mat profile invoke` command is enhanced with the `listing` option, which activates the automated retrieval of Cobol, C/C++, and Assembler program listings through CA Endevor® footprints and registers the listing with CA MAT after the measurement is completed. Optional parameter `listingDir` added to the MAT profile options. The parameter defines the local directory to store retrieved listings. The `zowe mat monitor codeview histogram` command is enhanced with the `listing` option that retrieves the program listing details pertaining to the specific statement and CSECT. Users of Visual Studio Code IDE can navigate from the command response in their IDE terminal directly to the specific line and column of the retrieved source code.
|
|
15
|
+
|
|
16
|
+
## `1.0.4`
|
|
17
|
+
- Issue resolution for unit test coverage and DB2view related details.
|
|
3
18
|
|
|
4
19
|
## `1.0.3`
|
|
5
|
-
-
|
|
6
|
-
|
|
7
|
-
|
|
20
|
+
- DB2View and SQL statement details added under the DB2 command group
|
|
21
|
+
- Removed overrides configuration form imperative.ts.
|
|
22
|
+
|
|
8
23
|
## `1.0.2`
|
|
9
|
-
- Enabled CodeView histogram and CodeView CallerID
|
|
24
|
+
- Enabled CodeView histogram and CodeView CallerID.
|
|
10
25
|
|
|
11
26
|
## `1.0.1`
|
|
12
|
-
- Updated License
|
|
27
|
+
- Updated License.
|
|
13
28
|
|
|
14
29
|
## `1.0.0`
|
|
15
|
-
- Initial release
|
|
30
|
+
- Initial release.
|
|
16
31
|
|
|
17
32
|
|
package/README.md
CHANGED
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
The CA MAT Analyze plug-in for Zowe CLI provides access to CA Mainframe Application Tuner (CA MAT) functionality. The plug-in ensures interaction with CA MAT and enables you to measure your mainframe applications and get the analysis data in the form of CA MAT analysis views using Zowe command line interface.
|
|
5
5
|
|
|
6
6
|
You can use the CA MAT Analyze plug-in for Zowe CLI to perform the following tasks:
|
|
7
|
-
* Manage monitor profiles.
|
|
7
|
+
* Manage monitor profiles.
|
|
8
8
|
Create and invoke monitor profiles, view the lists of available profiles, and retrieve the measurement history.
|
|
9
|
-
* Analyze the measurement data.
|
|
9
|
+
* Analyze the measurement data.
|
|
10
10
|
Access the measurement data from CA Mainframe Application Tuner that is available to you in the CLI in the form of CA MAT analysis views.
|
|
11
|
+
* Address performance issues.
|
|
12
|
+
With the source program listing registered with CA MAT, users of Visual Studio Code (VS Code) IDE can obtain the Histogram details and display specific source program locations that are associated with the most resource-consuming program modules and CSECTs. When you request the Histogram measurement details from your VS Code command line terminal, the CA MAT Analyze plug-in for Zowe CLI transfers the source code listing to your local machine and navigates you directly to the specific line and column number of the source code, which enables you to immediately inspect the program statement and identify possible tuning opportunities.
|
|
11
13
|
|
|
12
|
-
The current version is 1.0.2.
|
|
13
14
|
|
|
14
15
|
Table of Contents
|
|
15
16
|
=================
|
|
@@ -55,6 +56,7 @@ Before starting the installation of the CA MAT Analyze Plug-in for Zowe CLI, ver
|
|
|
55
56
|
* Zowe CLI installed
|
|
56
57
|
* Zosmf profile created.
|
|
57
58
|
* CA MAT database and the REST API installed, configured, and running.
|
|
59
|
+
* (Optional) To use the automated listing registration and retrieval option through CA Endevor® footprints, install and configure the CA Endevor® Web Services and specify the CA Endevor® web server details in the CA MAT database configuration.
|
|
58
60
|
|
|
59
61
|
## Install the CA MAT Analyze Plug-in for Zowe CLI From Packages
|
|
60
62
|
Issue the following command:
|
|
@@ -121,8 +123,11 @@ To enable the interaction of the CA MAT Analyze plug-in for Zowe CLI with CA MAT
|
|
|
121
123
|
`--password` | `--pass` *(string)*
|
|
122
124
|
Your mainframe password.
|
|
123
125
|
|
|
124
|
-
`--zowediscoverable` | `--zdis` *(
|
|
125
|
-
Specifies whether you want to use Zowe API Mediation Layer to process the commands for this profile (`true` or `false`). Set `--zowediscoverable true` only if you have configured the Zowe API Mediation Layer properties in your CA MAT REST API server settings.
|
|
126
|
+
`--zowediscoverable` | `--zdis` *(boolean)*
|
|
127
|
+
Specifies whether you want to use Zowe API Mediation Layer to process the commands for this profile (`true` or `false`). Set `--zowediscoverable true` only if you have configured the Zowe API Mediation Layer properties in your CA MAT REST API server settings.
|
|
128
|
+
|
|
129
|
+
`--listingDir` | `--ldir` *(string)*
|
|
130
|
+
Specifies the directory where you want to store the registered program listings (e.g. 'c:\listings') for your immediate source code inspection. You can use the advantage of automated listing registration with CA MAT and listing retrieval through CA Endevor® footprints for Cobol, C/C++, and Assembler programs. When a source program listing is registered with CA MAT, you can enhance the histogram analysis data with the program listing details that pertain to the specific CSECT and program statement. The listing is transfered to the specified directory, which enables you to navigate directly to the line of the source code in you VS Code IDE and inspect the program statement. To use the listing retrieval option through CA Endevor® footprints, you need to have the CA Endevor® Web Services installed and configured and specify the CA Endevor® web server details in the CA MAT database configuration. The `--listingDir` parameter is optional.
|
|
126
131
|
|
|
127
132
|
|
|
128
133
|
**Options**
|
|
@@ -130,10 +135,16 @@ To enable the interaction of the CA MAT Analyze plug-in for Zowe CLI with CA MAT
|
|
|
130
135
|
Overwrite the MAT profile when a profile of the same name exists.
|
|
131
136
|
|
|
132
137
|
**Examples**
|
|
133
|
-
|
|
138
|
+
* Create a MAT profile called 'matprofile' using your CA MAT configuration and REST API details, with the CA MAT REST API server integrated with the Zowe API Mediation Layer:
|
|
134
139
|
```
|
|
135
140
|
$ zowe profiles create mat-profile matprofile --prt http --hn localhost --pt 1234 --user johndoe --pass qwerty --zowediscoverable true
|
|
136
141
|
```
|
|
142
|
+
|
|
143
|
+
* Create a MAT profile called 'matprofile' using your CA MAT configuration and the details of the CA MAT REST API server without integration with the Zowe API Mediation Layer, and define the 'c:\listings' directory to store program listings for instant analysis from your VS Code IDE:
|
|
144
|
+
```
|
|
145
|
+
$ zowe profiles create mat-profile matprofile --prt http --hn localhost --pt 1234 --user johndoe --pass qwerty --zowediscoverable false --listingDir 'c:\listings'
|
|
146
|
+
```
|
|
147
|
+
|
|
137
148
|
|
|
138
149
|
For help information, issue the following help command:
|
|
139
150
|
```
|
|
@@ -389,6 +400,9 @@ Values: maximum 61 characters, alphanumeric (A-Z and 0-9). If you use this param
|
|
|
389
400
|
Specifies the MOI timestamp.
|
|
390
401
|
Values: maximum 12 characters, numbers only (0-9). If you use this parameter for command execution, the value cannot be blank.
|
|
391
402
|
|
|
403
|
+
`--listing` *(boolean)*
|
|
404
|
+
Activates automated registration of Cobol, C/C++, and Assembler program listings through CA Endevor® footprints. After completion of the measurement that you invoke with the '--listing' parameter, the CA MAT Analyze plug-in for Zowe CLI automatically retrieves the program listing that is associated with the monitored job and registers the listing with CA MAT. A registered program listing enhances the analysis possibilities of the 'codeview histogram' command and enables you to inspect the source code statements that are associated with specific modules and CSECTs.
|
|
405
|
+
|
|
392
406
|
**Profile Options**
|
|
393
407
|
`--mat-profile` | `--mat-p` (string)
|
|
394
408
|
The name of a (mat) profile to load for this command execution.
|
|
@@ -402,6 +416,10 @@ $ zowe mat profile invoke --profile PROFILE1 --jobname JOB1 --targsys AA31
|
|
|
402
416
|
```
|
|
403
417
|
$ zowe mat profile invoke --profile PROFILE1 --jobname JOB1 --targsys AA31 --mondsn DEMO.MAT.MONITOR.PROFILE1
|
|
404
418
|
```
|
|
419
|
+
* Invoke the PROFILE1 monitor profile to measure job JOB1 that runs on the AA31 system and register the program listing:
|
|
420
|
+
```
|
|
421
|
+
$ zowe mat profile invoke --profile PROFILE1 --jobname JOB1 --targsys AA31 --listing
|
|
422
|
+
```
|
|
405
423
|
|
|
406
424
|
### list | lip
|
|
407
425
|
Get the list of available monitor profiles.
|
|
@@ -653,6 +671,9 @@ Specifies the maximum number of the top consuming CSECT activity locations that
|
|
|
653
671
|
`--group` *(number)*
|
|
654
672
|
Specifies the histogram group size parameter that defines the resolution of the histogram. If you do not specify the group parameter, the group size defaults to 4 bytes (e.g., --group 32). If program listing is registered with CA MAT, the group parameter is ignored. The --group parameter is optional.
|
|
655
673
|
|
|
674
|
+
`--listing` *(boolean)*
|
|
675
|
+
Enables you to retrieve program listing details that pertain to the specific CSECT and statement. To use the listing retrieval option, you must install and configure the CA Endevor® Web Services and have the program listing for the specific measurement registered with CA MAT. The source code listing is retrieved through CA Endevor® footprints for Cobol, C/C++, and Assembler programs. The program listing file is downloaded to your local directory that you specified with the 'listingDir' parameter for your MAT configuration profile. When you request the histogram details with the '--listing' option, the 'histogram' command returns the additional 'listing' column that contains a reference to the program listing with the specific CSECT name, program type, line and column number that pertain to the requested CSECT and statement, for example, c:\listings\SA420LE.asm:382:51. If you use Visual Studio Code (VS Code) IDE, you can click on the reference in the command response in your VS Code terminal to navigate directly to the indicated source program location. The --listing parameter is optional.
|
|
676
|
+
|
|
656
677
|
**Profile Options**
|
|
657
678
|
`--mat-profile` | `--mat-p` *(string)*
|
|
658
679
|
The name of a (mat) profile to load for this command execution.
|
|
@@ -668,6 +689,11 @@ $ zowe mat monitor codeview histogram --mon_num 5 --csect "TUNCOB01" --module "R
|
|
|
668
689
|
$ zowe mat monitor codeview histogram --profile TESTPROF --csect "TUNCOB01" --module '""' --top 5 --group 32
|
|
669
690
|
```
|
|
670
691
|
|
|
692
|
+
* Get the Histogram details for monitor number 5, CSECT name TUNCOB01, and module name RUNCOB, limit the number of returned records to 5 top consumers, and request the listing details:
|
|
693
|
+
```
|
|
694
|
+
$ zowe mat monitor codeview histogram --mon_num 5 --csect "TUNCOB01" --module "RUNCOB" --top 5 --listing
|
|
695
|
+
```
|
|
696
|
+
|
|
671
697
|
#### callerid | cil
|
|
672
698
|
Get the CodeView CallerID details for the specific CSECT and module.
|
|
673
699
|
|
|
@@ -766,11 +792,11 @@ Specifies the unique monitor number of the measurement.
|
|
|
766
792
|
`--dbrm` *(string)*
|
|
767
793
|
Specifies the DBRM/Package name that the requested DB2 statement belongs to (e.g., `--dbrm CUPBTSDY`). You get the dbrm value from the 'db2 db2view' command response.
|
|
768
794
|
|
|
769
|
-
`--
|
|
770
|
-
Specifies the statement number that you request the SQL details for (e.g., `--
|
|
795
|
+
`--stmtnum` *(number)*
|
|
796
|
+
Specifies the statement number that you request the SQL details for (e.g., `--stmtnum 464`). You get the stmtnum value from the 'db2 db2view' command response.
|
|
771
797
|
|
|
772
|
-
`--
|
|
773
|
-
Specifies the total number of samples taken for the requested statement (e.g., `--
|
|
798
|
+
`--totalsamps` *(number)*
|
|
799
|
+
Specifies the total number of samples taken for the requested statement (e.g., `--totalsamps 1`). You get the totalsamps value from the 'db2 db2view' command response.
|
|
774
800
|
|
|
775
801
|
|
|
776
802
|
**Profile Options**
|
|
@@ -780,12 +806,12 @@ The name of a (mat) profile to load for this command execution.
|
|
|
780
806
|
**Examples**
|
|
781
807
|
* Get the DB2 SQL statement details for monitor number 5 for DBRM CUPBTSDY, statement number 464, with total number of taken samples 1:
|
|
782
808
|
```
|
|
783
|
-
$ zowe mat monitor db2 sqlstmt --mon_num 5 --dbrm CUPBTSDY --
|
|
809
|
+
$ zowe mat monitor db2 sqlstmt --mon_num 5 --dbrm CUPBTSDY --stmtnum 464 --totalsamps 1
|
|
784
810
|
```
|
|
785
811
|
|
|
786
812
|
* Get the DB2 SQL statement details for the latest monitor in the TESTPROF profile, for DBRM CUPBTSDY, statement number 464, with total number of taken samples 1:
|
|
787
813
|
```
|
|
788
|
-
$ zowe mat monitor db2 sqlstmt --profile TESTPROF --dbrm CUPBTSDY --
|
|
814
|
+
$ zowe mat monitor db2 sqlstmt --profile TESTPROF --dbrm CUPBTSDY --stmtnum 464 --totalsamps 1
|
|
789
815
|
```
|
|
790
816
|
|
|
791
817
|
|
package/lib/api/MATRest.d.ts
CHANGED
|
@@ -24,4 +24,5 @@ export declare class MATRest {
|
|
|
24
24
|
static GetAuth(session: AbstractSession, username: string, password: string, endpoint: string): Promise<IAuth>;
|
|
25
25
|
static sendGetRequest<T extends IResponse>(session: AbstractSession, resource: string, headers?: any[], parameters?: Map<string, object>): Promise<T>;
|
|
26
26
|
static sendPostRequest<T extends IResponse>(session: AbstractSession, resource: string, headers?: any[], payload?: any): Promise<T>;
|
|
27
|
+
static sendPostRequestWithParm<T extends IResponse>(session: AbstractSession, resource: string, headers?: any[], parameters?: Map<string, object>, payload?: any): Promise<T>;
|
|
27
28
|
}
|
package/lib/api/MATRest.js
CHANGED
|
@@ -77,6 +77,24 @@ class MATRest {
|
|
|
77
77
|
return response;
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
+
// tslint:disable-next-line:max-line-length
|
|
81
|
+
static sendPostRequestWithParm(session, resource, headers, parameters, payload) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
let appendix = "";
|
|
84
|
+
if (parameters !== undefined && parameters.size) {
|
|
85
|
+
appendix += "?";
|
|
86
|
+
let int = 0;
|
|
87
|
+
for (const iterator of parameters.entries()) {
|
|
88
|
+
int++;
|
|
89
|
+
const key = iterator[0];
|
|
90
|
+
const value = iterator[1];
|
|
91
|
+
appendix += key + "=" + value + (int < parameters.size ? "&" : "");
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
const response = yield imperative_1.RestClient.postExpectJSON(session, resource + appendix, headers, payload);
|
|
95
|
+
return response;
|
|
96
|
+
});
|
|
97
|
+
}
|
|
80
98
|
}
|
|
81
99
|
exports.MATRest = MATRest;
|
|
82
100
|
MATRest.REST_ENDPOINT = "/camat/api/v1/camat";
|
package/lib/api/MATRest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MATRest.js","sourceRoot":"","sources":["../../src/api/MATRest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;;AAEH,
|
|
1
|
+
{"version":3,"file":"MATRest.js","sourceRoot":"","sources":["../../src/api/MATRest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;;AAEH,iDAA+D;AAK/D,MAAa,OAAO;IAqBT,MAAM,CAAO,OAAO,CAAC,OAAwB,EAAE,QAAgB,EAAE,QAAgB,EAAE,QAAgB;;YACtG,MAAM,IAAI,GAAG,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,GAAG,GAAG,GAAG,QAAQ,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YAClF,MAAM,MAAM,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;YACvC,MAAM,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;YACzC,MAAM,OAAO,GAAU,CAAC,MAAM,CAAC,CAAC;YAChC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,eAAe,CAAQ,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;YAC/E,OAAO,QAAQ,CAAC;QACpB,CAAC;KAAA;IAED,2CAA2C;IACpC,MAAM,CAAO,cAAc,CAAsB,OAAwB,EAAE,QAAgB,EAAE,OAAe,EAAE,UAAgC;;YACjJ,IAAI,QAAQ,GAAG,EAAE,CAAC;YAClB,IAAI,UAAU,KAAK,SAAS,IAAI,UAAU,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vB,YAAI,GAAG,OAAO,CAAC;AACf,yBAAiB,GAAG,OAAO,CAAC,QAAQ,GAAG,WAAW,CAAC;AACnD,0BAAkB,GAAG,OAAO,CAAC,QAAQ,GAAG,YAAY,CAAC;AACrD,wBAAgB,GAAG,OAAO,CAAC,QAAQ,GAAG,cAAc,CAAC;AACrD,wBAAgB,GAAG,OAAO,CAAC,QAAQ,GAAG,cAAc,CAAC;AACrD,+BAAuB,GAAG,OAAO,CAAC,iBAAiB,GAAG,QAAQ,CAAC;AAC/D,gCAAwB,GAAG,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC;AACjE,mCAA2B,GAAG,OAAO,CAAC,kBAAkB,GAAG,WAAW,CAAC;AACvE,kCAA0B,GAAG,OAAO,CAAC,QAAQ,GAAG,oBAAoB,CAAC;AACrE,mCAA2B,GAAG,OAAO,CAAC,QAAQ,GAAG,qBAAqB,CAAC;AACvE,oBAAY,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2019 Broadcom. All Rights Reserved. The term
|
|
4
|
+
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
|
+
*
|
|
6
|
+
* This software and all information contained therein is
|
|
7
|
+
* confidential and proprietary and shall not be duplicated,
|
|
8
|
+
* used, disclosed, or disseminated in any way except as
|
|
9
|
+
* authorized by the applicable license agreement, without the
|
|
10
|
+
* express written permission of Broadcom. All authorized
|
|
11
|
+
* reproductions must be marked with this language.
|
|
12
|
+
*
|
|
13
|
+
* EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
|
|
14
|
+
* THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
|
|
15
|
+
* SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
|
|
16
|
+
* LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
|
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
|
|
18
|
+
* BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
|
|
19
|
+
* DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
|
|
20
|
+
* INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
|
|
21
|
+
* INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
|
|
22
|
+
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
|
+
*/
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
//# sourceMappingURL=HistogramError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HistogramError.js","sourceRoot":"","sources":["../../../src/api/error/HistogramError.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG"}
|
|
@@ -77,6 +77,21 @@ exports.HistogramDefinition = {
|
|
|
77
77
|
"you get the list of all CSECT activity locations that CA MAT has detected during the measurement." +
|
|
78
78
|
"The --top parameter is optional. Values: numbers between 0 and 300.",
|
|
79
79
|
type: "number"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: "listing",
|
|
83
|
+
description: "Enables you to retrieve program listing details that pertain to the specific CSECT and statement. " +
|
|
84
|
+
"To use the listing retrieval option, you must install and configure the CA Endevor® Web Services and have the " +
|
|
85
|
+
"program listing for the specific measurement registered with CA MAT. The source code listing is retrieved " +
|
|
86
|
+
"through CA Endevor® footprints for Cobol, C/C++, and Assembler programs. The program listing file is downloaded " +
|
|
87
|
+
"to your local directory that you specified with the \'listingDir\' parameter in your MAT configuration profile. " +
|
|
88
|
+
"When you request the histogram details with the \'--listing\' option, the \'histogram\' command returns the " +
|
|
89
|
+
"additional \'listing\' column that contains a reference to the program listing with the specific CSECT name, " +
|
|
90
|
+
"program type, line and column number that pertain to the requested CSECT and statement, for example, " +
|
|
91
|
+
"c:\listings\SA420LE.asm:382:51. If you use Visual Studio Code (VS Code) IDE, you can click on the reference in the " +
|
|
92
|
+
"command responce in your VS Code terminal to navigate directly to the indicated source program location." +
|
|
93
|
+
"The --listing parameter is optional.",
|
|
94
|
+
type: "boolean"
|
|
80
95
|
}
|
|
81
96
|
],
|
|
82
97
|
examples: [
|
|
@@ -89,6 +104,11 @@ exports.HistogramDefinition = {
|
|
|
89
104
|
"empty module name, limiting the group size to 32 bytes and the number of returned records to 5 top consumers",
|
|
90
105
|
options: "--profile TESTPROF --csect \"TUNCOB01\" --module \'\"\"\' --top 5 --group 32",
|
|
91
106
|
},
|
|
107
|
+
{
|
|
108
|
+
description: "Get the Histogram details for monitor number 5, CSECT name TUNCOB01, and module name RUNCOB, " +
|
|
109
|
+
"limit the number of returned records to 5 top consumers, and request the listing details",
|
|
110
|
+
options: "--mon_num 5 --csect \"TUNCOB01\" --module \"RUNCOB\" --top 5 --listing",
|
|
111
|
+
},
|
|
92
112
|
]
|
|
93
113
|
};
|
|
94
114
|
//# sourceMappingURL=Histogram.definition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Histogram.definition.js","sourceRoot":"","sources":["../../../../../src/cli/monitor/codeview/Histogram/Histogram.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGU,QAAA,mBAAmB,GAAuB;IACnD,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,OAAO,EAAE,oBAAoB;IAC7B,WAAW,EAAE,gDAAgD;IAC7D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,oBAAoB;IACzC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,KAAK,CAAC;KACpB;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,8DAA8D;gBAC3E,iFAAiF;gBACjF,+BAA+B;YAC/B,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,yDAAyD;YACtE,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,qEAAqE;gBAClF,yEAAyE;gBACzE,iFAAiF;YACjF,IAAI,EAAE,eAAe;SACxB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,oEAAoE;gBACjF,oGAAoG;gBACpG,oDAAoD;YACpD,IAAI,EAAE,eAAe;SACxB;QACD;YACI,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,4FAA4F;gBACzG,2GAA2G;gBAC3G,gGAAgG;gBAChG,qCAAqC;gBACrC,sGAAsG;gBACtG,uCAAuC;YACvC,IAAI,EAAE,eAAe;SACxB;QACD;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,6EAA6E;gBAC1F,mFAAmF;gBACnF,mGAAmG;gBACnG,qEAAqE;YACrE,IAAI,EAAE,QAAQ;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,6FAA6F;YAC1G,OAAO,EAAE,sDAAsD;SAClE;QACD;YACI,WAAW,EAAE,oGAAoG;gBACjH,8GAA8G;YAC9G,OAAO,EAAE,8EAA8E;SAC1F;KACJ;CACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"Histogram.definition.js","sourceRoot":"","sources":["../../../../../src/cli/monitor/codeview/Histogram/Histogram.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGU,QAAA,mBAAmB,GAAuB;IACnD,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,OAAO,EAAE,oBAAoB;IAC7B,WAAW,EAAE,gDAAgD;IAC7D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,oBAAoB;IACzC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,KAAK,CAAC;KACpB;IACD,OAA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;CACJ,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import AbstractAnalyzeHandler from "../../../../handlers/AbstractAnalyzeHandler";
|
|
2
2
|
import { IHistogram } from "../../../../api/response/IHistogram";
|
|
3
|
+
import { IHandlerParameters } from "@zowe/imperative";
|
|
3
4
|
export default class HistogramHandler extends AbstractAnalyzeHandler<IHistogram> {
|
|
4
5
|
protected getAnalyzeURI(): string;
|
|
5
|
-
protected getFields(
|
|
6
|
-
protected getOutput(json: any): any
|
|
7
|
-
protected
|
|
6
|
+
protected getFields(json: any): string[];
|
|
7
|
+
protected getOutput(json: any, params: IHandlerParameters): Promise<any>;
|
|
8
|
+
protected getOptionalParams(): string[];
|
|
9
|
+
private getExtension;
|
|
8
10
|
}
|
|
@@ -21,26 +21,220 @@
|
|
|
21
21
|
* INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
|
|
22
22
|
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
23
|
*/
|
|
24
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
25
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
26
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
27
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
28
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
29
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
30
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
31
|
+
});
|
|
32
|
+
};
|
|
24
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
34
|
const AbstractAnalyzeHandler_1 = require("../../../../handlers/AbstractAnalyzeHandler");
|
|
26
35
|
const MATRest_1 = require("../../../../api/MATRest");
|
|
36
|
+
const imperative_1 = require("@zowe/imperative");
|
|
37
|
+
const endevor_for_zowe_cli_1 = require("@broadcom/endevor-for-zowe-cli");
|
|
27
38
|
class HistogramHandler extends AbstractAnalyzeHandler_1.default {
|
|
28
39
|
getAnalyzeURI() {
|
|
29
40
|
return MATRest_1.MATRest.ANALYSIS_CODEVIEW_HISTOGRAM;
|
|
30
41
|
}
|
|
31
|
-
getFields(
|
|
32
|
-
|
|
33
|
-
|
|
42
|
+
getFields(json) {
|
|
43
|
+
let fields = ["csect", "offset", "active", "wait", "total"];
|
|
44
|
+
if (JSON.stringify(json).indexOf("verb") >= 0) {
|
|
45
|
+
fields = ["csect", "stmt", "verb", "active", "wait", "total"];
|
|
34
46
|
}
|
|
35
|
-
|
|
36
|
-
|
|
47
|
+
if (("footprint" in json) || (("message" in json) && (json.message !== "OK"))) {
|
|
48
|
+
fields.push("listing");
|
|
37
49
|
}
|
|
50
|
+
return fields;
|
|
38
51
|
}
|
|
39
|
-
getOutput(json) {
|
|
40
|
-
return
|
|
52
|
+
getOutput(json, params) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
if (params.arguments.listing === true) {
|
|
55
|
+
if ("footprint" in json) {
|
|
56
|
+
const endconerror = "Endevor Connection Error";
|
|
57
|
+
const matProfile = params.profiles.get("mat", true);
|
|
58
|
+
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?
|
|
59
|
+
const elemDef = {
|
|
60
|
+
environment: endevorFootprint.environment.trim(),
|
|
61
|
+
stageNumber: endevorFootprint.stage.trim(),
|
|
62
|
+
system: endevorFootprint.system.trim(),
|
|
63
|
+
subsystem: endevorFootprint.subsystem.trim(),
|
|
64
|
+
type: endevorFootprint.type.trim(),
|
|
65
|
+
element: endevorFootprint.element.trim(),
|
|
66
|
+
// instance: "ENDEVOR" // ON THE JSON RESPONSE IS MISSING THE CONTEXT.
|
|
67
|
+
instance: endevorFootprint.endevorContext.trim()
|
|
68
|
+
};
|
|
69
|
+
const requestBody = {
|
|
70
|
+
version: undefined,
|
|
71
|
+
level: undefined,
|
|
72
|
+
print: "listing",
|
|
73
|
+
listString: undefined,
|
|
74
|
+
search: undefined,
|
|
75
|
+
headings: undefined,
|
|
76
|
+
explode: undefined,
|
|
77
|
+
whereProcGroup: undefined,
|
|
78
|
+
whereCcidCurrent: undefined,
|
|
79
|
+
whereCcidAll: undefined,
|
|
80
|
+
whereCcidRetrieve: undefined,
|
|
81
|
+
};
|
|
82
|
+
let endevorSession;
|
|
83
|
+
if (!endevorFootprint.endevorHost.includes("http")) {
|
|
84
|
+
const exception = {
|
|
85
|
+
name: "HistogramException",
|
|
86
|
+
header: "Footprint Data Error",
|
|
87
|
+
message: "Histogram footprint contains the wrong protocol type. The allowed protocol types are: http and https. \n REST client reports: " + endevorFootprint.endevorHost
|
|
88
|
+
};
|
|
89
|
+
throw exception;
|
|
90
|
+
}
|
|
91
|
+
if (!endevorFootprint.endevorHost.includes("//") || !endevorFootprint.endevorHost.includes(":")) {
|
|
92
|
+
const exception = {
|
|
93
|
+
name: "HistogramException",
|
|
94
|
+
header: "Footprint Data Error",
|
|
95
|
+
message: "Histogram footprint contains the wrong Endevor Host. \n REST client reports: " + endevorFootprint.endevorHost
|
|
96
|
+
};
|
|
97
|
+
throw exception;
|
|
98
|
+
}
|
|
99
|
+
try {
|
|
100
|
+
endevorSession = new imperative_1.Session({
|
|
101
|
+
hostname: endevorFootprint.endevorHost.substring(endevorFootprint.endevorHost.indexOf("//") + 2),
|
|
102
|
+
port: endevorFootprint.endevorPort,
|
|
103
|
+
protocol: endevorFootprint.endevorHost.substring(0, endevorFootprint.endevorHost.indexOf(":")),
|
|
104
|
+
user: matProfile.username,
|
|
105
|
+
password: matProfile.password,
|
|
106
|
+
basePath: endevorFootprint.endevorBasePath,
|
|
107
|
+
rejectUnauthorized: false,
|
|
108
|
+
type: "basic"
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
catch (error) {
|
|
112
|
+
const exception = {
|
|
113
|
+
name: "HistogramException",
|
|
114
|
+
header: endconerror,
|
|
115
|
+
message: "An error occurred while connecting to the endevor web services: \n" + error.message
|
|
116
|
+
};
|
|
117
|
+
throw exception;
|
|
118
|
+
}
|
|
119
|
+
let responseEndevor;
|
|
120
|
+
try {
|
|
121
|
+
responseEndevor = yield endevor_for_zowe_cli_1.PrintElementComponents.printElementComponents(endevorSession, elemDef, requestBody, false);
|
|
122
|
+
}
|
|
123
|
+
catch (error) {
|
|
124
|
+
if (error instanceof imperative_1.RestClientError) {
|
|
125
|
+
const exception = {
|
|
126
|
+
name: "HistogramException",
|
|
127
|
+
header: endconerror,
|
|
128
|
+
message: "Cannot download the listing file from CA Endevor: \n" + error.mDetails.additionalDetails
|
|
129
|
+
};
|
|
130
|
+
throw exception;
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
const exception = {
|
|
134
|
+
name: "HistogramException",
|
|
135
|
+
header: endconerror,
|
|
136
|
+
message: "An error occurred while connecting to the CA Endevor web services: \n" + error.message
|
|
137
|
+
};
|
|
138
|
+
throw exception;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
if (responseEndevor.data !== null && responseEndevor.data !== undefined) {
|
|
142
|
+
let tofileName = matProfile.listingDir === undefined ? "." : matProfile.listingDir;
|
|
143
|
+
try {
|
|
144
|
+
const fs = require("fs");
|
|
145
|
+
if (!fs.existsSync(tofileName)) {
|
|
146
|
+
yield fs.mkdirSync(tofileName, { recursive: true }, (err) => {
|
|
147
|
+
if (err) {
|
|
148
|
+
throw err;
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
tofileName += "\\" + endevorFootprint.element + "." + this.getExtension(endevorFootprint.type);
|
|
153
|
+
fs.writeFileSync(tofileName, responseEndevor.data[0], { encoding: "latin1" });
|
|
154
|
+
// THIS IS HOW YOU WRITE A FILE USING ENDEVOR
|
|
155
|
+
// EndevorUtils.generalWriteFile(tofileName, responseEndevor.data[0]);
|
|
156
|
+
}
|
|
157
|
+
catch (error) {
|
|
158
|
+
const exception = {
|
|
159
|
+
name: "HistogramException",
|
|
160
|
+
header: "File or Folder Access Error",
|
|
161
|
+
errno: error.errno ? error.errno : null,
|
|
162
|
+
message: error.message
|
|
163
|
+
};
|
|
164
|
+
throw exception;
|
|
165
|
+
}
|
|
166
|
+
if (responseEndevor.data[0].length === 0) {
|
|
167
|
+
const exception = {
|
|
168
|
+
name: "HistogramException",
|
|
169
|
+
header: "Endevor Data Error",
|
|
170
|
+
message: "No data in response from CA Endevor."
|
|
171
|
+
};
|
|
172
|
+
throw exception;
|
|
173
|
+
}
|
|
174
|
+
responseEndevor.data[0] = responseEndevor.data[0] + "";
|
|
175
|
+
const lines = responseEndevor.data[0].split("\n");
|
|
176
|
+
for (const histogram of json.histogram) {
|
|
177
|
+
histogram.listing = "not found";
|
|
178
|
+
for (let index = 0; index < lines.length; index++) {
|
|
179
|
+
const stmtLine = lines[index].indexOf(histogram.stmt);
|
|
180
|
+
if (stmtLine >= 0) {
|
|
181
|
+
const columnNum = lines[index].indexOf(histogram.verb, stmtLine) + 1;
|
|
182
|
+
if (columnNum >= 1) {
|
|
183
|
+
const lineNum = index + 1;
|
|
184
|
+
histogram.listing = tofileName + ":" + lineNum + ":" + columnNum;
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
const exception = {
|
|
193
|
+
name: "HistogramException",
|
|
194
|
+
header: "Resource Access Error",
|
|
195
|
+
message: "Listing not found. Caused by: \n" + responseEndevor.messages
|
|
196
|
+
};
|
|
197
|
+
throw exception;
|
|
198
|
+
}
|
|
199
|
+
// } 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"))) {
|
|
200
|
+
}
|
|
201
|
+
else if (("message" in json) && (json.message !== "OK")) {
|
|
202
|
+
for (const histogram of json.histogram) {
|
|
203
|
+
histogram.listing = json.message;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
const exception = {
|
|
208
|
+
name: "HistogramException",
|
|
209
|
+
header: "Resource Access Error",
|
|
210
|
+
message: "The listing data set for the measurement is not registered with CA MAT"
|
|
211
|
+
};
|
|
212
|
+
throw exception;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
return json.histogram;
|
|
216
|
+
});
|
|
41
217
|
}
|
|
42
|
-
|
|
43
|
-
return ["module", "csect", "top", "group"];
|
|
218
|
+
getOptionalParams() {
|
|
219
|
+
return ["module", "csect", "top", "group", "listing"];
|
|
220
|
+
}
|
|
221
|
+
getExtension(language) {
|
|
222
|
+
switch (language) {
|
|
223
|
+
case "COBOL":
|
|
224
|
+
return "cbl";
|
|
225
|
+
case "COB390":
|
|
226
|
+
return "cbl";
|
|
227
|
+
case "ASM":
|
|
228
|
+
return "asm";
|
|
229
|
+
case "ASMPGM":
|
|
230
|
+
return "asm";
|
|
231
|
+
case "C":
|
|
232
|
+
return "c";
|
|
233
|
+
case "CPP":
|
|
234
|
+
return "cpp";
|
|
235
|
+
default:
|
|
236
|
+
return "txt";
|
|
237
|
+
}
|
|
44
238
|
}
|
|
45
239
|
}
|
|
46
240
|
exports.default = HistogramHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Histogram.handler.js","sourceRoot":"","sources":["../../../../../src/cli/monitor/codeview/Histogram/Histogram.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG
|
|
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,iDAAgF;AAChF,yEAAyG;AAGzG,MAAqB,gBAA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M,SAAS,CAAC;qBACnB;oBACL,4MAA4M;iBAC3M;qBAAM,IAAI,CAAC,SAAS,IAAI,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,wEAAwE;qBACpF,CAAC;oBACF,MAAM,SAAS,CAAC;iBACnB;aACJ;YACD,OAAO,IAAI,CAAC,SAAS,CAAC;QAC1B,CAAC;KAAA;IACS,iBAAiB;QACvB,OAAO,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;IAC1D,CAAC;IAEO,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;CACJ;AAtMD,mCAsMC"}
|
|
@@ -3,6 +3,6 @@ import { ICallerid } from "../../../../api/response/ICallerid";
|
|
|
3
3
|
export default class CallerIDHandler extends AbstractAnalyzeHandler<ICallerid> {
|
|
4
4
|
protected getAnalyzeURI(): string;
|
|
5
5
|
protected getFields(): string[];
|
|
6
|
-
protected getOutput(json: any): any
|
|
6
|
+
protected getOutput(json: any): Promise<any>;
|
|
7
7
|
protected getRequestParams(): string[];
|
|
8
8
|
}
|
|
@@ -21,6 +21,15 @@
|
|
|
21
21
|
* INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
|
|
22
22
|
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
23
|
*/
|
|
24
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
25
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
26
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
27
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
28
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
29
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
30
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
31
|
+
});
|
|
32
|
+
};
|
|
24
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
34
|
const AbstractAnalyzeHandler_1 = require("../../../../handlers/AbstractAnalyzeHandler");
|
|
26
35
|
const MATRest_1 = require("../../../../api/MATRest");
|
|
@@ -32,7 +41,9 @@ class CallerIDHandler extends AbstractAnalyzeHandler_1.default {
|
|
|
32
41
|
return ["module", "csect", "offset", "stmt", "csectdescription", "pct"];
|
|
33
42
|
}
|
|
34
43
|
getOutput(json) {
|
|
35
|
-
return
|
|
44
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
+
return json.callerid;
|
|
46
|
+
});
|
|
36
47
|
}
|
|
37
48
|
getRequestParams() {
|
|
38
49
|
return ["csect", "module"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Callerid.handler.js","sourceRoot":"","sources":["../../../../../src/cli/monitor/codeview/callerid/Callerid.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG
|
|
1
|
+
{"version":3,"file":"Callerid.handler.js","sourceRoot":"","sources":["../../../../../src/cli/monitor/codeview/callerid/Callerid.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,wFAAiF;AACjF,qDAAkD;AAGlD,MAAqB,eAAgB,SAAQ,gCAAiC;IAEhE,aAAa;QACnB,OAAO,iBAAO,CAAC,0BAA0B,CAAC;IAC9C,CAAC;IAES,SAAS;QACf,OAAO,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,kBAAkB,EAAE,KAAK,CAAC,CAAC;IAC5E,CAAC;IACe,SAAS,CAAC,IAAS;;YAC/B,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC;KAAA;IACS,gBAAgB;QACtB,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAC/B,CAAC;CACJ;AAfD,kCAeC"}
|
|
@@ -3,5 +3,5 @@ import AbstractAnalyzeHandler from "../../../../handlers/AbstractAnalyzeHandler"
|
|
|
3
3
|
export default class CsectHandler extends AbstractAnalyzeHandler<ICodeview> {
|
|
4
4
|
protected getAnalyzeURI(): string;
|
|
5
5
|
protected getFields(): string[];
|
|
6
|
-
protected getOutput(json: any): any
|
|
6
|
+
protected getOutput(json: any): Promise<any>;
|
|
7
7
|
}
|