@broadcom/mat-analyze-for-zowe-cli 3.1.0 → 4.0.1
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 +11 -2
- package/LICENSE +15 -18
- package/README.md +7 -142
- package/lib/api/MATRest.d.ts +2 -2
- package/lib/api/MATRest.js +68 -31
- package/lib/api/error/HistogramError.js +17 -19
- package/lib/api/error/HttpError.d.ts +9 -0
- package/lib/api/error/HttpError.js +36 -0
- package/lib/api/request/ICreateProfile.js +17 -19
- package/lib/api/request/ICreateProfileRequest.js +17 -19
- package/lib/api/request/IInvokeProfile.js +17 -19
- package/lib/api/request/IInvokeProfileRequest.js +17 -19
- package/lib/api/response/IAdabas.js +17 -19
- package/lib/api/response/IAnalysis.js +17 -19
- package/lib/api/response/IAuth.js +17 -19
- package/lib/api/response/ICallStack.js +17 -19
- package/lib/api/response/ICallerid.js +17 -19
- package/lib/api/response/ICicstat.js +17 -19
- package/lib/api/response/ICodeview.js +17 -19
- package/lib/api/response/ICsect.js +17 -19
- package/lib/api/response/IDB2View.js +17 -19
- package/lib/api/response/IDML.js +17 -19
- package/lib/api/response/IDelayLocations.js +17 -19
- package/lib/api/response/IDelayviews.js +17 -19
- package/lib/api/response/IHistogram.js +17 -19
- package/lib/api/response/IHistory.js +17 -19
- package/lib/api/response/IIDMSModule.js +17 -19
- package/lib/api/response/IIDMSModuleDetail.js +17 -19
- package/lib/api/response/IIDMSTask.js +17 -19
- package/lib/api/response/IIMSSSAView.js +17 -19
- package/lib/api/response/IIMSStatement.js +17 -19
- package/lib/api/response/IIMSView.js +17 -19
- package/lib/api/response/IIMSViewDBDName.js +17 -19
- package/lib/api/response/IIMSViewPSBName.js +17 -19
- package/lib/api/response/IIMSViewRegion.js +17 -19
- package/lib/api/response/IMonitorList.js +17 -19
- package/lib/api/response/IOverview.js +17 -19
- package/lib/api/response/IProfileList.d.ts +1 -1
- package/lib/api/response/IProfileList.js +17 -19
- package/lib/api/response/IResponse.js +17 -19
- package/lib/api/response/ITranview.js +17 -19
- package/lib/cli/monitor/Monitor.definition.js +17 -19
- package/lib/cli/monitor/adabas/Adabas.definition.js +17 -19
- package/lib/cli/monitor/adabas/Adabas.handler.js +17 -19
- package/lib/cli/monitor/codeview/Codeview.definition.js +17 -19
- package/lib/cli/monitor/codeview/callerid/Callerid.definition.js +17 -19
- package/lib/cli/monitor/codeview/callerid/Callerid.handler.js +17 -19
- package/lib/cli/monitor/codeview/csect/Csect.definition.js +17 -19
- package/lib/cli/monitor/codeview/csect/Csect.handler.js +17 -19
- package/lib/cli/monitor/codeview/histogram/Histogram.definition.js +17 -19
- package/lib/cli/monitor/codeview/histogram/csect/HistogramCsect.definition.js +17 -19
- package/lib/cli/monitor/codeview/histogram/csect/HistogramCsect.handler.d.ts +1 -0
- package/lib/cli/monitor/codeview/histogram/csect/HistogramCsect.handler.js +35 -37
- package/lib/cli/monitor/codeview/histogram/ideal/HistogramIdeal.definition.js +17 -19
- package/lib/cli/monitor/codeview/histogram/ideal/HistogramIdeal.handler.js +17 -19
- package/lib/cli/monitor/codeview/histogram/natural/HistogramNatural.definition.js +17 -19
- package/lib/cli/monitor/codeview/histogram/natural/HistogramNatural.handler.js +17 -19
- package/lib/cli/monitor/codeview/ideal/Ideal.definition.js +17 -19
- package/lib/cli/monitor/codeview/ideal/Ideal.handler.js +17 -19
- package/lib/cli/monitor/codeview/module/Module.definition.js +17 -19
- package/lib/cli/monitor/codeview/module/Module.handler.js +17 -19
- package/lib/cli/monitor/codeview/natural/Natural.definition.js +17 -19
- package/lib/cli/monitor/codeview/natural/Natural.handler.js +17 -19
- package/lib/cli/monitor/db2/DB2.definition.js +17 -19
- package/lib/cli/monitor/db2/db2view/DB2View.definition.js +17 -19
- package/lib/cli/monitor/db2/db2view/DB2View.handler.js +17 -19
- package/lib/cli/monitor/db2/sqlview/SQLView.definition.js +17 -19
- package/lib/cli/monitor/db2/sqlview/SQLView.handler.js +17 -19
- package/lib/cli/monitor/delayview/Delayview.definition.js +17 -19
- package/lib/cli/monitor/delayview/address/Address.definition.js +17 -19
- package/lib/cli/monitor/delayview/address/Address.handler.js +17 -19
- package/lib/cli/monitor/delayview/delay/Delay.definition.js +17 -19
- package/lib/cli/monitor/delayview/delay/Delay.handler.js +17 -19
- package/lib/cli/monitor/history/History.definition.js +17 -19
- package/lib/cli/monitor/history/History.handler.js +18 -20
- package/lib/cli/monitor/idms/IDMS.definition.js +17 -19
- package/lib/cli/monitor/idms/dml/DML.definition.js +17 -19
- package/lib/cli/monitor/idms/dml/DML.handler.js +17 -19
- package/lib/cli/monitor/idms/module/IDMSModule.definition.js +17 -19
- package/lib/cli/monitor/idms/module/IDMSModule.handler.js +17 -19
- package/lib/cli/monitor/idms/task/IDMSTask.definition.js +17 -19
- package/lib/cli/monitor/idms/task/IDMSTask.handler.js +17 -19
- package/lib/cli/monitor/ims/IMS.definition.js +17 -19
- package/lib/cli/monitor/ims/dbdname/DBDName.definition.js +17 -19
- package/lib/cli/monitor/ims/dbdname/DBDName.handler.js +17 -19
- package/lib/cli/monitor/ims/imsview/IMSView.definition.js +17 -19
- package/lib/cli/monitor/ims/imsview/IMSView.handler.js +17 -19
- package/lib/cli/monitor/ims/psbname/PSBName.definition.js +17 -19
- package/lib/cli/monitor/ims/psbname/PSBName.handler.js +17 -19
- package/lib/cli/monitor/ims/region/Region.definition.js +17 -19
- package/lib/cli/monitor/ims/region/Region.handler.js +17 -19
- package/lib/cli/monitor/ims/ssa/SSA.definition.js +17 -19
- package/lib/cli/monitor/ims/ssa/SSA.handler.js +17 -19
- package/lib/cli/monitor/ims/statement/Statement.definition.js +17 -19
- package/lib/cli/monitor/ims/statement/Statement.handler.js +17 -19
- package/lib/cli/monitor/overview/Overview.definition.js +17 -19
- package/lib/cli/monitor/overview/Overview.handler.js +17 -19
- package/lib/cli/monitor/tranview/Tranview.definition.js +17 -19
- package/lib/cli/monitor/tranview/all/All.definition.js +17 -19
- package/lib/cli/monitor/tranview/all/All.handler.js +17 -19
- package/lib/cli/monitor/tranview/callerid/Callerid.definition.js +17 -19
- package/lib/cli/monitor/tranview/callerid/Callerid.handler.js +17 -19
- package/lib/cli/monitor/tranview/callstack/CallStack.definition.js +17 -19
- package/lib/cli/monitor/tranview/callstack/CallStack.handler.js +17 -19
- package/lib/cli/monitor/tranview/csect/CsectDetail.definition.js +17 -19
- package/lib/cli/monitor/tranview/csect/CsectDetail.handler.js +17 -19
- package/lib/cli/monitor/tranview/delay/DelayDetail.definition.js +17 -19
- package/lib/cli/monitor/tranview/delay/DelayDetail.handler.js +17 -19
- package/lib/cli/monitor/tranview/module/Module.definition.js +17 -19
- package/lib/cli/monitor/tranview/module/Module.handler.js +17 -19
- package/lib/cli/monitor/tranview/stat/Cicstat.definition.js +17 -19
- package/lib/cli/monitor/tranview/stat/Cicstat.handler.js +17 -19
- package/lib/cli/profile/Profile.definition.js +17 -19
- package/lib/cli/profile/create/CreateProfile.definition.js +17 -19
- package/lib/cli/profile/create/CreateProfile.handler.js +17 -19
- package/lib/cli/profile/invoke/InvokeProfile.definition.js +17 -19
- package/lib/cli/profile/invoke/InvokeProfile.handler.js +17 -19
- package/lib/cli/profile/listprofile/ListProfile.definition.js +17 -19
- package/lib/cli/profile/listprofile/ListProfile.handler.js +18 -20
- package/lib/cli/session/MATSession.js +17 -19
- package/lib/config/config.js +17 -19
- package/lib/handlers/AbstractAnalyzeHandler.js +17 -19
- package/lib/handlers/AbstractGetHandler.js +17 -19
- package/lib/handlers/AbstractObjectDisplayHandler.js +17 -19
- package/lib/handlers/AbstractPostHandler.js +17 -19
- package/lib/handlers/AbstractProfileActionHandler.js +17 -19
- package/lib/handlers/AbstractRestHandler.d.ts +9 -0
- package/lib/handlers/AbstractRestHandler.js +133 -84
- package/lib/handlers/AbstractTableDisplayHandler.js +17 -19
- package/lib/healthCheck.Handler.d.ts +5 -36
- package/lib/healthCheck.Handler.js +31 -115
- package/lib/imperative.js +17 -19
- package/lib/index.js +17 -19
- package/package.json +29 -28
- package/lib/api/response/IListProfile.d.ts +0 -4
- package/lib/api/response/IListProfile.js +0 -25
package/CHANGELOG.md
CHANGED
|
@@ -2,8 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented in this file.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
## `4.0.1` - 2026-03-25
|
|
6
|
+
### Bug Fix
|
|
7
|
+
- Resolved an issue where histogram listings were not displayed in responses.
|
|
8
|
+
|
|
9
|
+
## `4.0.0` - 2026-02-11
|
|
10
|
+
### Added
|
|
11
|
+
- The MAT plug-in for Zowe CLI v3 has been updated to support the MAT REST API SpringBoot v3.
|
|
12
|
+
(`/matapi/api/v3`, `/api/v3`).
|
|
13
|
+
|
|
14
|
+
### Bug Fix
|
|
15
|
+
- Fixed issue with displaying numeric values in responses.
|
|
7
16
|
|
|
8
17
|
## `3.1.0` - 2025-03-26
|
|
9
18
|
### Added
|
package/LICENSE
CHANGED
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
**************************************************************************************
|
|
2
|
+
Copyright © 2025 BROADCOM Inc and/or its subsidiaries.
|
|
3
3
|
|
|
4
|
-
This software and all information contained therein is
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
reproductions must be marked with this language.
|
|
4
|
+
This software and all information contained therein is confidential and
|
|
5
|
+
proprietary and shall not be duplicated, used, disclosed or disseminated in any
|
|
6
|
+
way except as authorized by the applicable license agreement, without the
|
|
7
|
+
express written permission of Broadcom. All authorized reproductions must be marked
|
|
8
|
+
with this language.
|
|
10
9
|
|
|
11
|
-
EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
|
|
20
|
-
EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
10
|
+
EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO THE EXTENT PERMITTED
|
|
11
|
+
BY APPLICABLE LAW, BROADCOM PROVIDES THIS SOFTWARE WITHOUT WARRANTY OF ANY KIND,
|
|
12
|
+
INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
|
|
13
|
+
FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM BE LIABLE TO THE END USER
|
|
14
|
+
OR ANY THIRD PARTY FOR ANY LOSS OR DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF
|
|
15
|
+
THIS SOFTWARE, INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS INTERRUPTION,
|
|
16
|
+
GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
17
|
+
**************************************************************************************
|
package/README.md
CHANGED
|
@@ -75,8 +75,9 @@ You can install the MAT Analyze Plug-in for Zowe CLI from the Zowe Package.
|
|
|
75
75
|
|
|
76
76
|
Before starting the installation of the MAT Analyze Plug-in for Zowe CLI, verify that you have:
|
|
77
77
|
|
|
78
|
-
- Zowe CLI installed.
|
|
78
|
+
- Zowe version 3 (Zowe CLI version 8.x) is installed.
|
|
79
79
|
- MAT database and the REST API installed, configured, and running.
|
|
80
|
+
> **Note:** To use the updated CLI commands, you must first upgrade the MAT REST API to the latest version by applying MAT PTF with the latest REST API updates. This applies to all updated and new commands in this release.
|
|
80
81
|
- (Optional) To use the automated listing registration and retrieval option through Endevor® footprints, install and configure the Endevor® Web Services and specify the Endevor® web server details in the MAT database configuration.
|
|
81
82
|
|
|
82
83
|
## Install the MAT Analyze Plug-in for Zowe CLI From Packages
|
|
@@ -336,10 +337,6 @@ Values: a comma separated list of up to 3 values is allowed, max. 64 characters
|
|
|
336
337
|
`--schedule` _(string)_
|
|
337
338
|
Specifies the name of the schedule that you want to apply to the monitor profile (maximum 8 characters).
|
|
338
339
|
|
|
339
|
-
**Profile Options**
|
|
340
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
341
|
-
Specifies the name of a (mat) profile to load for this command execution.
|
|
342
|
-
|
|
343
340
|
**Examples**
|
|
344
341
|
|
|
345
342
|
- Create the PROFILE1 monitor profile to measure job JOB1 that runs on the AA31 system:
|
|
@@ -399,10 +396,6 @@ Values: maximum 12 characters, numbers only (0-9). If you use this parameter for
|
|
|
399
396
|
`--listing` _(boolean)_
|
|
400
397
|
Activates automated registration of Cobol, C/C++, and Assembler program listings through Endevor® footprints. After completion of the measurement that you invoke with the '--listing' parameter, the MAT Analyze plug-in for Zowe CLI automatically retrieves the program listing that is associated with the monitored job and registers the listing with 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.
|
|
401
398
|
|
|
402
|
-
**Profile Options**
|
|
403
|
-
`--mat-profile` | `--mat-p` (string)
|
|
404
|
-
The name of a (mat) profile to load for this command execution.
|
|
405
|
-
|
|
406
399
|
**Examples**
|
|
407
400
|
|
|
408
401
|
- Invoke the PROFILE1 monitor profile to measure job JOB1 that runs on the AA31 system:
|
|
@@ -439,10 +432,6 @@ Get the list of available monitor profiles.
|
|
|
439
432
|
$ zowe mat profile list [options]
|
|
440
433
|
```
|
|
441
434
|
|
|
442
|
-
**Profile Options**
|
|
443
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
444
|
-
The name of a (mat) profile to load for this command execution.
|
|
445
|
-
|
|
446
435
|
## MONITOR
|
|
447
436
|
|
|
448
437
|
The commands from the MONITOR group enable you to get monitor history and measurement analysis data from MAT.
|
|
@@ -469,10 +458,6 @@ $ zowe mat monitor history [options]
|
|
|
469
458
|
`--profile` _(string)_
|
|
470
459
|
Specifies the name of the profile.
|
|
471
460
|
|
|
472
|
-
**Profile Options**
|
|
473
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
474
|
-
The name of a (mat) profile to load for this command execution.
|
|
475
|
-
|
|
476
461
|
**Examples**
|
|
477
462
|
|
|
478
463
|
- Get the list of all available measurements that are stored in the history of the monitor profile TESTPROF:
|
|
@@ -504,10 +489,6 @@ Specifies the name of the profile that you want to analyze. When you specify the
|
|
|
504
489
|
`--mon_num` _(number)_
|
|
505
490
|
Specifies the unique monitor number of the measurement.
|
|
506
491
|
|
|
507
|
-
**Profile Options**
|
|
508
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
509
|
-
The name of a (mat) profile to load for this command execution.
|
|
510
|
-
|
|
511
492
|
**Examples**
|
|
512
493
|
|
|
513
494
|
- Get the measurement overview details for monitor number 5:
|
|
@@ -559,10 +540,6 @@ Specifies the name of the profile that you want to analyze. When you specify the
|
|
|
559
540
|
`--mon_num` _(number)_
|
|
560
541
|
Specifies the unique monitor number of the measurement.
|
|
561
542
|
|
|
562
|
-
**Profile Options**
|
|
563
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
564
|
-
The name of a (mat) profile to load for this command execution.
|
|
565
|
-
|
|
566
543
|
**Examples**
|
|
567
544
|
|
|
568
545
|
- Get the DelayView measurement details for monitor number 5:
|
|
@@ -601,33 +578,29 @@ Specifies the name of the profile that you want to analyze. When you specify the
|
|
|
601
578
|
Specifies the unique monitor number of the measurement.
|
|
602
579
|
|
|
603
580
|
`--majorcategory` _(string)_
|
|
604
|
-
Specifies the major delay category name identified for the analysis item (e.g.
|
|
581
|
+
Specifies the major delay category name identified for the analysis item (e.g. `--majorcategory "PC routine delay"`). You get the majorcategory value from the 'delayview delay' command response.
|
|
605
582
|
|
|
606
583
|
`--minorcategory` _(string)_
|
|
607
|
-
Specifies the minor delay category name identified for the analysis item (e.g.
|
|
608
|
-
|
|
609
|
-
**Profile Options**
|
|
610
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
611
|
-
The name of a (mat) profile to load for this command execution.
|
|
584
|
+
Specifies the minor delay category name identified for the analysis item (e.g. `---minorcategory "PC CALL"`). You get the minorcategory value from the 'delayview delay' command response.
|
|
612
585
|
|
|
613
586
|
**Examples**
|
|
614
587
|
|
|
615
588
|
- Get the delay address details for majorcategory "PC routine delay" and minorcategory "PC CALL" for monitor number 5:
|
|
616
589
|
|
|
617
590
|
```
|
|
618
|
-
$ zowe mat monitor delayview address --mon_num 5
|
|
591
|
+
$ zowe mat monitor delayview address --mon_num 5 --majorcategory "PC routine delay" --minorcategory "PC CALL"
|
|
619
592
|
```
|
|
620
593
|
|
|
621
594
|
- Get the delay address details for majorcategory "PC routine delay" and minorcategory "PC CALL" for the latest monitor in the TESTPROF profile:
|
|
622
595
|
|
|
623
596
|
```
|
|
624
|
-
$ zowe mat monitor delayview address --profile TESTPROF
|
|
597
|
+
$ zowe mat monitor delayview address --profile TESTPROF --majorcategory "PC routine delay" --minorcategory "PC CALL"
|
|
625
598
|
```
|
|
626
599
|
|
|
627
600
|
- Get the delay address details for majorcategory "PC routine delay" and minorcategory "PC CALL" for monitor number 5, with the specific MAT profile details defined:
|
|
628
601
|
|
|
629
602
|
```
|
|
630
|
-
$ zowe mat monitor delayview address --mon_num 5
|
|
603
|
+
$ zowe mat monitor delayview address --mon_num 5 --majorcategory "PC routine delay" --minorcategory "PC CALL" --host "example.com" --port 12345 --user johndoe --password qwerty
|
|
631
604
|
```
|
|
632
605
|
|
|
633
606
|
### adabas | ada
|
|
@@ -647,10 +620,6 @@ Specifies the name of the profile that you want to analyze. When you specify the
|
|
|
647
620
|
`--mon_num` _(number)_
|
|
648
621
|
Specifies the unique monitor number of the measurement.
|
|
649
622
|
|
|
650
|
-
**Profile Options**
|
|
651
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
652
|
-
The name of a (mat) profile to load for this command execution.
|
|
653
|
-
|
|
654
623
|
**Examples**
|
|
655
624
|
|
|
656
625
|
- Get the Adabas measurement details for monitor number 5:
|
|
@@ -700,10 +669,6 @@ Specifies the name of the profile that you want to analyze. When you specify the
|
|
|
700
669
|
`--mon_num` _(number)_
|
|
701
670
|
Specifies the unique monitor number of the measurement.
|
|
702
671
|
|
|
703
|
-
**Profile Options**
|
|
704
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
705
|
-
The name of a (mat) profile to load for this command execution.
|
|
706
|
-
|
|
707
672
|
**Examples**
|
|
708
673
|
|
|
709
674
|
- Get the CodeView measurement details in Module mode for monitor number 5:
|
|
@@ -741,10 +706,6 @@ Specifies the name of the profile that you want to analyze. When you specify the
|
|
|
741
706
|
`--mon_num` _(number)_
|
|
742
707
|
Specifies the unique monitor number of the measurement.
|
|
743
708
|
|
|
744
|
-
**Profile Options**
|
|
745
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
746
|
-
The name of a (mat) profile to load for this command execution.
|
|
747
|
-
|
|
748
709
|
**Examples**
|
|
749
710
|
|
|
750
711
|
- Get the CodeView measurement details in CSECT mode for monitor number 5:
|
|
@@ -782,10 +743,6 @@ Specifies the name of the profile that you want to analyze. When you specify the
|
|
|
782
743
|
`--mon_num` _(number)_
|
|
783
744
|
Specifies the unique monitor number of the measurement.
|
|
784
745
|
|
|
785
|
-
**Profile Options**
|
|
786
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
787
|
-
The name of a (mat) profile to load for this command execution.
|
|
788
|
-
|
|
789
746
|
**Examples**
|
|
790
747
|
|
|
791
748
|
- Get the CodeView measurement details in Natural mode for monitor number 5:
|
|
@@ -826,10 +783,6 @@ Specifies the name of the profile that you want to analyze. When you specify the
|
|
|
826
783
|
`--mon_num` _(number)_
|
|
827
784
|
Specifies the unique monitor number of the measurement.
|
|
828
785
|
|
|
829
|
-
**Profile Options**
|
|
830
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
831
|
-
The name of a (mat) profile to load for this command execution.
|
|
832
|
-
|
|
833
786
|
**Examples**
|
|
834
787
|
|
|
835
788
|
- Get the CodeView measurement details in Ideal mode for monitor number 5:
|
|
@@ -873,10 +826,6 @@ Specifies the module name that you request the CallerID details for. You get the
|
|
|
873
826
|
`--csect` _(string)_
|
|
874
827
|
Specifies the CSECT name that you request the CallerID details data for. You get the csect value from the 'codeview csect' command response. The CSECT name can be empty (e.g., --csect "TUNCOB01" or --csect '""').
|
|
875
828
|
|
|
876
|
-
**Profile Options**
|
|
877
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
878
|
-
The name of a (mat) profile to load for this command execution.
|
|
879
|
-
|
|
880
829
|
**Examples**
|
|
881
830
|
|
|
882
831
|
- Get the CallerID details for monitor number 5, CSECT name TUNCOB01, and module name RUNCOB:
|
|
@@ -940,10 +889,6 @@ Specifies the histogram group size parameter that defines the resolution of the
|
|
|
940
889
|
`--listing` _(boolean)_
|
|
941
890
|
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 Endevor® Web Services and have the program listing for the specific measurement registered with MAT. The source code listing is retrieved through 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.
|
|
942
891
|
|
|
943
|
-
**Profile Options**
|
|
944
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
945
|
-
The name of a (mat) profile to load for this command execution.
|
|
946
|
-
|
|
947
892
|
**Examples**
|
|
948
893
|
|
|
949
894
|
- Get the Histogram measurement details in CSECT mode with the group size defaulting to 4 bytes for monitor
|
|
@@ -1005,10 +950,6 @@ Specifies the object version that you request the Histogram data for. You get th
|
|
|
1005
950
|
Specifies the source version that you request the Histogram data for. You get the source version from the
|
|
1006
951
|
'codeview ideal' command response. This is mandatory option.
|
|
1007
952
|
|
|
1008
|
-
**Profile Options**
|
|
1009
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
1010
|
-
The name of a (mat) profile to load for this command execution.
|
|
1011
|
-
|
|
1012
953
|
**Examples**
|
|
1013
954
|
|
|
1014
955
|
- Get the Histogram data in Ideal mode for monitor number 5, system ID '$ID', program name 'BAGTEST2', object version 'PRD', source version '001':
|
|
@@ -1055,10 +996,6 @@ Specifies the library name that you request the Histogram data for. You get the
|
|
|
1055
996
|
Specifies the routine name that you request the Histogram data for. You get the routine name from the
|
|
1056
997
|
'codeview natural' command response. This is mandatory option.
|
|
1057
998
|
|
|
1058
|
-
**Profile Options**
|
|
1059
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
1060
|
-
The name of a (mat) profile to load for this command execution.
|
|
1061
|
-
|
|
1062
999
|
**Examples**
|
|
1063
1000
|
|
|
1064
1001
|
- Get the Histogram data in Natural mode for monitor number 5, library name 'CATAPPS', routine name 'IFEX1R':
|
|
@@ -1112,10 +1049,6 @@ Specifies the unique monitor number of the measurement.
|
|
|
1112
1049
|
`--top` _(number)_
|
|
1113
1050
|
Specifies the maximum number of the top consuming DB2 statements that you want to obtain in the response (e.g., --top 5). If you specify --top 0, you get the list of of all DB2 statements that MAT has detected during the measurement. The --top parameter is optional. Values: numbers between 0 and 300.
|
|
1114
1051
|
|
|
1115
|
-
**Profile Options**
|
|
1116
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
1117
|
-
The name of a (mat) profile to load for this command execution.
|
|
1118
|
-
|
|
1119
1052
|
**Examples**
|
|
1120
1053
|
|
|
1121
1054
|
- Get the DB2View details for monitor number 5:
|
|
@@ -1162,10 +1095,6 @@ Specifies the statement number that you request the SQL details for (e.g., `--st
|
|
|
1162
1095
|
`--totalsamps` _(number)_
|
|
1163
1096
|
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.
|
|
1164
1097
|
|
|
1165
|
-
**Profile Options**
|
|
1166
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
1167
|
-
The name of a (mat) profile to load for this command execution.
|
|
1168
|
-
|
|
1169
1098
|
**Examples**
|
|
1170
1099
|
|
|
1171
1100
|
- Get the DB2 SQL statement details for monitor number 5 for DBRM CUPBTSDY, statement number 464, with total number of taken samples 1:
|
|
@@ -1215,10 +1144,6 @@ Specifies the name of the profile that you want to analyze. When you specify the
|
|
|
1215
1144
|
`--mon_num` _(number)_
|
|
1216
1145
|
Specifies the unique monitor number of the measurement.
|
|
1217
1146
|
|
|
1218
|
-
**Profile Options**
|
|
1219
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
1220
|
-
The name of a (mat) profile to load for this command execution.
|
|
1221
|
-
|
|
1222
1147
|
**Examples**
|
|
1223
1148
|
|
|
1224
1149
|
- Get the dml measurement details for the latest monitor in the TESTPROF profile:
|
|
@@ -1262,10 +1187,6 @@ Specifies the identifier of the Run Unit that you request the details for.
|
|
|
1262
1187
|
`--linecmd` _(string)_
|
|
1263
1188
|
Specifies the line command to be used for the row data.
|
|
1264
1189
|
|
|
1265
|
-
**Profile Options**
|
|
1266
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
1267
|
-
The name of a (mat) profile to load for this command execution.
|
|
1268
|
-
|
|
1269
1190
|
**Examples**
|
|
1270
1191
|
|
|
1271
1192
|
- Get the idms details of the measurement for the latest monitor in the profile:
|
|
@@ -1303,10 +1224,6 @@ Specifies the name of the profile that you want to analyze. When you specify the
|
|
|
1303
1224
|
`--mon_num` _(number)_
|
|
1304
1225
|
Specifies the unique monitor number of the measurement.
|
|
1305
1226
|
|
|
1306
|
-
**Profile Options**
|
|
1307
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
1308
|
-
The name of a (mat) profile to load for this command execution.
|
|
1309
|
-
|
|
1310
1227
|
**Examples**
|
|
1311
1228
|
|
|
1312
1229
|
Get the idms measurement details in Task mode for monitor number 5:
|
|
@@ -1350,10 +1267,6 @@ Specifies the name of the profile that you want to analyze. When you specify the
|
|
|
1350
1267
|
`--mon_num` _(number)_
|
|
1351
1268
|
Specifies the unique monitor number of the measurement.
|
|
1352
1269
|
|
|
1353
|
-
**Profile Options**
|
|
1354
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
1355
|
-
The name of a (mat) profile to load for this command execution.
|
|
1356
|
-
|
|
1357
1270
|
**Examples**
|
|
1358
1271
|
|
|
1359
1272
|
- Get the IMS View details for monitor number 5:
|
|
@@ -1385,10 +1298,6 @@ Specifies the name of the profile that you want to analyze. When you specify the
|
|
|
1385
1298
|
`--mon_num` _(number)_
|
|
1386
1299
|
Specifies the unique monitor number of the measurement.
|
|
1387
1300
|
|
|
1388
|
-
**Profile Options**
|
|
1389
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
1390
|
-
The name of a (mat) profile to load for this command execution.
|
|
1391
|
-
|
|
1392
1301
|
**Examples**
|
|
1393
1302
|
|
|
1394
1303
|
- Get the IMS View DBDName details for monitor number 5:
|
|
@@ -1420,10 +1329,6 @@ Specifies the name of the profile that you want to analyze. When you specify the
|
|
|
1420
1329
|
`--mon_num` _(number)_
|
|
1421
1330
|
Specifies the unique monitor number of the measurement.
|
|
1422
1331
|
|
|
1423
|
-
**Profile Options**
|
|
1424
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
1425
|
-
The name of a (mat) profile to load for this command execution.
|
|
1426
|
-
|
|
1427
1332
|
**Examples**
|
|
1428
1333
|
|
|
1429
1334
|
- Get the IMS View PSBName details for monitor number 5:
|
|
@@ -1455,10 +1360,6 @@ Specifies the name of the profile that you want to analyze. When you specify the
|
|
|
1455
1360
|
`--mon_num` _(number)_
|
|
1456
1361
|
Specifies the unique monitor number of the measurement.
|
|
1457
1362
|
|
|
1458
|
-
**Profile Options**
|
|
1459
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
1460
|
-
The name of a (mat) profile to load for this command execution.
|
|
1461
|
-
|
|
1462
1363
|
**Examples**
|
|
1463
1364
|
|
|
1464
1365
|
- Get the IMS View Region details for monitor number 5:
|
|
@@ -1499,10 +1400,6 @@ Specifies the database details for the specified monitor number or profile name.
|
|
|
1499
1400
|
`--psbname` _(string)_
|
|
1500
1401
|
Specifies the PSB name details for the specified monitor number or profile name.
|
|
1501
1402
|
|
|
1502
|
-
**Profile Options**
|
|
1503
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
1504
|
-
The name of a (mat) profile to load for this command execution.
|
|
1505
|
-
|
|
1506
1403
|
**Examples**
|
|
1507
1404
|
|
|
1508
1405
|
- Get the IMS View SSA details for monitor number 5 with the specific MAT profile details defined:
|
|
@@ -1537,10 +1434,6 @@ Specifies the unique monitor number of the measurement.
|
|
|
1537
1434
|
`--trancode` _(string)_
|
|
1538
1435
|
Specifies the transaction name for specified monitor number or profile name.
|
|
1539
1436
|
|
|
1540
|
-
**Profile Options**
|
|
1541
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
1542
|
-
The name of a (mat) profile to load for this command execution.
|
|
1543
|
-
|
|
1544
1437
|
**Examples**
|
|
1545
1438
|
|
|
1546
1439
|
- Get the IMS View Statement details for monitor number 5 with trancode:
|
|
@@ -1587,10 +1480,6 @@ Specifies the unique monitor number of the measurement.
|
|
|
1587
1480
|
`--tran` _(string)_
|
|
1588
1481
|
Specifies the transaction activity. Tran = N/A is displayed for the activity that could not be attributed to a particular transaction in the address space.
|
|
1589
1482
|
|
|
1590
|
-
**Profile Options**
|
|
1591
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
1592
|
-
The name of a (mat) profile to load for this command execution.
|
|
1593
|
-
|
|
1594
1483
|
**Examples**
|
|
1595
1484
|
|
|
1596
1485
|
- Get the TranView measurement details for monitor number 5:
|
|
@@ -1625,10 +1514,6 @@ Specifies the unique monitor number of the measurement.
|
|
|
1625
1514
|
`--tran` _(string)_
|
|
1626
1515
|
Specifies the transaction activity. Tran = N/A is displayed for the activity that could not be attributed to a particular transaction in the address space.
|
|
1627
1516
|
|
|
1628
|
-
**Profile Options**
|
|
1629
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
1630
|
-
The name of a (mat) profile to load for this command execution.
|
|
1631
|
-
|
|
1632
1517
|
**Examples**
|
|
1633
1518
|
|
|
1634
1519
|
- Get the idms details of the measurement for the latest monitor in the profile:
|
|
@@ -1669,10 +1554,6 @@ Specifies the unique monitor number of the measurement.
|
|
|
1669
1554
|
`--tran` _(string)_
|
|
1670
1555
|
Specifies the transaction activity. Tran = N/A is displayed for the activity that could not be attributed to a particular transaction in the address space.
|
|
1671
1556
|
|
|
1672
|
-
**Profile Options**
|
|
1673
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
1674
|
-
The name of a (mat) profile to load for this command execution.
|
|
1675
|
-
|
|
1676
1557
|
**Examples**
|
|
1677
1558
|
|
|
1678
1559
|
- Get the caller details for monitor number 5:
|
|
@@ -1707,10 +1588,6 @@ Specifies the unique monitor number of the measurement.
|
|
|
1707
1588
|
`--tran` _(string)_
|
|
1708
1589
|
Specifies the transaction activity. Tran = N/A is displayed for the activity that could not be attributed to a particular transaction in the address space.
|
|
1709
1590
|
|
|
1710
|
-
**Profile Options**
|
|
1711
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
1712
|
-
The name of a (mat) profile to load for this command execution.
|
|
1713
|
-
|
|
1714
1591
|
**Examples**
|
|
1715
1592
|
|
|
1716
1593
|
- Get the callstack details for monitor number 5:
|
|
@@ -1745,10 +1622,6 @@ Specifies the unique monitor number of the measurement.
|
|
|
1745
1622
|
`--tran` _(string)_
|
|
1746
1623
|
Specifies the transaction activity. Tran = N/A is displayed for the activity that could not be attributed to a particular transaction in the address space.
|
|
1747
1624
|
|
|
1748
|
-
**Profile Options**
|
|
1749
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
1750
|
-
The name of a (mat) profile to load for this command execution.
|
|
1751
|
-
|
|
1752
1625
|
**Examples**
|
|
1753
1626
|
|
|
1754
1627
|
- Get the CodeView details for transaction in CSECT mode for monitor number 5:
|
|
@@ -1789,10 +1662,6 @@ Specifies the unique monitor number of the measurement.
|
|
|
1789
1662
|
`--tran` _(string)_
|
|
1790
1663
|
Specifies the transaction activity. Tran = N/A is displayed for the activity that could not be attributed to a particular transaction in the address space.
|
|
1791
1664
|
|
|
1792
|
-
**Profile Options**
|
|
1793
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
1794
|
-
The name of a (mat) profile to load for this command execution.
|
|
1795
|
-
|
|
1796
1665
|
**Examples**
|
|
1797
1666
|
|
|
1798
1667
|
- Get the DelayView measurement details of a transaction for monitor number 5:
|
|
@@ -1837,10 +1706,6 @@ Specifies the transaction activity. Tran = N/A is displayed for the activity tha
|
|
|
1837
1706
|
Specifies the type of CICS Transaction.
|
|
1838
1707
|
Default value: DISP
|
|
1839
1708
|
|
|
1840
|
-
**Profile Options**
|
|
1841
|
-
`--mat-profile` | `--mat-p` _(string)_
|
|
1842
|
-
The name of a (mat) profile to load for this command execution.
|
|
1843
|
-
|
|
1844
1709
|
**Examples**
|
|
1845
1710
|
|
|
1846
1711
|
- Get the CICS statistic details for monitor number 5:
|
package/lib/api/MATRest.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { AbstractSession } from "@zowe/imperative";
|
|
|
2
2
|
import { IAuth } from "./response/IAuth";
|
|
3
3
|
import { IResponse } from "./response/IResponse";
|
|
4
4
|
export declare class MATRest {
|
|
5
|
-
static readonly REST_ENDPOINT = "/matapi/api/
|
|
6
|
-
static readonly REST_ENDPOINT_AML = "/api/
|
|
5
|
+
static readonly REST_ENDPOINT = "/matapi/api/v3";
|
|
6
|
+
static readonly REST_ENDPOINT_AML = "/api/v3";
|
|
7
7
|
static readonly PROFILES = "/profiles";
|
|
8
8
|
static readonly INVOKEURI = "/invoke";
|
|
9
9
|
static readonly JOBURI = "/job";
|
package/lib/api/MATRest.js
CHANGED
|
@@ -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); }); }
|
|
@@ -33,6 +31,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
33
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
32
|
exports.MATRest = void 0;
|
|
35
33
|
const imperative_1 = require("@zowe/imperative");
|
|
34
|
+
const HttpError_1 = require("./error/HttpError");
|
|
36
35
|
class MATRest {
|
|
37
36
|
// public static async GetAuth(session: AbstractSession, username: string, password: string, endpoint: string): Promise<IAuth> {
|
|
38
37
|
static GetAuth(session, endpoint) {
|
|
@@ -45,6 +44,7 @@ class MATRest {
|
|
|
45
44
|
// tslint:disable-next-line:max-line-length
|
|
46
45
|
static sendGetRequest(session, resource, headers, parameters) {
|
|
47
46
|
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
var _a, _b;
|
|
48
48
|
let appendix = "";
|
|
49
49
|
if (parameters !== undefined && parameters.size) {
|
|
50
50
|
appendix += "?";
|
|
@@ -59,14 +59,30 @@ class MATRest {
|
|
|
59
59
|
appendix += key + "=" + value + (int < parameters.size ? "&" : "");
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
// full response with HTTP status
|
|
63
|
+
const fullResponse = yield imperative_1.RestClient.getExpectFullResponse(session, {
|
|
64
|
+
resource: resource + appendix,
|
|
65
|
+
reqHeaders: headers !== null && headers !== void 0 ? headers : []
|
|
66
|
+
});
|
|
67
|
+
const code = (_a = fullResponse === null || fullResponse === void 0 ? void 0 : fullResponse.response) === null || _a === void 0 ? void 0 : _a.statusCode;
|
|
68
|
+
// stash code
|
|
69
|
+
session.__mat_httpStatusCode = code;
|
|
70
|
+
let response = (_b = fullResponse === null || fullResponse === void 0 ? void 0 : fullResponse.dataString) !== null && _b !== void 0 ? _b : "";
|
|
71
|
+
if (!response || response.trim() === "") {
|
|
72
|
+
if (code === 204) {
|
|
73
|
+
throw new HttpError_1.HttpError("No data is available for the measurement.", 204);
|
|
74
|
+
}
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
63
77
|
// Replaces number literals with string only for displaying purposes! - This is a limitation of the output formater that doesn't display zeroes
|
|
64
78
|
const matches = response.match(/"([a-zA-Z_]*)":([\d*\.]*\d+)/g);
|
|
65
|
-
matches
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
79
|
+
if (matches) {
|
|
80
|
+
matches.forEach((element) => {
|
|
81
|
+
const match = element.substring(element.indexOf(":") + 1);
|
|
82
|
+
const newElement = element.replace(match, "\"" + match + "\"");
|
|
83
|
+
response = response.replace(element, newElement);
|
|
84
|
+
});
|
|
85
|
+
}
|
|
70
86
|
const responseObj = JSON.parse(response);
|
|
71
87
|
return responseObj;
|
|
72
88
|
});
|
|
@@ -74,13 +90,25 @@ class MATRest {
|
|
|
74
90
|
// tslint:disable-next-line:max-line-length
|
|
75
91
|
static sendPostRequest(session, resource, headers, payload) {
|
|
76
92
|
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
-
|
|
78
|
-
|
|
93
|
+
var _a, _b;
|
|
94
|
+
const full = yield imperative_1.RestClient.postExpectFullResponse(session, {
|
|
95
|
+
resource,
|
|
96
|
+
reqHeaders: headers !== null && headers !== void 0 ? headers : [],
|
|
97
|
+
writeData: payload
|
|
98
|
+
});
|
|
99
|
+
// stash HTTP code for the handler
|
|
100
|
+
session.__mat_httpStatusCode = (_a = full === null || full === void 0 ? void 0 : full.response) === null || _a === void 0 ? void 0 : _a.statusCode;
|
|
101
|
+
const body = ((_b = full === null || full === void 0 ? void 0 : full.dataString) !== null && _b !== void 0 ? _b : "").trim();
|
|
102
|
+
if (body === "") {
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
return JSON.parse(body);
|
|
79
106
|
});
|
|
80
107
|
}
|
|
81
108
|
// tslint:disable-next-line:max-line-length
|
|
82
109
|
static sendPostRequestWithParm(session, resource, headers, parameters, payload) {
|
|
83
110
|
return __awaiter(this, void 0, void 0, function* () {
|
|
111
|
+
var _a, _b;
|
|
84
112
|
let appendix = "";
|
|
85
113
|
if (parameters !== undefined && parameters.size) {
|
|
86
114
|
appendix += "?";
|
|
@@ -92,14 +120,23 @@ class MATRest {
|
|
|
92
120
|
appendix += key + "=" + value + (int < parameters.size ? "&" : "");
|
|
93
121
|
}
|
|
94
122
|
}
|
|
95
|
-
const
|
|
96
|
-
|
|
123
|
+
const full = yield imperative_1.RestClient.postExpectFullResponse(session, {
|
|
124
|
+
resource: resource + appendix,
|
|
125
|
+
reqHeaders: headers !== null && headers !== void 0 ? headers : [],
|
|
126
|
+
writeData: payload
|
|
127
|
+
});
|
|
128
|
+
session.__mat_httpStatusCode = (_a = full === null || full === void 0 ? void 0 : full.response) === null || _a === void 0 ? void 0 : _a.statusCode;
|
|
129
|
+
const body = ((_b = full === null || full === void 0 ? void 0 : full.dataString) !== null && _b !== void 0 ? _b : "").trim();
|
|
130
|
+
if (body === "") {
|
|
131
|
+
return null;
|
|
132
|
+
}
|
|
133
|
+
return JSON.parse(body);
|
|
97
134
|
});
|
|
98
135
|
}
|
|
99
136
|
}
|
|
100
137
|
exports.MATRest = MATRest;
|
|
101
|
-
MATRest.REST_ENDPOINT = "/matapi/api/
|
|
102
|
-
MATRest.REST_ENDPOINT_AML = "/api/
|
|
138
|
+
MATRest.REST_ENDPOINT = "/matapi/api/v3";
|
|
139
|
+
MATRest.REST_ENDPOINT_AML = "/api/v3";
|
|
103
140
|
MATRest.PROFILES = "/profiles";
|
|
104
141
|
MATRest.INVOKEURI = "/invoke";
|
|
105
142
|
MATRest.JOBURI = "/job";
|
|
@@ -139,4 +176,4 @@ MATRest.ANALYSIS_IMSVIEW_DBDNAME = MATRest.ANALYSIS_IMSVIEW + "/dbdname";
|
|
|
139
176
|
MATRest.ANALYSIS_IMSVIEW_REGION = MATRest.ANALYSIS_IMSVIEW + "/region";
|
|
140
177
|
MATRest.ANALYSIS_IMSVIEW_PSBNAME_SSA = MATRest.ANALYSIS_IMSVIEW + "/psbname/ssa";
|
|
141
178
|
MATRest.TOKEN_OFFSET = 25;
|
|
142
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
179
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTUFUUmVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hcGkvTUFUUmVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0FtQkc7Ozs7Ozs7Ozs7OztBQUVILGlEQUErRDtBQUcvRCxpREFBOEM7QUFFOUMsTUFBYSxPQUFPO0lBMkNoQixnSUFBZ0k7SUFDekgsTUFBTSxDQUFPLE9BQU8sQ0FBQyxPQUF3QixFQUFFLFFBQWdCOztZQUNsRSxNQUFNLFFBQVEsR0FBRyxRQUFRLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQztZQUN6QyxNQUFNLFFBQVEsR0FBRyxNQUFNLElBQUksQ0FBQyxlQUFlLENBQVEsT0FBTyxFQUFFLFFBQVEsQ0FBQyxDQUFDO1lBQ3RFLE9BQU8sUUFBUSxDQUFDO1FBQ2hCLENBQUM7S0FBQTtJQUVMLDJDQUEyQztJQUNwQyxNQUFNLENBQU8sY0FBYyxDQUFzQixPQUF3QixFQ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