@broadcom/mat-analyze-for-zowe-cli 1.0.7 → 2.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +5 -28
  2. package/README.md +121 -100
  3. package/lib/api/MATRest.d.ts +1 -1
  4. package/lib/api/MATRest.js +3 -5
  5. package/lib/api/MATRest.js.map +1 -1
  6. package/lib/cli/monitor/Monitor.definition.js +13 -2
  7. package/lib/cli/monitor/Monitor.definition.js.map +1 -1
  8. package/lib/cli/monitor/codeview/Histogram/Histogram.definition.js +11 -6
  9. package/lib/cli/monitor/codeview/Histogram/Histogram.definition.js.map +1 -1
  10. package/lib/cli/monitor/codeview/Histogram/Histogram.handler.js +42 -20
  11. package/lib/cli/monitor/codeview/Histogram/Histogram.handler.js.map +1 -1
  12. package/lib/cli/monitor/codeview/callerid/Callerid.definition.js +6 -1
  13. package/lib/cli/monitor/codeview/callerid/Callerid.definition.js.map +1 -1
  14. package/lib/cli/monitor/codeview/csect/Csect.definition.js +5 -1
  15. package/lib/cli/monitor/codeview/csect/Csect.definition.js.map +1 -1
  16. package/lib/cli/monitor/codeview/module/Module.definition.js +6 -1
  17. package/lib/cli/monitor/codeview/module/Module.definition.js.map +1 -1
  18. package/lib/cli/monitor/db2/db2view/DB2View.definition.js +6 -2
  19. package/lib/cli/monitor/db2/db2view/DB2View.definition.js.map +1 -1
  20. package/lib/cli/monitor/db2/sqlview/SQLView.definition.js +6 -1
  21. package/lib/cli/monitor/db2/sqlview/SQLView.definition.js.map +1 -1
  22. package/lib/cli/monitor/delayview/address/Address.definition.js +6 -1
  23. package/lib/cli/monitor/delayview/address/Address.definition.js.map +1 -1
  24. package/lib/cli/monitor/delayview/delay/Delay.definition.js +5 -1
  25. package/lib/cli/monitor/delayview/delay/Delay.definition.js.map +1 -1
  26. package/lib/cli/monitor/history/History.definition.js +6 -1
  27. package/lib/cli/monitor/history/History.definition.js.map +1 -1
  28. package/lib/cli/monitor/overview/Overview.definition.js +5 -1
  29. package/lib/cli/monitor/overview/Overview.definition.js.map +1 -1
  30. package/lib/cli/profile/Profile.definition.js +13 -2
  31. package/lib/cli/profile/Profile.definition.js.map +1 -1
  32. package/lib/cli/profile/create/CreateProfile.definition.js +47 -43
  33. package/lib/cli/profile/create/CreateProfile.definition.js.map +1 -1
  34. package/lib/cli/profile/invoke/InvokeProfile.definition.js +14 -9
  35. package/lib/cli/profile/invoke/InvokeProfile.definition.js.map +1 -1
  36. package/lib/cli/profile/listprofile/ListProfile.definition.js +1 -1
  37. package/lib/cli/session/MATSession.d.ts +24 -5
  38. package/lib/cli/session/MATSession.js +97 -31
  39. package/lib/cli/session/MATSession.js.map +1 -1
  40. package/lib/handlers/AbstractRestHandler.js +12 -6
  41. package/lib/handlers/AbstractRestHandler.js.map +1 -1
  42. package/lib/imperative.js +19 -15
  43. package/lib/imperative.js.map +1 -1
  44. package/package.json +16 -16
