@broadcom/mat-analyze-for-zowe-cli 3.1.0 → 4.0.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/CHANGELOG.md CHANGED
@@ -2,8 +2,13 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
- > **Note:** To use the updated CLI commands, you must first upgrade the MAT REST API by following
6
- > the provided upgrade procedure. This applies to all updated and new commands in this release.
5
+ ## `4.0.0` - 2026-02-11
6
+ ### Added
7
+ - The MAT plug-in for Zowe CLI v3 has been updated to support the MAT REST API SpringBoot v3.
8
+ (`/matapi/api/v3`, `/api/v3`).
9
+
10
+ ### Bug Fix
11
+ - Fixed issue with displaying numeric values in responses.
7
12
 
8
13
  ## `3.1.0` - 2025-03-26
9
14
  ### Added
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. `–-majorcategory "PC routine delay"`). You get the majorcategory value from the 'delayview delay' command response.
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. `–-minorcategory "PC CALL"`). You get the minorcategory value from the 'delayview delay' command response.
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 –-majorcategory "PC routine delay" –-minorcategory "PC CALL"
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 –-majorcategory "PC routine delay" –-minorcategory "PC CALL"
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 –-majorcategory "PC routine delay" –-minorcategory "PC CALL" --host "example.com" --port 12345 --user johndoe --password qwerty
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:
@@ -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/v2";
6
- static readonly REST_ENDPOINT_AML = "/api/v2";
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";
@@ -33,6 +33,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
33
33
  Object.defineProperty(exports, "__esModule", { value: true });
34
34
  exports.MATRest = void 0;
35
35
  const imperative_1 = require("@zowe/imperative");
