12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331 |
- openapi: 3.0.3
- info:
- version: '1.8.0'
- title: Fate Flow
- paths:
- '/data/upload':
- post:
- summary: upload
- tags:
- - data-access
- parameters:
- - in: query
- name: id_delimiter
- description: data delimiter
- required: false
- schema:
- type: string
- example: ","
- - in: query
- name: head
- description: data head
- required: true
- schema:
- type: integer
- example: 0, 1
- - in: query
- name: partition
- description: compoting table partitions
- required: true
- schema:
- type: integer
- example: 16, ...
- - in: query
- name: table_name
- description: fate table name
- required: true
- schema:
- type: string
- example: breast_hetero_guest
- - in: query
- name: namespace
- description: fate table namespace
- required: true
- schema:
- type: string
- example: experiment
- - in: query
- name: storage_engine
- description: data storage engin
- required: false
- schema:
- type: string
- example: eggroll, localfs, hdfs, ...
- - in: query
- name: destory
- description: destory old table and upload new table
- required: false
- schema:
- type: integer
- example: 0, 1
- - in: query
- name: extend_sid
- description: extend sid to first column
- required: false
- schema:
- type: integer
- example: 0, 1
- requestBody:
- required: true
- content:
- application/octet-stream:
- schema:
- type: string
- responses:
- '200':
- description: upload success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- example:
- {
- "board_url": "http://xxx:8080/index.html#/dashboard?job_id=xxx&role=local&party_id=0",
- "code": 0,
- "dsl_path": "/data/projects/fate/fateflow/jobs/xxx/job_dsl.json",
- "job_id": xxx,
- "logs_directory": "/data/projects/fate/fateflow/logs/xxx",
- "message": "success",
- "model_info": {
- "model_id": "local-0#model",
- "model_version": xxx
- },
- "namespace": "experiment",
- "pipeline_dsl_path": "/data/projects/fate/fateflow/jobs/xxx/pipeline_dsl.json",
- "runtime_conf_on_party_path": "/data/projects/fate/fateflow/jobs/xxx/local/0/job_runtime_on_party_conf.json",
- "runtime_conf_path": "/data/projects/fate/fateflow/jobs/xxx/job_runtime_conf.json",
- "table_name": "breast_hetero_guest",
- "train_runtime_conf_path": "/data/projects/fate/fateflow/jobs/xxx/train_runtime_conf.json"
- }
- '404':
- description: upload failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: required parameters are missing
- '/data/download':
- post:
- summary: download data
- tags:
- - data-access
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - table_name
- - namespace
- - output_path
- properties:
- table_name:
- type: string
- example: breast_hetero_guest
- namespace:
- type: string
- example: experiment
- output_path:
- type: string
- example: /data/projects/fate/fateflow/experiment_download_breast_guest.csv
- delimiter:
- type: string
- example: ","
- responses:
- '200':
- description: download success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- example:
- {
- "board_url": "http://xxx:8080/index.html#/dashboard?job_id=xxx&role=local&party_id=0",
- "code": 0,
- "dsl_path": "/data/projects/fate/fateflow/jobs/xxx/job_dsl.json",
- "job_id": xxx,
- "logs_directory": "/data/projects/fate/fateflow/logs/xxx",
- "message": "success",
- "model_info": {
- "model_id": "local-0#model",
- "model_version": xxx
- },
- "namespace": "experiment",
- "pipeline_dsl_path": "/data/projects/fate/fateflow/jobs/xxx/pipeline_dsl.json",
- "runtime_conf_on_party_path": "/data/projects/fate/fateflow/jobs/xxx/local/0/job_runtime_on_party_conf.json",
- "runtime_conf_path": "/data/projects/fate/fateflow/jobs/xxx/job_runtime_conf.json",
- "table_name": "breast_hetero_guest",
- "train_runtime_conf_path": "/data/projects/fate/fateflow/jobs/xxx/train_runtime_conf.json"
- }
- '404':
- description: download failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: required parameters are missing
- '/data/upload/history':
- post:
- summary: history of upload job info
- tags:
- - data-access
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- properties:
- job_id:
- type: string
- example: 202103241706521313480
- limit:
- type: integer
- description: limit output
- example: 1
- responses:
- '200':
- description: get success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: array
- items:
- type: object
- example:
- {
- "202103241706521313480": {
- "notes": "",
- "schema": {
- "header": "y,x0,x1,x2,x3,x4,x5,x6,x7,x8,x9",
- "sid": "id"
- },
- "upload_info": {
- "namespace": "experiment",
- "partition": 4,
- "table_name": "breast_hetero_guest",
- "upload_count": 569
- }
- }
- }
- '404':
- description: get failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 100
- retmsg:
- type: string
- example: server error
- '/table/bind':
- post:
- summary: bind a storage address to fate table
- tags:
- - table
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - engine
- - address
- - namespace
- - name
- - head
- - id_delimiter
- - partitions
- properties:
- engine:
- type: string
- example: mysql
- name:
- type: string
- example: breast_hetero_guest
- namespace:
- type: string
- example: experiment
- address:
- type: object
- description: storage address
- example:
- user: fate
- passwd: fate
- host: 127.0.0.1
- port: 3306
- db: xxx
- name: xxx
- partitions:
- type: integer
- description: fate computing table partitions
- example: 16
- head:
- type: integer
- description: 1 means data have head
- example: 0,1
- id_delimiter:
- type: string
- description: data table or intermediate storage table delimiter
- example: ","
- in_serialized:
- type: integer
- description: data serialized, standlone/eggroll/mysql/path storage default 1, others default 0
- example: 0, 1
- drop:
- type: integer
- description: if table is exist, will delete it
- example: 0,1
- id_column:
- type: string
- example: "id"
- feature_column:
- type: string
- description: delimited by ","
- example: x1,x2,x3
- responses:
- '200':
- description: bind table success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- properties:
- table_name:
- type: string
- example: breast_hetero_guest
- namespace:
- type: string
- example: experiment
- '404':
- description: bind table failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 100
- retmsg:
- type: string
- example: engine xxx address xxx check failed
- '/table/delete':
- post:
- summary: delete fate table
- tags:
- - table
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - table_name
- - namespace
- properties:
- table_name:
- type: string
- example: breast_hetero_guest
- namespace:
- type: string
- example: experiment
- responses:
- '200':
- description: delete table success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- properties:
- table_name:
- type: string
- example: breast_hetero_guest
- namespace:
- type: string
- example: experiment
- '404':
- description: delete table failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: no find table
- '/table/list':
- post:
- summary: get job all tables
- tags:
- - table
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - job_id
- - role
- - party_id
- properties:
- job_id:
- type: string
- example: 202101251515021092240
- role:
- type: string
- example: guest
- party_id:
- type: string
- example: 10000
- responses:
- '200':
- description: get tables success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- example:
- {
- "DataIO_0":
- {
- "input":
- {
- "Reader_0.data_0":
- {
- "name": xxx,
- "namespace": xxx
- }
- },
- "output":
- {
- "data_0":
- {
- "name": xxx,
- "namespace": xxx
- }
- }
- },
- "Intersection_0":
- {
- "input":
- {
- "DataIO_0.data_0":
- {
- "name": xxx,
- "namespace": xxx
- }
- },
- "output":
- {
- "data_0":
- {
- "name": xxx,
- "namespace": xxx
- }
- }
- },
- "Reader_0":
- {
- "input":
- {
- "table":
- {
- "name": xxx,
- "namespace": "xxxx"
- }
- },
- "output":
- {
- "data_0":
- {
- "name": xxx,
- "namespace": xxx
- }
- }
- }
- }
- '404':
- description: delete table failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: no find table
- '/table/table_info':
- post:
- summary: query table info
- tags:
- - table
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - table_name
- - namespace
- properties:
- table_name:
- type: string
- example: breast_hetero_guest
- namespace:
- type: string
- example: experiment
- responses:
- '200':
- description: get tables success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- example:
- {
- "address":
- {},
- "count": 569,
- "exist": 1,
- "namespace": "experiment",
- "partition": 16,
- "schema":
- {
- "header": "id,y,x0,x1,x2,x3,x4,x5,x6,x7,x8,x9",
- "sid": "id"
- },
- "table_name": "breast_hetero_guest"
- }
- '404':
- description: query table failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: no find table
- '/table/tracking/source':
- post:
- summary: tracking table source
- tags:
- - table
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - table_name
- - namespace
- properties:
- table_name:
- type: string
- example: breast_hetero_guest
- namespace:
- type: string
- example: experiment
- responses:
- '200':
- description: tracking success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: array
- items:
- type: object
- example:
- {
- "parent_table_name": xxx,
- "parent_table_namespace": xxx,
- "source_table_name": xxx,
- "source_table_namespace": xxx
- }
- '404':
- description: tracking failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: no find table
- '/table/tracking/job':
- post:
- summary: tracking using table job
- tags:
- - table
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - table_name
- - namespace
- properties:
- table_name:
- type: string
- example: breast_hetero_guest
- namespace:
- type: string
- example: experiment
- responses:
- '200':
- description: tracking success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: array
- items:
- type: object
- example:
- {
- "count": 5,
- "job":
- [
- "202104212104472450460",
- "202104212127150470680",
- "202104220937051579910",
- "202104212038599210200",
- "202104212131462630720"
- ]
- }
- '404':
- description: tracking failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: no find table
- '/job/submit':
- post:
- summary: submit job
- tags:
- - job
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - dsl
- - runtime_conf
- properties:
- dsl:
- type: object
- example:
- {
- "components":
- {
- "dataio_0":
- {
- "input":
- {
- "data":
- {
- "data":
- [
- "reader_0.table"
- ]
- }
- },
- "module": "DataIO",
- "need_deploy": true,
- "output":
- {
- "data":
- [
- "train"
- ],
- "model":
- [
- "dataio"
- ]
- }
- },
- "evaluation_0":
- {
- "input":
- {
- "data":
- {
- "data":
- [
- "hetero_lr_0.train"
- ]
- }
- },
- "module": "Evaluation",
- "output":
- {
- "data":
- [
- "evaluate"
- ]
- }
- },
- "hetero_feature_binning_0":
- {
- "input":
- {
- "data":
- {
- "data":
- [
- "intersection_0.train"
- ]
- }
- },
- "module": "HeteroFeatureBinning",
- "output":
- {
- "data":
- [
- "train"
- ],
- "model":
- [
- "hetero_feature_binning"
- ]
- }
- },
- "hetero_feature_selection_0":
- {
- "input":
- {
- "data":
- {
- "data":
- [
- "hetero_feature_binning_0.train"
- ]
- },
- "isometric_model":
- [
- "hetero_feature_binning_0.hetero_feature_binning"
- ]
- },
- "module": "HeteroFeatureSelection",
- "output":
- {
- "data":
- [
- "train"
- ],
- "model":
- [
- "selected"
- ]
- }
- },
- "hetero_lr_0":
- {
- "input":
- {
- "data":
- {
- "train_data":
- [
- "hetero_feature_selection_0.train"
- ]
- }
- },
- "module": "HeteroLR",
- "output":
- {
- "data":
- [
- "train"
- ],
- "model":
- [
- "hetero_lr"
- ]
- }
- },
- "intersection_0":
- {
- "input":
- {
- "data":
- {
- "data":
- [
- "dataio_0.train"
- ]
- }
- },
- "module": "Intersection",
- "output":
- {
- "data":
- [
- "train"
- ]
- }
- },
- "reader_0":
- {
- "module": "Reader",
- "output":
- {
- "data":
- [
- "table"
- ]
- }
- }
- }
- }
- runtime_conf:
- type: object
- example:
- {
- "component_parameters":
- {
- "common":
- {
- "hetero_lr_0":
- {
- "alpha": 0.01,
- "batch_size": 320,
- "init_param":
- {
- "init_method": "random_uniform"
- },
- "learning_rate": 0.15,
- "max_iter": 3,
- "optimizer": "rmsprop",
- "penalty": "L2"
- },
- "intersection_0":
- {
- "intersect_method": "raw",
- "only_output_key": false,
- "sync_intersect_ids": true
- }
- },
- "role":
- {
- "guest":
- {
- "0":
- {
- "dataio_0":
- {
- "label_name": "y",
- "label_type": "int",
- "output_format": "dense",
- "with_label": true
- },
- "reader_0":
- {
- "table":
- {
- "name": "breast_hetero_guest",
- "namespace": "experiment"
- }
- }
- }
- },
- "host":
- {
- "0":
- {
- "dataio_0":
- {
- "output_format": "dense",
- "with_label": false
- },
- "evaluation_0":
- {
- "need_run": false
- },
- "reader_0":
- {
- "table":
- {
- "name": "breast_hetero_host",
- "namespace": "experiment"
- }
- }
- }
- }
- }
- },
- "dsl_version": "2",
- "initiator":
- {
- "party_id": 9999,
- "role": "guest"
- },
- "job_parameters":
- {
- "common":
- {
- "auto_retries": 1,
- "computing_partitions": 8,
- "task_cores": 4,
- "task_parallelism": 2
- }
- },
- "role":
- {
- "arbiter":
- [
- 10000
- ],
- "guest":
- [
- 9999
- ],
- "host":
- [
- 10000
- ]
- }
- }
- responses:
- '200':
- description: submit job success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- example:
- {
- "board_url": xxx,
- "code": 0,
- "dsl_path": xxx,
- "job_id": xxx,
- "logs_directory": xxx,
- "message": "success",
- "model_info":
- {
- "model_id": xxx,
- "model_version": xxx
- },
- "pipeline_dsl_path": xxx,
- "runtime_conf_on_party_path": xxx,
- "runtime_conf_path": xxx,
- "train_runtime_conf_path": xxx
- }
- '404':
- description: submit job failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: "config error"
- '/job/stop':
- post:
- summary: stop job
- tags:
- - job
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - job_id
- properties:
- job_id:
- type: string
- example: 202103231958539401540
- stop_status:
- type: string
- default: cancel
- example: "failed"
- description: "failed or cancel"
- responses:
- '200':
- description: stop job success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- '404':
- description: stop job failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: no find job
- '/job/rerun':
- post:
- summary: rerun job
- tags:
- - job
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - job_id
- properties:
- job_id:
- type: string
- example: 202103231958539401540
- responses:
- '200':
- description: rerun job success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- '404':
- description: rerun job failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: no find job
- '/job/query':
- post:
- summary: query job
- tags:
- - job
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - job_id
- properties:
- job_id:
- type: string
- responses:
- '200':
- description: query job success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: array
- items:
- type: object
- example:
- {
- "f_apply_resource_time": xxx,
- "f_cancel_signal": false,
- "f_cancel_time": xxx,
- "f_cores": 8,
- "f_create_date": xxx,
- "f_create_time": xxx,
- "f_description": "",
- "f_dsl": {},
- "f_elapsed": 14380,
- "f_end_date": xxx,
- "f_end_scheduling_updates": 1,
- "f_end_time": xxx,
- "f_engine_name": "EGGROLL",
- "f_engine_type": "computing",
- "f_initiator_party_id": "20001",
- "f_initiator_role": "guest",
- "f_is_initiator": true,
- "f_job_id": xxx,
- "f_memory": 0,
- "f_name": "",
- "f_party_id": "20001",
- "f_progress": 14,
- "f_ready_signal": false,
- "f_ready_time": null,
- "f_remaining_cores": 8,
- "f_remaining_memory": 0,
- "f_rerun_signal": false,
- "f_resource_in_use": false,
- "f_return_resource_time": xxx,
- "f_role": "guest",
- "f_roles": {},
- "f_runtime_conf": {},
- "f_runtime_conf_on_party": {},
- "f_start_date": xxx,
- "f_start_time": xxx,
- "f_status": "failed",
- "f_status_code": null,
- "f_tag": "job_end",
- "f_train_runtime_conf": {},
- "f_update_date": xxx,
- "f_update_time": xxx,
- "f_user": {},
- "f_user_id": ""
- }
- '404':
- description: query job failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: no find job
- '/job/list/job':
- post:
- summary: list jobs
- tags:
- - job
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- properties:
- limit:
- type: integer
- description: '`0` means no limit'
- example: 20
- page:
- type: integer
- example: 1
- job_id:
- type: string
- example: '202112020129140220090'
- party_id:
- type: integer
- example: 9999
- role:
- type: array
- items:
- type: string
- enum:
- - guest
- - host
- - arbiter
- - local
- status:
- type: array
- items:
- type: string
- enum:
- - success
- - running
- - waiting
- - failed
- - canceled
- description:
- type: string
- description: '`notes` on front-end'
- order_by:
- type: string
- description: 'defaults `create_time`'
- enum:
- - create_time
- - start_time
- - end_time
- - elapsed
- order:
- type: string
- description: 'defaults `desc`'
- enum:
- - asc
- - desc
- responses:
- '200':
- description: jobs list
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- properties:
- count:
- type: integer
- example: 1
- jobs:
- type: array
- items:
- type: object
- example:
- apply_resource_time: 1638379762883
- cancel_signal: false
- cancel_time:
- cores: 4
- create_date: '2021-12-02 01:29:18'
- create_time: 1638379758581
- description: ''
- dsl:
- components:
- dataio_0:
- input:
- data:
- data:
- - reader_0.data
- module: DataIO
- output:
- data:
- - data
- model:
- - model
- hetero_feature_binning_0:
- input:
- data:
- data:
- - intersection_0.data
- module: HeteroFeatureBinning
- output:
- data:
- - data
- model:
- - model
- intersection_0:
- input:
- data:
- data:
- - dataio_0.data
- module: Intersection
- output:
- cache:
- - cache
- data:
- - data
- reader_0:
- module: Reader
- output:
- data:
- - data
- provider: fate_flow@1.7.0
- elapsed: 116548
- end_date: '2021-12-02 01:31:19'
- end_scheduling_updates: 1
- end_time: 1638379879547
- engine_name: STANDALONE
- engine_type: computing
- initiator_party_id: '10000'
- initiator_role: guest
- is_initiator: true
- job_id: '202112020129140220090'
- memory: 0
- name: ''
- partners:
- - 9999
- party_id: 10000
- progress: 100
- ready_signal: false
- ready_time:
- remaining_cores: 4
- remaining_memory: 0
- rerun_signal: false
- resource_in_use: false
- return_resource_time: 1638379879568
- role: guest
- roles:
- guest:
- - 10000
- host:
- - 9999
- runtime_conf:
- component_parameters:
- common:
- hetero_feature_binning_0:
- adjustment_factor: 0.5
- bin_indexes: -1
- bin_names:
- bin_num: 10
- category_indexes:
- category_names:
- compress_thres: 10000
- error: 0.001
- head_size: 10000
- local_only: false
- method: quantile
- transform_param:
- transform_cols:
- - 0
- - 1
- - 2
- transform_names:
- transform_type: woe
- role:
- guest:
- '0':
- dataio_0:
- with_label: true
- reader_0:
- table:
- name: breast_hetero_guest
- namespace: experiment
- host:
- '0':
- dataio_0:
- with_label: false
- hetero_feature_binning_0:
- transform_param:
- transform_type:
- reader_0:
- table:
- name: breast_hetero_host
- namespace: experiment
- conf_path: "/tmp/tmp2zc5tf8b/job_runtime_conf.json"
- dsl_path: "/tmp/tmp2zc5tf8b/job_dsl.json"
- dsl_version: 2
- initiator:
- party_id: 10000
- role: guest
- job_parameters:
- common:
- adaptation_parameters:
- if_initiator_baseline: true
- request_task_cores: 4
- task_cores_per_node: 4
- task_memory_per_node: 0
- task_nodes: 1
- auto_retries: 0
- auto_retry_delay: 1
- computing_engine: STANDALONE
- computing_partitions: 4
- eggroll_run: { }
- engines_address: { }
- federated_mode: SINGLE
- federated_status_collect_type: PUSH
- federation_engine: STANDALONE
- job_type: train
- model_id: guest-10000#host-9999#model
- model_version: '202112020129140220090'
- pulsar_run: { }
- rabbitmq_run: { }
- spark_run: { }
- storage_engine: STANDALONE
- task_parallelism: 1
- role:
- guest:
- - 10000
- host:
- - 9999
- runtime_conf_on_party:
- component_parameters:
- common:
- hetero_feature_binning_0:
- adjustment_factor: 0.5
- bin_indexes: -1
- bin_names:
- bin_num: 10
- category_indexes:
- category_names:
- compress_thres: 10000
- error: 0.001
- head_size: 10000
- local_only: false
- method: quantile
- transform_param:
- transform_cols:
- - 0
- - 1
- - 2
- transform_names:
- transform_type: woe
- role:
- guest:
- '0':
- dataio_0:
- with_label: true
- reader_0:
- table:
- name: breast_hetero_guest
- namespace: experiment
- host:
- '0':
- dataio_0:
- with_label: false
- hetero_feature_binning_0:
- transform_param:
- transform_type:
- reader_0:
- table:
- name: breast_hetero_host
- namespace: experiment
- conf_path: "/tmp/tmp2zc5tf8b/job_runtime_conf.json"
- dsl_path: "/tmp/tmp2zc5tf8b/job_dsl.json"
- dsl_version: 2
- initiator:
- party_id: 10000
- role: guest
- job_parameters:
- adaptation_parameters:
- if_initiator_baseline: false
- request_task_cores: 4
- task_cores_per_node: 4
- task_memory_per_node: 0
- task_nodes: 1
- auto_retries: 0
- auto_retry_delay: 1
- computing_engine: STANDALONE
- computing_partitions: 4
- eggroll_run:
- eggroll.session.processors.per.node: 4
- engines_address:
- computing:
- cores_per_node: 20
- nodes: 1
- federation:
- cores_per_node: 20
- nodes: 1
- storage:
- cores_per_node: 20
- nodes: 1
- federated_mode: SINGLE
- federated_status_collect_type: PUSH
- federation_engine: STANDALONE
- job_type: train
- model_id: guest-10000#host-9999#model
- model_version: '202112020129140220090'
- pulsar_run: { }
- rabbitmq_run: { }
- spark_run: { }
- storage_engine: STANDALONE
- task_parallelism: 1
- role:
- guest:
- - 10000
- host:
- - 9999
- start_date: '2021-12-02 01:29:22'
- start_time: 1638379762999
- status: success
- status_code:
- tag: job_end
- train_runtime_conf: { }
- update_date: '2021-12-02 01:32:04'
- update_time: 1638379924749
- user:
- guest:
- '10000': ''
- host:
- '9999': ''
- user_id: ''
- '/job/list/task':
- post:
- summary: list tasks
- tags:
- - job
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- properties:
- limit:
- type: integer
- description: '`0` means no limit'
- example: 20
- page:
- type: integer
- example: 1
- job_id:
- type: string
- example: '202112020129140220090'
- party_id:
- type: integer
- example: 9999
- role:
- type: string
- enum:
- - guest
- - host
- - arbiter
- - local
- component_name:
- type: string
- example: upload_0
- order_by:
- type: string
- description: 'defaults `create_time`'
- enum:
- - create_time
- - start_time
- - end_time
- - elapsed
- order:
- type: string
- description: 'defaults `asc`'
- enum:
- - asc
- - desc
- responses:
- '200':
- description: jobs list
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- properties:
- count:
- type: integer
- example: 1
- tasks:
- type: array
- items:
- type: object
- example:
- auto_retries: 0
- auto_retry_delay: 1
- cmd:
- - "/root/Codes/FATE/venv/bin/python3.6"
- - "/root/Codes/FATE/fateflow/python/fate_flow/worker/task_executor.py"
- - "--job_id"
- - '202112020129140220090'
- - "--component_name"
- - hetero_feature_binning_0
- - "--task_id"
- - 202112020129140220090_hetero_feature_binning_0
- - "--task_version"
- - 0
- - "--role"
- - guest
- - "--party_id"
- - '10000'
- - "--config"
- - "/root/Codes/FATE/fateflow/jobs/202112020129140220090/guest/10000/hetero_feature_binning_0/202112020129140220090_hetero_feature_binning_0/0/task_executor/6b6f4b1852cc11ec8a8700155d13c16c/config.json"
- - "--result"
- - "/root/Codes/FATE/fateflow/jobs/202112020129140220090/guest/10000/hetero_feature_binning_0/202112020129140220090_hetero_feature_binning_0/0/task_executor/6b6f4b1852cc11ec8a8700155d13c16c/result.json"
- - "--log_dir"
- - "/root/Codes/FATE/fateflow/logs/202112020129140220090/guest/10000/hetero_feature_binning_0"
- - "--parent_log_dir"
- - "/root/Codes/FATE/fateflow/logs/202112020129140220090/guest/10000"
- - "--worker_id"
- - 6b6f4b1852cc11ec8a8700155d13c16c
- - "--run_ip"
- - 127.0.0.1
- - "--job_server"
- - 127.0.0.1:9380
- - "--session_id"
- - 202112020129140220090_hetero_feature_binning_0_0_guest_10000
- - "--federation_session_id"
- - 202112020129140220090_hetero_feature_binning_0_0
- component_module: HeteroFeatureBinning
- component_name: hetero_feature_binning_0
- component_parameters:
- CodePath: HeteroFeatureBinningGuest
- ComponentParam:
- _feeded_deprecated_params: [ ]
- _is_raw_conf: false
- _name: HeteroFeatureBinning#hetero_feature_binning_0
- _user_feeded_params:
- - head_size
- - category_names
- - bin_num
- - transform_param.transform_names
- - transform_param
- - compress_thres
- - error
- - method
- - bin_indexes
- - transform_param.transform_type
- - bin_names
- - category_indexes
- - local_only
- - transform_param.transform_cols
- - adjustment_factor
- adjustment_factor: 0.5
- bin_indexes: -1
- bin_names:
- bin_num: 10
- category_indexes:
- category_names:
- compress_thres: 10000
- encrypt_param:
- key_length: 1024
- method: Paillier
- error: 0.001
- head_size: 10000
- local_only: false
- method: quantile
- need_run: true
- optimal_binning_param:
- adjustment_factor:
- init_bin_nums: 1000
- init_bucket_method: quantile
- max_bin:
- max_bin_pct: 1
- metric_method: iv
- min_bin_pct: 0.05
- mixture: true
- skip_static: false
- transform_param:
- transform_cols:
- - 0
- - 1
- - 2
- transform_names:
- transform_type: woe
- conf_path: "/tmp/tmp2zc5tf8b/job_runtime_conf.json"
- dsl_path: "/tmp/tmp2zc5tf8b/job_dsl.json"
- dsl_version: 2
- initiator:
- party_id: 10000
- role: guest
- job_parameters:
- common:
- adaptation_parameters:
- if_initiator_baseline: true
- request_task_cores: 4
- task_cores_per_node: 4
- task_memory_per_node: 0
- task_nodes: 1
- auto_retries: 0
- auto_retry_delay: 1
- computing_engine: STANDALONE
- computing_partitions: 4
- eggroll_run: { }
- engines_address: { }
- federated_mode: SINGLE
- federated_status_collect_type: PUSH
- federation_engine: STANDALONE
- job_type: train
- model_id: guest-10000#host-9999#model
- model_version: '202112020129140220090'
- pulsar_run: { }
- rabbitmq_run: { }
- spark_run: { }
- storage_engine: STANDALONE
- task_parallelism: 1
- local:
- party_id: 10000
- role: guest
- module: HeteroFeatureBinning
- role:
- guest:
- - 10000
- host:
- - 9999
- create_date: '2021-12-02 01:29:21'
- create_time: 1638379761918
- elapsed: 9095
- end_date: '2021-12-02 01:31:04'
- end_time: 1638379864051
- engine_conf:
- computing_engine: STANDALONE
- federated_mode: SINGLE
- federated_status_collect_type: PUSH
- initiator_party_id: '10000'
- initiator_role: guest
- job_id: '202112020129140220090'
- party_id: '10000'
- party_status: success
- provider_info:
- class_path:
- feature_instance: feature.instance.Instance
- feature_vector: feature.sparse_vector.SparseVector
- homo_model_convert: protobuf.homo_model_convert.homo_model_convert
- interface: components.components.Components
- model: protobuf.generated
- model_migrate: protobuf.model_migrate.model_migrate
- env:
- PYTHONPATH: "/root/Codes/FATE/python"
- name: fate
- path: "/root/Codes/FATE/python/federatedml"
- version: 1.7.0
- role: guest
- run_ip: 127.0.0.1
- run_on_this_party: true
- run_pid: 29934
- start_date: '2021-12-02 01:30:47'
- start_time: 1638379847118
- status: success
- status_code:
- task_id: 202112020129140220090_hetero_feature_binning_0
- task_version: 0
- update_date: '2021-12-02 01:31:06'
- update_time: 1638379866439
- worker_id: 6b6f4b1852cc11ec8a8700155d13c16c
- '/job/update':
- post:
- summary: job notes
- tags:
- - job
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - job_id
- - role
- - party_id
- - notes
- properties:
- job_id:
- type: string
- example: "2022xxx"
- role:
- type: string
- example: guest
- party_id:
- type: integer
- example: 10000
- notes:
- type: string
- example: this is a test
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: no find job
- '/job/parameter/update':
- post:
- summary: update job parameter
- tags:
- - job
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - job_id
- properties:
- job_id:
- type: string
- example: "2022xxx"
- component_parameters:
- type: object
- example:
- {
- "common":
- {
- "hetero_lr_0":
- {
- "max_iter": 10
- }
- }
- }
- job_parameters:
- type: object
- example:
- {
- "common":
- {
- "auto_retries": 2
- }
- }
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- example:
- {
- "component_parameters":
- {
- "common":
- {
- "hetero_lr_0":
- {
- "alpha": 0.01,
- "batch_size": 320,
- "init_param":
- {
- "init_method": "random_uniform"
- },
- "learning_rate": 0.15,
- "max_iter": 10,
- "optimizer": "rmsprop",
- "penalty": "L2"
- },
- "intersection_0":
- {
- "intersect_method": "raw",
- "only_output_key": false,
- "sync_intersect_ids": true
- }
- },
- "role":
- {
- "guest":
- {
- "0":
- {
- "dataio_0":
- {
- "label_name": "y",
- "label_type": "int",
- "output_format": "dense",
- "with_label": true
- },
- "reader_0":
- {
- "table":
- {
- "name": "breast_hetero_guest",
- "namespace": "experiment"
- }
- }
- }
- },
- "host":
- {
- "0":
- {
- "dataio_0":
- {
- "output_format": "dense",
- "with_label": false
- },
- "evaluation_0":
- {
- "need_run": false
- },
- "reader_0":
- {
- "table":
- {
- "name": "breast_hetero_host",
- "namespace": "experiment"
- }
- }
- }
- }
- }
- },
- "components":
- [],
- "job_parameters":
- {
- "common":
- {
- "adaptation_parameters":
- {
- "if_initiator_baseline": true,
- "request_task_cores": 4,
- "task_cores_per_node": 4,
- "task_memory_per_node": 0,
- "task_nodes": 1
- },
- "auto_retries": 2,
- "auto_retry_delay": 1,
- "computing_engine": "EGGROLL",
- "computing_partitions": 4,
- "eggroll_run":
- {},
- "engines_address":
- {},
- "federated_mode": "MULTIPLE",
- "federated_status_collect_type": "PUSH",
- "inheritance_info":
- {},
- "job_type": "train",
- "model_id": "arbiter-10001#guest-20001#host-10001#model",
- "model_version": "202204251958539401540",
- "pulsar_run":
- {},
- "rabbitmq_run":
- {},
- "spark_run":
- {},
- "task_parallelism": 1
- }
- },
- "src_party_id": "20001",
- "src_role": "guest"
- }
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: no find job
- '/job/config':
- post:
- summary: job config
- tags:
- - job
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - job_id
- properties:
- job_id:
- type: string
- example: "2022xxx"
- role:
- type: string
- example: guest
- party_id:
- type: integer
- example: 10000
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- example:
- {
- "dsl":
- {},
- "job_id": "2022xxx",
- "model_info":
- {},
- "runtime_conf":
- {},
- "train_runtime_conf":
- {}
- }
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: no find job
- '/job/log/download':
- post:
- summary: download job log (tar.gz)
- tags:
- - job
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - job_id
- properties:
- job_id:
- type: string
- responses:
- '200':
- description: get job log success
- content:
- application/octet-stream:
- schema:
- type: string
- description: file xxx_log.tar.gz
- '404':
- description: get job list failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 404
- retmsg:
- type: string
- example: Log file path xxx not found. Please check if the job id is valid.
- '/job/log/path':
- post:
- summary: job log path
- tags:
- - job
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - job_id
- properties:
- job_id:
- type: string
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- example:
- {
- "logs_directory": "/data/projects/fate/fateflow/logs/xxx"
- }
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: no find job
- '/job/task/query':
- post:
- summary: query task
- tags:
- - job
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - job_id
- properties:
- job_id:
- type: string
- role:
- type: string
- example: guest
- party_id:
- type: integer
- example: 10000
- component_name:
- type: string
- example: reader_0
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: array
- description: tasks list
- items:
- type: object
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: no find task
- '/job/clean':
- post:
- summary: clean job
- tags:
- - job
- requestBody:
- required: true
- content:
- application/json:
- schema:
- required:
- - job_id
- type: object
- properties:
- job_id:
- type: string
- role:
- type: string
- example: guest
- party_id:
- type: integer
- example: 10000
- component_name:
- type: string
- example: reader_0
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: no find task
- '/job/clean/queue':
- post:
- summary: cancel waiting job
- tags:
- - job
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- example:
- {
- "202204261616186991350": 0,
- "202204261616198643190": 0,
- "202204261616210073410": 0
- }
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: server error
- '/tracking/job/data_view':
- post:
- summary: data view
- tags:
- - tracking
- requestBody:
- required: true
- content:
- application/json:
- schema:
- required:
- - job_id
- - role
- - party_id
- type: object
- properties:
- job_id:
- type: string
- role:
- type: string
- example: guest
- party_id:
- type: integer
- example: 10000
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- example:
- {
- "dataset":
- {
- "guest":
- {
- "9999":
- {
- "Reader_0": "xxx.xxx"
- }
- },
- "host":
- {
- "10000":
- {
- "Reader_0": "xxx.xxx"
- }
- }
- },
- "model_summary":
- {},
- "partner":
- {
- "host":
- [
- 10000
- ]
- },
- "roles":
- {
- "guest":
- [
- 9999
- ],
- "host":
- [
- 10000
- ]
- }
- }
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: error
- '/tracking/component/metric/all':
- post:
- summary: get component all metric
- tags:
- - tracking
- requestBody:
- required: true
- content:
- application/json:
- schema:
- required:
- - job_id
- - role
- - party_id
- - component_name
- type: object
- properties:
- job_id:
- type: string
- role:
- type: string
- example: guest
- party_id:
- type: integer
- example: 10000
- component_name:
- type: string
- example: HeteroSecureBoost_0
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- example:
- {
- "train":
- {
- "loss":
- {
- "data":
- [
- [
- 0,
- 0.6076415445876732
- ],
- [
- 1,
- 0.5374539452565573
- ],
- [
- 2,
- 0.4778598986135903
- ],
- [
- 3,
- 0.42733599866560723
- ],
- [
- 4,
- 0.38433409799127843
- ]
- ],
- "meta":
- {
- "Best": 0.38433409799127843,
- "curve_name": "loss",
- "metric_type": "LOSS",
- "name": "train",
- "unit_name": "iters"
- }
- }
- }
- }
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: error
- '/tracking/component/metrics':
- post:
- summary: get component metric name and namespace
- tags:
- - tracking
- requestBody:
- required: true
- content:
- application/json:
- schema:
- required:
- - job_id
- - role
- - party_id
- - component_name
- type: object
- properties:
- job_id:
- type: string
- role:
- type: string
- example: guest
- party_id:
- type: integer
- example: 10000
- component_name:
- type: string
- example: Intersection_0
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- example:
- {
- "train":
- [
- "intersection"
- ]
- }
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: error
- '/tracking/component/metric_data':
- post:
- summary: get component metric data
- tags:
- - tracking
- requestBody:
- required: true
- content:
- application/json:
- schema:
- required:
- - job_id
- - role
- - party_id
- - component_name
- - metric_name
- - metric_namespace
- type: object
- properties:
- job_id:
- type: string
- role:
- type: string
- example: guest
- party_id:
- type: integer
- example: 10000
- component_name:
- type: string
- example: Intersection_0
- metric_name:
- type: string
- example: intersection
- metric_namespace:
- type: string
- example: train
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- example:
- {
- "data":
- [
- [
- "intersect_count",
- 569
- ],
- [
- "intersect_rate",
- 1.0
- ],
- [
- "unmatched_count",
- 0
- ],
- [
- "unmatched_rate",
- 0.0
- ]
- ],
- "meta":
- {
- "intersect_method": "raw",
- "join_method": "inner_join",
- "metric_type": "INTERSECTION",
- "name": "intersection"
- }
- }
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: error
- '/tracking/component/parameters':
- post:
- summary: get component parameters
- tags:
- - tracking
- requestBody:
- required: true
- content:
- application/json:
- schema:
- required:
- - job_id
- - role
- - party_id
- - component_name
- type: object
- properties:
- job_id:
- type: string
- role:
- type: string
- example: guest
- party_id:
- type: integer
- example: 10000
- component_name:
- type: string
- example: Intersection_0
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- example:
- {
- "ComponentParam":
- {
- "_feeded_deprecated_params":
- [
- "repeated_id_owner",
- "intersect_cache_param",
- "join_role",
- "encode_params",
- "allow_info_share",
- "repeated_id_process",
- "random_bit",
- "with_encode",
- "info_owner"
- ],
- "_is_raw_conf": false,
- "_name": "Intersection#Intersection_0",
- "_user_feeded_params":
- [
- "repeated_id_owner",
- "encode_params.salt",
- "intersect_method",
- "intersect_cache_param.encrypt_type",
- "encode_params.encode_method",
- "encode_params",
- "intersect_cache_param",
- "intersect_cache_param.id_type",
- "intersect_cache_param.use_cache",
- "join_role",
- "allow_info_share",
- "repeated_id_process",
- "sync_intersect_ids",
- "random_bit",
- "only_output_key",
- "with_encode",
- "encode_params.base64",
- "info_owner"
- ],
- "allow_info_share": false,
- "cardinality_only": false,
- "dh_params":
- {
- "hash_method": "sha256",
- "key_length": 1024,
- "salt": ""
- },
- "encode_params":
- {
- "base64": false,
- "encode_method": "none",
- "salt": ""
- },
- "info_owner": "guest",
- "intersect_cache_param":
- {
- "encrypt_type": "sha256",
- "id_type": "phone",
- "use_cache": false
- },
- "intersect_method": "raw",
- "intersect_preprocess_params":
- {
- "encrypt_method": "rsa",
- "false_positive_rate": 0.001,
- "filter_owner": "guest",
- "hash_method": "sha256",
- "preprocess_method": "sha256",
- "preprocess_salt": "",
- "random_state": null
- },
- "join_method": "inner_join",
- "join_role": "guest",
- "new_sample_id": false,
- "only_output_key": false,
- "random_bit": 128,
- "raw_params":
- {
- "base64": false,
- "hash_method": "none",
- "join_role": "guest",
- "salt": "",
- "use_hash": false
- },
- "repeated_id_owner": "guest",
- "repeated_id_process": false,
- "rsa_params":
- {
- "final_hash_method": "sha256",
- "hash_method": "sha256",
- "key_length": 1024,
- "random_base_fraction": null,
- "random_bit": 128,
- "salt": "",
- "split_calculation": false
- },
- "run_cache": false,
- "run_preprocess": false,
- "sample_id_generator": "guest",
- "sync_cardinality": false,
- "sync_intersect_ids": true,
- "with_encode": false,
- "with_sample_id": false
- },
- "module": "Intersection"
- }
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: error
- '/tracking/component/summary/download':
- post:
- summary: get component summary
- tags:
- - tracking
- requestBody:
- required: true
- content:
- application/json:
- schema:
- required:
- - job_id
- - role
- - party_id
- - component_name
- type: object
- properties:
- job_id:
- type: string
- role:
- type: string
- example: guest
- party_id:
- type: integer
- example: 10000
- component_name:
- type: string
- example: Intersection_0
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- example:
- {
- "cardinality_only": false,
- "intersect_num": 569,
- "intersect_rate": 1.0
- }
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: error
- '/tracking/component/output/model':
- post:
- summary: get component output model
- tags:
- - tracking
- requestBody:
- required: true
- content:
- application/json:
- schema:
- required:
- - job_id
- - role
- - party_id
- - component_name
- type: object
- properties:
- job_id:
- type: string
- role:
- type: string
- example: guest
- party_id:
- type: integer
- example: 10000
- component_name:
- type: string
- example: Intersection_0
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: error
- '/tracking/component/output/data':
- post:
- summary: get component output data
- tags:
- - tracking
- requestBody:
- required: true
- content:
- application/json:
- schema:
- required:
- - job_id
- - role
- - party_id
- - component_name
- type: object
- properties:
- job_id:
- type: string
- role:
- type: string
- example: guest
- party_id:
- type: integer
- example: 10000
- component_name:
- type: string
- example: Intersection_0
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- example:
- [
- [
- [
- "58",
- 1,
- -0.422281,
- -0.558102,
- -0.506991,
- -0.450875,
- -1.326851,
- -1.223647,
- -1.296979,
- -1.575895,
- -0.747019,
- -1.166825
- ],
- [
- "66",
- 1,
- -1.213336,
- 0.957974,
- -1.19832,
- -0.966647,
- 0.983301,
- -0.558944,
- -0.854288,
- -0.752745,
- -0.036814,
- 0.452425
- ]
- ]
- ]
- meta:
- type: object
- example:
- {
- "header":
- [
- [
- "id",
- "y",
- "x0",
- "x1",
- "x2",
- "x3",
- "x4",
- "x5",
- "x6",
- "x7",
- "x8",
- "x9"
- ]
- ],
- "names":
- [
- "data_0"
- ],
- "total":
- [
- 569
- ]
- }
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: error
- '/tracking/component/output/data/download':
- post:
- summary: download component output data (tar.gz)
- tags:
- - tracking
- requestBody:
- required: true
- content:
- application/json:
- schema:
- required:
- - job_id
- - role
- - party_id
- - component_name
- type: object
- properties:
- job_id:
- type: string
- role:
- type: string
- example: guest
- party_id:
- type: integer
- example: 10000
- component_name:
- type: string
- example: Intersection_0
- responses:
- '200':
- description: success
- content:
- application/octet-stream:
- schema:
- type: string
- example: ""
- description: file data.tar.gz
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: error
- '/tracking/component/output/data/table':
- post:
- summary: get component output data table info
- tags:
- - tracking
- requestBody:
- required: true
- content:
- application/json:
- schema:
- required:
- - job_id
- - role
- - party_id
- - component_name
- type: object
- properties:
- job_id:
- type: string
- role:
- type: string
- example: guest
- party_id:
- type: integer
- example: 10000
- component_name:
- type: string
- example: Intersection_0
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: array
- items:
- type: object
- example:
- [
- {
- "data_name": "data_0",
- "table_name": "ab035e12b09711ec943e525400c367ed",
- "table_namespace": "output_data_202203311009181495690_Intersection_0_0"
- }
- ]
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: No found table, please check if the parameters are correct
- '/tracking/component/list':
- post:
- summary: get component list
- tags:
- - tracking
- requestBody:
- required: true
- content:
- application/json:
- schema:
- required:
- - job_id
- type: object
- properties:
- job_id:
- type: string
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- example:
- {
- "components":
- [
- "HeteroFeatureSelection_0",
- "DataIO_0",
- "Reader_0",
- "HeteroSecureBoost_0",
- "HeteroFeatureBinning_0",
- "Intersection_0",
- "Evaluation_0"
- ]
- }
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: error
- '/resource/query':
- post:
- summary: query conputing engine resource
- tags:
- - resource
- requestBody:
- required: true
- content:
- application/json:
- schema:
- required:
- - engine_name
- type: object
- properties:
- engine_name:
- type: string
- example: EGGROLL, SPARK
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- example: {"computing_engine_resource":{"f_cores":16,"f_create_date":"2022-02-10 16:14:03","f_create_time":1644480843818,"f_engine_config":{"cores_per_node":16,"nodes":1},"f_engine_entrance":"fate_on_eggroll","f_engine_name":"EGGROLL","f_engine_type":"computing","f_memory":0,"f_nodes":1,"f_remaining_cores":16,"f_remaining_memory":0,"f_update_date":"2022-04-27 15:48:33","f_update_time":1651045713996},"use_resource_job":[]}
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: error
- '/resource/return':
- post:
- summary: return job resource
- tags:
- - resource
- requestBody:
- required: true
- content:
- application/json:
- schema:
- required:
- - job_id
- type: object
- properties:
- engine_name:
- type: string
- example: 202204261616175720130
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- example: [{"job_id":"202204261616175720130","party_id":"20001","resource_in_use":true,"resource_return_status":ture,"role":"guest"}]
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: no found job
- '/permission/grant/privilege':
- post:
- summary: grant privilege
- tags:
- - permission
- requestBody:
- required: true
- content:
- application/json:
- schema:
- required:
- - src_role
- - src_party_id
- type: object
- properties:
- src_role:
- type: string
- example: "guest"
- src_party_id:
- type: string
- example: 9999
- privilege_role:
- type: string
- description: multiple separated by ",". like "guest, host, arbiter" or "all"
- example: all
- privilege_component:
- type: string
- description: multiple separated by ",". like "create, run, stop" or "all"
- example: all
- privilege_command:
- type: string
- description: multiple separated bu ",". like "reader, dataio, ..." or "all"
- example: all
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: error
- '/permission/delete/privilege':
- post:
- summary: delete privilege
- tags:
- - permission
- requestBody:
- required: true
- content:
- application/json:
- schema:
- required:
- - src_role
- - src_party_id
- type: object
- properties:
- src_role:
- type: string
- example: "guest"
- src_party_id:
- type: string
- example: 9999
- privilege_role:
- type: string
- description: multiple separated by ",". like "guest, host, arbiter" or "all"
- example: all
- privilege_component:
- type: string
- description: multiple separated by ",". like "create, run, stop" or "all"
- example: all
- privilege_command:
- type: string
- description: multiple separated bu ",". like "reader, dataio, ..." or "all"
- example: all
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: error
- '/permission/query/privilege':
- post:
- summary: query privilege
- tags:
- - permission
- requestBody:
- required: true
- content:
- application/json:
- schema:
- required:
- - src_role
- - src_party_id
- type: object
- properties:
- src_role:
- type: string
- example: "guest"
- src_party_id:
- type: string
- example: 9999
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- example: {"privilege_command":["stop","run","create"],"privilege_component":["reader", "dataio","heterolinr", "heterolr", "localbaseline","columnexpand","heteropearson","featurescale","datastatistics","feldmanverifiablesum"],"privilege_role":["host","guest","arbiter"],"role":"guest","src_party_id":"9999"}
- '404':
- description: failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 101
- retmsg:
- type: string
- example: error
- '/info/fateboard':
- post:
- summary: get fateboard host and port
- tags:
- - information
- responses:
- '200':
- description: fateboard host and port
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- properties:
- host:
- type: string
- example: 127.0.0.1
- port:
- type: integer
- example: 8080
- '404':
- description: fateboard is not configured
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 404
- retmsg:
- type: string
- example: fateboard is not configured
- '/info/mysql':
- post:
- summary: test mysql connection
- tags:
- - information
- responses:
- '200':
- description: connect to mysql successfully
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- '404':
- description: mysql only available on cluster mode
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 404
- retmsg:
- type: string
- example: mysql only available on cluster mode
- '503':
- description: connect to mysql failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 503
- retmsg:
- type: string
- description: error message
- '/info/eggroll':
- post:
- summary: test eggroll connection
- tags:
- - information
- responses:
- '200':
- description: connect to eggroll successfully
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- '404':
- description: eggroll only available on cluster mode
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 404
- retmsg:
- type: string
- example: eggroll only available on cluster mode
- '503':
- description: connect to eggroll failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 503
- retmsg:
- type: string
- description: error message
- '/model/deploy':
- post:
- summary: deploy a model for predict
- tags:
- - model
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - model_id
- - model_version
- properties:
- model_id:
- type: string
- example: 'arbiter-10000#guest-9999#host-10000#model'
- model_version:
- type: string
- example: '202111032155391167400'
- components_checkpoint:
- type: object
- description: specify a checkpoint model to replace the pipeline model
- example:
- hetero_lr_0:
- step_index: 5
- additionalProperties:
- type: object
- description: use step_index or step_name to specity a checkpoint
- properties:
- step_index:
- type: integer
- example: 5
- step_name:
- type: string
- example: round_5
- responses:
- '200':
- description: success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- properties:
- model_id:
- type: string
- example: 'arbiter-9999#guest-10000#host-9999#model'
- model_version:
- type: string
- example: '202111032227378766180'
- arbiter:
- type: object
- properties:
- party_id:
- type: integer
- example: 9999
- guest:
- type: object
- properties:
- party_id:
- type: integer
- example: 10000
- host:
- type: object
- properties:
- party_id:
- type: integer
- example: 9999
- detail:
- type: object
- properties:
- arbiter:
- type: object
- properties:
- party_id:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: deploy model of role arbiter 9999 success
- guest:
- type: object
- properties:
- party_id:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: deploy model of role guest 10000 success
- host:
- type: object
- properties:
- party_id:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: deploy model of role host 9999 success
- '/model/transfer/{model_id}/{model_version}':
- post:
- summary: download a model by model_id and model_version
- tags:
- - model
- parameters:
- - name: model_id
- in: path
- required: true
- description: 'model id (replace # with ~)'
- schema:
- type : string
- example: 'host~10000~arbiter-10000~guest-9999~host-10000~model'
- - name: model_version
- in: path
- required: true
- description: model version
- schema:
- type : string
- example: '202105060929263278441'
- responses:
- '200':
- description: model data
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- description: base64 encoded model data
- '404':
- description: model not found
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 404
- retmsg:
- type: string
- example: model not found
- '/model/load':
- post:
- summary: load a deployed model on Fate-Serving
- tags:
- - model
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - initiator
- - role
- - job_parameters
- properties:
- initiator:
- type: object
- properties:
- party_id:
- type: string
- example: '10000'
- role:
- type: string
- example: guest
- role:
- type: object
- example:
- guest:
- - '10000'
- host:
- - '10000'
- arbiter:
- - '10000'
- job_parameters:
- type: object
- properties:
- model_id:
- type: string
- example: arbiter-10000#guest-10000#host-10000#model
- model_version:
- type: string
- example: '2019081217340125761469'
- responses:
- '200':
- description: loading success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- jobId:
- type: string
- example: "2019081217340125761469"
- data:
- type: object
- example:
- detail:
- guest:
- '9999':
- retcode: 0
- retmsg: success
- host:
- '10000':
- retcode: 0
- retmsg: success
- guest:
- '9999': 0
- host:
- '10000': 0
- '/model/bind':
- post:
- summary: bind a deployed model to Fate-Serving
- tags:
- - model
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - service_id
- - initiator
- - role
- - job_parameters
- properties:
- service_id:
- type: string
- example: "123"
- initiator:
- type: object
- properties:
- party_id:
- type: string
- example: "10000"
- role:
- type: string
- example: guest
- job_parameters:
- type: object
- properties:
- model_id:
- type: string
- example: arbiter-10000#guest-10000#host-10000#model
- model_version:
- type: string
- example: "2019081217340125761469"
- responses:
- '200':
- description: binding success
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: service id is 123
- '/checkpoint/list':
- post:
- summary: list checkpoints
- tags:
- - checkpoint
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - model_id
- - model_version
- - role
- - party_id
- - component_name
- properties:
- model_id:
- type: string
- example: 'arbiter-10000#guest-9999#host-10000#model'
- model_version:
- type: string
- example: '202111032155391167400'
- role:
- type: string
- example: guest
- party_id:
- type: integer
- example: 9999
- component_name:
- type: string
- example: hetero_lr_0
- responses:
- '200':
- description: checkpoints list
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: array
- items:
- type: object
- properties:
- create_time:
- type: string
- example: '2021-11-07T02:34:54.683015'
- step_index:
- type: integer
- example: 0
- step_name:
- type: string
- example: step_name
- models:
- type: object
- example:
- HeteroLogisticRegressionMeta:
- buffer_name: LRModelMeta
- sha1: 6871508f6e6228341b18031b3623f99a53a87147
- HeteroLogisticRegressionParam:
- buffer_name: LRModelParam
- sha1: e3cb636fc93675684bff27117943f5bfa87f3029
- additionalProperties:
- type: object
- properties:
- buffer_name:
- type: string
- example: HeteroLogisticRegressionMeta
- sha1:
- type: string
- example: 6871508f6e6228341b18031b3623f99a53a87147
- '/checkpoint/get':
- post:
- summary: get a checkpoint
- tags:
- - checkpoint
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- required:
- - model_id
- - model_version
- - role
- - party_id
- - component_name
- properties:
- model_id:
- type: string
- example: 'arbiter-10000#guest-9999#host-10000#model'
- model_version:
- type: string
- example: '202111032155391167400'
- role:
- type: string
- example: guest
- party_id:
- type: integer
- example: 9999
- component_name:
- type: string
- example: hetero_lr_0
- step_index:
- type: integer
- example: 0
- responses:
- '200':
- description: checkpoint data
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- data:
- type: object
- properties:
- create_time:
- type: string
- example: '2021-11-07T02:34:54.683015'
- step_index:
- type: integer
- example: 0
- step_name:
- type: string
- example: step_name
- models:
- type: object
- example:
- HeteroLogisticRegressionMeta: 'CgJMMhEtQxzr4jYaPxkAAAAAAADwPyIHcm1zcHJvcDD///////////8BOTMzMzMzM8M/QApKBGRpZmZYAQ=='
- HeteroLogisticRegressionParam: 'Ig0KAng3EW1qASu+uuO/Ig0KAng0EcNi7a65ReG/Ig0KAng4EbJbl4gvVea/Ig0KAng2EcZwlVZTkOu/Ig0KAngwEVpG8dCbGvG/Ig0KAng5ESJNTx5MLve/Ig0KAngzEZ88H9P8qfO/Ig0KAng1EVfWP8JJv/K/Ig0KAngxEVS0xVXoTem/Ig0KAngyEaApgW32Q/K/KSiiE8AukPs/MgJ4MDICeDEyAngyMgJ4MzICeDQyAng1MgJ4NjICeDcyAng4MgJ4OUj///////////8B'
- additionalProperties:
- type: string
- description: base64 encoded model data
- '404':
- description: checkpoint not found
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 404
- retmsg:
- type: string
- example: The checkpoint was not found.
- '/component/validate':
- post:
- summary: validate component parameters
- tags:
- - component
- requestBody:
- required: true
- content:
- application/json:
- schema:
- type: object
- properties:
- dsl_version:
- type: integer
- example: 2
- component_name:
- type: string
- example: dataio_0
- component_module_name:
- type: string
- example: DataIO
- role:
- type: object
- example:
- guest:
- - 10000
- host:
- - 9999
- arbiter:
- - 9999
- component_parameters:
- type: object
- description: required if `dsl_version` == 2
- example:
- common:
- dataio_0:
- output_format: dense
- role:
- guest:
- '0':
- dataio_0:
- with_label: true
- host:
- '0':
- dataio_0:
- with_label: false
- output_format: dense
- role_parameters:
- type: object
- description: required if `dsl_version` == 1
- example:
- guest:
- dataio_0:
- with_label:
- - true
- label_name:
- - y
- label_type:
- - int
- output_format:
- - dense
- missing_fill:
- - true
- outlier_replace:
- - true
- host:
- dataio_0:
- with_label:
- - false
- output_format:
- - dense
- outlier_replace:
- - true
- algorithm_parameters:
- type: object
- description: required if `dsl_version` == 1
- example:
- hetero_feature_binning_0:
- method: quantile
- compress_thres: 10000
- head_size: 10000
- error: 0.001
- bin_num: 10
- adjustment_factor: 0.5
- local_only: false
- transform_param:
- transform_cols: -1
- transform_type: bin_num
- responses:
- '200':
- description: validation passed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 0
- retmsg:
- type: string
- example: success
- '400':
- description: validation failed
- content:
- application/json:
- schema:
- type: object
- properties:
- retcode:
- type: integer
- example: 400
- retmsg:
- type: string
- description: error message
- example: "Component dataio_0, module DataIO, does not pass component check, error msg is dataio param's dendse not supported, should be one of ['dense', 'sparse']"
- tags:
- - name: data-access
- - name: table
- - name: job
- - name: tracking
- - name: information
- - name: model
- - name: checkpoint
- - name: component
- servers:
- - description: Default Server URL
- url: http://localhost:9380/v1
|