@@ -23,21 +23,21 @@
23
23
  */
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.CreateDefinition = void 0;
26
- const cremsg = "alphanumeric (A-Z capitals only and 0-9), national (#, $, @), and wildcards (* or %).";
26
+ const cremsg = "alphanumeric (A-Z capitals only and 0-9), national (#, $, @), and wildcards (* or %).";
27
27
  exports.CreateDefinition = {
28
28
  name: "create",
29
29
  aliases: ["cr"],
30
- summary: "Create a CA MAT monitor profile",
31
- description: "Create a CA MAT monitor profile.",
30
+ summary: "Create a MAT monitor profile",
31
+ description: "Create a MAT monitor profile.",
32
32
  type: "command",
33
33
  handler: __dirname + "/CreateProfile.handler",
34
34
  profile: {
35
- required: ["mat"]
35
+ optional: ["mat"]
36
36
  },
37
37
  options: [
38
38
  {
39
39
  name: "profile",
40
- description: "Specifies the name of the profile that you create in CA MAT (e.g. PROFILE1). " +
40
+ description: "Specifies the name of the profile that you create in MAT (e.g. PROFILE1). " +
41
41
  "Values: 1 to 8 characters, a combination of alphanumeric and national characters (A-Z, 0-9, and @), " +
42
42
  "the first character must be an alphabetic or @. The profile name must not contain characters # and $.",
43
43
  type: "string",
@@ -46,7 +46,7 @@ exports.CreateDefinition = {
46
46
  {
47
47
  name: "jobname",
48
48
  description: "Specifies the name of the job that you want to measure (e.g. JOB1). " +
49
- "Values: 1 to 8 characters, alphanumeric (A-Z capitals only and 0-9), national (#, $, @), and wildcards (* or %).",
49
+ "Values: 1 to 8 characters, alphanumeric (A-Z capitals only and 0-9), national (#, $, @), and wildcards (* or %).",
50
50
  type: "string",
51
51
  required: true
52
52
  },
@@ -74,15 +74,15 @@ exports.CreateDefinition = {
74
74
  },
75
75
  {
76
76
  name: "mondsn",
77
- description: "Specifies the monitor data set name where CA MAT saves the measurement (e.g. DEMO.MAT.MONITOR). " +
77
+ description: "Specifies the monitor data set name where MAT saves the measurement (e.g. DEMO.MAT.MONITOR). " +
78
78
  "Values: data set name pattern, maximum 46 characters. " +
79
- "If not specified, your default CA MAT monitor DSN pattern is applied.",
79
+ "If not specified, your default MAT monitor DSN pattern is applied.",
80
80
  type: "string",
81
81
  required: false
82
82
  },
83
83
  {
84
84
  name: "stepname",
85
- description: "Specifies the name of the job step to monitor. Values: maximum 8 characters, " +
85
+ description: "Specifies the name of the job step to monitor. Values: maximum 8 characters, " +
86
86
  cremsg,
87
87
  type: "string",
88
88
  required: false
@@ -97,14 +97,14 @@ exports.CreateDefinition = {
97
97
  },
98
98
  {
99
99
  name: "procstep",
100
- description: "Specifies the name of the procedure step. Values: maximum 8 characters, " +
100
+ description: "Specifies the name of the procedure step. Values: maximum 8 characters, " +
101
101
  cremsg,
102
102
  type: "string",
103
103
  required: false
104
104
  },
105
105
  {
106
106
  name: "program",
107
- description: "Specifies the name of the program to monitor. Values: maximum 8 characters, " +
107
+ description: "Specifies the name of the program to monitor. Values: maximum 8 characters, " +
108
108
  cremsg,
109
109
  type: "string",
110
110
  required: false
@@ -127,14 +127,14 @@ exports.CreateDefinition = {
127
127
  },
128
128
  {
129
129
  name: "tasklib",
130
- description: "Specifies an additional DD name for load modules. Values: maximum 8 characters, " +
130
+ description: "Specifies an additional DD name for load modules. Values: maximum 8 characters, " +
131
131
  cremsg,
132
132
  type: "string",
133
133
  required: false
134
134
  },
135
135
  {
136
136
  name: "samplecnt",
137
- description: "Specifies the number of observations requested. Values: maximum 6 characters, " +
137
+ description: "Specifies the number of observations requested. Values: maximum 6 characters, " +
138
138
  "numbers between 10 and 999999.",
139
139
  type: "string",
140
140
  required: false,
@@ -142,7 +142,7 @@ exports.CreateDefinition = {
142
142
  },
143
143
  {
144
144
  name: "succnt",
145
- description: "Specifies the maximum number of monitors to run per job execution. " +
145
+ description: "Specifies the maximum number of monitors to run per job execution. " +
146
146
  "Values: maximum 4 characters, numbers between 1 and 9999.",
147
147
  type: "string",
148
148
  required: false,
@@ -151,7 +151,7 @@ exports.CreateDefinition = {
151
151
  {
152
152
  name: "reccnt",
153
153
  description: "Specifies the number of times this job step will be monitored. " +
154
- "Values: maximum 4 characters, numbers between 1 and 9999.",
154
+ "Values: maximum 4 characters, numbers between 1 and 9999.",
155
155
  type: "string",
156
156
  required: false,
157
157
  defaultValue: "1"
@@ -159,72 +159,72 @@ exports.CreateDefinition = {
159
159
  {
160
160
  name: "sampdelay",
161
161
  description: "Specifies the delay monitoring time in seconds after the step start. " +
162
- "Values: maximum 4 characters, numbers between 0 and 9999.",
162
+ "Values: maximum 4 characters, numbers between 0 and 9999.",
163
163
  type: "string",
164
164
  required: false,
165
165
  defaultValue: "0"
166
166
  },
167
167
  {
168
168
  name: "userexit1",
169
- description: "Specifies the name for the call user written Data Base. Values: maximum 8 characters, " +
170
- "alphanumeric (A-Z capitals only and 0-9), national (#, $, @), and wildcards (* or %) (e.g. DBEXIT1).",
169
+ description: "Specifies the name for the call user written Data Base. Values: maximum 8 characters, " +
170
+ "alphanumeric (A-Z capitals only and 0-9), national (#, $, @), and wildcards (* or %) (e.g. DBEXIT1).",
171
171
  type: "string",
172
172
  required: false
173
173
  },
174
174
  {
175
175
  name: "userexit2",
176
176
  description: "Specifies the name 1 for the call user written 4GL exit programs for this monitor . " +
177
- "Values: maximum 8 characters, alphanumeric (A-Z capitals only and 0-9), national (#, $, @), " +
178
- "and wildcards (* or %) (e.g. UEXIT1).",
177
+ "Values: maximum 8 characters, alphanumeric (A-Z capitals only and 0-9), national (#, $, @), " +
178
+ "and wildcards (* or %) (e.g. UEXIT1).",
179
179
  type: "string",
180
180
  required: false
181
181
  },
182
182
  {
183
183
  name: "userexit3",
184
184
  description: "Specifies the name 2 for the call user written 4GL exit programs for this monitor . " +
185
- "Values: maximum 8 characters, alphanumeric (A-Z capitals only and 0-9), national (#, $, @), " +
186
- "and wildcards (* or %) (e.g. UEXIT2).",
185
+ "Values: maximum 8 characters, alphanumeric (A-Z capitals only and 0-9), national (#, $, @), " +
186
+ "and wildcards (* or %) (e.g. UEXIT2).",
187
187
  type: "string",
188
188
  required: false
189
189
  },
190
190
  {
191
191
  name: "inctask",
192
- description: "Specifies the task name to define the tasks that you want to sample in a multitasking " +
192
+ description: "Specifies the task name to define the tasks that you want to sample in a multitasking " +
193
193
  "environment and restrict monitoring to the specific subtask within the address space. " +
194
- "Values: a comma separated list of up to 4 values is allowed, maximum 8 characters each, " +
195
- "alphanumeric (A-Z capitals only and 0-9), national (#, $, @), and wildcards (* or %) (e.g. INC31,INC32).",
194
+ "Values: a comma separated list of up to 4 values is allowed, maximum 8 characters each, " +
195
+ "alphanumeric (A-Z capitals only and 0-9), national (#, $, @), and wildcards (* or %) (e.g. INC31,INC32).",
196
196
  type: "string",
197
197
  required: false
198
198
  },
199
199
  {
200
200
  name: "exctask",
201
201
  description: "Specifies the task name to omit from sampling in a multitasking environment " +
202
- "Values: a comma separated list of up to 4 values is allowed, max. 8 characters each, " +
203
- "alphanumeric (A-Z capitals only and 0-9), national (#, $, @), and wildcards (* or %) (e.g. EXC31,EXC32).",
202
+ "Values: a comma separated list of up to 4 values is allowed, max. 8 characters each, " +
203
+ "alphanumeric (A-Z capitals only and 0-9), national (#, $, @), and wildcards (* or %) (e.g. EXC31,EXC32).",
204
204
  type: "string",
205
205
  required: false
206
206
  },
207
207
  {
208
208
  name: "tran",
209
- description: "Specifies the CICS transaction code name to monitor ." +
210
- "Values: a comma separated list of up to 4 values is allowed, maximum 8 characters each, " +
211
- "alphanumeric (A-Z capitals only and 0-9), national (#, $, @), and wildcards (* or +) (e.g. TRAN1,TRAN2).",
209
+ description: "Specifies the CICS transaction code name to monitor ." +
210
+ "Values: a comma separated list of up to 4 values is allowed, maximum 8 characters each, " +
211
+ "alphanumeric (A-Z capitals only and 0-9), national (#, $, @), and wildcards (* or +) (e.g. TRAN1,TRAN2).",
212
212
  type: "string",
213
213
  required: false
214
214
  },
215
215
  {
216
216
  name: "term",
217
- description: "Specifies the CICS terminal IDs to monitor. Values: a comma separated list of up to 4 " +
218
- "values is allowed, maximum 8 characters each, alphanumeric (A-Z capitals only and 0-9), " +
219
- "national (#, $, @), and wildcards (* or +) (e.g. TERM1,TERM2).",
217
+ description: "Specifies the CICS terminal IDs to monitor. Values: a comma separated list of up to 4 " +
218
+ "values is allowed, maximum 8 characters each, alphanumeric (A-Z capitals only and 0-9), " +
219
+ "national (#, $, @), and wildcards (* or +) (e.g. TERM1,TERM2).",
220
220
  type: "string",
221
221
  required: false
222
222
  },
223
223
  {
224
224
  name: "userid",
225
- description: "Specifies the CICS user IDs to monitor. Values: Values: a comma separated list of up to 4 " +
226
- "values is allowed, maximum 8 characters each, alphanumeric (A-Z capitals only and 0-9), " +
227
- "national (#, $, @), and wildcards (* or +) (e.g. USER1,USER2).",
225
+ description: "Specifies the CICS user IDs to monitor. Values: Values: a comma separated list of up to 4 " +
226
+ "values is allowed, maximum 8 characters each, alphanumeric (A-Z capitals only and 0-9), " +
227
+ "national (#, $, @), and wildcards (* or +) (e.g. USER1,USER2).",
228
228
  type: "string",
229
229
  required: false
230
230
  },
@@ -238,8 +238,8 @@ exports.CreateDefinition = {
238
238
  },
239
239
  {
240
240
  name: "db2ctsql",
241
- description: "Indicates whether the Collect SQL from Catalog option is enabled for DB2 SQL statements." +
242
- "If you specify db2expl=yes, then db2ctsql must be also set to yes.",
241
+ description: "Indicates whether the Collect SQL from Catalog option is enabled for DB2 SQL statements." +
242
+ "If you specify db2expl=yes, then db2ctsql must be also set to yes.",
243
243
  type: "string",
244
244
  required: false,
245
245
  allowableValues: { values: ["yes", "no"] },
@@ -247,7 +247,7 @@ exports.CreateDefinition = {
247
247
  },
248
248
  {
249
249
  name: "db2hvloc",
250
- description: "Indicates whether the Requestor Location option is enabled for DB2 measurements.",
250
+ description: "Indicates whether the Requestor Location option is enabled for DB2 measurements.",
251
251
  type: "string",
252
252
  required: false,
253
253
  allowableValues: { values: ["yes", "no"] },
@@ -255,7 +255,7 @@ exports.CreateDefinition = {
255
255
  },
256
256
  {
257
257
  name: "db2hvcor",
258
- description: "Indicates whether the Correlation ID option for SQL statements is enabled for DB2 measurements.",
258
+ description: "Indicates whether the Correlation ID option for SQL statements is enabled for DB2 measurements.",
259
259
  type: "string",
260
260
  required: false,
261
261
  allowableValues: { values: ["yes", "no"] },
@@ -263,7 +263,7 @@ exports.CreateDefinition = {
263
263
  },
264
264
  {
265
265
  name: "db2hviid",
266
- description: "Indicates whether the Operator ID option for SQL statements is enabled for DB2 measurements.",
266
+ description: "Indicates whether the Operator ID option for SQL statements is enabled for DB2 measurements.",
267
267
  type: "string",
268
268
  required: false,
269
269
  allowableValues: { values: ["yes", "no"] },
@@ -271,7 +271,7 @@ exports.CreateDefinition = {
271
271
  },
272
272
  {
273
273
  name: "db2hvthd",
274
- description: "Indicates whether the Thread Address option for SQL statements is enabled for DB2 measurements.",
274
+ description: "Indicates whether the Thread Address option for SQL statements is enabled for DB2 measurements.",
275
275
  type: "string",
276
276
  required: false,
277
277
  allowableValues: { values: ["yes", "no"] },
@@ -304,7 +304,7 @@ exports.CreateDefinition = {
304
304
  },
305
305
  {
306
306
  name: "schedule",
307
- description: "Specifies the name of the schedule that you want to apply to the monitor profile " +
307
+ description: "Specifies the name of the schedule that you want to apply to the monitor profile " +
308
308
  "(maximum 8 characters).",
309
309
  type: "string",
310
310
  required: false
@@ -319,6 +319,10 @@ exports.CreateDefinition = {
319
319
  description: "Create the PROFILE1 monitor profile to measure for 90 seconds job JOB1 that runs on the AA31 and AA32 systems",
320
320
  options: "--profile PROFILE1 --jobname JOB1 --targsys AA31,AA32 --elapstime 90s",
321
321
  },
322
+ {
323
+ description: "Create the PROFILE1 monitor profile to measure job JOB1 that runs on the AA31 system, with the specific MAT profile details defined",
324
+ options: "--profile PROFILE1 --jobname JOB1 --targsys AA31 --host \"example.com\" --port 12345 --user johndoe --password qwerty",
325
+ },
322
326
  ]
323
327
  };
324
328
  //# sourceMappingURL=CreateProfile.definition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreateProfile.definition.js","sourceRoot":"","sources":["../../../../src/cli/profile/create/CreateProfile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,MAAM,MAAM,GAAG,uFAAuF,CAAC;AAC1F,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,iCAAiC;IAC1C,WAAW,EAAE,kCAAkC;IAC/C,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,wBAAwB;IAC7C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,KAAK,CAAC;KACpB;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,+EAA+E;gBAC5F,sGAAsG;gBACtG,uGAAuG;YACvG,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sEAAsE;gBACnF,kHAAkH;YAClH,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS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ACd,QAAQ,EAAE,KAAK;SAClB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,kFAAkF;gBAC/F,2FAA2F;gBAC3F,gFAAgF;gBAChF,iEAAiE;YACjE,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;SAClB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,mFAAmF;gBAChG,yBAAyB;YACzB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;SAClB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,sFAAsF;YACnG,OAAO,EAAE,kDAAkD;SAC9D;QACD;YACI,WAAW,EAAE,+GAA+G;YAC5H,OAAO,EAAE,uEAAuE;SACnF;KACJ;CACJ,CAAC"}
1
+ {"version":3,"file":"CreateProfile.definition.js","sourceRoot":"","sources":["../../../../src/cli/profile/create/CreateProfile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,MAAM,MAAM,GAAG,uFAAuF,CAAC;AAC1F,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,OAAO,EAAE,8BAA8B;IACvC,WAAW,EAAE,+BAA+B;IAC5C,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,SAAS,GAAG,wBAAwB;IAC7C,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,KAAK,CAAC;KACpB;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,4EAA4E;gBACzF,sGAAsG;gBACtG,uGAAuG;YACvG,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,sEAAsE;gBACnF,kHAAkH;YAClH,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf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AAQ,EAAE,KAAK;SAClB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,kFAAkF;gBAC/F,2FAA2F;gBAC3F,gFAAgF;gBAChF,iEAAiE;YACjE,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;SAClB;QACD;YACI,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,mFAAmF;gBAChG,yBAAyB;YACzB,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;SAClB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,sFAAsF;YACnG,OAAO,EAAE,kDAAkD;SAC9D;QACD;YACI,WAAW,EAAE,+GAA+G;YAC5H,OAAO,EAAE,uEAAuE;SACnF;QACD;YACI,WAAW,EAAE,qIAAqI;YAClJ,OAAO,EAAE,uHAAuH;SACnI;KACJ;CACJ,CAAC"}
@@ -27,17 +27,17 @@ const invkmsg = "Invoke the PROFILE1 monitor profile to measure job JOB1 that ru
27
27
  exports.InvokeDefinition = {
28
28
  name: "invoke",
29
29
  aliases: ["ivk"],
30
- summary: "Invoke a CA MAT monitor profile",
31
- description: "Invoke a CA MAT monitor profile to start measurement.",
30
+ summary: "Invoke a MAT monitor profile",
31
+ description: "Invoke a MAT monitor profile to start measurement.",
32
32
  handler: __dirname + "/InvokeProfile.handler",
33
33
  type: "command",
34
34
  profile: {
35
- required: ["mat"]
35
+ optional: ["mat"]
36
36
  },
37
37
  options: [
38
38
  {
39
39
  name: "profile",
40
- description: "Specifies the name of the profile in CA MAT that you invoke (e.g. PROFILE1). " +
40
+ description: "Specifies the name of the profile in MAT that you invoke (e.g. PROFILE1). " +
41
41
  "Values: 1 to 8 characters, a combination of alphanumeric and national " +
42
42
  "characters (A-Z, 0-9, and @), the first character must be an alphabetic or @. " +
43
43
  "The profile name must not contain characters # and $.",
@@ -54,9 +54,9 @@ exports.InvokeDefinition = {
54
54
  },
55
55
  {
56
56
  name: "mondsn",
57
- description: "Specifies the monitor data set name where CA MAT saves the measurement (e.g. DEMO.MAT.MONITOR). " +
57
+ description: "Specifies the monitor data set name where MAT saves the measurement (e.g. DEMO.MAT.MONITOR). " +
58
58
  "Values: data set name pattern, maximum 46 characters. " +
59
- "If not specified, your default CA MAT monitor DSN pattern is applied.",
59
+ "If not specified, your default MAT monitor DSN pattern is applied.",
60
60
  type: "string",
61
61
  required: false
62
62
  },
@@ -86,10 +86,10 @@ exports.InvokeDefinition = {
86
86
  {
87
87
  name: "listing",
88
88
  description: "Activates automated registration of Cobol, C/C++, and Assembler program listings " +
89
- "through CA Endevor® footprints. After completion of the measurement that you invoke with " +
90
- "the --listing parameter, the CA MAT Analyze plug-in for Zowe CLI automatically " +
89
+ "through Endevor® footprints. After completion of the measurement that you invoke with " +
90
+ "the --listing parameter, the MAT Analyze plug-in for Zowe CLI automatically " +
91
91
  "retrieves the program listing that is associated with the monitored job and registers the " +
92
- "listing with CA MAT. A registered program listing enhances the analysis possibilities of the " +
92
+ "listing with MAT. A registered program listing enhances the analysis possibilities of the " +
93
93
  "\'codeview histogram\' command the \'codeview histogram\' command and enables you to " +
94
94
  "inspect the source code statements that are associated with specific modules and CSECTs.",
95
95
  type: "boolean",
@@ -111,6 +111,11 @@ exports.InvokeDefinition = {
111
111
  "and register the program listing",
112
112
  options: "--profile PROFILE1 --jobname JOB1 --targsys AA31 --listing",
113
113
  },
114
+ {
115
+ description: invkmsg +
116
+ "with the specific MAT profile details defined",
117
+ options: "--profile PROFILE1 --jobname JOB1 --targsys AA31 --host \"example.com\" --port 12345 --user johndoe --password qwerty",
118
+ },
114
119
  ]
115
120
  };
116
121
  //# sourceMappingURL=InvokeProfile.definition.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InvokeProfile.definition.js","sourceRoot":"","sources":["../../../../src/cli/profile/invoke/InvokeProfile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,MAAM,OAAO,GAAG,uFAAuF,CAAC;AAC3F,QAAA,g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F;gBAC/F,wFAAwF;gBACxF,0FAA0F;YAC1F,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,KAAK;SAClB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO;YACpB,OAAO,EAAE,kDAAkD;SAC9D;QACD;YACI,WAAW,EAAE,OAAO;gBACpB,2EAA2E;YAC3E,OAAO,EAAE,qFAAqF;SACjG;QACD;YACI,WAAW,EAAE,OAAO;gBACpB,kCAAkC;YAClC,OAAO,EAAE,4DAA4D;SACxE;KACJ;CACJ,CAAC"}
1
+ {"version":3,"file":"InvokeProfile.definition.js","sourceRoot":"","sources":["../../../../src/cli/profile/invoke/InvokeProfile.definition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;;AAGH,MAAM,OAAO,GAAG,uFAAuF,CAAC;AAC3F,QAAA,gBAAgB,GAAuB;IAChD,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,CAAC,KAAK,CAAC;IAChB,OAAO,EAAE,8BAA8B;IACvC,WAAW,EAAE,oDAAoD;IACjE,OAAO,EAAE,SAAS,GAAG,wBAAwB;IAC7C,IAAI,EAAE,SAAS;IACf,OAAO,EAAE;QACL,QAAQ,EAAE,CAAC,KAAK,CAAC;KACpB;IACD,OAAO,EAAE;QACL;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,4EAA4E;gBACzF,wEAAwE;gBACxE,gFAAgF;gBAChF,uDAAuD;YACvD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,4DAA4D;gBACzE,uEAAuE;gBACvE,6CAA6C;YAC7C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,+FAA+F;gBAC5G,wDAAwD;gBACxD,oEAAoE;YACpE,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;SAClB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,0CAA0C;gBACvD,0FAA0F;gBAC1F,wFAAwF;gBACxF,uEAAuE;YACvE,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACjB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,qFAAqF;gBAClG,6EAA6E;YAC7E,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;SAClB;QACD;YACI,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,kFAAkF;gBAC/F,6EAA6E;YAC7E,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;SAClB;QACD;YACI,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,mFAAmF;gBAChG,wFAAwF;gBACxF,8EAA8E;gBAC9E,4FAA4F;gBAC5F,4FAA4F;gBAC5F,wFAAwF;gBACxF,0FAA0F;YAC1F,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,KAAK;SAClB;KACJ;IACD,QAAQ,EAAE;QACN;YACI,WAAW,EAAE,OAAO;YACpB,OAAO,EAAE,kDAAkD;SAC9D;QACD;YACI,WAAW,EAAE,OAAO;gBACpB,2EAA2E;YAC3E,OAAO,EAAE,qFAAqF;SACjG;QACD;YACI,WAAW,EAAE,OAAO;gBACpB,kCAAkC;YAClC,OAAO,EAAE,4DAA4D;SACxE;QACD;YACI,WAAW,EAAE,OAAO;gBACpB,+CAA+C;YAC/C,OAAO,EAAE,uHAAuH;SACnI;KACJ;CACJ,CAAC"}
@@ -31,7 +31,7 @@ exports.ListProfileDefinition = {
31
31
  handler: __dirname + "/ListProfile.handler",
32
32
  type: "command",
33
33
  profile: {
34
- required: ["mat"]
34
+ optional: ["mat"]
35
35
  }
36
36
  };
37
37
  //# sourceMappingURL=ListProfile.definition.js.map
@@ -1,4 +1,4 @@
1
- import { ICommandOptionDefinition } from "@zowe/imperative";
1
+ import { ICommandArguments, ICommandOptionDefinition, IHandlerParameters, Session } from "@zowe/imperative";
2
2
  /**
3
3
  * Utility Methods for the CLI
4
4
  * @export
@@ -22,17 +22,36 @@ export declare class MATSession {
22
22
  */
23
23
  static MAT_CLI_USERNAME: ICommandOptionDefinition;
24
24
  /**
25
- * Option used in profile creation and commands for protocol for CA MAT
25
+ * Option used in profile creation and commands for protocol for MAT
26
26
  */
27
27
  static MAT_CLI_PASSWORD: ICommandOptionDefinition;
28
28
  /**
29
- * Defines the AML enable option during MAT CLI profile creation.
29
+ * Option used in profile creation and commands for basePath setting for connecting to MAT
30
30
  */
31
- static MAT_CLI_ZOWEDISCOVERABLE: ICommandOptionDefinition;
31
+ static MAT_CLI_BASE_PATH: ICommandOptionDefinition;
32
+ /**
33
+ * Option used in profile creation and commands for rejectUnauthorized setting for connecting to MAT
34
+ */
35
+ static MAT_CLI_REJECT_UNAUTHORIZED: ICommandOptionDefinition;
32
36
  static MAT_CLI_LISTINGDIR: ICommandOptionDefinition;
33
37
  /**
34
- * Options related to connecting to CA MAT
38
+ * Options related to connecting to MAT
35
39
  * These options can be filled in if the user creates a profile
36
40
  */
37
41
  static PMA_CONNECTION_OPTIONS: ICommandOptionDefinition[];
42
+ /**
43
+ * Given command line arguments, create a REST Client Session.
44
+ * @static
45
+ * @param {IProfile} args - The arguments specified by the user
46
+ * @returns {Session} - A session for usage in the CMCI REST Client
47
+ */
48
+ static createBasicMatSessionFromArguments(args: ICommandArguments): Session;
49
+ /**
50
+ * Given command handler parameters, create a REST Client Session.
51
+ * @static
52
+ * @param {IHandlerParameters} params - Command parameters sent by imperative.
53
+ * @param {boolean} doPrompting - Whether to prompt for missing arguments (defaults to true)
54
+ * @returns {Session} - A session for usage in the CMCI REST Client
55
+ */
56
+ static createSessCfgForHandler(params: IHandlerParameters, doPrompting?: boolean): Promise<Session>;
38
57
  }
@@ -21,13 +21,68 @@
21
21
  * INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
22
22
  * EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
23
23
  */
24
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
25
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
26
+ return new (P || (P = Promise))(function (resolve, reject) {
27
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
28
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
29
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
30
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
31
+ });
32
+ };
24
33
  Object.defineProperty(exports, "__esModule", { value: true });
25
34
  exports.MATSession = void 0;
35
+ // import { ICommandArguments, ICommandOptionDefinition, IProfile, Logger, Session } from "@zowe/imperative";
36
+ const imperative_1 = require("@zowe/imperative");
26
37
  /**
27
38
  * Utility Methods for the CLI
28
39
  * @export
29
40
  */
30
41
  class MATSession {
42
+ /**
43
+ * Given command line arguments, create a REST Client Session.
44
+ * @static
45
+ * @param {IProfile} args - The arguments specified by the user
46
+ * @returns {Session} - A session for usage in the CMCI REST Client
47
+ */
48
+ static createBasicMatSessionFromArguments(args) {
49
+ return new imperative_1.Session({
50
+ type: "basic",
51
+ hostname: args.host,
52
+ port: args.port,
53
+ user: args.user,
54
+ password: args.password,
55
+ basePath: args.basePath,
56
+ rejectUnauthorized: args.rejectUnauthorized,
57
+ protocol: args.protocol || "https",
58
+ });
59
+ }
60
+ /**
61
+ * Given command handler parameters, create a REST Client Session.
62
+ * @static
63
+ * @param {IHandlerParameters} params - Command parameters sent by imperative.
64
+ * @param {boolean} doPrompting - Whether to prompt for missing arguments (defaults to true)
65
+ * @returns {Session} - A session for usage in the CMCI REST Client
66
+ */
67
+ static createSessCfgForHandler(params, doPrompting = true) {
68
+ return __awaiter(this, void 0, void 0, function* () {
69
+ const sessCfg = {
70
+ hostname: params.arguments.host,
71
+ port: params.arguments.port,
72
+ user: params.arguments.user,
73
+ password: params.arguments.password,
74
+ protocol: params.arguments.protocol || "https",
75
+ basePath: params.arguments.basePath,
76
+ rejectUnauthorized: params.arguments.rejectUnauthorized
77
+ };
78
+ const sessCfgWithCreds = yield imperative_1.ConnectionPropsForSessCfg.addPropsOrPrompt(sessCfg, params.arguments, { doPrompting, parms: params });
79
+ return new imperative_1.Session(sessCfgWithCreds);
80
+ /*
81
+ const sessCfg: ISession = {};
82
+ const sessCfgWithCreds = await ConnectionPropsForSessCfg.addPropsOrPrompt(sessCfg, params.arguments, { doPrompting: true, parms: params });
83
+ return new Session(sessCfgWithCreds);*/
84
+ });
85
+ }
31
86
  }
32
87
  exports.MATSession = MATSession;
33
88
  MATSession.MAT_CONNECTION_OPTION_GROUP = "MAT Profile Options";
@@ -36,22 +91,23 @@ MATSession.MAT_CONNECTION_OPTION_GROUP = "MAT Profile Options";
36
91
  */
37
92
  MATSession.MAT_REST_PROTOCOL = {
38
93
  name: "protocol",
39
- aliases: ["prt"],
40
- description: "Specifies the protocol defined for the CA MAT REST API server (http or https).",
94
+ aliases: ["o"],
95
+ description: "Specifies the protocol defined for the MAT REST API server (http or https).",
41
96
  type: "string",
42
- required: true,
97
+ // required: true,
43
98
  allowableValues: { values: ["http", "https"] },
99
+ defaultValue: "https",
44
100
  group: MATSession.MAT_CONNECTION_OPTION_GROUP
45
101
  };
46
102
  /**
47
103
  * Defines the hostname option during MAT CLI profile creation.
48
104
  */
49
105
  MATSession.MAT_REST_HOSTNAME = {
50
- name: "hostname",
51
- aliases: ["hn"],
52
- description: "Specifies the hostname or IP address defined for the CA MAT REST API server (e.g. 127.0.0.0 or localhost).",
106
+ name: "host",
107
+ aliases: ["H"],
108
+ description: "Specifies the hostname or IP address defined for the MAT REST API server (e.g. 127.0.0.0 or localhost).",
53
109
  type: "string",
54
- required: true,
110
+ // required: true,
55
111
  group: MATSession.MAT_CONNECTION_OPTION_GROUP
56
112
  };
57
113
  /**
@@ -59,66 +115,75 @@ MATSession.MAT_REST_HOSTNAME = {
59
115
  */
60
116
  MATSession.MAT_REST_PORT = {
61
117
  name: "port",
62
- aliases: ["pt"],
118
+ aliases: ["P"],
63
119
  description: "Specifies the server port (e.g. 8080).",
64
120
  type: "number",
65
- required: true,
121
+ // required: true,
66
122
  group: MATSession.MAT_CONNECTION_OPTION_GROUP
67
123
  };
68
124
  /**
69
125
  * Defines the username option during MAT CLI profile creation.
70
126
  */
71
127
  MATSession.MAT_CLI_USERNAME = {
72
- name: "username",
73
- aliases: ["user"],
128
+ name: "user",
129
+ aliases: ["u"],
74
130
  description: "Your mainframe username.",
75
131
  type: "string",
76
- required: true,
132
+ // required: true,
77
133
  group: MATSession.MAT_CONNECTION_OPTION_GROUP
78
134
  };
79
135
  /**
80
- * Option used in profile creation and commands for protocol for CA MAT
136
+ * Option used in profile creation and commands for protocol for MAT
81
137
  */
82
138
  MATSession.MAT_CLI_PASSWORD = {
83
139
  name: "password",
84
- aliases: ["pass"],
140
+ aliases: ["pw"],
85
141
  description: "Your mainframe password.",
86
142
  type: "string",
87
- required: true,
143
+ // required: true,
144
+ group: MATSession.MAT_CONNECTION_OPTION_GROUP
145
+ };
146
+ /**
147
+ * Option used in profile creation and commands for basePath setting for connecting to MAT
148
+ */
149
+ MATSession.MAT_CLI_BASE_PATH = {
150
+ name: "base-path",
151
+ aliases: ["bp"],
152
+ description: "The base path for your API mediation layer instance." +
153
+ " Specify this option to prepend the base path to all resources when making REST requests." +
154
+ " Do not specify this option if you are not using an API mediation layer.",
155
+ type: "string",
88
156
  group: MATSession.MAT_CONNECTION_OPTION_GROUP
89
157
  };
90
158
  /**
91
- * Defines the AML enable option during MAT CLI profile creation.
159
+ * Option used in profile creation and commands for rejectUnauthorized setting for connecting to MAT
92
160
  */
93
- MATSession.MAT_CLI_ZOWEDISCOVERABLE = {
94
- name: "zowediscoverable",
95
- aliases: ["zdis"],
96
- description: "Specifies whether you want to use Zowe API Mediation Layer to process the commands for this profile. " +
97
- "Set \'--zowediscoverable true\' only if you have configured the Zowe API Mediation Layer properties in your " +
98
- "CA MAT REST API server settings.",
161
+ MATSession.MAT_CLI_REJECT_UNAUTHORIZED = {
162
+ name: "reject-unauthorized",
163
+ aliases: ["ru"],
164
+ description: "Reject self-signed certificates.",
99
165
  type: "boolean",
100
- required: true,
101
- allowableValues: { values: ["false", "true"] },
166
+ defaultValue: true,
102
167
  group: MATSession.MAT_CONNECTION_OPTION_GROUP
103
168
  };
104
169
  MATSession.MAT_CLI_LISTINGDIR = {
105
170
  name: "listingDir",
106
171
  aliases: ["ldir"],
107
172
  description: "Specifies the directory where you want to store the registered program listings (e.g. \'c:\\listings\') " +
108
- "for your immediate source code inspection. You can use the advantage of automated listing registration with CA MAT " +
109
- "and listing retrieval through CA Endevor® footprints for Cobol, C/C++, and Assembler programs. " +
110
- "When a source program listing is registered with CA MAT, you can enhance the histogram analysis " +
173
+ "for your immediate source code inspection. You can use the advantage of automated listing registration with MAT " +
174
+ "and listing retrieval through Endevor® footprints for Cobol, C/C++, and Assembler programs. " +
175
+ "When a source program listing is registered with MAT, you can enhance the histogram analysis " +
111
176
  "data with the program listing details that pertain to the specific CSECT and program statement. The listing " +
112
177
  "is transfered to the specified directory, which enables you to navigate directly to the line of the source code " +
113
178
  "in you VS Code IDE and inspect the program statement. To use the listing retrieval option through " +
114
- "CA Endevor® footprints, you need to have the CA Endevor® Web Services installed and configured and specify the " +
115
- "CA Endevor® web server details in the CA MAT database configuration.",
179
+ "Endevor® footprints, you need to have the Endevor® Web Services installed and configured and specify the " +
180
+ "Endevor® web server details in the MAT database configuration.",
116
181
  type: "string",
117
182
  required: false,
118
183
  group: MATSession.MAT_CONNECTION_OPTION_GROUP
119
184
  };
120
185
  /**
121
- * Options related to connecting to CA MAT
186
+ * Options related to connecting to MAT
122
187
  * These options can be filled in if the user creates a profile
123
188
  */
124
189
  MATSession.PMA_CONNECTION_OPTIONS = [
@@ -127,7 +192,8 @@ MATSession.PMA_CONNECTION_OPTIONS = [
127
192
  MATSession.MAT_REST_PORT,
128
193
  MATSession.MAT_CLI_USERNAME,
129
194
  MATSession.MAT_CLI_PASSWORD,
130
- MATSession.MAT_CLI_ZOWEDISCOVERABLE,
195
+ MATSession.MAT_CLI_BASE_PATH,
196
+ MATSession.MAT_CLI_REJECT_UNAUTHORIZED,
131
197
  MATSession.MAT_CLI_LISTINGDIR
132
198
  ];
133
199
  //# sourceMappingURL=MATSession.js.map