36
+ const HttpError_1 = require("./error/HttpError");
36
37
  class MATRest {
37
38
  // public static async GetAuth(session: AbstractSession, username: string, password: string, endpoint: string): Promise<IAuth> {
38
39
  static GetAuth(session, endpoint) {
@@ -45,6 +46,7 @@ class MATRest {
45
46
  // tslint:disable-next-line:max-line-length
46
47
  static sendGetRequest(session, resource, headers, parameters) {
47
48
  return __awaiter(this, void 0, void 0, function* () {
49
+ var _a, _b;
48
50
  let appendix = "";
49
51
  if (parameters !== undefined && parameters.size) {
50
52
  appendix += "?";
@@ -59,14 +61,30 @@ class MATRest {
59
61
  appendix += key + "=" + value + (int < parameters.size ? "&" : "");
60
62
  }
61
63
  }
62
- let response = yield imperative_1.RestClient.getExpectString(session, resource + appendix, headers);
64
+ // full response with HTTP status
65
+ const fullResponse = yield imperative_1.RestClient.getExpectFullResponse(session, {
66
+ resource: resource + appendix,
67
+ reqHeaders: headers !== null && headers !== void 0 ? headers : []
68
+ });
69
+ const code = (_a = fullResponse === null || fullResponse === void 0 ? void 0 : fullResponse.response) === null || _a === void 0 ? void 0 : _a.statusCode;
70
+ // stash code
71
+ session.__mat_httpStatusCode = code;
72
+ let response = (_b = fullResponse === null || fullResponse === void 0 ? void 0 : fullResponse.dataString) !== null && _b !== void 0 ? _b : "";
73
+ if (!response || response.trim() === "") {
74
+ if (code === 204) {
75
+ throw new HttpError_1.HttpError("No data is available for the measurement.", 204);
76
+ }
77
+ return null;
78
+ }
63
79
  // Replaces number literals with string only for displaying purposes! - This is a limitation of the output formater that doesn't display zeroes
64
80
  const matches = response.match(/"([a-zA-Z_]*)":([\d*\.]*\d+)/g);
65
- matches.forEach((element) => {
66
- const match = element.substring(element.indexOf(":") + 1);
67
- const newElement = element.replace(match, "\"" + match + "\"");
68
- response = response.replace(element, newElement);
69
- });
81
+ if (matches) {
82
+ matches.forEach((element) => {
83
+ const match = element.substring(element.indexOf(":") + 1);
84
+ const newElement = element.replace(match, "\"" + match + "\"");
85
+ response = response.replace(element, newElement);
86
+ });
87
+ }
70
88
  const responseObj = JSON.parse(response);
71
89
  return responseObj;
72
90
  });
@@ -74,13 +92,25 @@ class MATRest {
74
92
  // tslint:disable-next-line:max-line-length
75
93
  static sendPostRequest(session, resource, headers, payload) {
76
94
  return __awaiter(this, void 0, void 0, function* () {
77
- const response = yield imperative_1.RestClient.postExpectJSON(session, resource, headers, payload);
78
- return response;
95
+ var _a, _b;
96
+ const full = yield imperative_1.RestClient.postExpectFullResponse(session, {
97
+ resource,
98
+ reqHeaders: headers !== null && headers !== void 0 ? headers : [],
99
+ writeData: payload
100
+ });
101
+ // stash HTTP code for the handler
102
+ session.__mat_httpStatusCode = (_a = full === null || full === void 0 ? void 0 : full.response) === null || _a === void 0 ? void 0 : _a.statusCode;
103
+ const body = ((_b = full === null || full === void 0 ? void 0 : full.dataString) !== null && _b !== void 0 ? _b : "").trim();
104
+ if (body === "") {
105
+ return null;
106
+ }
107
+ return JSON.parse(body);
79
108
  });
80
109
  }
81
110
  // tslint:disable-next-line:max-line-length
82
111
  static sendPostRequestWithParm(session, resource, headers, parameters, payload) {
83
112
  return __awaiter(this, void 0, void 0, function* () {
113
+ var _a, _b;
84
114
  let appendix = "";
85
115
  if (parameters !== undefined && parameters.size) {
86
116
  appendix += "?";
@@ -92,14 +122,23 @@ class MATRest {
92
122
  appendix += key + "=" + value + (int < parameters.size ? "&" : "");
93
123
  }
94
124
  }
95
- const response = yield imperative_1.RestClient.postExpectJSON(session, resource + appendix, headers, payload);
96
- return response;
125
+ const full = yield imperative_1.RestClient.postExpectFullResponse(session, {
126
+ resource: resource + appendix,
127
+ reqHeaders: headers !== null && headers !== void 0 ? headers : [],
128
+ writeData: payload
129
+ });
130
+ session.__mat_httpStatusCode = (_a = full === null || full === void 0 ? void 0 : full.response) === null || _a === void 0 ? void 0 : _a.statusCode;
131
+ const body = ((_b = full === null || full === void 0 ? void 0 : full.dataString) !== null && _b !== void 0 ? _b : "").trim();
132
+ if (body === "") {
133
+ return null;
134
+ }
135
+ return JSON.parse(body);
97
136
  });
98
137
  }
99
138
  }
100
139
  exports.MATRest = MATRest;
101
- MATRest.REST_ENDPOINT = "/matapi/api/v2";
102
- MATRest.REST_ENDPOINT_AML = "/api/v2";
140
+ MATRest.REST_ENDPOINT = "/matapi/api/v3";
141
+ MATRest.REST_ENDPOINT_AML = "/api/v3";
103
142
  MATRest.PROFILES = "/profiles";
104
143
  MATRest.INVOKEURI = "/invoke";
105
144
  MATRest.JOBURI = "/job";
@@ -139,4 +178,4 @@ MATRest.ANALYSIS_IMSVIEW_DBDNAME = MATRest.ANALYSIS_IMSVIEW + "/dbdname";
139
178
  MATRest.ANALYSIS_IMSVIEW_REGION = MATRest.ANALYSIS_IMSVIEW + "/region";
140
179
  MATRest.ANALYSIS_IMSVIEW_PSBNAME_SSA = MATRest.ANALYSIS_IMSVIEW + "/psbname/ssa";
141
180
  MATRest.TOKEN_OFFSET = 25;
142
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTUFUUmVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hcGkvTUFUUmVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQXFCRzs7Ozs7Ozs7Ozs7O0FBRUgsaURBQStEO0FBSS9ELE1BQWEsT0FBTztJQTJDaEIsZ0lBQWdJO0lBQ3pILE1BQU0sQ0FBTyxPQUFPLENBQUMsT0FBd0IsRUFBRSxRQUFnQjs7WUFDbEUsTUFBTSxRQUFRLEdBQUcsUUFBUSxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUM7WUFDekMsTUFBTSxRQUFRLEdBQUcsTUFBTSxJQUFJLENBQUMsZUFBZSxDQUFRLE9BQU8sRUFBRSxRQUFRLENBQUMsQ0FBQztZQUN0RSxPQUFPLFFBQVEsQ0FBQztRQUNoQixDQUFDO0tBQUE7SUFFTCwyQ0FBMkM7SUFDcEMsTUFBTSxDQUFPLGNBQWMsQ0FBc0IsT0FBd0IsRUFBRSxRQUFnQixFQUFFLE9BQWUsRUFBRSxVQUFnQzs7WUFDakosSUFBSSxRQUFRLEdBQUcsRUFBRSxDQUFDO1lBQ2xCLElBQUksVUFBVSxLQUFLLFNBQVMsSUFBSSxVQUFVLENBQUMsSUFBSSxFQUFFLENBQUM7Z0JBQzlDLFFBQVEsS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ields
5
+ */
6
+ export declare class HttpError extends Error {
7
+ errorCode: number;
8
+ constructor(message: string, errorCode: number);
9
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /*
3
+ * **************************************************************************************
4
+ * Copyright © 2025 BROADCOM Inc and/or its subsidiaries.
5
+ *
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
+ * **************************************************************************************
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.HttpError = void 0;
23
+ /**
24
+ * General wrapper for the HTTP errors.
25
+ *
26
+ * Have the mandatory status code and message fields
27
+ */
28
+ class HttpError extends Error {
29
+ constructor(message, errorCode) {
30
+ super(message);
31
+ this.errorCode = errorCode;
32
+ }
33
+ }
34
+ exports.HttpError = HttpError;
35
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSHR0cEVycm9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2FwaS9lcnJvci9IdHRwRXJyb3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7R0FrQkc7OztBQUVIOzs7O0dBSUc7QUFFSCxNQUFhLFNBQVUsU0FBUSxLQUFLO0lBR2hDLFlBQVksT0FBZSxFQUFFLFNBQWlCO1FBQzFDLEtBQUssQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUNmLElBQUksQ0FBQyxTQUFTLEdBQUcsU0FBUyxDQUFDO0lBQy9CLENBQUM7Q0FDSjtBQVBELDhCQU9DIn0=
@@ -1,4 +1,4 @@
1
1
  import { IResponse } from "./IResponse";
2
2
  export interface IProfileList extends IResponse {
3
- profileList: string[];
3
+ profilelist: string[];
4
4
  }
@@ -5,6 +5,7 @@ export default class HistogramCsectHandler extends AbstractAnalyzeHandler<IHisto
5
5
  getAnalyzeURI(): string;
6
6
  getFields(json: any): string[];
7
7
  getOutput(json: any, params: IHandlerParameters): Promise<any>;
8
+ private hasListing;
8
9
  getOptionalParams(): string[];
9
10
  private getExtension;
10
11
  private Helper;