@broadcom/mat-analyze-for-zowe-cli 2.0.5 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/README.md +1193 -429
  2. package/lib/api/MATRest.d.ts +17 -0
  3. package/lib/api/MATRest.js +21 -1
  4. package/lib/api/MATRest.js.map +1 -1
  5. package/lib/api/response/ICallStack.d.ts +4 -0
  6. package/lib/api/response/ICallStack.js +25 -0
  7. package/lib/api/response/ICallStack.js.map +1 -0
  8. package/lib/api/response/ICicstat.d.ts +4 -0
  9. package/lib/api/response/ICicstat.js +25 -0
  10. package/lib/api/response/ICicstat.js.map +1 -0
  11. package/lib/api/response/IDML.d.ts +4 -0
  12. package/lib/api/response/IDML.js +25 -0
  13. package/lib/api/response/IDML.js.map +1 -0
  14. package/lib/api/response/IIDMSModule.d.ts +4 -0
  15. package/lib/api/response/IIDMSModule.js +25 -0
  16. package/lib/api/response/IIDMSModule.js.map +1 -0
  17. package/lib/api/response/IIDMSModuleDetail.d.ts +4 -0
  18. package/lib/api/response/IIDMSModuleDetail.js +25 -0
  19. package/lib/api/response/IIDMSModuleDetail.js.map +1 -0
  20. package/lib/api/response/IIDMSTask.d.ts +4 -0
  21. package/lib/api/response/IIDMSTask.js +25 -0
  22. package/lib/api/response/IIDMSTask.js.map +1 -0
  23. package/lib/api/response/IIMSSSAView.d.ts +4 -0
  24. package/lib/api/response/IIMSSSAView.js +25 -0
  25. package/lib/api/response/IIMSSSAView.js.map +1 -0
  26. package/lib/api/response/IIMSStatement.d.ts +4 -0
  27. package/lib/api/response/IIMSStatement.js +25 -0
  28. package/lib/api/response/IIMSStatement.js.map +1 -0
  29. package/lib/api/response/IIMSView.d.ts +4 -0
  30. package/lib/api/response/IIMSView.js +25 -0
  31. package/lib/api/response/IIMSView.js.map +1 -0
  32. package/lib/api/response/IIMSViewDBDName.d.ts +4 -0
  33. package/lib/api/response/IIMSViewDBDName.js +25 -0
  34. package/lib/api/response/IIMSViewDBDName.js.map +1 -0
  35. package/lib/api/response/IIMSViewPSBName.d.ts +4 -0
  36. package/lib/api/response/IIMSViewPSBName.js +25 -0
  37. package/lib/api/response/IIMSViewPSBName.js.map +1 -0
  38. package/lib/api/response/IIMSViewRegion.d.ts +4 -0
  39. package/lib/api/response/IIMSViewRegion.js +25 -0
  40. package/lib/api/response/IIMSViewRegion.js.map +1 -0
  41. package/lib/api/response/ITranview.d.ts +4 -0
  42. package/lib/api/response/ITranview.js +25 -0
  43. package/lib/api/response/ITranview.js.map +1 -0
  44. package/lib/cli/monitor/Monitor.definition.js +6 -1
  45. package/lib/cli/monitor/Monitor.definition.js.map +1 -1
  46. package/lib/cli/monitor/codeview/Histogram/Histogram.handler.d.ts +5 -4
  47. package/lib/cli/monitor/codeview/Histogram/Histogram.handler.js +236 -123
  48. package/lib/cli/monitor/codeview/Histogram/Histogram.handler.js.map +1 -1
  49. package/lib/cli/monitor/codeview/callerid/Callerid.handler.js +2 -0
  50. package/lib/cli/monitor/codeview/callerid/Callerid.handler.js.map +1 -1
  51. package/lib/cli/monitor/codeview/csect/Csect.handler.js +1 -0
  52. package/lib/cli/monitor/codeview/csect/Csect.handler.js.map +1 -1
  53. package/lib/cli/monitor/codeview/module/Module.definition.js +1 -1
  54. package/lib/cli/monitor/codeview/module/Module.definition.js.map +1 -1
  55. package/lib/cli/monitor/codeview/module/Module.handler.js +1 -0
  56. package/lib/cli/monitor/codeview/module/Module.handler.js.map +1 -1
  57. package/lib/cli/monitor/db2/db2view/DB2View.handler.js +1 -0
  58. package/lib/cli/monitor/db2/db2view/DB2View.handler.js.map +1 -1
  59. package/lib/cli/monitor/db2/sqlview/SQLView.handler.js +1 -0
  60. package/lib/cli/monitor/db2/sqlview/SQLView.handler.js.map +1 -1
  61. package/lib/cli/monitor/delayview/address/Address.handler.js +1 -0
  62. package/lib/cli/monitor/delayview/address/Address.handler.js.map +1 -1
  63. package/lib/cli/monitor/delayview/delay/Delay.handler.js +1 -0
  64. package/lib/cli/monitor/delayview/delay/Delay.handler.js.map +1 -1
  65. package/lib/cli/monitor/history/History.handler.js +1 -0
  66. package/lib/cli/monitor/history/History.handler.js.map +1 -1
  67. package/lib/cli/monitor/idms/IDMS.definition.d.ts +16 -0
  68. package/lib/cli/monitor/idms/IDMS.definition.js +76 -0
  69. package/lib/cli/monitor/idms/IDMS.definition.js.map +1 -0
  70. package/lib/cli/monitor/idms/dml/DML.definition.d.ts +3 -0
  71. package/lib/cli/monitor/idms/dml/DML.definition.js +64 -0
  72. package/lib/cli/monitor/idms/dml/DML.definition.js.map +1 -0
  73. package/lib/cli/monitor/idms/dml/DML.handler.d.ts +7 -0
  74. package/lib/cli/monitor/idms/dml/DML.handler.js +53 -0
  75. package/lib/cli/monitor/idms/dml/DML.handler.js.map +1 -0
  76. package/lib/cli/monitor/idms/module/IDMSModule.definition.d.ts +16 -0
  77. package/lib/cli/monitor/idms/module/IDMSModule.definition.js +101 -0
  78. package/lib/cli/monitor/idms/module/IDMSModule.definition.js.map +1 -0
  79. package/lib/cli/monitor/idms/module/IDMSModule.handler.d.ts +8 -0
  80. package/lib/cli/monitor/idms/module/IDMSModule.handler.js +91 -0
  81. package/lib/cli/monitor/idms/module/IDMSModule.handler.js.map +1 -0
  82. package/lib/cli/monitor/idms/task/IDMSTask.definition.d.ts +3 -0
  83. package/lib/cli/monitor/idms/task/IDMSTask.definition.js +64 -0
  84. package/lib/cli/monitor/idms/task/IDMSTask.definition.js.map +1 -0
  85. package/lib/cli/monitor/idms/task/IDMSTask.handler.d.ts +7 -0
  86. package/lib/cli/monitor/idms/task/IDMSTask.handler.js +51 -0
  87. package/lib/cli/monitor/idms/task/IDMSTask.handler.js.map +1 -0
  88. package/lib/cli/monitor/ims/IMS.definition.d.ts +16 -0
  89. package/lib/cli/monitor/ims/IMS.definition.js +59 -0
  90. package/lib/cli/monitor/ims/IMS.definition.js.map +1 -0
  91. package/lib/cli/monitor/ims/dbdname/DBDName.definition.d.ts +2 -0
  92. package/lib/cli/monitor/ims/dbdname/DBDName.definition.js +61 -0
  93. package/lib/cli/monitor/ims/dbdname/DBDName.definition.js.map +1 -0
  94. package/lib/cli/monitor/ims/dbdname/DBDName.handler.d.ts +7 -0
  95. package/lib/cli/monitor/ims/dbdname/DBDName.handler.js +51 -0
  96. package/lib/cli/monitor/ims/dbdname/DBDName.handler.js.map +1 -0
  97. package/lib/cli/monitor/ims/imsview/IMSView.definition.d.ts +2 -0
  98. package/lib/cli/monitor/ims/imsview/IMSView.definition.js +61 -0
  99. package/lib/cli/monitor/ims/imsview/IMSView.definition.js.map +1 -0
  100. package/lib/cli/monitor/ims/imsview/IMSView.handler.d.ts +7 -0
  101. package/lib/cli/monitor/ims/imsview/IMSView.handler.js +52 -0
  102. package/lib/cli/monitor/ims/imsview/IMSView.handler.js.map +1 -0
  103. package/lib/cli/monitor/ims/psbname/PSBName.definition.d.ts +2 -0
  104. package/lib/cli/monitor/ims/psbname/PSBName.definition.js +61 -0
  105. package/lib/cli/monitor/ims/psbname/PSBName.definition.js.map +1 -0
  106. package/lib/cli/monitor/ims/psbname/PSBName.handler.d.ts +7 -0
  107. package/lib/cli/monitor/ims/psbname/PSBName.handler.js +61 -0
  108. package/lib/cli/monitor/ims/psbname/PSBName.handler.js.map +1 -0
  109. package/lib/cli/monitor/ims/region/Region.definition.d.ts +2 -0
  110. package/lib/cli/monitor/ims/region/Region.definition.js +61 -0
  111. package/lib/cli/monitor/ims/region/Region.definition.js.map +1 -0
  112. package/lib/cli/monitor/ims/region/Region.handler.d.ts +7 -0
  113. package/lib/cli/monitor/ims/region/Region.handler.js +63 -0
  114. package/lib/cli/monitor/ims/region/Region.handler.js.map +1 -0
  115. package/lib/cli/monitor/ims/ssa/SSA.definition.d.ts +2 -0
  116. package/lib/cli/monitor/ims/ssa/SSA.definition.js +82 -0
  117. package/lib/cli/monitor/ims/ssa/SSA.definition.js.map +1 -0
  118. package/lib/cli/monitor/ims/ssa/SSA.handler.d.ts +8 -0
  119. package/lib/cli/monitor/ims/ssa/SSA.handler.js +55 -0
  120. package/lib/cli/monitor/ims/ssa/SSA.handler.js.map +1 -0
  121. package/lib/cli/monitor/ims/statement/Statement.definition.d.ts +2 -0
  122. package/lib/cli/monitor/ims/statement/Statement.definition.js +68 -0
  123. package/lib/cli/monitor/ims/statement/Statement.definition.js.map +1 -0
  124. package/lib/cli/monitor/ims/statement/Statement.handler.d.ts +8 -0
  125. package/lib/cli/monitor/ims/statement/Statement.handler.js +65 -0
  126. package/lib/cli/monitor/ims/statement/Statement.handler.js.map +1 -0
  127. package/lib/cli/monitor/tranview/Tranview.definition.d.ts +16 -0
  128. package/lib/cli/monitor/tranview/Tranview.definition.js +81 -0
  129. package/lib/cli/monitor/tranview/Tranview.definition.js.map +1 -0
  130. package/lib/cli/monitor/tranview/all/All.definition.d.ts +3 -0
  131. package/lib/cli/monitor/tranview/all/All.definition.js +80 -0
  132. package/lib/cli/monitor/tranview/all/All.definition.js.map +1 -0
  133. package/lib/cli/monitor/tranview/all/All.handler.d.ts +7 -0
  134. package/lib/cli/monitor/tranview/all/All.handler.js +51 -0
  135. package/lib/cli/monitor/tranview/all/All.handler.js.map +1 -0
  136. package/lib/cli/monitor/tranview/callerid/Callerid.definition.d.ts +3 -0
  137. package/lib/cli/monitor/tranview/callerid/Callerid.definition.js +70 -0
  138. package/lib/cli/monitor/tranview/callerid/Callerid.definition.js.map +1 -0
  139. package/lib/cli/monitor/tranview/callerid/Callerid.handler.d.ts +8 -0
  140. package/lib/cli/monitor/tranview/callerid/Callerid.handler.js +56 -0
  141. package/lib/cli/monitor/tranview/callerid/Callerid.handler.js.map +1 -0
  142. package/lib/cli/monitor/tranview/callstack/CallStack.definition.d.ts +3 -0
  143. package/lib/cli/monitor/tranview/callstack/CallStack.definition.js +70 -0
  144. package/lib/cli/monitor/tranview/callstack/CallStack.definition.js.map +1 -0
  145. package/lib/cli/monitor/tranview/callstack/CallStack.handler.d.ts +8 -0
  146. package/lib/cli/monitor/tranview/callstack/CallStack.handler.js +55 -0
  147. package/lib/cli/monitor/tranview/callstack/CallStack.handler.js.map +1 -0
  148. package/lib/cli/monitor/tranview/csect/CsectDetail.definition.d.ts +2 -0
  149. package/lib/cli/monitor/tranview/csect/CsectDetail.definition.js +70 -0
  150. package/lib/cli/monitor/tranview/csect/CsectDetail.definition.js.map +1 -0
  151. package/lib/cli/monitor/tranview/csect/CsectDetail.handler.d.ts +8 -0
  152. package/lib/cli/monitor/tranview/csect/CsectDetail.handler.js +55 -0
  153. package/lib/cli/monitor/tranview/csect/CsectDetail.handler.js.map +1 -0
  154. package/lib/cli/monitor/tranview/delay/DelayDetail.definition.d.ts +2 -0
  155. package/lib/cli/monitor/tranview/delay/DelayDetail.definition.js +70 -0
  156. package/lib/cli/monitor/tranview/delay/DelayDetail.definition.js.map +1 -0
  157. package/lib/cli/monitor/tranview/delay/DelayDetail.handler.d.ts +8 -0
  158. package/lib/cli/monitor/tranview/delay/DelayDetail.handler.js +55 -0
  159. package/lib/cli/monitor/tranview/delay/DelayDetail.handler.js.map +1 -0
  160. package/lib/cli/monitor/tranview/module/Module.definition.d.ts +2 -0
  161. package/lib/cli/monitor/tranview/module/Module.definition.js +70 -0
  162. package/lib/cli/monitor/tranview/module/Module.definition.js.map +1 -0
  163. package/lib/cli/monitor/tranview/module/Module.handler.d.ts +7 -0
  164. package/lib/cli/monitor/tranview/module/Module.handler.js +51 -0
  165. package/lib/cli/monitor/tranview/module/Module.handler.js.map +1 -0
  166. package/lib/cli/monitor/tranview/stat/Cicstat.definition.d.ts +3 -0
  167. package/lib/cli/monitor/tranview/stat/Cicstat.definition.js +80 -0
  168. package/lib/cli/monitor/tranview/stat/Cicstat.definition.js.map +1 -0
  169. package/lib/cli/monitor/tranview/stat/Cicstat.handler.d.ts +8 -0
  170. package/lib/cli/monitor/tranview/stat/Cicstat.handler.js +175 -0
  171. package/lib/cli/monitor/tranview/stat/Cicstat.handler.js.map +1 -0
  172. package/lib/handlers/AbstractGetHandler.js +9 -9
  173. package/lib/handlers/AbstractGetHandler.js.map +1 -1
  174. package/lib/handlers/AbstractPostHandler.js +2 -2
  175. package/lib/handlers/AbstractPostHandler.js.map +1 -1
  176. package/lib/handlers/AbstractRestHandler.js +3 -3
  177. package/lib/handlers/AbstractRestHandler.js.map +1 -1
  178. package/lib/index.js +6 -2
  179. package/lib/index.js.map +1 -1
  180. package/package.json +11 -12
