@broadcom/mat-analyze-for-zowe-cli 2.0.7 → 2.1.0
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/LICENSE +17 -20
- package/README.md +1514 -1609
- package/lib/api/MATRest.js +65 -28
- package/lib/api/MATRest.js.map +1 -1
- package/lib/api/error/HistogramError.js +16 -18
- package/lib/api/error/HistogramError.js.map +1 -1
- package/lib/api/error/HttpError.d.ts +9 -0
- package/lib/api/error/HttpError.js +36 -0
- package/lib/api/error/HttpError.js.map +1 -0
- package/lib/api/request/ICreateProfile.js +16 -18
- package/lib/api/request/ICreateProfile.js.map +1 -1
- package/lib/api/request/ICreateProfileRequest.js +16 -18
- package/lib/api/request/ICreateProfileRequest.js.map +1 -1
- package/lib/api/request/IInvokeProfile.js +16 -18
- package/lib/api/request/IInvokeProfile.js.map +1 -1
- package/lib/api/request/IInvokeProfileRequest.js +16 -18
- package/lib/api/request/IInvokeProfileRequest.js.map +1 -1
- package/lib/api/response/IAnalysis.js +16 -18
- package/lib/api/response/IAnalysis.js.map +1 -1
- package/lib/api/response/IAuth.js +16 -18
- package/lib/api/response/IAuth.js.map +1 -1
- package/lib/api/response/ICallStack.js +16 -18
- package/lib/api/response/ICallStack.js.map +1 -1
- package/lib/api/response/ICallerid.js +16 -18
- package/lib/api/response/ICallerid.js.map +1 -1
- package/lib/api/response/ICicstat.js +16 -18
- package/lib/api/response/ICicstat.js.map +1 -1
- package/lib/api/response/ICodeview.js +16 -18
- package/lib/api/response/ICodeview.js.map +1 -1
- package/lib/api/response/ICsect.js +16 -18
- package/lib/api/response/ICsect.js.map +1 -1
- package/lib/api/response/IDB2View.js +16 -18
- package/lib/api/response/IDB2View.js.map +1 -1
- package/lib/api/response/IDML.js +16 -18
- package/lib/api/response/IDML.js.map +1 -1
- package/lib/api/response/IDelayLocations.js +16 -18
- package/lib/api/response/IDelayLocations.js.map +1 -1
- package/lib/api/response/IDelayviews.js +16 -18
- package/lib/api/response/IDelayviews.js.map +1 -1
- package/lib/api/response/IHistogram.js +16 -18
- package/lib/api/response/IHistogram.js.map +1 -1
- package/lib/api/response/IHistory.js +16 -18
- package/lib/api/response/IHistory.js.map +1 -1
- package/lib/api/response/IIDMSModule.js +16 -18
- package/lib/api/response/IIDMSModule.js.map +1 -1
- package/lib/api/response/IIDMSModuleDetail.js +16 -18
- package/lib/api/response/IIDMSModuleDetail.js.map +1 -1
- package/lib/api/response/IIDMSTask.js +16 -18
- package/lib/api/response/IIDMSTask.js.map +1 -1
- package/lib/api/response/IIMSSSAView.js +16 -18
- package/lib/api/response/IIMSSSAView.js.map +1 -1
- package/lib/api/response/IIMSStatement.js +16 -18
- package/lib/api/response/IIMSStatement.js.map +1 -1
- package/lib/api/response/IIMSView.js +16 -18
- package/lib/api/response/IIMSView.js.map +1 -1
- package/lib/api/response/IIMSViewDBDName.js +16 -18
- package/lib/api/response/IIMSViewDBDName.js.map +1 -1
- package/lib/api/response/IIMSViewPSBName.js +16 -18
- package/lib/api/response/IIMSViewPSBName.js.map +1 -1
- package/lib/api/response/IIMSViewRegion.js +16 -18
- package/lib/api/response/IIMSViewRegion.js.map +1 -1
- package/lib/api/response/IListProfile.js +16 -18
- package/lib/api/response/IListProfile.js.map +1 -1
- package/lib/api/response/IMonitorList.js +16 -18
- package/lib/api/response/IMonitorList.js.map +1 -1
- package/lib/api/response/IOverview.js +16 -18
- package/lib/api/response/IOverview.js.map +1 -1
- package/lib/api/response/IProfileList.d.ts +1 -1
- package/lib/api/response/IProfileList.js +16 -18
- package/lib/api/response/IProfileList.js.map +1 -1
- package/lib/api/response/IResponse.js +16 -18
- package/lib/api/response/IResponse.js.map +1 -1
- package/lib/api/response/ITranview.js +16 -18
- package/lib/api/response/ITranview.js.map +1 -1
- package/lib/cli/monitor/Monitor.definition.js +16 -18
- package/lib/cli/monitor/Monitor.definition.js.map +1 -1
- package/lib/cli/monitor/codeview/Codeview.definition.js +16 -18
- package/lib/cli/monitor/codeview/Codeview.definition.js.map +1 -1
- package/lib/cli/monitor/codeview/Histogram/Histogram.definition.js +33 -22
- package/lib/cli/monitor/codeview/Histogram/Histogram.definition.js.map +1 -1
- package/lib/cli/monitor/codeview/Histogram/Histogram.handler.js +100 -191
- package/lib/cli/monitor/codeview/Histogram/Histogram.handler.js.map +1 -1
- package/lib/cli/monitor/codeview/callerid/Callerid.definition.js +16 -18
- package/lib/cli/monitor/codeview/callerid/Callerid.definition.js.map +1 -1
- package/lib/cli/monitor/codeview/callerid/Callerid.handler.js +16 -18
- package/lib/cli/monitor/codeview/callerid/Callerid.handler.js.map +1 -1
- package/lib/cli/monitor/codeview/csect/Csect.definition.js +16 -18
- package/lib/cli/monitor/codeview/csect/Csect.definition.js.map +1 -1
- package/lib/cli/monitor/codeview/csect/Csect.handler.js +16 -18
- package/lib/cli/monitor/codeview/csect/Csect.handler.js.map +1 -1
- package/lib/cli/monitor/codeview/module/Module.definition.js +16 -18
- package/lib/cli/monitor/codeview/module/Module.definition.js.map +1 -1
- package/lib/cli/monitor/codeview/module/Module.handler.js +16 -18
- package/lib/cli/monitor/codeview/module/Module.handler.js.map +1 -1
- package/lib/cli/monitor/db2/DB2.definition.js +16 -18
- package/lib/cli/monitor/db2/DB2.definition.js.map +1 -1
- package/lib/cli/monitor/db2/db2view/DB2View.definition.js +16 -18
- package/lib/cli/monitor/db2/db2view/DB2View.definition.js.map +1 -1
- package/lib/cli/monitor/db2/db2view/DB2View.handler.js +16 -18
- package/lib/cli/monitor/db2/db2view/DB2View.handler.js.map +1 -1
- package/lib/cli/monitor/db2/sqlview/SQLView.definition.js +16 -18
- package/lib/cli/monitor/db2/sqlview/SQLView.definition.js.map +1 -1
- package/lib/cli/monitor/db2/sqlview/SQLView.handler.js +16 -18
- package/lib/cli/monitor/db2/sqlview/SQLView.handler.js.map +1 -1
- package/lib/cli/monitor/delayview/Delayview.definition.js +16 -18
- package/lib/cli/monitor/delayview/Delayview.definition.js.map +1 -1
- package/lib/cli/monitor/delayview/address/Address.definition.js +16 -18
- package/lib/cli/monitor/delayview/address/Address.definition.js.map +1 -1
- package/lib/cli/monitor/delayview/address/Address.handler.js +16 -18
- package/lib/cli/monitor/delayview/address/Address.handler.js.map +1 -1
- package/lib/cli/monitor/delayview/delay/Delay.definition.js +16 -18
- package/lib/cli/monitor/delayview/delay/Delay.definition.js.map +1 -1
- package/lib/cli/monitor/delayview/delay/Delay.handler.js +16 -18
- package/lib/cli/monitor/delayview/delay/Delay.handler.js.map +1 -1
- package/lib/cli/monitor/history/History.definition.js +16 -18
- package/lib/cli/monitor/history/History.definition.js.map +1 -1
- package/lib/cli/monitor/history/History.handler.js +17 -19
- package/lib/cli/monitor/history/History.handler.js.map +1 -1
- package/lib/cli/monitor/idms/IDMS.definition.js +16 -18
- package/lib/cli/monitor/idms/IDMS.definition.js.map +1 -1
- package/lib/cli/monitor/idms/dml/DML.definition.js +16 -18
- package/lib/cli/monitor/idms/dml/DML.definition.js.map +1 -1
- package/lib/cli/monitor/idms/dml/DML.handler.js +16 -18
- package/lib/cli/monitor/idms/dml/DML.handler.js.map +1 -1
- package/lib/cli/monitor/idms/module/IDMSModule.definition.js +16 -18
- package/lib/cli/monitor/idms/module/IDMSModule.definition.js.map +1 -1
- package/lib/cli/monitor/idms/module/IDMSModule.handler.js +16 -18
- package/lib/cli/monitor/idms/module/IDMSModule.handler.js.map +1 -1
- package/lib/cli/monitor/idms/task/IDMSTask.definition.js +16 -18
- package/lib/cli/monitor/idms/task/IDMSTask.definition.js.map +1 -1
- package/lib/cli/monitor/idms/task/IDMSTask.handler.js +16 -18
- package/lib/cli/monitor/idms/task/IDMSTask.handler.js.map +1 -1
- package/lib/cli/monitor/ims/IMS.definition.js +16 -18
- package/lib/cli/monitor/ims/IMS.definition.js.map +1 -1
- package/lib/cli/monitor/ims/dbdname/DBDName.definition.js +16 -18
- package/lib/cli/monitor/ims/dbdname/DBDName.definition.js.map +1 -1
- package/lib/cli/monitor/ims/dbdname/DBDName.handler.js +16 -18
- package/lib/cli/monitor/ims/dbdname/DBDName.handler.js.map +1 -1
- package/lib/cli/monitor/ims/imsview/IMSView.definition.js +16 -18
- package/lib/cli/monitor/ims/imsview/IMSView.definition.js.map +1 -1
- package/lib/cli/monitor/ims/imsview/IMSView.handler.js +16 -18
- package/lib/cli/monitor/ims/imsview/IMSView.handler.js.map +1 -1
- package/lib/cli/monitor/ims/psbname/PSBName.definition.js +16 -18
- package/lib/cli/monitor/ims/psbname/PSBName.definition.js.map +1 -1
- package/lib/cli/monitor/ims/psbname/PSBName.handler.js +16 -18
- package/lib/cli/monitor/ims/psbname/PSBName.handler.js.map +1 -1
- package/lib/cli/monitor/ims/region/Region.definition.js +16 -18
- package/lib/cli/monitor/ims/region/Region.definition.js.map +1 -1
- package/lib/cli/monitor/ims/region/Region.handler.js +16 -18
- package/lib/cli/monitor/ims/region/Region.handler.js.map +1 -1
- package/lib/cli/monitor/ims/ssa/SSA.definition.js +16 -18
- package/lib/cli/monitor/ims/ssa/SSA.definition.js.map +1 -1
- package/lib/cli/monitor/ims/ssa/SSA.handler.js +16 -18
- package/lib/cli/monitor/ims/ssa/SSA.handler.js.map +1 -1
- package/lib/cli/monitor/ims/statement/Statement.definition.js +16 -18
- package/lib/cli/monitor/ims/statement/Statement.definition.js.map +1 -1
- package/lib/cli/monitor/ims/statement/Statement.handler.js +16 -18
- package/lib/cli/monitor/ims/statement/Statement.handler.js.map +1 -1
- package/lib/cli/monitor/overview/Overview.definition.js +16 -18
- package/lib/cli/monitor/overview/Overview.definition.js.map +1 -1
- package/lib/cli/monitor/overview/Overview.handler.js +16 -18
- package/lib/cli/monitor/overview/Overview.handler.js.map +1 -1
- package/lib/cli/monitor/tranview/Tranview.definition.js +16 -18
- package/lib/cli/monitor/tranview/Tranview.definition.js.map +1 -1
- package/lib/cli/monitor/tranview/all/All.definition.js +16 -18
- package/lib/cli/monitor/tranview/all/All.definition.js.map +1 -1
- package/lib/cli/monitor/tranview/all/All.handler.js +16 -18
- package/lib/cli/monitor/tranview/all/All.handler.js.map +1 -1
- package/lib/cli/monitor/tranview/callerid/Callerid.definition.js +16 -18
- package/lib/cli/monitor/tranview/callerid/Callerid.definition.js.map +1 -1
- package/lib/cli/monitor/tranview/callerid/Callerid.handler.js +16 -18
- package/lib/cli/monitor/tranview/callerid/Callerid.handler.js.map +1 -1
- package/lib/cli/monitor/tranview/callstack/CallStack.definition.js +16 -18
- package/lib/cli/monitor/tranview/callstack/CallStack.definition.js.map +1 -1
- package/lib/cli/monitor/tranview/callstack/CallStack.handler.js +16 -18
- package/lib/cli/monitor/tranview/callstack/CallStack.handler.js.map +1 -1
- package/lib/cli/monitor/tranview/csect/CsectDetail.definition.js +16 -18
- package/lib/cli/monitor/tranview/csect/CsectDetail.definition.js.map +1 -1
- package/lib/cli/monitor/tranview/csect/CsectDetail.handler.js +16 -18
- package/lib/cli/monitor/tranview/csect/CsectDetail.handler.js.map +1 -1
- package/lib/cli/monitor/tranview/delay/DelayDetail.definition.js +16 -18
- package/lib/cli/monitor/tranview/delay/DelayDetail.definition.js.map +1 -1
- package/lib/cli/monitor/tranview/delay/DelayDetail.handler.js +16 -18
- package/lib/cli/monitor/tranview/delay/DelayDetail.handler.js.map +1 -1
- package/lib/cli/monitor/tranview/module/Module.definition.js +16 -18
- package/lib/cli/monitor/tranview/module/Module.definition.js.map +1 -1
- package/lib/cli/monitor/tranview/module/Module.handler.js +16 -18
- package/lib/cli/monitor/tranview/module/Module.handler.js.map +1 -1
- package/lib/cli/monitor/tranview/stat/Cicstat.definition.js +16 -18
- package/lib/cli/monitor/tranview/stat/Cicstat.definition.js.map +1 -1
- package/lib/cli/monitor/tranview/stat/Cicstat.handler.js +16 -18
- package/lib/cli/monitor/tranview/stat/Cicstat.handler.js.map +1 -1
- package/lib/cli/profile/Profile.definition.js +16 -18
- package/lib/cli/profile/Profile.definition.js.map +1 -1
- package/lib/cli/profile/create/CreateProfile.definition.js +16 -18
- package/lib/cli/profile/create/CreateProfile.definition.js.map +1 -1
- package/lib/cli/profile/create/CreateProfile.handler.js +16 -18
- package/lib/cli/profile/create/CreateProfile.handler.js.map +1 -1
- package/lib/cli/profile/invoke/InvokeProfile.definition.js +16 -18
- package/lib/cli/profile/invoke/InvokeProfile.definition.js.map +1 -1
- package/lib/cli/profile/invoke/InvokeProfile.handler.js +16 -18
- package/lib/cli/profile/invoke/InvokeProfile.handler.js.map +1 -1
- package/lib/cli/profile/listprofile/ListProfile.definition.js +16 -18
- package/lib/cli/profile/listprofile/ListProfile.definition.js.map +1 -1
- package/lib/cli/profile/listprofile/ListProfile.handler.js +17 -19
- package/lib/cli/profile/listprofile/ListProfile.handler.js.map +1 -1
- package/lib/cli/session/EndevorSession.d.ts +33 -0
- package/lib/cli/session/EndevorSession.js +120 -0
- package/lib/cli/session/EndevorSession.js.map +1 -0
- package/lib/cli/session/MATSession.js +18 -20
- package/lib/cli/session/MATSession.js.map +1 -1
- package/lib/handlers/AbstractAnalyzeHandler.js +16 -18
- package/lib/handlers/AbstractAnalyzeHandler.js.map +1 -1
- package/lib/handlers/AbstractGetHandler.js +16 -18
- package/lib/handlers/AbstractGetHandler.js.map +1 -1
- package/lib/handlers/AbstractObjectDisplayHandler.js +16 -18
- package/lib/handlers/AbstractObjectDisplayHandler.js.map +1 -1
- package/lib/handlers/AbstractPostHandler.js +16 -18
- package/lib/handlers/AbstractPostHandler.js.map +1 -1
- package/lib/handlers/AbstractProfileActionHandler.js +16 -18
- package/lib/handlers/AbstractProfileActionHandler.js.map +1 -1
- package/lib/handlers/AbstractRestHandler.d.ts +9 -0
- package/lib/handlers/AbstractRestHandler.js +132 -96
- package/lib/handlers/AbstractRestHandler.js.map +1 -1
- package/lib/handlers/AbstractTableDisplayHandler.js +16 -18
- package/lib/handlers/AbstractTableDisplayHandler.js.map +1 -1
- package/lib/healthCheck.Handler.d.ts +22 -3
- package/lib/healthCheck.Handler.js +56 -36
- package/lib/healthCheck.Handler.js.map +1 -1
- package/lib/imperative.js +18 -33
- package/lib/imperative.js.map +1 -1
- package/lib/index.js +16 -18
- package/lib/index.js.map +1 -1
- package/package.json +47 -37
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* **************************************************************************************
|
|
4
|
+
* Copyright © 2025 BROADCOM Inc and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
|
-
* This software and all information contained therein is
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
6
|
+
* This software and all information contained therein is confidential and
|
|
7
|
+
* proprietary and shall not be duplicated, used, disclosed or disseminated in any
|
|
8
|
+
* way except as authorized by the applicable license agreement, without the
|
|
9
|
+
* express written permission of Broadcom. All authorized reproductions must be marked
|
|
10
|
+
* with this language.
|
|
11
|
+
*
|
|
12
|
+
* EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO THE EXTENT PERMITTED
|
|
13
|
+
* BY APPLICABLE LAW, BROADCOM PROVIDES THIS SOFTWARE WITHOUT WARRANTY OF ANY KIND,
|
|
14
|
+
* INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
|
|
15
|
+
* FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM BE LIABLE TO THE END USER
|
|
16
|
+
* OR ANY THIRD PARTY FOR ANY LOSS OR DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF
|
|
17
|
+
* THIS SOFTWARE, INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS INTERRUPTION,
|
|
18
|
+
* GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
19
|
+
* **************************************************************************************
|
|
12
20
|
*
|
|
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
21
|
*/
|
|
24
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
23
|
//# sourceMappingURL=ITranview.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ITranview.js","sourceRoot":"","sources":["../../../src/api/response/ITranview.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"ITranview.js","sourceRoot":"","sources":["../../../src/api/response/ITranview.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG"}
|
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* **************************************************************************************
|
|
4
|
+
* Copyright © 2025 BROADCOM Inc and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
|
-
* This software and all information contained therein is
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
6
|
+
* This software and all information contained therein is confidential and
|
|
7
|
+
* proprietary and shall not be duplicated, used, disclosed or disseminated in any
|
|
8
|
+
* way except as authorized by the applicable license agreement, without the
|
|
9
|
+
* express written permission of Broadcom. All authorized reproductions must be marked
|
|
10
|
+
* with this language.
|
|
11
|
+
*
|
|
12
|
+
* EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO THE EXTENT PERMITTED
|
|
13
|
+
* BY APPLICABLE LAW, BROADCOM PROVIDES THIS SOFTWARE WITHOUT WARRANTY OF ANY KIND,
|
|
14
|
+
* INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
|
|
15
|
+
* FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM BE LIABLE TO THE END USER
|
|
16
|
+
* OR ANY THIRD PARTY FOR ANY LOSS OR DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF
|
|
17
|
+
* THIS SOFTWARE, INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS INTERRUPTION,
|
|
18
|
+
* GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
19
|
+
* **************************************************************************************
|
|
12
20
|
*
|
|
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
21
|
*/
|
|
24
22
|
/**
|
|
25
23
|
* [action] command definition for the [action] two group. The [action] is of imperative command definition type
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Monitor.definition.js","sourceRoot":"","sources":["../../../src/cli/monitor/Monitor.definition.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"Monitor.definition.js","sourceRoot":"","sources":["../../../src/cli/monitor/Monitor.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH;;;;;;;;;;;;GAYG;AACH,wEAAoE;AACpE,qEAAsE;AACtE,wEAAyE;AACzE,qEAAsE;AACtE,yDAA0D;AAC1D,sDAAuD;AACvD,sDAAuD;AAEvD,qEAAiE;AACjE,sDAAmD;AACnD,MAAM,iBAAiB,GAAuB;IAC1C,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,kBAAkB;IAC3B,WAAW,EAAE,6DAA6D;IAC1E,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,wCAAkB,EAAE,kBAAkB,EAAE,mBAAmB;QAClE,sCAAiB,EAAE,aAAa,EAAE,kBAAkB,EAAE,cAAc;QACpE,aAAa,CAAC;IAClB,MAAM,EAAE;QACJ;YACI,QAAQ,EAAE,SAAS;YACnB,KAAK,EAAE,uBAAU,CAAC,sBAAsB;YACxC,KAAK,EAAE,IAAI;YACX,WAAW,EAAE;gBACT,EAAC,IAAI,EAAE,OAAO,EAAC;aAClB;SACJ;KACJ;CACJ,CAAC;AAEF,iBAAS,iBAAiB,CAAC"}
|
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* **************************************************************************************
|
|
4
|
+
* Copyright © 2025 BROADCOM Inc and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
|
-
* This software and all information contained therein is
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
6
|
+
* This software and all information contained therein is confidential and
|
|
7
|
+
* proprietary and shall not be duplicated, used, disclosed or disseminated in any
|
|
8
|
+
* way except as authorized by the applicable license agreement, without the
|
|
9
|
+
* express written permission of Broadcom. All authorized reproductions must be marked
|
|
10
|
+
* with this language.
|
|
11
|
+
*
|
|
12
|
+
* EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO THE EXTENT PERMITTED
|
|
13
|
+
* BY APPLICABLE LAW, BROADCOM PROVIDES THIS SOFTWARE WITHOUT WARRANTY OF ANY KIND,
|
|
14
|
+
* INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
|
|
15
|
+
* FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM BE LIABLE TO THE END USER
|
|
16
|
+
* OR ANY THIRD PARTY FOR ANY LOSS OR DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF
|
|
17
|
+
* THIS SOFTWARE, INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS INTERRUPTION,
|
|
18
|
+
* GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
19
|
+
* **************************************************************************************
|
|
12
20
|
*
|
|
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
21
|
*/
|
|
24
22
|
const Csect_definition_1 = require("./csect/Csect.definition");
|
|
25
23
|
const Module_definition_1 = require("./module/Module.definition");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Codeview.definition.js","sourceRoot":"","sources":["../../../../src/cli/monitor/codeview/Codeview.definition.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"Codeview.definition.js","sourceRoot":"","sources":["../../../../src/cli/monitor/codeview/Codeview.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,+DAA2D;AAC3D,kEAA8D;AAC9D,wEAAoE;AACpE,2EAAuE;AACvE;;;;;;;;;;;;GAYG;AAEH,MAAM,kBAAkB,GAAuB;IAC3C,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,mBAAmB;IAC5B,WAAW,EAAE,uCAAuC;IACpD,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,kCAAe,EAAE,oCAAgB,EAAE,wCAAkB,EAAE,0CAAmB,CAAC;CACzF,CAAC;AAEF,iBAAS,kBAAkB,CAAC"}
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* **************************************************************************************
|
|
4
|
+
* Copyright © 2025 BROADCOM Inc and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
|
-
* This software and all information contained therein is
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
6
|
+
* This software and all information contained therein is confidential and
|
|
7
|
+
* proprietary and shall not be duplicated, used, disclosed or disseminated in any
|
|
8
|
+
* way except as authorized by the applicable license agreement, without the
|
|
9
|
+
* express written permission of Broadcom. All authorized reproductions must be marked
|
|
10
|
+
* with this language.
|
|
11
|
+
*
|
|
12
|
+
* EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO THE EXTENT PERMITTED
|
|
13
|
+
* BY APPLICABLE LAW, BROADCOM PROVIDES THIS SOFTWARE WITHOUT WARRANTY OF ANY KIND,
|
|
14
|
+
* INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
|
|
15
|
+
* FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM BE LIABLE TO THE END USER
|
|
16
|
+
* OR ANY THIRD PARTY FOR ANY LOSS OR DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF
|
|
17
|
+
* THIS SOFTWARE, INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS INTERRUPTION,
|
|
18
|
+
* GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
19
|
+
* **************************************************************************************
|
|
12
20
|
*
|
|
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
21
|
*/
|
|
24
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
23
|
exports.HistogramDefinition = void 0;
|
|
24
|
+
const EndevorSession_1 = require("../../../session/EndevorSession");
|
|
26
25
|
exports.HistogramDefinition = {
|
|
27
26
|
name: "histogram",
|
|
28
27
|
aliases: ["hsg"],
|
|
@@ -81,9 +80,10 @@ exports.HistogramDefinition = {
|
|
|
81
80
|
{
|
|
82
81
|
name: "listing",
|
|
83
82
|
description: "Enables you to retrieve program listing details that pertain to the specific CSECT and statement. " +
|
|
84
|
-
"To use the listing retrieval option,
|
|
85
|
-
"
|
|
86
|
-
"
|
|
83
|
+
"To use the listing retrieval option, ensure that the program listing for the specific measurement is registered with MAT, " +
|
|
84
|
+
"and that you have the Endevor® Web Services connection configured locally via the --endevor-* " +
|
|
85
|
+
"options below (or the ZOWE_OPT_ENDEVOR_* environment variable). The source code listing is retrieved through Endevor® " +
|
|
86
|
+
"footprints for Cobol, C/C++, and Assembler programs. The program listing file is downloaded " +
|
|
87
87
|
"to your local directory that you specified with the \'listingDir\' parameter in your MAT configuration profile. " +
|
|
88
88
|
"When you request the histogram details with the \'--listing\' option, the \'histogram\' command returns the " +
|
|
89
89
|
"additional \'listing\' column that contains a reference to the program listing with the specific CSECT name, " +
|
|
@@ -92,7 +92,8 @@ exports.HistogramDefinition = {
|
|
|
92
92
|
"command responce in your VS Code terminal to navigate directly to the indicated source program location." +
|
|
93
93
|
"The --listing parameter is optional.",
|
|
94
94
|
type: "boolean"
|
|
95
|
-
}
|
|
95
|
+
},
|
|
96
|
+
...EndevorSession_1.EndevorSession.ENDEVOR_CONNECTION_OPTIONS
|
|
96
97
|
],
|
|
97
98
|
examples: [
|
|
98
99
|
{
|
|
@@ -114,6 +115,16 @@ exports.HistogramDefinition = {
|
|
|
114
115
|
"with the specific MAT profile details defined",
|
|
115
116
|
options: "--mon_num 5 --csect \"TUNCOB01\" --module \"RUNCOB\" --host \"example.com\" --port 12345 --user johndoe --password qwerty",
|
|
116
117
|
},
|
|
118
|
+
{
|
|
119
|
+
description: "Get the Histogram details about listing retrieval with the re-used MAT profile credentials for a locally-configured Endevor host options",
|
|
120
|
+
options: "--csect \"TUNCOB01\" --listing --endevor-host \"endevor.example.com\" --endevor-port 8080 " +
|
|
121
|
+
"--endevor-base-path \"EndevorService/rest\" --endevor-reuse-mat-credentials",
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
description: "Get the Histogram details about listing retrieval with Endevor-specific credential options",
|
|
125
|
+
options: "--csect \"TUNCOB01\" --listing --endevor-host \"endevor.example.com\" --endevor-port 8080 " +
|
|
126
|
+
"--endevor-base-path \"EndevorService/rest\" --endevor-user janedoe --endevor-password qwerty",
|
|
127
|
+
},
|
|
117
128
|
]
|
|
118
129
|
};
|
|
119
130
|
//# 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
|
|
1
|
+
{"version":3,"file":"Histogram.definition.js","sourceRoot":"","sources":["../../../../../src/cli/monitor/codeview/Histogram/Histogram.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;;;AAGH,oEAAiE;AACpD,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,6FAA6F;gBAC7F,qCAAqC;gBACrC,sGAAsG;gBACtG,uCAAuC;YACvC,IAAI,EAAE,eAAe;SACxB;QACD;YACI,IAAI,EAAE,KAAK;YACX,WAAW,EAAE,6EAA6E;gBAC1F,mFAAmF;gBACnF,gGAAgG;gBAChG,qEAAqE;YACrE,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,oGAAoG;gBAC7G,4HAA4H;gBAC5H,gGAAgG;gBAChG,wHAAwH;gBACxH,8FAA8F;gBAC9F,kHAAkH;gBAClH,8GAA8G;gBAC9G,+GAA+G;gBAC/G,uGAAuG;gBACvG,qHAAqH;gBACrH,0GAA0G;gBAC1G,sCAAsC;YAC1C,IAAI,EAAE,SAAS;SAClB;QACD,GAAG,+BAAc,CAAC,0BAA0B;KAC/C;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;QACF;YACK,WAAW,EAAE,+FAA+F;gBAC5G,0FAA0F;YAC1F,OAAO,EAAE,wEAAwE;SACpF;QACD;YACI,WAAW,EAAE,+FAA+F;gBAC5G,+CAA+C;YAC/C,OAAO,EAAE,2HAA2H;SACvI;QACD;YACI,WAAW,EAAE,0IAA0I;YACvJ,OAAO,EAAE,4FAA4F;gBACrG,6EAA6E;SAChF;QACD;YACI,WAAW,EAAE,4FAA4F;YACzG,OAAO,EAAE,4FAA4F;gBACrG,8FAA8F;SACjG;KACJ;CACJ,CAAC"}
|
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* **************************************************************************************
|
|
4
|
+
* Copyright © 2025 BROADCOM Inc and/or its subsidiaries.
|
|
5
5
|
*
|
|
6
|
-
* This software and all information contained therein is
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
6
|
+
* This software and all information contained therein is confidential and
|
|
7
|
+
* proprietary and shall not be duplicated, used, disclosed or disseminated in any
|
|
8
|
+
* way except as authorized by the applicable license agreement, without the
|
|
9
|
+
* express written permission of Broadcom. All authorized reproductions must be marked
|
|
10
|
+
* with this language.
|
|
11
|
+
*
|
|
12
|
+
* EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO THE EXTENT PERMITTED
|
|
13
|
+
* BY APPLICABLE LAW, BROADCOM PROVIDES THIS SOFTWARE WITHOUT WARRANTY OF ANY KIND,
|
|
14
|
+
* INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
|
|
15
|
+
* FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM BE LIABLE TO THE END USER
|
|
16
|
+
* OR ANY THIRD PARTY FOR ANY LOSS OR DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF
|
|
17
|
+
* THIS SOFTWARE, INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS INTERRUPTION,
|
|
18
|
+
* GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
19
|
+
* **************************************************************************************
|
|
12
20
|
*
|
|
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
21
|
*/
|
|
24
22
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
25
23
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -34,6 +32,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
34
32
|
const AbstractAnalyzeHandler_1 = require("../../../../handlers/AbstractAnalyzeHandler");
|
|
35
33
|
const MATRest_1 = require("../../../../api/MATRest");
|
|
36
34
|
const imperative_1 = require("@zowe/imperative");
|
|
35
|
+
const EndevorSession_1 = require("../../../session/EndevorSession");
|
|
37
36
|
const fs = require("fs");
|
|
38
37
|
const path = require("path");
|
|
39
38
|
class HistogramHandler extends AbstractAnalyzeHandler_1.default {
|
|
@@ -47,25 +46,37 @@ class HistogramHandler extends AbstractAnalyzeHandler_1.default {
|
|
|
47
46
|
footprint = footprint.substring(footprint.indexOf("[") + 1, footprint.indexOf("]"));
|
|
48
47
|
return JSON.parse(footprint); // Return the parsed footprint object
|
|
49
48
|
},
|
|
50
|
-
// Construct the REST API request URL using the footprint data
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
// Construct the REST API request URL using the footprint data. endevorBasePath is a
|
|
50
|
+
// locally-configured value (TUNER-034) -- never taken from the footprint. The remaining
|
|
51
|
+
// segments only select which resource to fetch on the already-locally-pinned host, but
|
|
52
|
+
// are still server-supplied strings, so each is percent-encoded before landing in the URL.
|
|
53
|
+
constructRequestUrl(jsonFootprint, endevorBasePath) {
|
|
54
|
+
const seg = (value) => encodeURIComponent(String(value));
|
|
55
|
+
// encodeURI, not seg() -- endevorBasePath can be multi-segment (e.g. "EndevorService/rest").
|
|
56
|
+
return "/" + encodeURI(endevorBasePath) + "/" + seg(jsonFootprint.endevorContext) + "/env/" + seg(jsonFootprint.environment) + "/stgnum/"
|
|
57
|
+
+ seg(jsonFootprint.stage) + "/sys/" + seg(jsonFootprint.system) + "/subsys/" + seg(jsonFootprint.subsystem) + "/type/"
|
|
58
|
+
+ seg(jsonFootprint.type) + "/ele/" + seg(jsonFootprint.element) + "?print=listing";
|
|
59
|
+
},
|
|
60
|
+
// Create a session with the required authentication details. Every argument here comes
|
|
61
|
+
// from the CLI's own locally-configured options (TUNER-034) -- there is no parameter
|
|
62
|
+
// through which a MAT server response could influence host/port/protocol/creds.
|
|
63
|
+
createSession(endevorHost, endevorPort, user, password, rejectUnauthorized) {
|
|
64
|
+
return EndevorSession_1.EndevorSession.createSessionForListing({ endevorHost, endevorPort, user, password, rejectUnauthorized });
|
|
55
65
|
},
|
|
56
|
-
//
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
66
|
+
// Built from mDetails' safe fields only -- never .headers/.additionalDetails, which
|
|
67
|
+
// embed the raw Authorization header.
|
|
68
|
+
describeConnectionFailure(error) {
|
|
69
|
+
var _a;
|
|
70
|
+
const d = error.mDetails;
|
|
71
|
+
const target = `${d.protocol}://${d.host}:${d.port}${(_a = d.resource) !== null && _a !== void 0 ? _a : ""}`;
|
|
72
|
+
if (d.source === "timeout") {
|
|
73
|
+
return `Connection to ${target} timed out.`;
|
|
74
|
+
}
|
|
75
|
+
if (d.source === "client") {
|
|
76
|
+
return `Failed to connect to ${target}. Verify that the Endevor host and port are correct and reachable` +
|
|
77
|
+
(d.errno ? ` (${d.errno})` : "") + ".";
|
|
78
|
+
}
|
|
79
|
+
return `Endevor returned HTTP ${d.httpStatus} for ${target}.`;
|
|
69
80
|
},
|
|
70
81
|
// Write the API response to a file and return the file location
|
|
71
82
|
writeResponseToFile(response, listingDir, elementName, extension) {
|
|
@@ -74,8 +85,22 @@ class HistogramHandler extends AbstractAnalyzeHandler_1.default {
|
|
|
74
85
|
if (!fs.existsSync(dir)) {
|
|
75
86
|
fs.mkdirSync(dir, { recursive: true });
|
|
76
87
|
}
|
|
88
|
+
// SECURITY: elementName is server-supplied (footprint.element from the MAT/Endevor
|
|
89
|
+
// response, TUNER-036) -- confine it to a bare filename before it can traverse out
|
|
90
|
+
// of listingDir. path.basename() strips any directory components; reject outright
|
|
91
|
+
// if that changed the value, since a legitimate element name never contains one.
|
|
92
|
+
const safeName = path.basename(elementName);
|
|
93
|
+
if (safeName !== elementName || safeName === "" || safeName === "." || safeName === "..") {
|
|
94
|
+
throw new Error(`Invalid element name in server response: ${elementName}`);
|
|
95
|
+
}
|
|
77
96
|
// Construct the full file path and write the response to the file
|
|
78
|
-
const location = path.join(listingDir,
|
|
97
|
+
const location = path.join(listingDir, safeName + "." + extension);
|
|
98
|
+
// Second, independent check at the point the file is actually written: verify the
|
|
99
|
+
// resolved path still lands inside listingDir.
|
|
100
|
+
const resolvedListingDir = path.resolve(listingDir) + path.sep;
|
|
101
|
+
if (!path.resolve(location).startsWith(resolvedListingDir)) {
|
|
102
|
+
throw new Error(`Refusing to write listing outside of listingDir: ${location}`);
|
|
103
|
+
}
|
|
79
104
|
fs.writeFileSync(location, response); // Write the response content to the file
|
|
80
105
|
return location; // Return the location of the file
|
|
81
106
|
},
|
|
@@ -114,160 +139,10 @@ class HistogramHandler extends AbstractAnalyzeHandler_1.default {
|
|
|
114
139
|
}
|
|
115
140
|
return fields;
|
|
116
141
|
}
|
|
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
|
|
145
|
-
};
|
|
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
|
|
153
|
-
};
|
|
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 = {
|
|
189
|
-
name: "HistogramException",
|
|
190
|
-
header: endconerror,
|
|
191
|
-
message: "An error occurred while connecting to the Endevor web services: \n" + error.message
|
|
192
|
-
};
|
|
193
|
-
throw exception;
|
|
194
|
-
}
|
|
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 = {
|
|
213
|
-
name: "HistogramException",
|
|
214
|
-
header: "File or Folder Access Error",
|
|
215
|
-
errno: error.errno ? error.errno : null,
|
|
216
|
-
message: error.message
|
|
217
|
-
};
|
|
218
|
-
throw exception;
|
|
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
142
|
// Main method to handle the histogram request
|
|
269
143
|
getOutput(json, params) {
|
|
270
144
|
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
var _a;
|
|
271
146
|
// Check if the listing argument is not true
|
|
272
147
|
// If listing is not true, return the histogram from json
|
|
273
148
|
if (params.arguments.listing === true) {
|
|
@@ -275,13 +150,44 @@ class HistogramHandler extends AbstractAnalyzeHandler_1.default {
|
|
|
275
150
|
const endconerror = "Endevor Connection Error";
|
|
276
151
|
const listingDir = params.arguments.listingDir; // Directory where the listing will be stored
|
|
277
152
|
const jsonFootprint = this.Helper.extractFootprint(json); // Extract and parse the footprint from JSON
|
|
278
|
-
|
|
153
|
+
// SECURITY (TUNER-034): the Endevor host/port/credentials must come from local
|
|
154
|
+
// configuration only -- never from jsonFootprint.endevorHost/endevorPort, which is
|
|
155
|
+
// dictated by the MAT server response and previously received the user's mainframe
|
|
156
|
+
// Basic-auth credentials as-is.
|
|
157
|
+
const endevorHost = params.arguments.endevorHost;
|
|
158
|
+
const endevorPort = params.arguments.endevorPort;
|
|
159
|
+
if (!endevorHost || !endevorPort) {
|
|
160
|
+
const exception = {
|
|
161
|
+
name: "HistogramException",
|
|
162
|
+
header: "Endevor Configuration Missing",
|
|
163
|
+
message: "The --listing option requires a locally configured Endevor Web Services host " +
|
|
164
|
+
"and port. The MAT server's reported Endevor connection details cannot be used for " +
|
|
165
|
+
"security reasons. Specify --endevor-host and --endevor-port in this command, " +
|
|
166
|
+
"or set the ZOWE_OPT_ENDEVOR_HOST/ZOWE_OPT_ENDEVOR_PORT environment variables."
|
|
167
|
+
};
|
|
168
|
+
throw exception;
|
|
169
|
+
}
|
|
170
|
+
const reuseMatCredentials = params.arguments.endevorReuseMatCredentials === true;
|
|
171
|
+
const endevorUser = reuseMatCredentials ? params.arguments.user : params.arguments.endevorUser;
|
|
172
|
+
const endevorPassword = reuseMatCredentials ? params.arguments.password : params.arguments.endevorPassword;
|
|
173
|
+
if (!endevorUser || !endevorPassword) {
|
|
174
|
+
const exception = {
|
|
175
|
+
name: "HistogramException",
|
|
176
|
+
header: "Endevor Credentials Missing",
|
|
177
|
+
message: "The --listing option requires Endevor Web Services credentials. Provide " +
|
|
178
|
+
"--endevor-user and --endevor-password (or the ZOWE_OPT_ENDEVOR_USER/" +
|
|
179
|
+
"ZOWE_OPT_ENDEVOR_PASSWORD environment variables), or specify " +
|
|
180
|
+
"--endevor-reuse-mat-credentials to explicitly reuse your MAT profile credentials."
|
|
181
|
+
};
|
|
182
|
+
throw exception;
|
|
183
|
+
}
|
|
184
|
+
const request = this.Helper.constructRequestUrl(jsonFootprint, (_a = params.arguments.endevorBasePath) !== null && _a !== void 0 ? _a : ""); // Construct the REST API request URL
|
|
279
185
|
let response;
|
|
280
186
|
let session;
|
|
281
187
|
let headers;
|
|
282
188
|
// Create a session for making the API call with authentication
|
|
283
189
|
try {
|
|
284
|
-
session = this.Helper.createSession(
|
|
190
|
+
session = this.Helper.createSession(endevorHost, endevorPort, endevorUser, endevorPassword, params.arguments.endevorRejectUnauthorized);
|
|
285
191
|
}
|
|
286
192
|
catch (error) {
|
|
287
193
|
const exception = {
|
|
@@ -295,6 +201,8 @@ class HistogramHandler extends AbstractAnalyzeHandler_1.default {
|
|
|
295
201
|
try {
|
|
296
202
|
// Prepare headers with the authorization information
|
|
297
203
|
headers = [{ Authorization: session.ISession.base64EncodedAuth }];
|
|
204
|
+
// Enable with ZOWE_APP_LOG_LEVEL=DEBUG; deliberately excludes headers.
|
|
205
|
+
imperative_1.Logger.getAppLogger().debug(`[Endevor listing] GET ${session.ISession.protocol}://${session.ISession.hostname}:${session.ISession.port}${request}`);
|
|
298
206
|
response = yield imperative_1.RestClient.getExpectString(session, request, headers);
|
|
299
207
|
}
|
|
300
208
|
catch (error) {
|
|
@@ -302,7 +210,8 @@ class HistogramHandler extends AbstractAnalyzeHandler_1.default {
|
|
|
302
210
|
const exception = {
|
|
303
211
|
name: "HistogramException",
|
|
304
212
|
header: endconerror,
|
|
305
|
-
message: "Cannot download the listing file from Endevor: \n" +
|
|
213
|
+
message: "Cannot download the listing file from Endevor: \n" +
|
|
214
|
+
this.Helper.describeConnectionFailure(error)
|
|
306
215
|
};
|
|
307
216
|
throw exception;
|
|
308
217
|
}
|