ws_workunits_req_resp.ecm 25 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ############################################################################## */
  13. #include "xslprocessor.hpp"
  14. // ===========================================================================
  15. EspInclude(common);
  16. EspInclude(ws_workunits_struct);
  17. ESPrequest [nil_remove] WUCreateRequest
  18. {
  19. };
  20. ESPresponse [exceptions_inline] WUCreateResponse
  21. {
  22. ESPstruct ECLWorkunit Workunit;
  23. };
  24. ESPrequest [nil_remove] WUDeployWorkunitRequest
  25. {
  26. string Cluster;
  27. string Name;
  28. int Wait(-1);
  29. string ObjType;
  30. string FileName;
  31. binary Object;
  32. int ResultLimit;
  33. string QueryMainDefinition;
  34. string Snapshot;
  35. ESParray<ESPstruct NamedValue> DebugValues;
  36. };
  37. ESPresponse [exceptions_inline] WUDeployWorkunitResponse
  38. {
  39. ESPstruct ECLWorkunit Workunit;
  40. };
  41. ESPrequest [nil_remove] WUQueryRequest
  42. {
  43. string Wuid;
  44. [min_ver("1.01")] string Type; //archived or non-archived
  45. string Cluster;
  46. [min_ver("1.08")] string RoxieCluster;
  47. string Owner;
  48. string State;
  49. string StartDate;
  50. string EndDate;
  51. string ECL;
  52. string Jobname;
  53. string LogicalFile;
  54. string LogicalFileSearchType("");
  55. [depr_ver("1.57")] string ApplicationName;
  56. [depr_ver("1.57")] string ApplicationKey;
  57. [depr_ver("1.57")] string ApplicationData;
  58. [min_ver("1.57")] ESParray<ESPstruct ApplicationValue> ApplicationValues;
  59. [min_ver("1.72")] string BeforeWU;
  60. [min_ver("1.72")] string AfterWU;
  61. [min_ver("1.77")] unsigned TotalClusterTimeThresholdMilliSec(0);
  62. [depr_ver("1.02")] string After; //Not used since 1.02
  63. [depr_ver("1.02")] string Before; //Not used since 1.02
  64. int Count;
  65. [min_ver("1.03")] int64 PageSize(0);
  66. [min_ver("1.03")] int64 PageStartFrom(0);
  67. [min_ver("1.03")] int64 PageEndAt;
  68. [min_ver("1.26"), depr_ver("1.72")] int LastNDays;
  69. string Sortby;
  70. bool Descending(false);
  71. int64 CacheHint;
  72. };
  73. ESPresponse [nil_remove, exceptions_inline] WUQueryResponse
  74. {
  75. [min_ver("1.01")] string Type(""); //archived or non-archived
  76. string Cluster;
  77. [min_ver("1.08")] string RoxieCluster;
  78. string Owner;
  79. string State;
  80. string StartDate;
  81. string EndDate;
  82. string ECL;
  83. string Jobname;
  84. [min_ver("1.01")] string LogicalFile;
  85. [min_ver("1.01")] string LogicalFileSearchType("");
  86. string Current;
  87. string Next;
  88. int Count(0);
  89. [min_ver("1.03")] int64 PageSize(0);
  90. [min_ver("1.03")] int64 PrevPage;
  91. [min_ver("1.03")] int64 NextPage;
  92. [min_ver("1.03")] int64 LastPage(-1);
  93. int NumWUs;
  94. bool First(true);
  95. [min_ver("1.03")] int64 PageStartFrom(-1);
  96. [min_ver("1.03")] int64 PageEndAt;
  97. [min_ver("1.26"), depr_ver("1.72")] int LastNDays;
  98. string Sortby;
  99. bool Descending(false);
  100. string BasicQuery;
  101. string Filters;
  102. [min_ver("1.41")] int64 CacheHint;
  103. ESParray<ESPstruct ECLWorkunit> Workunits;
  104. };
  105. ESPrequest [nil_remove] WULightWeightQueryRequest
  106. {
  107. string Wuid;
  108. string Type; //archived or non-archived
  109. string Cluster;
  110. string Owner;
  111. string JobName;
  112. string StartDate;
  113. string EndDate;
  114. [min_ver("1.72")] string BeforeWU;
  115. [min_ver("1.72")] string AfterWU;
  116. string State;
  117. ESParray<ESPstruct ApplicationValue> ApplicationValues;
  118. int64 PageStartFrom;
  119. unsigned PageSize;
  120. string SortBy;
  121. bool Descending(false);
  122. int64 CacheHint;
  123. };
  124. ESPresponse [nil_remove, exceptions_inline] WULightWeightQueryResponse
  125. {
  126. int NumWUs;
  127. int64 CacheHint;
  128. ESParray<ESPstruct ECLWorkunitLW> Workunits;
  129. };
  130. ESPrequest [nil_remove] WUUpdateRequest
  131. {
  132. string Wuid;
  133. int State;
  134. int StateOrig;
  135. string Jobname;
  136. string JobnameOrig;
  137. string QueryText;
  138. int Action;
  139. string Description;
  140. string DescriptionOrig;
  141. bool AddDrilldownFields;
  142. int ResultLimit; //unsigned?
  143. [http_nillable(0)] bool Protected;
  144. [http_nillable(0)] bool ProtectedOrig;
  145. int PriorityClass;
  146. int PriorityLevel;
  147. string Scope;
  148. string ScopeOrig;
  149. [min_ver("1.05")] string ClusterSelection;
  150. [min_ver("1.05")] string ClusterOrig;
  151. [min_ver("1.22")] string XmlParams;
  152. [min_ver("1.25")] string ThorSlaveIP;
  153. [min_ver("1.35")] string QueryMainDefinition;
  154. ESParray<ESPstruct DebugValue> DebugValues;
  155. ESParray<ESPstruct ApplicationValue> ApplicationValues;
  156. };
  157. ESPresponse [exceptions_inline] WUUpdateResponse
  158. {
  159. ESPstruct ECLWorkunit Workunit;
  160. };
  161. ESPrequest WUDeleteRequest
  162. {
  163. ESParray<string> Wuids;
  164. [min_ver("1.02")] int BlockTillFinishTimer(0);
  165. };
  166. ESPresponse [exceptions_inline] WUDeleteResponse
  167. {
  168. ESParray<ESPstruct WUActionResult> ActionResults;
  169. };
  170. /* html */
  171. ESPrequest [nil_remove] WUActionRequest
  172. {
  173. ESParray<string> Wuids;
  174. [depr_ver("1.57")] string ActionType;
  175. [min_ver("1.57")] ESPenum ECLWUActions WUActionType;
  176. string Cluster;
  177. string Owner;
  178. string State;
  179. string StartDate;
  180. string EndDate;
  181. string ECL;
  182. string Jobname;
  183. string Test;
  184. string CurrentPage("");
  185. [min_ver("1.03")] string PageSize("");
  186. string Sortby;
  187. bool Descending(false);
  188. //[min_ver("1.01")] string SashaNetAddress;
  189. [min_ver("1.01")] string EventServer("");
  190. [min_ver("1.01")] string EventName("");
  191. //[min_ver("1.01")] string EventText("");
  192. [min_ver("1.01")] string PageFrom("");
  193. [min_ver("1.02")] int BlockTillFinishTimer(0);
  194. };
  195. ESPresponse [exceptions_inline] WUActionResponse
  196. {
  197. ESParray<ESPstruct WUActionResult> ActionResults;
  198. };
  199. ESPrequest WUAbortRequest
  200. {
  201. ESParray<string> Wuids;
  202. [min_ver("1.02")] int BlockTillFinishTimer(0);
  203. };
  204. ESPresponse [exceptions_inline] WUAbortResponse
  205. {
  206. ESParray<ESPstruct WUActionResult> ActionResults;
  207. };
  208. ESPrequest WUProtectRequest
  209. {
  210. ESParray<string> Wuids;
  211. bool Protect(true);
  212. };
  213. ESPresponse [exceptions_inline] WUProtectResponse
  214. {
  215. ESParray<ESPstruct WUActionResult> ActionResults;
  216. };
  217. ESPrequest WUResubmitRequest
  218. {
  219. ESParray<string> Wuids;
  220. [max_ver("1.30")] bool Recompile;
  221. [min_ver("1.02")] int BlockTillFinishTimer(0);
  222. bool ResetWorkflow;
  223. bool CloneWorkunit;
  224. };
  225. ESPresponse [exceptions_inline] WUResubmitResponse
  226. {
  227. [min_ver("1.40")] ESParray<ESPstruct ResubmittedWU, WU> WUs;
  228. };
  229. ESPrequest WURunRequest
  230. {
  231. string QuerySet;
  232. string Query;
  233. string Wuid;
  234. bool CloneWorkunit;
  235. string Cluster;
  236. int Wait(-1);
  237. [rows(15)] string Input;
  238. bool NoRootTag(0);
  239. ESParray<ESPstruct NamedValue> DebugValues;
  240. ESParray<ESPstruct NamedValue> Variables;
  241. [min_ver("1.56")] ESParray<ESPstruct ApplicationValue> ApplicationValues;
  242. ESPenum WUExceptionSeverity ExceptionSeverity("info");
  243. };
  244. ESPresponse [exceptions_inline] WURunResponse
  245. {
  246. string Wuid;
  247. string State;
  248. string Results;
  249. };
  250. ESPrequest WUSubmitRequest
  251. {
  252. string Wuid;
  253. string Cluster;
  254. string Queue;
  255. string Snapshot;
  256. int MaxRunTime;
  257. [min_ver("1.02")] int BlockTillFinishTimer(0);
  258. [min_ver("1.19")] bool SyntaxCheck(false);
  259. bool NotifyCluster(false);
  260. };
  261. ESPresponse [exceptions_inline] WUSubmitResponse
  262. {
  263. };
  264. ESPrequest WUScheduleRequest
  265. {
  266. string Wuid;
  267. string Cluster;
  268. string Queue;
  269. string Snapshot;
  270. xsdDateTime When;
  271. int MaxRunTime;
  272. };
  273. ESPresponse [exceptions_inline] WUScheduleResponse
  274. {
  275. };
  276. ESPrequest [nil_remove] WUPushEventRequest
  277. {
  278. string EventName("");
  279. string EventText("");
  280. };
  281. ESPresponse [exceptions_inline] WUPushEventResponse
  282. {
  283. };
  284. ESPrequest WUInfoRequest
  285. {
  286. string Wuid;
  287. bool TruncateEclTo64k(true);
  288. [min_ver("1.01")] string Type; //archieved or non-archieved
  289. [min_ver("1.16")] bool IncludeExceptions(true);
  290. [min_ver("1.16")] bool IncludeGraphs(true);
  291. [min_ver("1.16")] bool IncludeSourceFiles(true);
  292. [min_ver("1.16")] bool IncludeResults(true);
  293. [min_ver("1.34")] bool IncludeResultsViewNames(false);
  294. [min_ver("1.16")] bool IncludeVariables(true);
  295. [min_ver("1.16")] bool IncludeTimers(true);
  296. [min_ver("1.16")] bool IncludeDebugValues(true);
  297. [min_ver("1.16")] bool IncludeApplicationValues(true);
  298. [min_ver("1.16")] bool IncludeWorkflows(true);
  299. [min_ver("1.39")] bool IncludeXmlSchemas(false);
  300. [min_ver("1.47")] bool IncludeResourceURLs(false);
  301. [min_ver("1.66")] bool IncludeECL(true);
  302. [min_ver("1.66")] bool IncludeHelpers(true);
  303. [min_ver("1.66")] bool IncludeAllowedClusters(true);
  304. [min_ver("1.73")] bool IncludeTotalClusterTime(true);
  305. [min_ver("1.16")] bool SuppressResultSchemas(false);
  306. [min_ver("1.25")] string ThorSlaveIP;
  307. };
  308. ESPresponse [exceptions_inline] WUInfoResponse
  309. {
  310. ESPstruct ECLWorkunit Workunit;
  311. int AutoRefresh(0);
  312. bool CanCompile;
  313. [min_ver("1.25")] string ThorSlaveIP;
  314. [min_ver("1.34")] ESParray<string, View> ResultViews;
  315. [min_ver("1.54")] string SecMethod;
  316. };
  317. ESPrequest WUResultSummaryRequest
  318. {
  319. string Wuid;
  320. int Sequence;
  321. };
  322. ESPresponse [exceptions_inline] WUResultSummaryResponse
  323. {
  324. string Wuid;
  325. int Sequence;
  326. int Format;
  327. ESPStruct ECLResult Result;
  328. };
  329. /* html */
  330. ESPrequest WULogFileRequest
  331. {
  332. string Name;
  333. string Wuid;
  334. string Type;
  335. int Option;
  336. [min_ver("1.10")] string SlaveIP;
  337. [min_ver("1.32")] string IPAddress;
  338. [min_ver("1.32")] string Description;
  339. [min_ver("1.36")] string QuerySet;
  340. [min_ver("1.36")] string Query;
  341. [min_ver("1.38")] string Process;
  342. [min_ver("1.38")] string ClusterGroup;
  343. [min_ver("1.38")] string LogDate;
  344. [min_ver("1.38")] int SlaveNumber(1);
  345. [min_ver("1.55")] int64 SizeLimit(0);
  346. [min_ver("1.77")] ESPenum ErrorMessageFormat ErrorMessageFormat;
  347. string PlainText;
  348. };
  349. ESPresponse [exceptions_inline] WULogFileResponse
  350. {
  351. [min_ver("1.36")] string Wuid;
  352. [min_ver("1.36")] string QuerySet;
  353. [min_ver("1.36")] string QueryName;
  354. [min_ver("1.36")] string QueryId;
  355. [min_ver("1.36")] string FileName;
  356. [min_ver("1.38")] string DaliServer;
  357. [http_content("application/octet-stream")] binary thefile;
  358. };
  359. ESPrequest WUDownloadFilesRequest
  360. {
  361. string Wuid;
  362. string QuerySet;
  363. string Query;
  364. ESPenum WUFileDownloadOption DownloadOption;
  365. ESParray<ESPstruct WUFileOption> WUFileOptions;
  366. };
  367. ESPresponse [exceptions_inline] WUDownloadFilesResponse
  368. {
  369. [http_content("application/octet-stream")] binary thefile;
  370. };
  371. ESPrequest WUResultBinRequest
  372. {
  373. string LogicalName;
  374. string Wuid;
  375. string ResultName;
  376. int Sequence;
  377. string Format("raw");
  378. [min_ver("1.73")] string Cluster;
  379. [min_ver("1.50")] ESParray<ESPstruct NamedValue> FilterBy;
  380. int64 Start(0);
  381. int Count;
  382. };
  383. ESPresponse [exceptions_inline] WUResultBinResponse
  384. {
  385. string Wuid;
  386. int Sequence;
  387. string Name;
  388. int64 Start;
  389. int Count;
  390. int Requested;
  391. int64 Total;
  392. [http_content("application/octet-stream")] binary Result;
  393. string Format;
  394. };
  395. ESPrequest WUResultRequest
  396. {
  397. string Wuid;
  398. int Sequence;
  399. string ResultName;
  400. string LogicalName;
  401. string Cluster;
  402. bool SuppressXmlSchema(0);
  403. [min_ver("1.60")] bool BypassCachedResult(false);
  404. [min_ver("1.50")] ESParray<ESPstruct NamedValue> FilterBy;
  405. int64 Start(0);
  406. int Count;
  407. };
  408. ESPresponse [exceptions_inline,http_encode(0)] WUResultResponse
  409. {
  410. string Wuid;
  411. int Sequence;
  412. string LogicalName;
  413. string Cluster;
  414. string Name;
  415. int64 Start;
  416. int Requested;
  417. int Count;
  418. int64 Total;
  419. [json_inline(1)] string Result;
  420. };
  421. ESPrequest WUFullResultRequest
  422. {
  423. string Wuid;
  424. bool NoRootTag(0);
  425. ESPenum WUExceptionSeverity ExceptionSeverity("info");
  426. };
  427. ESPresponse [exceptions_inline,http_encode(0)] WUFullResultResponse
  428. {
  429. string Wuid;
  430. [json_inline(1)] string Results;
  431. };
  432. ESPrequest WUResultViewRequest
  433. {
  434. string Wuid;
  435. string ViewName;
  436. int Sequence;
  437. string ResultName;
  438. };
  439. ESPresponse [exceptions_inline] WUResultViewResponse
  440. {
  441. string Wuid;
  442. string ViewName;
  443. [http_content("text/html")] string Result;
  444. };
  445. ESPrequest WUClusterJobQueueXLSRequest
  446. {
  447. string Cluster;
  448. string StartDate;
  449. string EndDate;
  450. string ShowType;
  451. };
  452. ESPresponse [exceptions_inline] WUClusterJobQueueXLSResponse
  453. {
  454. [http_content("application/octet-stream")] binary Result;
  455. };
  456. ESPrequest [nil_remove] WUClusterJobQueueLOGRequest
  457. {
  458. string Cluster;
  459. string StartDate;
  460. string EndDate;
  461. };
  462. ESPresponse [exceptions_inline] WUClusterJobQueueLOGResponse
  463. {
  464. [http_content("text/xml")] binary thefile;
  465. };
  466. ESPrequest WUClusterJobXLSRequest
  467. {
  468. string Cluster;
  469. string StartDate;
  470. string EndDate;
  471. bool ShowAll;
  472. string BusinessStartTime;
  473. string BusinessEndTime;
  474. };
  475. ESPresponse [exceptions_inline] WUClusterJobXLSResponse
  476. {
  477. [http_content("application/octet-stream")] binary Result;
  478. };
  479. ESPrequest WUClusterJobSummaryXLSRequest
  480. {
  481. string Cluster;
  482. string StartDate;
  483. string EndDate;
  484. bool ShowAll;
  485. string BusinessStartTime;
  486. string BusinessEndTime;
  487. };
  488. ESPresponse [exceptions_inline] WUClusterJobSummaryXLSResponse
  489. {
  490. [http_content("application/octet-stream")] binary Result;
  491. };
  492. ESPrequest [nil_remove] WUGetThorJobQueueRequest
  493. {
  494. string Cluster;
  495. string StartDate;
  496. string EndDate;
  497. unsigned MaxJobQueueItemsToReturn(0);
  498. };
  499. ESPresponse [exceptions_inline] WUGetThorJobQueueResponse
  500. {
  501. int LongestQueue;
  502. int MaxThorConnected;
  503. ESParray<ESPstruct ThorQueue> QueueList;
  504. string Warning;
  505. };
  506. ESPrequest [nil_remove] WUGetThorJobListRequest
  507. {
  508. string Cluster;
  509. string StartDate;
  510. string EndDate;
  511. unsigned MaxJobsToReturn(0);
  512. };
  513. ESPresponse [exceptions_inline] WUGetThorJobListResponse
  514. {
  515. ESParray<ESPstruct ECLJob> JobList;
  516. ESParray<ESPstruct ECLJob> InProgressJobList;
  517. string Warning;
  518. };
  519. ESPrequest GVCAjaxGraphRequest
  520. {
  521. string Name;
  522. string GraphName;
  523. [min_ver("1.20")] int SubGraphId;
  524. [min_ver("1.21")] bool SubGraphOnly;
  525. };
  526. ESPresponse GVCAjaxGraphResponse
  527. {
  528. string Name;
  529. string GraphName;
  530. string GraphType;
  531. [min_ver("1.20")] int SubGraphId;
  532. [min_ver("1.21")] bool SubGraphOnly;
  533. };
  534. ESPrequest [nil_remove] WUGraphInfoRequest
  535. {
  536. string Wuid;
  537. string Name;
  538. [min_ver("1.02")] string GID;
  539. [min_ver("1.15")] int BatchWU;
  540. };
  541. ESPresponse [exceptions_inline] WUGraphInfoResponse
  542. {
  543. string Wuid;
  544. string Name;
  545. [min_ver("1.02")] string GID;
  546. [min_ver("1.15")] int BatchWU;
  547. bool Running;
  548. };
  549. ESPrequest [nil_remove] WUGVCGraphInfoRequest
  550. {
  551. string Wuid;
  552. string Name;
  553. string GID;
  554. [min_ver("1.15")] int BatchWU;
  555. [min_ver("1.18")] int SubgraphId;
  556. };
  557. ESPresponse [exceptions_inline, http_encode(0)] WUGVCGraphInfoResponse
  558. {
  559. string Wuid;
  560. string Name;
  561. string GID;
  562. bool Running;
  563. string TheGraph;
  564. [min_ver("1.15")] int BatchWU;
  565. };
  566. ESPrequest WUGraphTimingRequest
  567. {
  568. string Wuid;
  569. };
  570. ESPresponse [exceptions_inline] WUGraphTimingResponse
  571. {
  572. ESPstruct ECLWorkunit Workunit;
  573. };
  574. ESPrequest WUGetGraphNameAndTypesRequest
  575. {
  576. string Wuid;
  577. string Type;
  578. };
  579. ESPresponse [encode(0), exceptions_inline] WUGetGraphNameAndTypesResponse
  580. {
  581. ESParray<ESPstruct NameAndType, GraphNameAndType> GraphNameAndTypes;
  582. };
  583. ESPrequest WUProcessGraphRequest
  584. {
  585. string Wuid;
  586. string Name;
  587. };
  588. ESPresponse [encode(0), exceptions_inline] WUProcessGraphResponse
  589. {
  590. string theGraph;
  591. };
  592. ESPrequest WUGetGraphRequest
  593. {
  594. string Wuid;
  595. [min_ver("1.19")] string GraphName;
  596. [min_version("1.21")] string SubGraphId;
  597. };
  598. ESPresponse [exceptions_inline] WUGetGraphResponse
  599. {
  600. ESParray<ESPstruct ECLGraphEx> Graphs;
  601. };
  602. ESPrequest WUExportRequest
  603. {
  604. string Cluster;
  605. string Owner;
  606. string State;
  607. string StartDate;
  608. string EndDate;
  609. [max_ver("1.57")] string ECL;
  610. string Jobname;
  611. };
  612. ESPresponse [exceptions_inline] WUExportResponse
  613. {
  614. [http_content("text/xml")] binary ExportData;
  615. };
  616. ESPrequest WUWaitRequest
  617. {
  618. string Wuid;
  619. int Wait(-1);
  620. bool ReturnOnWait(false);
  621. };
  622. ESPresponse [exceptions_inline] WUWaitResponse
  623. {
  624. int StateID;
  625. };
  626. ESPrequest WUSyntaxCheckRequest
  627. {
  628. string ECL;
  629. string ModuleName;
  630. string AttributeName;
  631. string Queue;
  632. string Cluster;
  633. string Snapshot;
  634. int TimeToWait(60000);
  635. [min_ver("1.04")] ESParray<ESPstruct DebugValue> DebugValues;
  636. };
  637. ESPresponse [exceptions_inline] WUSyntaxCheckResponse
  638. {
  639. ESParray<ESPstruct ECLException> Errors;
  640. [min_ver("1.57")] string Message;
  641. };
  642. ESPrequest WUCompileECLRequest
  643. {
  644. string ECL;
  645. string ModuleName;
  646. string AttributeName;
  647. string Queue;
  648. string Cluster;
  649. string Snapshot;
  650. bool IncludeDependencies(false);
  651. bool IncludeComplexity;
  652. int TimeToWait(60000);
  653. };
  654. ESPresponse [exceptions_inline] WUCompileECLResponse
  655. {
  656. string Complexity;
  657. ESParray<ESPstruct ECLException> Errors;
  658. ESParray<ESPstruct WUECLAttribute, ECLAttribute> Dependencies;
  659. };
  660. ESPrequest WUJobListRequest
  661. {
  662. string Cluster;
  663. [min_ver("1.50")] string Process;
  664. string StartDate;
  665. string EndDate;
  666. bool ShowAll;
  667. int BusinessStartHour;
  668. int BusinessEndHour;
  669. };
  670. ESPresponse [exceptions_inline] WUJobListResponse
  671. {
  672. string StartDate;
  673. string EndDate;
  674. ESParray<ESPstruct ECLJob> Jobs;
  675. };
  676. ESPrequest [nil_remove] WUShowScheduledRequest
  677. {
  678. string Cluster("");
  679. string EventName("");
  680. string PushEventName("");
  681. string PushEventText("");
  682. [min_ver("1.51")] string State("");
  683. [min_ver("1.71")] string JobName("");
  684. [min_ver("1.77")] string Owner("");
  685. [min_ver("1.77")] string EventText("");
  686. };
  687. ESPresponse [nil_remove, exceptions_inline] WUShowScheduledResponse
  688. {
  689. int ClusterSelected(0);
  690. string EventName("");
  691. string PushEventName("");
  692. string PushEventText("");
  693. string Query("");
  694. ESParray<ESPstruct ServerInfo> Clusters;
  695. ESParray<ESPstruct ScheduledWU> Workunits;
  696. };
  697. ESPrequest WUGetDependancyTreesRequest
  698. {
  699. string Cluster;
  700. string Queue;
  701. string Snapshot;
  702. string Items;
  703. [min_ver("1.12")] string TimeoutMilliSec;
  704. };
  705. ESPresponse [nil_remove, exceptions_inline] WUGetDependancyTreesResponse
  706. {
  707. ESParray<ESPstruct ECLException> Errors;
  708. [http_content("text/xml")] binary DependancyTrees;
  709. };
  710. ESPrequest WUListLocalFileRequiredRequest
  711. {
  712. string Wuid;
  713. };
  714. ESPresponse [nil_remove, exceptions_inline] WUListLocalFileRequiredResponse
  715. {
  716. ESParray<ESPstruct LogicalFileUpload> LocalFileUploads;
  717. };
  718. ESPrequest WUAddLocalFileToWorkunitRequest
  719. {
  720. string Wuid;
  721. string Name;
  722. string Val;
  723. string DefVal;
  724. int Type;
  725. int Length;
  726. };
  727. ESPresponse [nil_remove, exceptions_inline] WUAddLocalFileToWorkunitResponse
  728. {
  729. string Wuid;
  730. string Name;
  731. string Result;
  732. };
  733. ESPrequest WUDebugRequest
  734. {
  735. string Wuid;
  736. string Command;
  737. };
  738. ESPresponse [exceptions_inline] WUDebugResponse
  739. {
  740. string Result;
  741. };
  742. ESPrequest WUCopyLogicalFilesRequest
  743. {
  744. string Wuid;
  745. string Cluster;
  746. bool CopyLocal;
  747. };
  748. ESPresponse [exceptions_inline] WUCopyLogicalFilesResponse
  749. {
  750. string Wuid;
  751. ESParray<ESPStruct WUCopyLogicalClusterFileSections, Cluster> ClusterFiles;
  752. };
  753. ESPrequest [nil_remove] WUGetZAPInfoRequest
  754. {
  755. string WUID;
  756. };
  757. ESPresponse [exceptions_inline] WUGetZAPInfoResponse
  758. {
  759. string WUID;
  760. string ESPIPAddress;
  761. string ThorIPAddress;
  762. string BuildVersion;
  763. string Archive;
  764. [min_ver("1.73")] string EmailTo;
  765. [min_ver("1.73")] string EmailFrom;
  766. };
  767. ESPrequest [nil_remove] WUCreateZAPInfoRequest
  768. {
  769. string Wuid;
  770. string ESPIPAddress;
  771. string ThorIPAddress;
  772. string BuildVersion;
  773. string ProblemDescription;
  774. string WhatChanged;
  775. string WhereSlow;
  776. [min_ver("1.53"), depr_ver("1.70")] string Password;
  777. [min_ver("1.65")] string ZAPFileName;
  778. [min_ver("1.57")] string IncludeThorSlaveLog("on");
  779. [min_ver("1.70")] string ZAPPassword;
  780. [min_ver("1.73")] bool SendEmail(false);
  781. [min_ver("1.73")] bool AttachZAPReportToEmail(false);
  782. [min_ver("1.73")] string EmailFrom;
  783. [min_ver("1.73")] string EmailSubject;
  784. [min_ver("1.73")] string EmailBody;
  785. };
  786. ESPresponse [exceptions_inline] WUCreateZAPInfoResponse
  787. {
  788. [http_content("application/octet-stream")] binary thefile;
  789. [min_ver("1.70")] string ZAPFileName;
  790. };
  791. ESPrequest [nil_remove] WUCheckFeaturesRequest
  792. {
  793. };
  794. ESPresponse [exceptions_inline] WUCheckFeaturesResponse
  795. {
  796. int BuildVersionMajor;
  797. int BuildVersionMinor;
  798. int BuildVersionPoint;
  799. unsigned maxRequestEntityLength;
  800. ESPStruct DeploymentFeatures Deployment;
  801. };
  802. ESPrequest [nil_remove] WUGetStatsRequest
  803. {
  804. string WUID;
  805. string CreatorType;
  806. string Creator;
  807. string ScopeType;
  808. string Scope;
  809. string Kind;
  810. string Measure;
  811. unsigned MinScopeDepth;
  812. unsigned MaxScopeDepth;
  813. boolean IncludeGraphs;
  814. boolean CreateDescriptions;
  815. [min_ver("1.62")] int64 MinValue; // Should be uint64 but esdl does not support it.
  816. [min_ver("1.62")] int64 MaxValue;
  817. [min_ver("1.62")] string Filter; // arbitrary text filter
  818. //MORE: Some indication of which fields need to be returned - to reduce the amount of data returned. Is there a general esp mechanism?
  819. };
  820. ESPresponse [exceptions_inline] WUGetStatsResponse
  821. {
  822. string WUID;
  823. ESParray<ESPstruct WUStatisticItem> Statistics;
  824. };
  825. ESPrequest [nil_remove] WUListArchiveFilesRequest
  826. {
  827. string WUID;
  828. };
  829. ESPresponse [exceptions_inline, nil_remove] WUListArchiveFilesResponse
  830. {
  831. ESParray<ESPstruct WUArchiveModule, ArchiveModule> ArchiveModules;
  832. ESParray<ESPstruct WUArchiveFile, File> Files;
  833. string Message;
  834. };
  835. ESPrequest [nil_remove] WUGetArchiveFileRequest
  836. {
  837. string WUID;
  838. string ModuleName; //<Module @name> or
  839. string FileName; //<Attribute @name>
  840. string Path; //(nested) parent module name(s) for the <Module @name> or <Attribute @name>
  841. };
  842. ESPresponse [exceptions_inline, nil_remove] WUGetArchiveFileResponse
  843. {
  844. string File; //ECL text
  845. string Message;
  846. };
  847. ESPrequest [nil_remove] WUGetNumFileToCopyRequest
  848. {
  849. string ClusterName;
  850. [min_ver("1.69")] int64 PageSize(0);
  851. [min_ver("1.69")] int64 PageStartFrom(0);
  852. [min_ver("1.69")] string Sortby;
  853. [min_ver("1.69")] bool Descending(false);
  854. [min_ver("1.69")] int64 CacheHint;
  855. };
  856. ESPresponse [exceptions_inline, nil_remove] WUGetNumFileToCopyResponse
  857. {
  858. ESParray<ESPstruct ClusterEndpoint, Endpoint> Endpoints;
  859. [min_ver("1.69")] int64 CacheHint;
  860. [min_ver("1.69")] int64 Total;
  861. };
  862. // ----------------------------------------------------------------------------------
  863. // WUDetails service
  864. //
  865. ESPRequest WUDetailsRequest
  866. {
  867. string WUID;
  868. [optional] ESPstruct WUScopeFilter ScopeFilter; // which scopes are matched
  869. [optional] ESPstruct WUNestedFilter NestedFilter; // what nested scopes are returned
  870. [optional] ESPstruct WUPropertiesToReturn PropertiesToReturn; // List of properties to return
  871. [optional] string Filter; // Filter as a string text
  872. [optional] ESPstruct WUScopeOptions ScopeOptions; // Which scope details are returned
  873. [optional] ESPstruct WUPropertyOptions PropertyOptions; // Which attribute details are returned
  874. };
  875. ESPResponse [exceptions_inline] WUDetailsResponse
  876. {
  877. uint64 MaxVersion; // largest version for any matches
  878. string WUID; // all [optional] ESParray<string, Attribute> Attributes; // a list of attributes to returnows wildcarded requests to be interpreted.
  879. ESParray<ESPstruct WUResponseScope, Scope> Scopes;
  880. };
  881. ESPRequest WUDetailsMetaRequest
  882. {
  883. };
  884. ESPResponse [exceptions_inline] WUDetailsMetaResponse
  885. {
  886. ESParray<ESPStruct WUDetailsMetaProperty, Property> Properties;
  887. ESParray<string, ScopeType> ScopeTypes;
  888. ESParray<string, Measure> Measures;
  889. ESParray<ESPStruct WUDetailsActivityInfo, Activity> Activities;
  890. };
  891. ESPrequest [nil_remove] WUEclDefinitionActionRequest
  892. {
  893. ESParray<string> EclDefinitions;
  894. ESPenum EclDefinitionActions ActionType;
  895. string Target;
  896. string RemoteDali; //Publish
  897. string SourceProcess; //Publish
  898. string Priority; //Publish
  899. string Comment; //Publish
  900. string MemoryLimit; //Publish - 123M
  901. bool DeletePrevious(false); //Publish
  902. bool SuspendPrevious(false); //Publish
  903. bool NoActivate(false); //Publish
  904. bool NoReload(false); //Publish
  905. bool DontCopyFiles(false); //Publish
  906. bool AllowForeign(false); //Publish
  907. bool UpdateDfs(false); //Publish
  908. bool UpdateSuperfiles(false); //Publish
  909. bool UpdateCloneFrom(false); //Publish
  910. bool DontAppendCluster(false); //Publish
  911. int MsToWait(-1);
  912. int TimeLimit(-1); //Publish
  913. int WarnTimeLimit(-1); //Publish
  914. };
  915. ESPresponse [exceptions_inline] WUEclDefinitionActionResponse
  916. {
  917. ESParray<ESPstruct WUEclDefinitionActionResult> ActionResults;
  918. };
  919. // ----------------------------------------------------------------------------------