@@ -37,6 +37,7 @@ class HistoryHandler extends AbstractAnalyzeHandler_1.default {
37
37
  getAnalyzeURI() {
38
38
  return MATRest_1.MATRest.HISTORY;
39
39
  }
40
+ /* istanbul ignore next */
40
41
  getFields() {
41
42
  return ["profile", "monnum", "stardate", "startime"];
42
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"History.handler.js","sourceRoot":"","sources":["../../../../src/cli/monitor/history/History.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,qFAA8E;AAE9E,kDAA+C;AAC/C,MAAqB,cAAe,SAAQ,gCAAgC;IAE9D,aAAa;QACnB,OAAO,iBAAO,CAAC,OAAO,CAAC;IAC3B,CAAC;IAES,SAAS;QACf,OAAO,CAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;IACzD,CAAC;IACe,SAAS,CAAC,IAAS;;YAC/B,OAAO,IAAI,CAAC,cAAc,CAAC;QAC/B,CAAC;KAAA;CACJ;AAZD,iCAYC"}
1
+ {"version":3,"file":"History.handler.js","sourceRoot":"","sources":["../../../../src/cli/monitor/history/History.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAGH,qFAA8E;AAE9E,kDAA+C;AAC/C,MAAqB,cAAe,SAAQ,gCAAgC;IAE9D,aAAa;QACnB,OAAO,iBAAO,CAAC,OAAO,CAAC;IAC3B,CAAC;IACD,0BAA0B;IAChB,SAAS;QACf,OAAO,CAAC,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;IACzD,CAAC;IACe,SAAS,CAAC,IAAS;;YAC/B,OAAO,IAAI,CAAC,cAAc,CAAC;QAC/B,CAAC;KAAA;CACJ;AAZD,iCAYC"}
@@ -0,0 +1,16 @@
1
+ import { ICommandDefinition } from "@zowe/imperative";
2
+ /**
3
+ * [action] command definition for the [action] two group. The [action] is of imperative command definition type
4
+ * "group", which means it must have children.
5
+ *
6
+ * In this case, the action is "list" - which will list files, etc.
7
+ *
8
+ * Property Summary:
9
+ * =================
10
+ * "name" of the [action]. Always a verb (e.g. "copy")
11
+ * "summary" will display when issuing the help for the [group] (e.g. zowe zos-files --help)
12
+ * "type" is "group" which means it has children (the [objects])
13
+ * "children" is the set of child definitions (the [objects])
14
+ */
15
+ declare const IDMSDefinition: ICommandDefinition;
16
+ export = IDMSDefinition;
@@ -0,0 +1,76 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2023 Broadcom. All Rights Reserved. The term
4
+ * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
+ *
6
+ * This software and all information contained therein is
7
+ * confidential and proprietary and shall not be duplicated,
8
+ * used, disclosed, or disseminated in any way except as
9
+ * authorized by the applicable license agreement, without the
10
+ * express written permission of Broadcom. All authorized
11
+ * reproductions must be marked with this language.
12
+ *
13
+ * EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
14
+ * THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
15
+ * SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
16
+ * LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
17
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
18
+ * BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
19
+ * DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
20
+ * INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
21
+ * INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
22
+ * EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
23
+ */
24
+ const DMLDefinition = require("./dml/DML.definition");
25
+ const TaskDefinition = require("./task/IDMSTask.definition");
26
+ const IDMSModule = require("./module/IDMSModule.definition");
27
+ /**
28
+ * [action] command definition for the [action] two group. The [action] is of imperative command definition type
29
+ * "group", which means it must have children.
30
+ *
31
+ * In this case, the action is "list" - which will list files, etc.
32
+ *
33
+ * Property Summary:
34
+ * =================
35
+ * "name" of the [action]. Always a verb (e.g. "copy")
36
+ * "summary" will display when issuing the help for the [group] (e.g. zowe zos-files --help)
37
+ * "type" is "group" which means it has children (the [objects])
38
+ * "children" is the set of child definitions (the [objects])
39
+ */
40
+ const IDMSDefinition = {
41
+ name: "idms",
42
+ aliases: ["idms"],
43
+ summary: "Get IDMS data",
44
+ description: "Get the IDMS measurement details.",
45
+ type: "group",
46
+ children: [DMLDefinition, TaskDefinition, IDMSModule],
47
+ profile: {
48
+ required: ["mat"]
49
+ },
50
+ options: [
51
+ {
52
+ name: "profile",
53
+ description: "Specifies the name of the profile that you want to analyze. " +
54
+ "When you specify the profile name, you get the data for the latest " +
55
+ "measurement within the specified profile.",
56
+ type: "string"
57
+ },
58
+ {
59
+ name: "mon_num",
60
+ description: "Specifies the unique monitor number of the measurement.",
61
+ type: "number"
62
+ }
63
+ ],
64
+ examples: [
65
+ {
66
+ description: "Get the overview details of the measurement for monitor number 5",
67
+ options: "--mon_num 5",
68
+ },
69
+ {
70
+ description: "Get the overview details of the measurement for the latest monitor in the TESTPROF profile",
71
+ options: "--profile TESTPROF",
72
+ },
73
+ ]
74
+ };
75
+ module.exports = IDMSDefinition;
76
+ //# sourceMappingURL=IDMS.definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDMS.definition.js","sourceRoot":"","sources":["../../../../src/cli/monitor/idms/IDMS.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,sDAAuD;AACvD,6DAA8D;AAC9D,6DAA8D;AAG9D;;;;;;;;;;;;GAYG;AACH,MAAM,cAAc,GAAuB;IACvC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,MAAM,CAAC;IACjB,OAAO,EAAE,eAAe;IACxB,WAAW,EAAE,mCAAmC;IAChD,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,CAAC,aAAa,EAAE,cAAc,EAAE,UAAU,CAAE;IACtD,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,KAAK,CAAC;KACpB;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,8DAA8D;gBACvE,qEAAqE;gBACrE,2CAA2C;YAC/C,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,yDAAyD;YACtE,IAAI,EAAE,QAAQ;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,kEAAkE;YAC/E,OAAO,EAAE,aAAa;SACzB;QACD;YACI,WAAW,EAAE,4FAA4F;YACzG,OAAO,EAAE,oBAAoB;SAChC;KACJ;CACJ,CAAC;AACF,iBAAS,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ICommandDefinition } from "@zowe/imperative";
2
+ declare const DMLDefinition: ICommandDefinition;
3
+ export = DMLDefinition;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2023 Broadcom. All Rights Reserved. The term
4
+ * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
+ *
6
+ * This software and all information contained therein is
7
+ * confidential and proprietary and shall not be duplicated,
8
+ * used, disclosed, or disseminated in any way except as
9
+ * authorized by the applicable license agreement, without the
10
+ * express written permission of Broadcom. All authorized
11
+ * reproductions must be marked with this language.
12
+ *
13
+ * EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
14
+ * THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
15
+ * SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
16
+ * LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
17
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
18
+ * BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
19
+ * DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
20
+ * INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
21
+ * INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
22
+ * EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
23
+ */
24
+ const DMLDefinition = {
25
+ name: "dml",
26
+ aliases: ["dml"],
27
+ summary: "Get DML data in Module mode",
28
+ description: "Get the IDMS measurement details in DML mode.",
29
+ type: "command",
30
+ handler: __dirname + "/DML.handler",
31
+ profile: {
32
+ required: ["mat"]
33
+ },
34
+ options: [
35
+ {
36
+ name: "profile",
37
+ description: "Specifies the name of the profile that you want to analyze. " +
38
+ "When you specify the profile name, you get the data for the latest " +
39
+ "measurement within the specified profile.",
40
+ type: "string"
41
+ },
42
+ {
43
+ name: "mon_num",
44
+ description: "Specifies the unique monitor number of the measurement.",
45
+ type: "number"
46
+ }
47
+ ],
48
+ examples: [
49
+ {
50
+ description: "Get the CodeView measurement details in Module mode for monitor number 5",
51
+ options: "--mon_num 5",
52
+ },
53
+ {
54
+ description: "Get the CodeView measurement details in Module mode for the latest monitor in the TESTPROF profile",
55
+ options: "--profile TESTPROF",
56
+ },
57
+ {
58
+ description: "Get the dml details of the measurement for monitor number 5",
59
+ options: "dml --mon_num 5",
60
+ }
61
+ ]
62
+ };
63
+ module.exports = DMLDefinition;
64
+ //# sourceMappingURL=DML.definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DML.definition.js","sourceRoot":"","sources":["../../../../../src/cli/monitor/idms/dml/DML.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,MAAM,aAAa,GAAuB;IACtC,IAAI,EAAE,KAAK;IACX,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,OAAO,EAAE,6BAA6B;IACtC,WAAW,EAAE,+CAA+C;IAC5D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,cAAc;IACnC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,KAAK,CAAC;KACpB;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,8DAA8D;gBAC3E,qEAAqE;gBACrE,2CAA2C;YAC3C,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,yDAAyD;YACtE,IAAI,EAAE,QAAQ;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,0EAA0E;YACvF,OAAO,EAAE,aAAa;SACzB;QACD;YACI,WAAW,EAAE,oGAAoG;YACjH,OAAO,EAAE,oBAAoB;SAChC;QACD;YACI,WAAW,EAAE,6DAA6D;YAC1E,OAAO,EAAE,iBAAiB;SAC7B;KACJ;CACJ,CAAC;AAEF,iBAAS,aAAa,CAAC"}
@@ -0,0 +1,7 @@
1
+ import AbstractAnalyzeHandler from "../../../../handlers/AbstractAnalyzeHandler";
2
+ import { IDML } from "../../../../api/response/IDML";
3
+ export default class DMLHandler extends AbstractAnalyzeHandler<IDML> {
4
+ protected getAnalyzeURI(): string;
5
+ protected getFields(): string[];
6
+ protected getOutput(json: any): Promise<any>;
7
+ }
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2023 Broadcom. All Rights Reserved. The term
4
+ * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
+ *
6
+ * This software and all information contained therein is
7
+ * confidential and proprietary and shall not be duplicated,
8
+ * used, disclosed, or disseminated in any way except as
9
+ * authorized by the applicable license agreement, without the
10
+ * express written permission of Broadcom. All authorized
11
+ * reproductions must be marked with this language.
12
+ *
13
+ * EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
14
+ * THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
15
+ * SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
16
+ * LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
17
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
18
+ * BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
19
+ * DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
20
+ * INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
21
+ * INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
22
+ * EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
23
+ */
24
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
25
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
26
+ return new (P || (P = Promise))(function (resolve, reject) {
27
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
28
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
29
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
30
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
31
+ });
32
+ };
33
+ Object.defineProperty(exports, "__esModule", { value: true });
34
+ const AbstractAnalyzeHandler_1 = require("../../../../handlers/AbstractAnalyzeHandler");
35
+ const MATRest_1 = require("../../../../api/MATRest");
36
+ class DMLHandler extends AbstractAnalyzeHandler_1.default {
37
+ getAnalyzeURI() {
38
+ return MATRest_1.MATRest.ANALYSIS_IDMSVIEW_DML;
39
+ }
40
+ /* istanbul ignore next */
41
+ getFields() {
42
+ return ["taskCode", "module", "processName", "offset", "sscProg",
43
+ "dmlSeq", "adsSeq", "frontEnd", "active", "wait", "total",
44
+ "taskID", "dmlVerb", "dmlTarget", "dmlQualifier", "lastRecord", "lastArea"];
45
+ }
46
+ getOutput(json) {
47
+ return __awaiter(this, void 0, void 0, function* () {
48
+ return json.idmsviewdml;
49
+ });
50
+ }
51
+ }
52
+ exports.default = DMLHandler;
53
+ //# sourceMappingURL=DML.handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DML.handler.js","sourceRoot":"","sources":["../../../../../src/cli/monitor/idms/dml/DML.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAEH,wFAAiF;AAEjF,qDAAkD;AAGlD,MAAqB,UAAW,SAAQ,gCAA4B;IACtD,aAAa;QACnB,OAAO,iBAAO,CAAC,qBAAqB,CAAC;IACzC,CAAC;IAED,0BAA0B;IAChB,SAAS;QACf,OAAO,CAAC,UAAU,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,SAAS;YACxD,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO;YACzD,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;IACxF,CAAC;IACe,SAAS,CAAC,IAAS;;YAC/B,OAAO,IAAI,CAAC,WAAW,CAAC;QAC5B,CAAC;KAAA;CACJ;AAdD,6BAcC"}
@@ -0,0 +1,16 @@
1
+ import { ICommandDefinition } from "@zowe/imperative";
2
+ /**
3
+ * [action] command definition for the [action] two group. The [action] is of imperative command definition type
4
+ * "group", which means it must have children.
5
+ *
6
+ * In this case, the action is "list" - which will list files, etc.
7
+ *
8
+ * Property Summary:
9
+ * =================
10
+ * "name" of the [action]. Always a verb (e.g. "copy")
11
+ * "summary" will display when issuing the help for the [group] (e.g. zowe zos-files --help)
12
+ * "type" is "group" which means it has children (the [objects])
13
+ * "children" is the set of child definitions (the [objects])
14
+ */
15
+ declare const IDMSModuleDefinition: ICommandDefinition;
16
+ export = IDMSModuleDefinition;
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2023 Broadcom. All Rights Reserved. The term
4
+ * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
+ *
6
+ * This software and all information contained therein is
7
+ * confidential and proprietary and shall not be duplicated,
8
+ * used, disclosed, or disseminated in any way except as
9
+ * authorized by the applicable license agreement, without the
10
+ * express written permission of Broadcom. All authorized
11
+ * reproductions must be marked with this language.
12
+ *
13
+ * EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
14
+ * THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
15
+ * SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
16
+ * LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
17
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
18
+ * BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
19
+ * DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
20
+ * INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
21
+ * INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
22
+ * EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
23
+ */
24
+ /**
25
+ * [action] command definition for the [action] two group. The [action] is of imperative command definition type
26
+ * "group", which means it must have children.
27
+ *
28
+ * In this case, the action is "list" - which will list files, etc.
29
+ *
30
+ * Property Summary:
31
+ * =================
32
+ * "name" of the [action]. Always a verb (e.g. "copy")
33
+ * "summary" will display when issuing the help for the [group] (e.g. zowe zos-files --help)
34
+ * "type" is "group" which means it has children (the [objects])
35
+ * "children" is the set of child definitions (the [objects])
36
+ */
37
+ const IDMSModuleDefinition = {
38
+ name: "module",
39
+ aliases: ["mod"],
40
+ summary: "Get IDMS Module data",
41
+ description: "Get the IDMS measurement details.",
42
+ type: "command",
43
+ handler: __dirname + "/IDMSModule.handler",
44
+ profile: {
45
+ required: ["mat"]
46
+ },
47
+ options: [
48
+ {
49
+ name: "profile",
50
+ description: "Specifies the name of the profile that you want to analyze. " +
51
+ "When you specify the profile name, you get the data for the latest " +
52
+ "measurement within the specified profile.",
53
+ type: "string"
54
+ },
55
+ {
56
+ name: "mon_num",
57
+ description: "Specifies the unique monitor number of the measurement.",
58
+ type: "number"
59
+ },
60
+ {
61
+ name: "module",
62
+ description: "Specifies the module of the measurement.",
63
+ type: "stringOrEmpty"
64
+ },
65
+ {
66
+ name: "taskid",
67
+ description: "Specifies the taskid number.",
68
+ type: "number"
69
+ },
70
+ {
71
+ name: "ruid",
72
+ description: "Specifies the ruid number.",
73
+ type: "number"
74
+ },
75
+ {
76
+ name: "linecmd",
77
+ description: "Specifies the line command to be used for the row data",
78
+ type: "stringOrEmpty"
79
+ }
80
+ ],
81
+ examples: [
82
+ {
83
+ description: "Get the idms details of the measurement for monitor number 5",
84
+ options: "--mon_num 5",
85
+ },
86
+ {
87
+ description: "Get the idms details of the measurement for the latest monitor in the TESTPROF profile",
88
+ options: "--profile TESTPROF",
89
+ },
90
+ {
91
+ description: "Get the module details of the measurement for monitor number 5",
92
+ options: "module --mon_num 5",
93
+ },
94
+ {
95
+ description: "Specify the module | taskid | ruid | linecmd option of the measurement for the module mode",
96
+ options: "--module SQLA01D | --taskid 1 | --ruid 19333 | --linecmd dispatch",
97
+ }
98
+ ]
99
+ };
100
+ module.exports = IDMSModuleDefinition;
101
+ //# sourceMappingURL=IDMSModule.definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDMSModule.definition.js","sourceRoot":"","sources":["../../../../../src/cli/monitor/idms/module/IDMSModule.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH;;;;;;;;;;;;GAYG;AACH,MAAM,oBAAoB,GAAuB;IAC7C,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,OAAO,EAAE,sBAAsB;IAC/B,WAAW,EAAE,mCAAmC;IAChD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,qBAAqB;IAC1C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,KAAK,CAAC;KACpB;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,8DAA8D;gBACvE,qEAAqE;gBACrE,2CAA2C;YAC/C,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,0CAA0C;YACvD,IAAI,EAAE,eAAe;SACxB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,8BAA8B;YAC3C,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,wDAAwD;YACrE,IAAI,EAAE,eAAe;SACxB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,8DAA8D;YAC3E,OAAO,EAAE,aAAa;SACzB;QACD;YACI,WAAW,EAAE,wFAAwF;YACrG,OAAO,EAAE,oBAAoB;SAChC;QACD;YACI,WAAW,EAAE,gEAAgE;YAC7E,OAAO,EAAE,oBAAoB;SAChC;QACD;YACI,WAAW,EAAE,4FAA4F;YACzG,OAAO,EAAE,mEAAmE;SAC/E;KACJ;CACJ,CAAC;AACF,iBAAS,oBAAoB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import AbstractAnalyzeHandler from "../../../../handlers/AbstractAnalyzeHandler";
2
+ import { IIDMSModule } from "../../../../api/response/IIDMSModule";
3
+ export default class IDMSModuleHandler extends AbstractAnalyzeHandler<IIDMSModule> {
4
+ protected getAnalyzeURI(): string;
5
+ protected getFields(json: any): string[];
6
+ protected getOutput(json: any): Promise<any>;
7
+ protected getOptionalParams(): string[];
8
+ }
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2023 Broadcom. All Rights Reserved. The term
4
+ * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
+ *
6
+ * This software and all information contained therein is
7
+ * confidential and proprietary and shall not be duplicated,
8
+ * used, disclosed, or disseminated in any way except as
9
+ * authorized by the applicable license agreement, without the
10
+ * express written permission of Broadcom. All authorized
11
+ * reproductions must be marked with this language.
12
+ *
13
+ * EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
14
+ * THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
15
+ * SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
16
+ * LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
17
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
18
+ * BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
19
+ * DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
20
+ * INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
21
+ * INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
22
+ * EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
23
+ */
24
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
25
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
26
+ return new (P || (P = Promise))(function (resolve, reject) {
27
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
28
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
29
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
30
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
31
+ });
32
+ };
33
+ Object.defineProperty(exports, "__esModule", { value: true });
34
+ const AbstractAnalyzeHandler_1 = require("../../../../handlers/AbstractAnalyzeHandler");
35
+ const MATRest_1 = require("../../../../api/MATRest");
36
+ class IDMSModuleHandler extends AbstractAnalyzeHandler_1.default {
37
+ getAnalyzeURI() {
38
+ return MATRest_1.MATRest.ANALYSIS_IDMSVIEW_MODULE;
39
+ }
40
+ /* istanbul ignore next */
41
+ getFields(json) {
42
+ if (JSON.stringify(json).includes("idmsviewrustat")) {
43
+ return ["taskCode", "taskID", "cvNumber",
44
+ "startDate", "startTime", "release", "runUnitId", "pagesRead",
45
+ "pagesWritten", "pagesRequested", "timsCalcsFits", "timsCalcsOverflows",
46
+ "timsViaFits", "timsViaOverflows", "recordsRequested", "recordsRU",
47
+ "callsToIdms", "fragmentsStored", "recordsRelocated", "locksRequested",
48
+ "selectLocksHeld", "updateLocksHeld", "sr8Splits", "sr8Spawns",
49
+ "sr8Stored", "sr8Erased", "sr7Stored", "sr7Erased", "orphansAdopted",
50
+ "lsBestCase", "lsWorstCase", "btreeSearches", "btreeLevelSearches"];
51
+ }
52
+ if (JSON.stringify(json).includes("idmsviewdispatch")) {
53
+ return ["taskCode", "taskID",
54
+ "cvNumber", "startDate", "startTime", "release",
55
+ "adsoFlag", "adsoProcessName", "currentProgram", "adsoSequenceNumber",
56
+ "subSchemaName", "relationshipToIDMS", "typeOfWait", "internalExternalReason"];
57
+ }
58
+ if (JSON.stringify(json).includes("idmsviewdbstat")) {
59
+ return ["taskCode", "taskID", "cvNumber", "startDate",
60
+ "startTime", "release", "pagesRead",
61
+ "pagesWritten", "pagesRequested", "calcsWNOverflow", "calcsWOverflow",
62
+ "viaWNOverflow", "viaWOverflow", "recordsRequested", "currentRU",
63
+ "dbmsCalls", "fragmentsStored", "recordsRelocated", "locksAquired",
64
+ "sharedLocks", "nonShareLocks", "locksFreed", "sqlExecuted",
65
+ "rowsFetchedd", "rowsInserted", "rowsUpdated", "rowsDeleted"];
66
+ }
67
+ return ["taskcode", "module", "processName",
68
+ "offset", "status", "wait", "active",
69
+ "total", "ruid", "taskid", "waitStatus"];
70
+ }
71
+ getOutput(json) {
72
+ return __awaiter(this, void 0, void 0, function* () {
73
+ if (JSON.stringify(json).indexOf("idmsviewrustat") >= 0) {
74
+ return json.idmsviewrustat;
75
+ }
76
+ if (JSON.stringify(json).indexOf("idmsviewdispatch") >= 0) {
77
+ return json.idmsviewdispatch;
78
+ }
79
+ if (JSON.stringify(json).indexOf("idmsviewdbstat") >= 0) {
80
+ return json.idmsviewdbstat;
81
+ }
82
+ return json.idmsviewmodule;
83
+ });
84
+ }
85
+ /* istanbul ignore next */
86
+ getOptionalParams() {
87
+ return ["module", "taskid", "ruid", "linecmd"];
88
+ }
89
+ }
90
+ exports.default = IDMSModuleHandler;
91
+ //# sourceMappingURL=IDMSModule.handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDMSModule.handler.js","sourceRoot":"","sources":["../../../../../src/cli/monitor/idms/module/IDMSModule.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAEH,wFAAiF;AAEjF,qDAAkD;AAGlD,MAAqB,iBAAkB,SAAQ,gCAAmC;IACpE,aAAa;QACnB,OAAO,iBAAO,CAAC,wBAAwB,CAAC;IAC5C,CAAC;IAED,0BAA0B;IAChB,SAAS,CAAC,IAAS;QAEzB,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE;YACjD,OAAO,CAAC,UAAU,EAAE,QAAQ,EAAE,UAAU;gBACpC,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW;gBAC7D,cAAc,EAAE,gBAAgB,EAAE,eAAe,EAAE,oBAAoB;gBACvE,aAAa,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,WAAW;gBAClE,aAAa,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,gBAAgB;gBACtE,iBAAiB,EAAE,iBAAiB,EAAE,WAAW,EAAE,WAAW;gBAC9D,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB;gBACpE,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,oBAAoB,CAAC,CAAC;SAC3E;QAED,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE;YACnD,OAAO,CAAC,UAAU,EAAE,QAAQ;gBACpB,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS;gBAC/C,UAAU,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,oBAAoB;gBACrE,eAAe,EAAE,oBAAoB,EAAE,YAAY,EAAE,wBAAwB,CAAC,CAAC;SAC1F;QAED,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE;YACjD,OAAO,CAAC,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW;gBAC7C,WAAW,EAAE,SAAS,EAAE,WAAW;gBACnC,cAAc,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB;gBACrE,eAAe,EAAE,cAAc,EAAE,kBAAkB,EAAE,WAAW;gBAChE,WAAW,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,cAAc;gBAClE,aAAa,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa;gBAC3D,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,CAAC,CAAC;SACzE;QAED,OAAO,CAAC,UAAU,EAAE,QAAQ,EAAE,aAAa;YACvC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ;YACpC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;IAEjD,CAAC;IAEe,SAAS,CAAC,IAAS;;YAC/B,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE;gBACrD,OAAO,IAAI,CAAC,cAAc,CAAC;aAC9B;YACD,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE;gBACvD,OAAO,IAAI,CAAC,gBAAgB,CAAC;aAChC;YACD,IAAI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE;gBACrD,OAAO,IAAI,CAAC,cAAc,CAAC;aAC9B;YACD,OAAO,IAAI,CAAC,cAAc,CAAC;QAC/B,CAAC;KAAA;IACD,0BAA0B;IAChB,iBAAiB;QACvB,OAAO,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;IACnD,CAAC;CACJ;AA1DD,oCA0DC"}
@@ -0,0 +1,3 @@
1
+ import { ICommandDefinition } from "@zowe/imperative";
2
+ declare const IDMSTaskDefinition: ICommandDefinition;
3
+ export = IDMSTaskDefinition;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2023 Broadcom. All Rights Reserved. The term
4
+ * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
+ *
6
+ * This software and all information contained therein is
7
+ * confidential and proprietary and shall not be duplicated,
8
+ * used, disclosed, or disseminated in any way except as
9
+ * authorized by the applicable license agreement, without the
10
+ * express written permission of Broadcom. All authorized
11
+ * reproductions must be marked with this language.
12
+ *
13
+ * EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
14
+ * THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
15
+ * SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
16
+ * LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
17
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
18
+ * BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
19
+ * DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
20
+ * INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
21
+ * INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
22
+ * EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
23
+ */
24
+ const IDMSTaskDefinition = {
25
+ name: "task",
26
+ aliases: ["ts"],
27
+ summary: "Get IDMS data in Task mode",
28
+ description: "Get the IDMS measurement details in Task mode.",
29
+ type: "command",
30
+ handler: __dirname + "/IDMSTask.handler",
31
+ profile: {
32
+ required: ["mat"]
33
+ },
34
+ options: [
35
+ {
36
+ name: "profile",
37
+ description: "Specifies the name of the profile that you want to analyze. " +
38
+ "When you specify the profile name, you get the data for the latest " +
39
+ "measurement within the specified profile.",
40
+ type: "string"
41
+ },
42
+ {
43
+ name: "mon_num",
44
+ description: "Specifies the unique monitor number of the measurement.",
45
+ type: "number"
46
+ }
47
+ ],
48
+ examples: [
49
+ {
50
+ description: "Get the CodeView measurement details in Module mode for monitor number 5",
51
+ options: "--mon_num 5",
52
+ },
53
+ {
54
+ description: "Get the CodeView measurement details in Module mode for the latest monitor in the TESTPROF profile",
55
+ options: "--profile TESTPROF",
56
+ },
57
+ {
58
+ description: "Get the task details of the measurement for monitor number 5",
59
+ options: "task --mon_num 5",
60
+ }
61
+ ]
62
+ };
63
+ module.exports = IDMSTaskDefinition;
64
+ //# sourceMappingURL=IDMSTask.definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDMSTask.definition.js","sourceRoot":"","sources":["../../../../../src/cli/monitor/idms/task/IDMSTask.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,MAAM,kBAAkB,GAAuB;IAC3C,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,4BAA4B;IACrC,WAAW,EAAE,gDAAgD;IAC7D,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,mBAAmB;IACxC,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,KAAK,CAAC;KACpB;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,8DAA8D;gBACvE,qEAAqE;gBACrE,2CAA2C;YAC/C,IAAI,EAAE,QAAQ;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,yDAAyD;YACtE,IAAI,EAAE,QAAQ;SACjB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,0EAA0E;YACvF,OAAO,EAAE,aAAa;SACzB;QACD;YACI,WAAW,EAAE,oGAAoG;YACjH,OAAO,EAAE,oBAAoB;SAChC;QACD;YACI,WAAW,EAAE,8DAA8D;YAC3E,OAAO,EAAE,kBAAkB;SAC9B;KACJ;CACJ,CAAC;AAEF,iBAAS,kBAAkB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import AbstractAnalyzeHandler from "../../../../handlers/AbstractAnalyzeHandler";
2
+ import { IIDMSTask } from "../../../../api/response/IIDMSTask";
3
+ export default class IDMSTaskHandler extends AbstractAnalyzeHandler<IIDMSTask> {
4
+ protected getAnalyzeURI(): string;
5
+ protected getFields(): string[];
6
+ protected getOutput(json: any): Promise<any>;
7
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2023 Broadcom. All Rights Reserved. The term
4
+ * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
+ *
6
+ * This software and all information contained therein is
7
+ * confidential and proprietary and shall not be duplicated,
8
+ * used, disclosed, or disseminated in any way except as
9
+ * authorized by the applicable license agreement, without the
10
+ * express written permission of Broadcom. All authorized
11
+ * reproductions must be marked with this language.
12
+ *
13
+ * EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
14
+ * THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
15
+ * SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
16
+ * LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
17
+ * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
18
+ * BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
19
+ * DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
20
+ * INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
21
+ * INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
22
+ * EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
23
+ */
24
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
25
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
26
+ return new (P || (P = Promise))(function (resolve, reject) {
27
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
28
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
29
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
30
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
31
+ });
32
+ };
33
+ Object.defineProperty(exports, "__esModule", { value: true });
34
+ const AbstractAnalyzeHandler_1 = require("../../../../handlers/AbstractAnalyzeHandler");
35
+ const MATRest_1 = require("../../../../api/MATRest");
36
+ class IDMSTaskHandler extends AbstractAnalyzeHandler_1.default {
37
+ getAnalyzeURI() {
38
+ return MATRest_1.MATRest.ANALYSIS_IDMSVIEW_TASK;
39
+ }
40
+ /* istanbul ignore next */
41
+ getFields() {
42
+ return ["taskcode", "active", "wait", "total", "ads"];
43
+ }
44
+ getOutput(json) {
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ return json.idmsviewtask;
47
+ });
48
+ }
49
+ }
50
+ exports.default = IDMSTaskHandler;
51
+ //# sourceMappingURL=IDMSTask.handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IDMSTask.handler.js","sourceRoot":"","sources":["../../../../../src/cli/monitor/idms/task/IDMSTask.handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;;;;;;;;;AAEH,wFAAiF;AAEjF,qDAAkD;AAGlD,MAAqB,eAAgB,SAAQ,gCAAiC;IAChE,aAAa;QACnB,OAAO,iBAAO,CAAC,sBAAsB,CAAC;IAC1C,CAAC;IACD,0BAA0B;IAChB,SAAS;QACf,OAAO,CAAC,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IAC1D,CAAC;IAEe,SAAS,CAAC,IAAS;;YAC/B,OAAO,IAAI,CAAC,YAAY,CAAC;QAC7B,CAAC;KAAA;CACJ;AAZD,kCAYC"}
@@ -0,0 +1,16 @@
1
+ import { ICommandDefinition } from "@zowe/imperative";
2
+ /**
3
+ * [action] command definition for the [action] two group. The [action] is of imperative command definition type
4
+ * "group", which means it must have children.
5
+ *
6
+ * In this case, the action is "list" - which will list files, etc.
7
+ *
8
+ * Property Summary:
9
+ * =================
10
+ * "name" of the [action]. Always a verb (e.g. "copy")
11
+ * "summary" will display when issuing the help for the [group] (e.g. zowe zos-files --help)
12
+ * "type" is "group" which means it has children (the [objects])
13
+ * "children" is the set of child definitions (the [objects])
14
+ */
15
+ declare const IMSDefinition: ICommandDefinition;
16
+ export = IMSDefinition;