{"swagger":"2.0","basePath":"/","info":{"description":"Abacus API","version":"1.6","title":"Abacus API","contact":{"email":"ildu.kim@aizen.co"}},"host":"121.88.5.249:16200","schemes":["https"],"tags":[{"name":"User"},{"name":"UserFavorite"},{"name":"Workspace"},{"name":"Workspace Member"},{"name":"Project"},{"name":"Dataset"},{"name":"Dataset Statistics"},{"name":"Model"},{"name":"Model Insight"},{"name":"Model Deployment"},{"name":"Model Import"},{"name":"Batch Prediction"},{"name":"Realtime Prediction"},{"name":"Task"},{"name":"Dashboard"},{"name":"System Monitoring"}],"paths":{"/users/login/":{"post":{"tags":["User"],"summary":"User Login","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"body","in":"body","schema":{"type":"object","properties":{"user_id":{"type":"string"},"password":{"type":"string"}}}}],"responses":{"200":{"description":"Login success","schema":{"type":"object","properties":{"id":{"type":"integer"},"group":{"type":"string"},"status":{"type":"string","enum":["success"]},"message":{"type":"string","enum":[null]}}}},"401":{"description":"Login failed","schema":{"type":"object","properties":{"id":{"type":"integer"},"group":{"type":"string","enum":[null]},"status":{"type":"string","enum":["fail"]},"message":{"type":"string","enum":["id or password is wrong"]}}}}}}},"/users/dup_check/":{"get":{"tags":["User"],"summary":"Check Duplication","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"user_id","in":"query","type":"string","description":"Each parameter must be used independently."},{"name":"email","in":"query","type":"string","description":"Each parameter must be used independently."}],"responses":{"200":{"description":"Return duplication or not\n　\nif duplicated, return true\nif not, return false\n","schema":{"type":"object","properties":{"duplicated":{"type":"boolean"}}}}}}},"/users/password_check/":{"get":{"tags":["User"],"summary":"Check if current password mathes","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"user_id","in":"query","type":"string","description":"user id in the database, not account id"},{"name":"password","in":"query","type":"string","description":"current password of the user"}],"responses":{"200":{"description":"Return duplication or not\n　\nif matched, return true\nif not, return false\n","schema":{"type":"object","properties":{"matched":{"type":"boolean"}}}}}}},"/users/":{"get":{"tags":["User"],"summary":"Get list of users","consumes":["application/json"],"produces":["application/json"],"responses":{"200":{"description":"User list in the same group as the administrator","schema":{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"user_id":{"type":"string"},"name":{"type":"string"},"display_name":{"type":"string"},"description":{"type":"string"},"group":{"type":"string"},"email":{"type":"string"},"phone_num":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"last_login_at":{"type":"string"}}}}}}}}},"post":{"tags":["User"],"summary":"Create a user (only admin)","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"body","in":"body","schema":{"type":"object","properties":{"user_id":{"type":"string"},"password":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"}}}}],"responses":{"200":{"description":"Created a user","schema":{"type":"object","properties":{"id":{"type":"integer"}}}}}},"delete":{"tags":["User"],"summary":"Delete users (only admin)","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"body","in":"body","schema":{"type":"object","properties":{"id":{"type":"array","items":{"type":"integer"}}}}}],"responses":{"204":{"description":"OK"}}}},"/users/{id}/":{"get":{"tags":["User"],"summary":"Get a User","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"description":"ID key of User table","type":"integer"}],"responses":{"200":{"description":"OK","schema":{"type":"object","properties":{"id":{"type":"integer"},"user_id":{"type":"string"},"name":{"type":"string"},"display_name":{"type":"string"},"description":{"type":"string"},"group":{"type":"string"},"email":{"type":"string"},"phone_num":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"}}}}}},"patch":{"tags":["User"],"summary":"Update a User","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"ID key of User table","required":true,"type":"integer"},{"name":"body","in":"body","description":"You should send only changed fields as parameters. Do not send parameters in empty.","schema":{"type":"object","properties":{"password":{"type":"string"},"display_name":{"type":"string"},"description":{"type":"string"},"email":{"type":"string"},"phone_num":{"type":"string"},"prof_pic_path":{"type":"string"}}}}],"responses":{"204":{"description":"OK"}}},"delete":{"tags":["User"],"summary":"Delete a User","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"ID key of User table","required":true,"type":"integer"}],"responses":{"204":{"description":"OK"}}}},"/users/{id}/favorites/":{"get":{"tags":["UserFavorite"],"summary":"Get list of users","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"ID key of User table","required":true,"type":"integer"},{"name":"project_id","in":"query","type":"string","description":"If you need to this method in each list such as datasets, models, predictions, you should use this query parameter"}],"responses":{"200":{"description":"User list in the same group as the administrator","schema":{"type":"object","properties":{"favorites":{"type":"array","items":{"type":"object","properties":{"project_id":{"type":"integer"},"user_id":{"type":"integer"},"dataset":{"type":"array","items":{"type":"integer"}},"model":{"type":"array","items":{"type":"integer"}},"prediction":{"type":"array","items":{"type":"integer"}},"created_at":{"type":"string"},"updated_at":{"type":"string"}}}}}}}}},"post":{"tags":["UserFavorite"],"summary":"Set a favorite of the user","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"ID key of User table","required":true,"type":"integer"},{"name":"body","in":"body","schema":{"type":"object","properties":{"project_id":{"type":"integer"},"favorite":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"integer"}}}}}}],"responses":{"204":{"description":"OK"}}},"delete":{"tags":["UserFavorite"],"summary":"Undo a favorite of the user","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"ID key of User table","required":true,"type":"integer"},{"name":"body","in":"body","schema":{"type":"object","properties":{"project_id":{"type":"integer"},"favorite":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"integer"}}}}}}],"responses":{"204":{"description":"OK"}}}},"/workspaces/":{"get":{"tags":["Workspace"],"summary":"Workspace List","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"user_id","in":"query","description":"ID key of User table","required":true,"type":"integer"}],"responses":{"200":{"description":"return the workspace list","schema":{"type":"object","properties":{"workspaces":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"}}}}}}}}},"post":{"tags":["Workspace"],"summary":"Create a workspace","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"body","in":"body","description":"key \"user\" means database id of user table not login id","schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"user":{"type":"integer"}}}}],"responses":{"200":{"description":"return workspace_id","schema":{"type":"object","properties":{"workspace_id":{"type":"integer"}}}}}}},"/workspaces/{id}/":{"patch":{"tags":["Workspace"],"summary":"Update a workspace","parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"workspace id"},{"name":"body","in":"body","description":"If not changed name or description, you should except that key","schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}],"responses":{"204":{"description":"OK"}}},"delete":{"tags":["Workspace"],"summary":"Delete a workspace","parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"workspace id"}],"responses":{"204":{"description":"OK"}}}},"/workspaces/{id}/member/":{"get":{"tags":["Workspace Member"],"summary":"Workspace Member List","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","description":"workspace id","required":true,"type":"integer"}],"responses":{"200":{"description":"return a member list of the workspace","schema":{"type":"object","properties":{"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"user_id":{"type":"string"},"name":{"type":"string"},"display_name":{"type":"string"},"email":{"type":"string"},"phone_num":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"last_login_at":{"type":"string"}}}}}}}}},"post":{"tags":["Workspace Member"],"summary":"Add a member to a workspace","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"workspace id"},{"name":"body","in":"body","description":"key \"user_id\" means database id of user table not login id","schema":{"type":"object","properties":{"user_id":{"type":"integer"}}}}],"responses":{"200":{"description":"return workspace_id","schema":{"type":"object","properties":{"workspace_id":{"type":"integer"}}}}}},"delete":{"tags":["Workspace Member"],"summary":"Delete a member from a workspace","parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"workspace id"},{"name":"body","in":"body","description":"key \"user_id\" means database id of user table not login id","schema":{"type":"object","properties":{"user_id":{"type":"integer"}}}}],"responses":{"200":{"description":"OK"}}}},"/workspaces/{workspace_id}/projects/":{"get":{"tags":["Project"],"summary":"Project List","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"workspace_id","in":"path","required":true,"type":"integer","description":"workspace id"}],"responses":{"200":{"description":"return the project list","schema":{"type":"object","properties":{"projects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"dataset_count":{"type":"integer"},"dataset_filesize":{"type":"integer"},"model_count":{"type":"integer"},"prediction_count":{"type":"integer"},"created":{"type":"string"},"last_updated":{"type":"string"}}}}}}}}},"post":{"tags":["Project"],"summary":"Create a project","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"workspace_id","in":"path","required":true,"type":"integer","description":"workspace id"},{"name":"body","in":"body","description":"type has two types [\"classifier_regressor\", \"clustering_recommendation\"]","schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"user_id":{"type":"integer"},"type":{"type":"string"}}}}],"responses":{"200":{"description":"return project_id","schema":{"type":"object","properties":{"project_id":{"type":"integer"}}}}}},"delete":{"tags":["Project"],"summary":"Delete projects","parameters":[{"name":"workspace_id","in":"path","required":true,"type":"integer","description":"workspace id"},{"name":"body","in":"body","required":true,"description":"key \"id\" means project id","schema":{"type":"object","properties":{"id":{"type":"array","items":{"type":"integer"}}}}}],"responses":{"204":{"description":"OK"}}}},"/workspaces/{workspace_id}/projects/{id}/":{"patch":{"tags":["Project"],"summary":"Update a project","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"workspace_id","in":"path","required":true,"description":"workspace id","type":"integer"},{"name":"id","in":"path","required":true,"description":"project id","type":"integer"},{"name":"body","in":"body","required":true,"description":"If not changed name or description, you should except that key","schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}}}}],"responses":{"204":{"description":"OK"}}}},"/workspaces/{workspace_id}/projects/{id}/overview/":{"get":{"tags":["Project"],"summary":"Show Overview of project","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"workspace_id","in":"path","required":true,"description":"workspace id","type":"integer"},{"name":"id","in":"path","required":true,"description":"project id","type":"integer"},{"name":"relation","in":"query","type":"string","description":"If you want to get entire relations (\"dm\", \"mp\", \"dp\", \"md\", \"pm\" ,\"pd\") \n, do not use this query string. \n\nValues - all, dm, mp, dp, mrp, md, pm, pd, rpm\n\n(d = dataset , m = model, p = batch-prediction, rp = realtime-prediction)\nIf you use 'dm', d(dataset) and m(model) will be each PARENT and CHILD.\nPARENT's contents can consist of many {CHILD_id, CHILD_name} \n  1. In PARENT is 'd' cases, the keys- \n    'used_in_prediction' (batch prediction) \n    'used_in_model' are shown.\n  2. In 'all' case, global relation of specified project is shown.\n  3. With regard to any kind of prediction (batch, realtime), \n     the key-vaule pair -\n     'prediction_type'&#58; 'batch' ('realtime')\n     is specified.\n     \n     Depending on the 'prediction_type', \n     'prediction_id' 'prediction_name' 'prediction_deleted' and 'prediction_status' refer to information about either batch-prediction or realtime-prediction\n     If 'prediction_type' is 'realtime', 'prediction_id' means realtime-prediction's id \n     and if 'batch', 'predictons_id' means batch-prediction's id\n\n\nexample of \"all\"\n{\n　　\"workspace_id\": 3,\n　　\"project_id\": 247,\n　　\"dataset_model\": [\n　　　{\n　　　　\"used_in_prediction\": true,\n　　　　\"used_in_model\": true,\n　　　　\"dataset_id\": 329,\n　　　　\"dataset_name\": \"Example dataset 1\",\n　　　　\"dataset_deleted\": false,\n　　　　\"dataset_status\": \"complete\",\n　　　　\"contents\": [\n　　　　　{\n　　　　　　\"model_id\": 49,\n　　　　　　\"model_name\": \"Model For Batch Prediction\",\n　　　　　　\"model_deleted\": false,\n　　　　　　\"model_status\": \"complete\",\n　　　　　　\"contents\": [\n　　　　　　　　{\n　　　　　　　　　　\"prediction_id\": 1,\n　　　　　　　　　　\"prediction_name\": \"Batch Prediction1\",\n　　　　　　　　　　\"prediction_deleted\": false,\n　　　　　　　　　　\"prediction_status\": \"error\",\n　　　　　　　　　　\"prediction_type\": \"batch\",\n　　　　　　　　　　\"contents\": [\n　　　　　　　　　　　　{\n  　　　　　　　　　　　　　　\"prediction_dataset_id\": 329,\n  　　　　　　　　　　　　　　\"prediction_dataset_name\": \"Example dataset 1\",\n  　　　　　　　　　　　　　　\"prediction_dataset_deleted\": false,\n  　　　　　　　　　　　　　　\"prediction_dataset_status\": \"complete\"\n  　　　　　　　　　　　　}\n  　　　　　　　　　　]\n　　　　　　　　}\n　　　　　　]\n　　　　　},\n　　　　　{\n　　　　　　\"model_id\": 51,\n　　　　　　\"model_name\": \"Model For Realtime Prediction\",\n　　　　　　\"model_deleted\": false,\n　　　　　　\"model_status\": \"decided\",\n　　　　　　\"contents\": [\n　　　　　　　　{\n　　　　　　　　　　\"prediction_id\": 1,\n　　　　　　　　　　\"prediction_name\": \"Real Pred 1\",\n　　　　　　　　　　\"prediction_deleted\": false,\n　　　　　　　　　　\"prediction_status\": \"undeployed\",\n　　　　　　　　　　\"prediction_type\": \"realtime\"\n　　　　　　　　},\n　　　　　　　　{\n　　　　　　　　　　\"predictionid\": 27,\n　　　　　　　　　　\"prediction_name\": \"Real Pred 2\",\n　　　　　　　　　　\"prediction_deleted\": false,\n　　　　　　　　　　\"prediction_status\": \"deployed\",\n　　　　　　　　　　\"prediction_type\": \"realtime\"\n　　　　　　　　},          　　　　　　　　\n　　　　　　]          \n　　　　　}\n　　　　]\n　　　}\n　]\n}\n\n\nExample GET - /workspaces/3/projects/247/overview/?relation=all\n"}],"responses":{"200":{"description":"Overview response depending on relation query","schema":{"type":"object","properties":{"workspace_id":{"type":"integer"},"project_id":{"type":"integer"},"PARENT_CHILD":{"type":"array","items":{"type":"object","properties":{"PARENT_id":{"type":"integer"},"PARENT_name":{"type":"string"},"PARENT_deleted":{"type":"boolean"},"PARENT_status":{"type":"string"},"contents":{"type":"array","items":{"type":"object","properties":{"CHILD_id":{"type":"integer"},"CHILD_name":{"type":"string"},"CHILD_deleted":{"type":"boolean"},"CHILD_status":{"type":"string"},"contents":{"type":"array","items":{"type":"string"},"example":[]}}}}}}},"dataset_model(example of dm)":{"type":"array","items":{"type":"object","properties":{"dataset_id":{"type":"integer"},"dataset_name":{"type":"string"},"dataset_deleted":{"type":"boolean"},"dataset_status":{"type":"string"},"used_in_prediction":{"type":"boolean"},"used_in_model":{"type":"boolean"},"contents":{"type":"array","items":{"type":"object","properties":{"model_id":{"type":"integer"},"model_name":{"type":"string"},"model_deleted":{"type":"boolean"},"model_status":{"type":"string"},"contents":{"type":"array","items":{"type":"string"},"example":[]}}}}}}},"model_prediction(example of mp)":{"type":"array","items":{"type":"object","properties":{"model_id":{"type":"integer"},"model_name":{"type":"string"},"model_deleted":{"type":"boolean"},"model_status":{"type":"string"},"contents":{"type":"array","items":{"type":"object","properties":{"prediction_type":{"type":"string","example":"batch"},"prediction_id":{"type":"integer"},"prediction_name":{"type":"string"},"prediction_status":{"type":"string"},"contents":{"type":"array","items":{"type":"string"},"example":[]}}}}}}},"model_realtimeprediction(example of mrp)":{"type":"array","items":{"type":"object","properties":{"model_id":{"type":"integer"},"model_name":{"type":"string"},"model_deleted":{"type":"boolean"},"model_status":{"type":"string"},"contents":{"type":"array","items":{"type":"object","properties":{"prediction_type":{"type":"string","example":"realtime"},"prediction_id":{"type":"integer"},"prediction_name":{"type":"string"},"prediction_deleted":{"type":"boolean"},"prediction_status":{"type":"string"},"contents":{"type":"array","items":{"type":"string"},"example":[]}}}}}}},"dataset_model(example of 'all')":{"type":"array","items":{"type":"object","properties":{"dataset_id":{"type":"integer"},"dataset_name":{"type":"string"},"dataset_deleted":{"type":"boolean"},"dataset_status":{"type":"string"},"used_in_prediction":{"type":"boolean"},"used_in_model":{"type":"boolean"},"contents":{"type":"array","items":{"type":"object","properties":{"model_id":{"type":"integer"},"model_name":{"type":"string"},"model_deleted":{"type":"boolean"},"model_status":{"type":"string"},"contents":{"type":"array","items":{"type":"object","properties":{"prediction_type":{"type":"string","example":"batch"},"prediction_id":{"type":"integer"},"prediction_name":{"type":"string"},"prediction_deleted":{"type":"boolean"},"prediction_status":{"type":"string"},"contents":{"type":"array","items":{"type":"object","properties":{"prediction_dataset_id":{"type":"integer"},"prediction_dataset_name":{"type":"string"},"prediction_dataset_deleted":{"type":"boolean"},"prediction_dataset_status":{"type":"string"}}}}}}}}}}}}}}}}}}},"/datasets/":{"get":{"tags":["Dataset"],"summary":"Get list of datasets","parameters":[{"name":"project_id","in":"query","type":"string","required":true,"description":"Only datasets belonging to the project"},{"name":"project_type","in":"query","type":"string","description":"example - prediction / clustering_recommend \n"},{"name":"workspace_id","in":"query","type":"string","description":"Whole datasets belonging to the workspace\n\nDo not use this query parameters with project_id together\n"},{"name":"page","in":"query","type":"string","description":"get a specific page from the dataset list"},{"name":"paging_num","in":"query","type":"string","description":"number of data per page"},{"name":"index","in":"query","type":"string","description":"it is needed when select second dataset in merge dataset page"},{"name":"status","in":"query","type":"string","description":"If you want to get all datasets, do not use this query string. \n(something like dataset list page)\n\nValues -  uploaded, ready_to_process\nIf you want to browse datasets in the model page\nyou have to load ONLY ready_to_process datasets\n\nExample - GET /datasets/?project_id=1&status=ready_to_process\n"},{"name":"model_id","in":"query","type":"integer","description":"If you want to browse datasets in the prediction page\nyou have to put the selected model_id in the parameter.\n\nExample - GET /datasets/?project_id=1&model_id=1\n"}],"responses":{"200":{"description":"List of all datasets","schema":{"type":"object","properties":{"current_page":{"type":"integer"},"total_page":{"type":"integer"},"datasets":{"type":"array","items":{"type":"object","properties":{"project_id":{"type":"integer"},"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"filesize":{"type":"integer"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"row_count":{"type":"integer"},"col_count":{"type":"integer"}}}}}}}}},"post":{"tags":["Dataset"],"summary":"Create a new dataset","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"body","in":"body","schema":{"type":"object","properties":{"user_id":{"type":"integer"},"project_id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"csv_id":{"type":"string"}}}}],"responses":{"200":{"description":"New dataset and task","schema":{"type":"object","properties":{"dataset_id":{"type":"integer"},"task_id":{"type":"integer"}}}}}},"delete":{"tags":["Dataset"],"summary":"Delete selected datasets","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"body","in":"body","schema":{"type":"object","properties":{"id":{"type":"array","items":{"type":"integer"}}}}}],"responses":{"204":{"description":"OK"}}}},"/datasets/merge/":{"post":{"tags":["Dataset"],"summary":"Merge multiple datasets to new one","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"body","in":"body","description":"you should take multiple datasets in dataset_ids\n\nindex means identifier\n","schema":{"type":"object","properties":{"dataset_ids":{"type":"array","items":{"type":"integer"}},"name":{"type":"string"},"description":{"type":"string"},"index":{"type":"string"}}}}],"responses":{"200":{"description":"new dataset id and merge task id","schema":{"type":"object","properties":{"dataset_id":{"type":"integer"},"task_id":{"type":"integer"}}}}}}},"/datasets/check_relations/":{"post":{"tags":["Dataset"],"summary":"Check relations about given datasets","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"body","in":"body","schema":{"type":"object","properties":{"id":{"type":"array","items":{"type":"integer"}}}}}],"responses":{"200":{"description":"return relations with models, predictions","schema":{"type":"object","properties":{"datasets":{"type":"array","items":{"type":"object","properties":{"dataset_id":{"type":"string"},"models":{"type":"array","items":{"type":"string"}},"predictions":{"type":"array","items":{"type":"string"}}}}}}}}}}},"/datasets/{id}/":{"get":{"tags":["Dataset"],"summary":"Get Dataset info","produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"dataset id"}],"responses":{"200":{"description":"OK","schema":{"type":"object","properties":{"project_id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"filesize":{"type":"integer"},"status":{"type":"string"},"schema":{"type":"object","properties":{"index":{"type":"string"},"target":{"type":"string"},"learning_type":{"type":"string"},"target_classes":{"type":"object","properties":{"neg":{"type":"string"},"pos":{"type":"string"}}},"shape":{"type":"object","properties":{"rows":{"type":"integer"},"cols":{"type":"integer"}}},"types":{"type":"object","properties":{"column_name":{"type":"string","example":"type"}}},"status":{"type":"object","properties":{"column_name":{"type":"integer","enum":[100,200,300]}}},"columns":{"type":"array","items":{"type":"string"}},"method":{"type":"object","properties":{"column_name":{"type":"object","properties":{"type":{"type":"string"},"cleansing":{"type":"string"},"transformation":{"type":"string"},"outlier":{"type":"string"}}}}},"sorts":{"type":"object","properties":{"column_name":{"type":"string"}}},"filters":{"$ref":"#/definitions/Filters"},"options":{"type":"object","properties":{"index":{"type":"array","items":{"type":"string"}},"types":{"type":"object","properties":{"column_name":{"type":"array","items":{"type":"string"}}}},"months":{"type":"object","properties":{"column_name":{"type":"array","items":{"type":"string"}}}},"target_classes":{"type":"object","properties":{"column_name":{"type":"array","items":{"type":"string"}}}},"target_learning":{"type":"array","items":{"type":"object","properties":{"column_name":{"type":"string"}}}}}}}},"cleansing_options":{"type":"object","properties":{"binary":{"type":"array","items":{"type":"string"}},"category":{"type":"array","items":{"type":"string"}},"integer":{"type":"array","items":{"type":"string"}},"numeric":{"type":"array","items":{"type":"string"}},"datetime":{"type":"array","items":{"type":"string"}}}},"csv_id":{"type":"string"},"task_id":{"type":"integer"},"created_at":{"type":"string"},"updated_at":{"type":"string"}}}}}},"post":{"tags":["Dataset"],"summary":"Copy the dataset and Update dataset info","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"path","name":"id","required":true,"type":"integer","description":"ID of dataset to copy and update"},{"in":"body","name":"body","schema":{"type":"object","properties":{"project_id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"schema":{"type":"object","properties":{"index":{"type":"string"},"target":{"type":"string"},"method":{"type":"object","properties":{"column_name":{"type":"object","properties":{"type":{"type":"string"},"cleansing":{"type":"string"},"transformation":{"type":"string"},"outlier":{"type":"string"}}}}}}}}},"description":"index is the name of the column to use as the row identifier. It must\nbe a column where all values are unique. The possible options for the\nindex column are defined in schema['options']['index'].\n\ntypes is an object containing all columns that the user wishes to\nchange the data type of.\n"}],"responses":{"200":{"description":"OK"}}},"patch":{"tags":["Dataset"],"summary":"Update dataset info","consumes":["application/json"],"produces":["application/json"],"parameters":[{"in":"path","name":"id","required":true,"type":"integer","description":"ID of dataset"},{"in":"body","name":"body","schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"type":{"type":"string"},"schema":{"type":"object","properties":{"index":{"type":"string"},"target":{"type":"string"},"sorts":{"type":"array","items":{"type":"object","properties":{"column_name":{"type":"string"}}}},"filters":{"$ref":"#/definitions/Filters"},"method":{"type":"object","properties":{"column_name":{"type":"object","properties":{"type":{"type":"string"},"cleansing":{"type":"string"},"transformation":{"type":"string"},"outlier":{"type":"string"}}}}}}}}},"description":"index is the name of the column to use as the row identifier. It must\nbe a column where all values are unique. The possible options for the\nindex column are defined in schema['options']['index'].\n\ntypes is an object containing all columns that the user wishes to\nchange the data type of.\n"}],"responses":{"200":{"description":"OK"}}},"delete":{"tags":["Dataset"],"summary":"Delete dataset","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","type":"integer","required":true,"description":"ID of dataset to delete"}],"responses":{"204":{"description":"Dataset was properly deleted."}}}},"/datasets/{id}/rows/":{"post":{"tags":["Dataset Statistics"],"summary":"Get rows in the collecions of mongodb with filter or not","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","type":"integer","required":true,"description":"ID of dataset to get rows"},{"name":"body","in":"body","required":true,"description":"Dataset rows\n\nArray[boundary_arg] accepts all integer or string\n\nFor example,\n  if type is number,\n    [2, 16]\n\n  if type is category,\n    ['string1', 'string2', 'string3']\n\n  if type is datetime,\n    [2010, 1, 2012, 5]\n","schema":{"type":"object","properties":{"sorts":{"type":"object"},"filters":{"$ref":"#/definitions/Filters"},"row_count":{"type":"number"}}}}],"responses":{"200":{"description":"key is column name, value list contains matched row values","schema":{"type":"object","properties":{"column_name":{"type":"object","properties":{"type_name":{"type":"array","items":{"type":"string"}}}}}}}}}},"/datasets/{id}/statistics/":{"post":{"tags":["Dataset Statistics"],"summary":"Get statistics in the collecions of mongodb","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","type":"integer","required":true,"description":"ID of dataset to get statistics"},{"name":"body","in":"body","required":true,"description":"Dataset statistics\n\nThe target is optional according whether target is selected\n\nArray[boundary_arg] accepts all integer or string\n\nFor example,\n  if type is number,\n    [2, 16]\n\n  if type is category,\n    ['string1', 'string2', 'string3']\n\n  if type is datetime,\n    [2010, 1, 2012, 5]\n","schema":{"type":"object","properties":{"target":{"type":"string"},"filters":{"$ref":"#/definitions/Filters"}}}}],"responses":{"200":{"description":"Return statistics of a dataset related to the model\n\nif column type is category or datetime, just return unqcnt, missingcnt, value_count, correlation only.\n","schema":{"type":"object","properties":{"column_name":{"type":"object","properties":{"category":{"type":"object","properties":{"unqcnt":{"type":"integer"},"missingcnt":{"type":"integer"},"value_count":{"type":"object","properties":{"value":{"type":"integer"}}},"correlation":{"type":"integer"}}},"number":{"type":"object","properties":{"min":{"type":"integer"},"max":{"type":"integer"},"avg":{"type":"integer"},"std":{"type":"integer"},"sum":{"type":"integer"},"med":{"type":"integer"},"25 percentile":{"type":"integer"},"75 percentile":{"type":"integer"},"unqcnt":{"type":"integer"},"missingcnt":{"type":"integer"},"bin_count":{"type":"object","properties":{"bin_range":{"type":"array","items":{"type":"string"}},"count":{"type":"array","items":{"type":"integer"}}}},"correlation":{"type":"integer"}}},"datetime":{"type":"object","properties":{"min":{"type":"string"},"max":{"type":"string"},"missingcnt":{"type":"integer"}}}}}}}}}}},"/datasets/{id}/bins/":{"post":{"tags":["Dataset Statistics"],"summary":"Get bins(linear, log) in the collecions of mongodb","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","type":"integer","required":true,"description":"ID of dataset to groups"},{"name":"body","in":"body","required":true,"description":"Dataset bins\n          \nArray[boundary_arg] accepts all integer or string\n\nFor example,\n  if type is number,\n    [2, 16]\n\n  if type is category,\n    ['string1', 'string2', 'string3']\n\n  if type is datetime,\n    [2010, 1, 2012, 5]\n","schema":{"type":"object","properties":{"column":{"type":"string"},"type":{"type":"string"},"target":{"type":"string"},"linear_log":{"type":"string"},"filters":{"$ref":"#/definitions/Filters"}}}}],"responses":{"200":{"description":"ok","schema":{"type":"object","properties":{"bins_number_1":{"type":"object","properties":{"bin_range":{"type":"array","items":{"type":"string"}},"count":{"type":"array","items":{"type":"integer"}},"target_ratio":{"type":"array","items":{"type":"number"}},"outlier_ratio":{"type":"array","items":{"type":"number"}}}},"bins_number_2":{"type":"object","properties":{"bin_range":{"type":"array","items":{"type":"string"}},"count":{"type":"array","items":{"type":"integer"}},"target_ratio":{"type":"array","items":{"type":"number"}},"outlier_ratio":{"type":"array","items":{"type":"number"}}}}}}}}}},"/datasets/{id}/groups/":{"post":{"tags":["Dataset Statistics"],"summary":"Get groups(linear, log) in the collecions of mongodb","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","type":"integer","required":true,"description":"ID of dataset to groups"},{"name":"body","in":"body","required":true,"description":"Dataset Groups\n          \nArray[boundary_arg] accepts all integer or string\n\nFor example,\n  if type is number,\n    [2, 16]\n\n  if type is category,\n    ['string1', 'string2', 'string3']\n\n  if type is datetime,\n    [2010, 1, 2012, 5]\n","schema":{"type":"object","properties":{"column":{"type":"string"},"type":{"type":"string"},"min":{"type":"number"},"max":{"type":"number"},"range":{"type":"number"},"linear_log":{"type":"string"},"filters":{"$ref":"#/definitions/Filters"},"target":{"type":"string"}}}}],"responses":{"200":{"description":"ok","schema":{"type":"object","properties":{"bin_range":{"type":"array","items":{"type":"string"}},"count":{"type":"array","items":{"type":"integer"}}}}}}}},"/datasets/{id}/target_correlation/":{"post":{"tags":["Dataset Statistics"],"summary":"get target correlation between selected column and target with filter or not","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","type":"integer","required":true,"description":"ID of dataset to get statistics"},{"name":"body","in":"body","required":true,"description":"Dataset Target Correlation\n\nArray[boundary_arg] accepts all integer or string\n\nFor example,\n  if type is number,\n    [2, 16]\n\n  if type is category,\n    ['string1', 'string2', 'string3']\n\n  if type is datetime,\n    [2010, 1, 2012, 5]\n","schema":{"type":"object","properties":{"column":{"type":"string"},"target":{"type":"string"},"filters":{"$ref":"#/definitions/Filters"},"linear_log":{"type":"string"}}}}],"responses":{"200":{"description":"ok","schema":{"type":"object","properties":{"column":{"type":"string"},"correlation":{"type":"number"}}}}}}},"/models/":{"get":{"tags":["Model"],"summary":"Get list of models","parameters":[{"name":"project_id","in":"query","type":"string","required":true,"description":"Only models belonging to the project"},{"name":"workspace_id","in":"query","type":"string","description":"Whole models belonging to the workspace\n\nDo not use this query parameters with project_id together\n"},{"name":"status","in":"query","type":"string","description":"If you want to get all models, do not use this query string. \n(something like model list page)\n\nValues -  setting_required, ready_to_train, complete\nIf you want to browse model in the prediction page\nyou have to load ONLY complete models\n\nExample - GET /models/?project_id=1&status=complete\n"}],"produces":["application/json"],"responses":{"200":{"description":"Returns a list of models","schema":{"type":"object","properties":{"current_page":{"type":"integer"},"total_page":{"type":"integer"},"models":{"type":"array","items":{"type":"object","properties":{"project_id":{"type":"integer"},"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"dataset":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}}},"created_at":{"type":"string"},"updated_at":{"type":"string"}}}}}}}}},"post":{"tags":["Model"],"summary":"Create a new model","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"body","in":"body","required":true,"description":"Model recipe","schema":{"type":"object","properties":{"user_id":{"type":"integer"},"project_id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"dataset_id":{"type":"integer"},"schema":{"$ref":"#/definitions/ModelSchema"},"extractions":{"$ref":"#/definitions/Extractions"},"sampling":{"$ref":"#/definitions/Sampling"},"algorithms":{"$ref":"#/definitions/Algorithms"}}}}],"responses":{"200":{"description":"Returns id of the newly created model","schema":{"type":"object","properties":{"model_id":{"type":"integer"}}}}}},"delete":{"tags":["Model"],"summary":"Delete selected models","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"body","in":"body","required":true,"description":"model ids to delete","schema":{"type":"object","properties":{"id":{"type":"array","items":{"type":"integer"}}}}}],"responses":{"204":{"description":"OK"}}}},"/models/check_relations/":{"post":{"tags":["Model"],"summary":"Check relations about given models","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"body","in":"body","schema":{"type":"object","properties":{"id":{"type":"array","items":{"type":"integer"}}}}}],"responses":{"200":{"description":"return relations with datasets, predictions","schema":{"type":"object","properties":{"models":{"type":"array","items":{"type":"object","properties":{"model_id":{"type":"string"},"datasets":{"type":"array","items":{"type":"string"}},"predictions":{"type":"array","items":{"type":"string"}}}}}}}}}}},"/models/{id}/":{"get":{"tags":["Model"],"summary":"Get model info","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of model to get info of","type":"integer"}],"responses":{"200":{"description":"Returns info about the model.\n\nperformance is empty if model has not been trained yet.\n","schema":{"type":"object","properties":{"project_id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"dataset":{"type":"object","properties":{"name":{"type":"string"}}},"schema":{"$ref":"#/definitions/ModelSchema"},"sampling":{"$ref":"#/definitions/Sampling"},"algorithms":{"$ref":"#/definitions/Algorithms"},"exctractions":{"$ref":"#/definitions/Extractions"},"filters":{"$ref":"#/definitions/Filters"},"summary":{"$ref":"#/definitions/Summary"},"decision":{"$ref":"#/definitions/Decision"},"csv_id":{"type":"string"}}}}}},"post":{"tags":["Model"],"summary":"Copy the model and Update model info","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of model to copy and update","type":"integer"},{"name":"body","in":"body","required":true,"description":"Attributes to copy and update","schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"dataset_id":{"type":"integer"},"schema":{"$ref":"#/definitions/ModelSchema"},"sampling":{"$ref":"#/definitions/Sampling"},"algorithms":{"$ref":"#/definitions/Algorithms"}}}}],"responses":{"204":{"description":"the model has been successfully copied and updated."}}},"patch":{"tags":["Model"],"summary":"Update model info","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of model to update","type":"integer"},{"name":"body","in":"body","required":true,"description":"Attributes to update.\n\nIf you want to use quick auto-tuning, use 'quick' as value for key 'auto'.\nElse if you wanna use detail auto-tuning, use 'advanced' as value for key 'auto'.\nElse, you can set any other tuning by using 'custom' as value for key 'auto'.\n\nAnd, if you use voting algorithm, please use 'estimators' key in 'args' key with example.\n\"args\": {\n      \"estimators\": [\n          {\n              \"args\": {},\n              \"auto\": 'quick',\n              \"name\": \"rf\",\n              \"refit\": \"ROC_AUC\"\n          },\n          {\n              \"args\": {},\n              \"auto\": 'quick',\n              \"name\": \"bst_xgb\",\n              \"refit\": \"ROC_AUC\"\n          }\n      ]\n  }\n","schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"dataset_id":{"type":"integer"},"schema":{"$ref":"#/definitions/ModelSchema"},"sampling":{"$ref":"#/definitions/Sampling"},"algorithms":{"$ref":"#/definitions/Algorithms"}}}}],"responses":{"204":{"description":"Model was successfully updated."}}},"delete":{"tags":["Model"],"summary":"Delete model","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of model to delete."}],"responses":{"204":{"description":"Model was successfully deleted."}}}},"/models/{id}/train/":{"post":{"tags":["Model"],"summary":"Start training of model","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","type":"integer","required":true,"description":"ID of model to train"}],"responses":{"200":{"description":"Returns the ID of the train task.","schema":{"type":"object","properties":{"task_id":{"type":"integer"}}}}}}},"/models/{id}/grade/":{"post":{"tags":["Model"],"summary":"Grading with trained model","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","type":"integer","required":true,"description":"ID of model to grade"},{"name":"body","in":"body","required":true,"description":"grade criteria","schema":{"type":"object","properties":{"grade_criteria":{"type":"array","items":{"type":"object","properties":{"algorithm_order":{"type":"integer"},"method":{"type":"string"},"name":{"type":"string"},"number":{"type":"integer"},"cutlines":{"type":"array","items":{"type":"number"}}}}},"interpret_tf":{"type":"boolean"}}}}],"responses":{"200":{"description":"Returns the ID of the train task.","schema":{"type":"object","properties":{"task_id":{"type":"integer"}}}}}}},"/models/{id}/threshold/":{"get":{"tags":["Model"],"summary":"Get multi-threshold analysis performance.","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of model to get multi-threshold analysis performance."},{"name":"algorithm_order","in":"query","required":true,"type":"string","description":"index of algorithm to get multi-threshold analysis performance"},{"name":"split","in":"query","required":true,"type":"string","description":"data split section to get multi-threshold analysis performance"},{"name":"cv","in":"query","type":"string","description":"index of cross validation to get multi-threshold analysis performance"}],"responses":{"200":{"description":"Returns the multi-threshold analysis performance.","schema":{"type":"object","properties":{"multi_threshold":{"type":"array","items":{"type":"object","properties":{"f1":{"type":"integer"},"fpr":{"type":"integer"},"tpr":{"type":"integer"},"recall":{"type":"integer"},"accuracy":{"type":"integer"},"precision":{"type":"integer"},"threshold":{"type":"integer"},"confusion_matrix":{"type":"object","properties":{"fn":{"type":"integer"},"fp":{"type":"integer"},"tn":{"type":"integer"},"tp":{"type":"integer"}}}}}}}}}}}},"/models/{id}/recommend/":{"post":{"tags":["Model"],"summary":"Start creating a new dataset for recommendation","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","type":"integer","required":true,"description":"ID of model to train"},{"name":"body","in":"body","description":"Attributes to create a new dataset with cluster listup","schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"cluster_list":{"type":"array","items":{"type":"integer"}}}}}],"responses":{"200":{"description":"Returns the ID of the creating dataset task for recommendation","schema":{"type":"object","properties":{"dataset_id":{"type":"integer"},"task_id":{"type":"integer"}}}}}}},"/models/{id}/decision/":{"patch":{"tags":["Model Deployment"],"summary":"Set status of a model to decided for Decision","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"description":"ID of model","type":"integer"},{"name":"body","in":"body","required":true,"description":"Attributes to copy and update","schema":{"type":"object","properties":{"decision":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"threshold":{"type":"number"},"to_predict":{"type":"boolean"}}}}}}}],"responses":{"204":{"description":"Status of the model was successfully updated to decided."}}},"delete":{"tags":["Model Deployment"],"summary":"return decision status to complete status in a model","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of model to change status."}],"responses":{"204":{"description":"Status of the model was successfully updated to complete."}}}},"/models/{id}}/insight/section=performance":{"post":{"tags":["Model Insight"],"summary":"Get Model Insight Data for performance section.","parameters":[{"name":"id","in":"path","required":true,"description":"ID of model","type":"integer"},{"name":"body","in":"body","required":true,"description":"containing information to get prefer Model Insight data.","schema":{"type":"object","properties":{"source":{"type":"string"},"algorithm_order":{"type":"integer"},"grade_type":{"type":"string"},"grade_num":{"type":"integer"}}}}],"produces":["application/json"],"responses":{"200":{"description":"Returns a list of models that can be imported","schema":{"type":"object","properties":{"performance":{"type":"array","items":{"type":"object","properties":{"grade":{"type":"string"},"count":{"type":"integer"},"total_ratio":{"type":"number"},"target_count":{"type":"integer"},"target_ratio":{"type":"number"}}}}}}}}}},"/models/{id}}/insight/section=interpretability":{"post":{"tags":["Model Insight"],"summary":"Get Model Insight Data for interpretability section.","parameters":[{"name":"id","in":"path","required":true,"description":"ID of model","type":"integer"},{"name":"body","in":"body","required":true,"description":"containing information to get prefer Model Insight data.","schema":{"type":"object","properties":{"source":{"type":"string"},"algorithm_order":{"type":"integer"},"grade_type":{"type":"string"},"grade_num":{"type":"integer"},"group_list":{"type":"array","items":{"type":"integer"}}}}}],"produces":["application/json"],"responses":{"200":{"description":"Returns a list of models that can be imported","schema":{"type":"object","properties":{"impact_rate":{"type":"object","properties":{"column":{"type":"number"}}}}}}}}},"/models/{id}}/insight/section=count_dist":{"post":{"tags":["Model Insight"],"summary":"Get Model Insight Data for count/distribution section.","parameters":[{"name":"id","in":"path","required":true,"description":"ID of model","type":"integer"},{"name":"body","in":"body","required":true,"description":"containing information to get prefer Model Insight data.","schema":{"type":"object","properties":{"source":{"type":"string"},"algorithm_order":{"type":"integer"},"column":{"type":"string"},"grade_type":{"type":"string"},"grade_num":{"type":"integer"},"group_list":{"type":"array","items":{"type":"integer"}}}}}],"produces":["application/json"],"responses":{"200":{"description":"Returns bin counts or value count of selected column.","schema":{"type":"object","properties":{"bin_range":{"type":"array","items":{"type":"string"}},"value":{"type":"array","items":{"type":"string"}},"count":{"type":"array","items":{"type":"integer"}},"distribution":{"type":"array","items":{"type":"integer"}}}}}}}},"/models/{id}}/insight/section=stats":{"post":{"tags":["Model Insight"],"summary":"Get Model Insight Data for statistics section.","parameters":[{"name":"id","in":"path","required":true,"description":"ID of model","type":"integer"},{"name":"body","in":"body","required":true,"description":"containing information to get prefer Model Insight data.","schema":{"type":"object","properties":{"source":{"type":"string"},"algorithm_order":{"type":"integer"},"column":{"type":"string"},"grade_type":{"type":"string"},"grade_num":{"type":"integer"},"group_list":{"type":"array","items":{"type":"integer"}}}}}],"produces":["application/json"],"responses":{"200":{"description":"Returns statistics of selected column","schema":{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"},"sum":{"type":"number"},"avg":{"type":"number"},"std":{"type":"number"},"med":{"type":"number"},"25 percentile":{"type":"number"},"75 percentile":{"type":"number"},"unqcnt":{"type":"integer"},"missingcnt":{"type":"integer"},"outliercnt":{"type":"integer"},"bin_count":{"type":"object","properties":{"bin_range":{"type":"array","items":{"type":"string"}},"count":{"type":"array","items":{"type":"integer"}}}},"value_count":{"type":"object","properties":{"value":{"type":"integer"}}}}}}}}},"/models/{id}}/insight/section=time-series":{"post":{"tags":["Model Insight"],"summary":"Get Model Insight Data for time-series section.","parameters":[{"name":"id","in":"path","required":true,"description":"ID of model","type":"integer"},{"name":"body","in":"body","required":true,"description":"containing information to get prefer Model Insight data.","schema":{"type":"object","properties":{"source":{"type":"string"},"algorithm_order":{"type":"integer"},"column":{"type":"string"},"grade_type":{"type":"string"},"grade_num":{"type":"integer"},"group_list":{"type":"array","items":{"type":"integer"}},"timecolumn":{"type":"string"},"date_unit":{"type":"string"}}}}],"produces":["application/json"],"responses":{"200":{"description":"Returns bin counts or value count of selected column.","schema":{"type":"object","properties":{"time-series":{"type":"array","items":{"type":"object","properties":{"year":{"type":"integer"},"month":{"type":"integer"},"day":{"type":"integer"},"hour":{"type":"integer"},"avg":{"type":"number"},"sum":{"type":"number"},"count":{"type":"integer"},"dist":{"type":"number"}}}}}}}}}},"/models/import/":{"get":{"tags":["Model Import"],"summary":"Get a list of models that can be imported from the other abacus.","parameters":[{"name":"project_id","in":"query","type":"string","required":true,"description":"the project that belongs to"}],"produces":["application/json"],"responses":{"200":{"description":"Returns a list of models that can be imported","schema":{"type":"object","properties":{"models":{"type":"array","items":{"type":"object","properties":{"project_id":{"type":"integer"},"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"dataset":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}}},"created_at":{"type":"string"},"updated_at":{"type":"string"},"device_name":{"type":"string"},"device_address":{"type":"string"}}}}}}}}},"post":{"tags":["Model Import"],"summary":"Import a model from the other abacus.","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"body","in":"body","required":true,"description":"containing server's host, model_id in server abacus, and project id of client abacus.","schema":{"type":"object","properties":{"server_host":{"type":"string"},"server_model_id":{"type":"integer"},"project_id":{"type":"integer"}}}}],"responses":{"200":{"description":"Returns imported model id.","schema":{"type":"object","properties":{"model_id":{"type":"integer"}}}}}}},"/predictions/":{"get":{"tags":["Batch Prediction"],"summary":"Get list of batch predictions","parameters":[{"name":"project_id","in":"query","type":"string","required":true,"description":"Only batch predictions belonging to the project"},{"name":"workspace_id","in":"query","type":"string","description":"Whole batch predictions belonging to the workspace\n\nDo not use this query parameters with project_id together\n"}],"produces":["application/json"],"responses":{"200":{"description":"Return list of batch predictions.","schema":{"type":"object","properties":{"current_page":{"type":"integer"},"total_page":{"type":"integer"},"predictions":{"type":"array","items":{"type":"object","properties":{"project_id":{"type":"integer"},"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"model_name":{"type":"string"},"dataset_name":{"type":"string"},"status":{"type":"string"}}}}}}}}},"post":{"tags":["Batch Prediction"],"summary":"Create a new batch prediction","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"body","in":"body","required":true,"description":"Batch prediction to create","schema":{"type":"object","properties":{"project_id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"model_id":{"type":"integer"},"dataset_id":{"type":"integer"}}}}],"responses":{"200":{"description":"Return the ID of the new batch prediction and the ID of the batch prediction task","schema":{"type":"object","properties":{"prediction_id":{"type":"integer"},"task_id":{"type":"integer"}}}}}},"delete":{"tags":["Batch Prediction"],"summary":"Delete selected batch predictions","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"body","in":"body","required":true,"description":"IDs of batch predictions to delete.","schema":{"type":"object","properties":{"id":{"type":"array","items":{"type":"integer"}}}}}],"responses":{"204":{"description":"OK"}}}},"/predictions/check_relations/":{"post":{"tags":["Batch Prediction"],"summary":"Check relations about given batch predictions","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"body","in":"body","schema":{"type":"object","properties":{"id":{"type":"array","items":{"type":"integer"}}}}}],"responses":{"200":{"description":"return relations with datasets, models","schema":{"type":"object","properties":{"predictions":{"type":"array","items":{"type":"object","properties":{"prediction_id":{"type":"string"},"models":{"type":"array","items":{"type":"string"}},"datasets":{"type":"array","items":{"type":"string"}}}}}}}}}}},"/predictions/{id}/":{"get":{"tags":["Batch Prediction"],"summary":"Get a batch prediction info","produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of batch prediction to get info of"}],"responses":{"200":{"description":"OK","schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"model_id":{"type":"integer"},"dataset_id":{"type":"integer"},"summary":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"fullname":{"type":"string"},"time":{"type":"object","properties":{"predict":{"type":"integer"}}},"performance":{"type":"object","properties":{"predict":{"type":"object","properties":{"metrics":{"type":"object","properties":{"ks":{"type":"integer"},"gini":{"type":"integer"},"max_f1":{"type":"integer"},"p_value":{"type":"integer"},"prc_auc":{"type":"integer"},"roc_auc":{"type":"integer"},"log_loss":{"type":"integer"},"max_lift":{"type":"integer"},"statistic":{"type":"integer"},"optimal_threshold":{"type":"integer"}}},"curves":{"type":"object","properties":{"cum":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"count":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"prc_auc":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"roc_auc":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"f1_curve":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"distribution":{"type":"array","items":{"type":"array","items":{"type":"integer"}}}}},"decile":{"type":"object","properties":{"ks":{"type":"array","items":{"type":"integer"}},"one":{"type":"array","items":{"type":"integer"}},"lift":{"type":"array","items":{"type":"integer"}},"zero":{"type":"array","items":{"type":"integer"}},"rate_one":{"type":"array","items":{"type":"integer"}},"subtotal":{"type":"array","items":{"type":"integer"}},"rate_zero":{"type":"array","items":{"type":"integer"}},"cum_rate_pos":{"type":"array","items":{"type":"integer"}},"cum_rate_zero":{"type":"array","items":{"type":"integer"}}}}}}}}}}},"status":{"type":"string"},"csv_id":{"type":"string"}}}}}},"post":{"tags":["Batch Prediction"],"summary":"Copy the batch prediction and Update the info","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of batch prediction to copy and update"},{"name":"body","in":"body","required":true,"description":"Attributes to copy and update","schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"model_id":{"type":"integer"},"dataset_id":{"type":"integer"}}}}],"responses":{"204":{"description":"the batch prediction has been successfully copied and updated"}}},"patch":{"tags":["Batch Prediction"],"summary":"Update batch prediction info","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of batch prediction to update"},{"name":"body","in":"body","required":true,"description":"Attributes to update batch prediction with","schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"model_id":{"type":"integer"},"dataset_id":{"type":"integer"}}}}],"responses":{"204":{"description":"Batch prediction updated"}}},"delete":{"tags":["Batch Prediction"],"summary":"Delete a batch prediction","produces":["application/json"],"parameters":[{"name":"id","in":"path","type":"integer","required":true,"description":"ID of batch prediction to delete"}],"responses":{"204":{"description":"Batch prediction deleted"}}}},"/predictions/{id}/predict/":{"post":{"tags":["Batch Prediction"],"summary":"Batch predict a prediction","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of batch prediction to predict"}],"responses":{"200":{"description":"Batch prediction completed","schema":{"type":"object","properties":{"task_id":{"type":"integer"}}}}}}},"/predictions/{id}/threshold/":{"get":{"tags":["Batch Prediction"],"summary":"Get multi-threshold analysis performance.","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of model to get multi-threshold analysis performance."},{"name":"algorithm_order","in":"query","required":true,"type":"string","description":"index of algorithm to get multi-threshold analysis performance"}],"responses":{"200":{"description":"Returns the multi-threshold analysis performance.","schema":{"type":"object","properties":{"multi_threshold":{"type":"array","items":{"type":"object","properties":{"f1":{"type":"integer"},"fpr":{"type":"integer"},"tpr":{"type":"integer"},"recall":{"type":"integer"},"accuracy":{"type":"integer"},"precision":{"type":"integer"},"threshold":{"type":"integer"},"confusion_matrix":{"type":"object","properties":{"fn":{"type":"integer"},"fp":{"type":"integer"},"tn":{"type":"integer"},"tp":{"type":"integer"}}}}}}}}}}}},"/realtimes/":{"get":{"tags":["Realtime Prediction"],"summary":"Get list of realtime predictions","parameters":[{"name":"project_id","in":"query","type":"string","required":true,"description":"Only batch predictions belonging to the project"},{"name":"workspace_id","in":"query","type":"string","description":"Whole realtime predictions belonging to the workspace\n\nDo not use this query parameters with project_id together\n"}],"produces":["application/json"],"responses":{"200":{"description":"Return list of batch predictions.","schema":{"type":"object","properties":{"current_page":{"type":"integer"},"total_page":{"type":"integer"},"realtimes":{"type":"array","items":{"type":"object","properties":{"project_id":{"type":"integer"},"project_name":{"type":"string"},"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"model_id":{"type":"integer"},"model_name":{"type":"string"},"model_description":{"type":"string"},"model_algorithm":{"type":"string"},"transaction_per_second":{"type":"number"},"status":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"}}}}}}}}},"post":{"tags":["Realtime Prediction"],"summary":"Create a new realtime prediction","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"body","in":"body","required":true,"description":"Realtime prediction to create","schema":{"type":"object","properties":{"project_id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"model_id":{"type":"integer"}}}}],"responses":{"200":{"description":"Return the ID of the new realtime prediction","schema":{"type":"object","properties":{"realtime_id":{"type":"integer"}}}}}},"delete":{"tags":["Realtime Prediction"],"summary":"Delete selected realtime predictions","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"body","in":"body","required":true,"description":"IDs of realtime predictions to delete.","schema":{"type":"object","properties":{"id":{"type":"array","items":{"type":"integer"}}}}}],"responses":{"204":{"description":"OK"}}}},"/realtimes/check_relations/":{"post":{"tags":["Realtime Prediction"],"summary":"Check relations about given batch predictions","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"body","in":"body","schema":{"type":"object","properties":{"id":{"type":"array","items":{"type":"integer"}}}}}],"responses":{"200":{"description":"return relations with datasets, models","schema":{"type":"object","properties":{"realtimes":{"type":"array","items":{"type":"object","properties":{"realtime_id":{"type":"string"},"models":{"type":"array","items":{"type":"string"}}}}}}}}}}},"/realtimes/{id}/":{"get":{"tags":["Realtime Prediction"],"summary":"Get a realtime prediction info","produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of realtime prediction to get info of"}],"responses":{"200":{"description":"OK","schema":{"type":"object","properties":{"project_id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"model_id":{"type":"integer"},"model_name":{"type":"string"},"model_description":{"type":"string"},"model_columns":{"type":"array","items":{"type":"string"}},"model_algorithm_order":{"type":"integer"},"model_algorithm":{"type":"string"},"transaction_per_second":{"type":"number"},"categorical_values":{"type":"object","properties":{"column_name":{"type":"array","items":{"type":"string"}}}},"status":{"type":"string"}}}}}},"post":{"tags":["Realtime Prediction"],"summary":"Copy a realtime prediction and Update the info","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of realtime prediction to copy and update"},{"name":"body","in":"body","required":true,"description":"Attributes to copy and update","schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"model_id":{"type":"integer"}}}}],"responses":{"204":{"description":"the realtime prediction has been successfully copied and updated"}}},"patch":{"tags":["Realtime Prediction"],"summary":"Update realtime prediction info","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of realtime prediction to update"},{"name":"body","in":"body","required":true,"description":"Attributes to update realtime prediction with","schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"model_id":{"type":"integer"},"service_id_list":{"type":"array","items":{"type":"string"}}}}}],"responses":{"204":{"description":"Realtime prediction updated"}}},"delete":{"tags":["Realtime Prediction"],"summary":"Delete a realtime prediction","produces":["application/json"],"parameters":[{"name":"id","in":"path","type":"integer","required":true,"description":"ID of realtime prediction to delete"}],"responses":{"204":{"description":"Realtime prediction deleted"}}}},"/realtimes/{id}/random/":{"get":{"tags":["Realtime Prediction"],"summary":"return a random row from the mongodb collection","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of realtime prediction"}],"responses":{"200":{"description":"OK","schema":{"type":"object","properties":{"random":{"type":"object","properties":{"column_name":{"type":"string"}}}}}}}}},"/realtimes/{id}/search/":{"get":{"tags":["Realtime Prediction"],"summary":"search a row with index from the mongodb collection","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of realtime prediction"},{"name":"index","in":"path","required":true,"type":"string","description":"Index"}],"responses":{"200":{"description":"OK","schema":{"type":"object","properties":{"row":{"type":"object","properties":{"column_name":{"type":"string"}}}}}}}}},"/realtimes/{id}/deployment/":{"post":{"tags":["Realtime Prediction"],"summary":"set status of a realtime to deployed","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of realtime prediction to deployed"},{"name":"body","in":"body","required":true,"description":"algorithm order to realtime predict","schema":{"type":"object","properties":{"algorithm_order":{"type":"integer"},"set_interpreter":{"type":"boolean"},"endpoints":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"description":{"type":"string"}}}}}}}],"responses":{"204":{"description":"OK"}}},"delete":{"tags":["Realtime Prediction"],"summary":"set status of a realtime to inactive","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of realtime prediction to inactivate"}],"responses":{"204":{"description":"OK"}}}},"/realtimes/{id}/predict/":{"post":{"tags":["Realtime Prediction"],"summary":"Realtime predict a prediction","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of realtime prediction to predict"},{"name":"body","in":"body","required":true,"description":"Input data to realtime predict","schema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","properties":{"column_name":{"type":"string"}}}},"algorithm_order":{"type":"integer"},"set_xaimanager":{"type":"boolean","description":"to  use Statistical Interpreter, this should be false. However, to use XAIManager as an interpreter, this should be true."}}}}],"responses":{"200":{"description":"Realtime prediction completed","schema":{"type":"object","properties":{"result":{"type":"string"}}}}}}},"/realtimes/{id}/transaction/":{"get":{"tags":["Realtime Prediction"],"summary":"Realtime predict a prediction","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of realtime prediction to get transaction stats"},{"name":"unit","in":"query","required":true,"description":"unit of time","type":"string"},{"name":"range","in":"query","required":true,"description":"range of time","type":"string"}],"responses":{"200":{"description":"Realtime transaction stats","schema":{"type":"object","properties":{"value":{"type":"array","items":{"type":"string"}},"count":{"type":"array","items":{"type":"integer"}}}}}}}},"/realtimes/{id}/package/":{"get":{"tags":["Realtime Prediction"],"summary":"Model package for realtime prediction","consumes":["application/json"],"produces":["application/x-zip-compressed"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of realtime prediction to get package"}],"responses":{"200":{"description":"Model package for realtime prediction","schema":{"type":"file"}}}}},"/tasks/":{"get":{"tags":["Task"],"summary":"Get list of all tasks","produces":["application/json"],"responses":{"200":{"description":"Returns list of all tasks","schema":{"type":"object","properties":{"tasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"status":{"type":"string"}}}}}}}}}},"/tasks/{id}/":{"get":{"tags":["Task"],"summary":"Get task info","produces":["application/json"],"parameters":[{"name":"id","in":"path","type":"integer","required":true,"description":"ID of task to get info of"}],"responses":{"200":{"description":"Info of task","schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"}}}}}}},"/tasks/{id}/abort/":{"post":{"tags":["Task"],"summary":"Abort task","produces":["application/json"],"parameters":[{"name":"id","in":"path","type":"integer","required":true,"description":"ID of task to abort"}],"responses":{"204":{"description":"Task was aborted"}}}},"/dashboard/":{"get":{"tags":["Dashboard"],"summary":"a dashboard by a workspace","consumes":["application/json"],"produces":["applicatoin/json"],"parameters":[{"name":"workspace_id","in":"query","type":"integer","required":true,"description":"database id of workspace"},{"name":"user_id","in":"query","type":"integer","required":true,"description":"database id of user"}],"responses":{"200":{"description":"ok","schema":{"$ref":"#/definitions/Dashboard"}}}}},"/dashboard/recent_activities/":{"get":{"tags":["Dashboard"],"summary":"recent activities on dashboard","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"workspace_id","in":"query","type":"integer","required":true,"description":"database id of workspace"}],"responses":{"200":{"description":"ok","schema":{"type":"object","properties":{"recent_activities":{"$ref":"#/definitions/RecentActivities"}}}}}}},"/endpoints/":{"get":{"tags":["Endpoints"],"summary":"Get infomation of all endpoints.","consumes":["application/json"],"produces":["application/json"],"responses":{"200":{"description":"ok","schema":{"type":"object","properties":{"endpoints":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"address":{"type":"string"},"description":{"type":"string"},"deployed_history":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"deployed_id":{"type":"integer"},"service_id":{"type":"string"},"model_id":{"type":"integer"},"model_name":{"type":"string"},"realtime_id":{"type":"integer"},"realtime_name":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"loaded":{"type":"boolean"}}}},"created_at":{"type":"string"},"updated_at":{"type":"string"}}}}}}}}},"post":{"tags":["Endpoints"],"summary":"Create endpoint instance","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"body","in":"body","required":true,"description":"endpoints instance information","schema":{"type":"object","properties":{"user_id":{"type":"integer"},"address":{"type":"string"},"description":{"type":"string"}}}}],"responses":{"200":{"description":"ok","schema":{"type":"object","properties":{"endpoint_id":{"type":"integer"}}}}}}},"/endpoints/{id}/":{"get":{"tags":["Endpoints"],"summary":"Get a endpoint instance info","produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of endpoint instance to get info"}],"responses":{"200":{"description":"ok","schema":{"type":"object","properties":{"endpoints":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"address":{"type":"string"},"description":{"type":"string"},"deployed_history":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"deployed_id":{"type":"integer"},"service_id":{"type":"string"},"model_id":{"type":"integer"},"model_name":{"type":"string"},"realtime_id":{"type":"integer"},"realtime_name":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"loaded":{"type":"boolean"}}}},"created_at":{"type":"string"},"updated_at":{"type":"string"}}}}}}}}},"patch":{"tags":["Endpoints"],"summary":"Patch a endpoint instance info","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of endpoint instance to update information"},{"name":"body","in":"body","required":true,"description":"endpoints instance information to update","schema":{"type":"object","properties":{"address":{"type":"string"},"description":{"type":"string"}}}}],"responses":{"204":{"description":"no content"}}},"delete":{"tags":["Endpoints"],"summary":"Delete a endpoint instance","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of endpoint instance to delete"}],"responses":{"204":{"description":"no content"}}}},"/endpoints/{id}/reload/":{"post":{"tags":["Endpoints"],"summary":"Reload endpoint instance","produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of endpoint instance to reload"}],"responses":{"204":{"description":"no content"}}}},"/endpoints/deployment/":{"delete":{"tags":["Endpoints"],"summary":"Undeploy model on endpoint instance","produces":["application/json"],"parameters":[{"name":"body","in":"body","required":true,"description":"List of history id","schema":{"type":"object","properties":{"history_id_list":{"type":"array","items":{"type":"integer"}}}}}],"responses":{"200":{"description":"ok","schema":{"type":"object","properties":{"undeployed":{"type":"array","items":{"type":"integer"}}}}}}}},"/endpoints/{id}/update_info/":{"get":{"tags":["Endpoints"],"summary":"Update endpoint information in studio.","produces":["application/json"],"parameters":[{"name":"id","in":"path","required":true,"type":"integer","description":"ID of endpoint instance to update"}],"responses":{"200":{"description":"ok (same with GET /endpoints/{id}/)","schema":{"type":"object","properties":{"endpoints":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"address":{"type":"string"},"description":{"type":"string"},"deployed_history":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"deployed_id":{"type":"integer"},"service_id":{"type":"string"},"model_id":{"type":"integer"},"model_name":{"type":"string"},"realtime_id":{"type":"integer"},"realtime_name":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"},"description":{"type":"string"},"status":{"type":"string"},"loaded":{"type":"boolean"}}}},"created_at":{"type":"string"},"updated_at":{"type":"string"}}}}}}}}}},"/monitor/node/":{"get":{"tags":["System Monitoring"],"summary":"Get data of dynamic node-placeholder containing host information and deployed status.","consumes":["application/json"],"produces":["application/json"],"responses":{"200":{"description":"ok","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"host_ip":{"type":"string"},"nodename":{"type":"string"},"deployed":{"type":"array","items":{"type":"string"}}}}}}}}}}},"/monitor/node/{nodename}":{"get":{"tags":["System Monitoring"],"summary":"Get metrics of specific node.","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"nodename","in":"path","type":"string","required":true,"description":"Evince specific nodename to get it's metrics.\nYou need to verify 'nodename' is available at call-time with using\n\"/monitor/node/\" which returns available nodename list.\n"},{"name":"latest","in":"query","required":false,"type":"boolean","description":"Set latest value one of [ 0, false | 1, true ].\nIf latest is true(1), it will return the latest node-metric.\n"}],"responses":{"200":{"description":"ok","schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"host_ip":{"type":"string"},"nodename":{"type":"string"},"deployed":{"type":"array","items":{"type":"string"}},"server_cpu_cores":{"type":"string"},"server_cpu_percent":{"type":"string"},"server_gpu_devices":{"type":"string"},"server_swap_in_bytes":{"type":"string"},"server_swap_out_bytes":{"type":"string"},"server_disk_read_bytes":{"type":"string"},"server_disk_avail_bytes":{"type":"string"},"server_disk_total_bytes":{"type":"string"},"server_disk_usage_bytes":{"type":"string"},"server_disk_write_bytes":{"type":"string"},"server_network_in_bytes":{"type":"string"},"server_memory_free_bytes":{"type":"string"},"server_network_out_bytes":{"type":"string"},"server_disk_usage_percent":{"type":"string"},"server_memory_total_bytes":{"type":"string"},"server_memory_usage_bytes":{"type":"string"},"server_gpu_memory_avail_bytes":{"type":"string"},"server_gpu_memory_total_bytes":{"type":"string"},"server_gpu_memory_usage_bytes":{"type":"string"},"server_gpu_memory_usage_percent":{"type":"string"},"server_gpu_avg_usage_per_device_percent":{"type":"string"},"time":{"type":"string"}}}}}}}}}},"/monitor/abacus/{role}":{"get":{"tags":["System Monitoring"],"summary":"Get metrics of abacus-componenetes by specified role.","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"role","in":"path","type":"string","required":true,"description":"Set role as one of [database | document-storage | tasks-queue | backend-api | worker | web | frontend-api | cachedb | summary ]\nIn \"summary\" case, json response is different from others. \n"},{"name":"latest","in":"query","required":false,"type":"boolean","description":"Set latest value one of [ 0, false | 1, true ].\nIf latest is true(1), it will return the latest components-metric.\n"}],"responses":{"200":{"description":"ok","schema":{"type":"object","properties":{"data(pathParam=summary)":{"type":"array","items":{"type":"object","properties":{"cpu_percent":{"type":"array","items":{"type":"object","properties":{"database":{"type":"string"},"document-storage":{"type":"string"},"tasks-queue":{"type":"string"},"backend-api":{"type":"string"},"worker":{"type":"string"},"web":{"type":"string"},"frontend-api":{"type":"string"},"cachedb":{"type":"string"}}}},"memory_usage_bytes":{"type":"array","items":{"type":"object","properties":{"database":{"type":"string"},"document-storage":{"type":"string"},"tasks-queue":{"type":"string"},"backend-api":{"type":"string"},"worker":{"type":"string"},"web":{"type":"string"},"frontend-api":{"type":"string"},"cachedb":{"type":"string"}}}},"time":{"type":"string"}}}},"data(pathParam=else)":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string"},"time":{"type":"string"},"components":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"host_ip":{"type":"string"},"nodename":{"type":"string"},"cpu_percent":{"type":"string"},"memory_usage_bytes":{"type":"string"},"volumes":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"limit_bytes":{"type":"string"},"usage_bytes":{"type":"string"}}}}}}},"extra_metrics":{"type":"array","items":{"type":"object","properties":{"total_workers(pathParam=worker)":{"type":"string"},"running_workers(pathParam=worker)":{"type":"string"},"tasks_queue_waiting(pathParam=tasks-queue)":{"type":"string"}}}}}}}}}}}}},"/link/":{"get":{"tags":["Link"],"summary":"Returns a list of links. 3 types = Established, Sent, and Recieved links.","produces":["application/json"],"responses":{"200":{"description":"list of all connections, regardless of status","schema":{"type":"object","properties":{"connections":{"type":"array","items":{"properties":{"id":{"type":"number"},"status":{"type":"string"},"address":{"type":"number"},"granted_identifier":{"type":"string"},"recieved_identifier":{"type":"string"},"name":{"type":"number"},"created_at":{"type":"number"},"updated_at":{"type":"number"}}}}}}}}},"post":{"tags":["Link"],"summary":"Creates a new pairing request, requesting system will have a status of sent if request is successful.","consumes":["application/json"],"parameters":[{"name":"address","in":"query","required":true,"type":"string","description":"ip/domain and port of target location"}],"produces":["application/json"],"responses":{"200":{"description":"response with the status and name of the device that was contacted","schema":{"type":"object","properties":{"status":{"type":"string"},"granted_identifier":{"type":"string"},"name":{"type":"string"}}}}}},"delete":{"tags":["Link"],"summary":"Deletes a tracked link, all types of links can be deleted, sends a request to delete a link to the paired device first, then if sucessful deletes the record of the link.","consumes":["application/json"],"parameters":[{"name":"id","in":"query","required":true,"type":"number","description":"link id from the list of links (retrieved through get)"}],"produces":["application/json"],"responses":{"200":{"description":"status","schema":{"type":"object","properties":{"status":{"type":"string"}}}}}}},"/link/respond/":{"post":{"tags":["Link"],"summary":"sends a response to recieved linking/pairing requests. responses can only be sent to \"Recieved\" type links.","consumes":["application/json"],"parameters":[{"name":"id","in":"query","required":true,"type":"number","description":"id of link request to reply to"},{"name":"status","in":"query","required":true,"type":"string","description":"our reply. can be \"accept\" or \"reject\""}],"produces":["application/json"],"responses":{"200":{"description":"response status","schema":{"type":"object","properties":{"status":{"type":"string"}}}}}}},"/link/scan/":{"post":{"tags":["Link"],"summary":"scans and returns the device name of the paired device, no response if no device is found","consumes":["application/json"],"parameters":[{"name":"address","in":"query","required":true,"type":"string","description":"ip/domain and port of target location"}],"produces":["application/json"],"responses":{"200":{"description":"name of scanned device","schema":{"type":"object","properties":{"device_name":{"type":"string"}}}}}}},"/uniconnect/":{"get":{"tags":["Uniconnect"],"summary":"Returns a list of staged datafiles and information about said datafile. information includes rowcount, columncount, and the last updated date.","produces":["application/json"],"responses":{"200":{"description":"list of files, key-value pairs as entries.","schema":{"type":"array","items":{"type":"object","properties":{"filename":{"type":"string"},"rows":{"type":"number"},"updatedate":{"type":"string"},"columns":{"type":"number"}}}}}}},"post":{"tags":["Uniconnect"],"summary":"selects a datafile from the staged list, uploads as a dataset.","consumes":["application/json"],"parameters":[{"name":"filename","in":"query","required":true,"type":"string","description":"name of datafile to upload"},{"name":"project_id","in":"query","required":true,"type":"number","description":"project to upload to"},{"name":"description","in":"query","required":true,"type":"string","description":"description of dataset"},{"name":"name","in":"query","required":true,"type":"string","description":"name of dataset"}],"produces":["application/json"],"responses":{"200":{"description":"dataset id and task id of dataset upload","schema":{"type":"object","properties":{"dataset_id":{"type":"string"},"task_id":{"type":"number"}}}}}}}},"definitions":{"ModelSchema":{"type":"object","properties":{"columns":{"type":"array","items":{"type":"string"}}}},"DecisionSchema":{"type":"object","properties":{"name":{"type":"string"},"threshold":{"type":"number"},"to_predict":{"type":"boolean"}}},"Extractions":{"type":"array","items":{"type":"object","properties":{"method":{"type":"string"},"columns":{"type":"array","items":{"type":"string"}},"group_name":{"type":"string"},"n_estimators":{"type":"integer"}}}},"Sampling":{"type":"object","properties":{"split":{"type":"object","properties":{"method":{"type":"string"},"train":{"type":"object","properties":{"ratio":{"type":"number"}}},"valid":{"type":"object","properties":{"ratio":{"type":"number"}}},"test":{"type":"object","properties":{"ratio":{"type":"number"}}}}},"cross_validation":{"type":"object","properties":{"method":{"type":"string"},"k":{"type":"integer"}}}}},"Algorithms":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","enum":["dt","knn","lr","mlp_k","rf","svm","bst_ada","bst_cat","bst_gbt","bst_lgb","bst_xgb","vt"]},"auto":{"type":"string"},"args":{"type":"object"},"refit":{"type":"string"}}}},"Filters":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"type":{"type":"string"},"boundary_arg":{"type":"array","items":{"type":"string"}}}}},"Decision":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"to_predict":{"type":"boolean"}}}},"Summary":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"fullname":{"type":"string"},"performance":{"type":"object","properties":{"train_valid":{"type":"array","items":{"type":"object","properties":{"train":{"type":"object","properties":{"metrics":{"type":"object","properties":{"ks":{"type":"integer"},"gini":{"type":"integer"},"max_f1":{"type":"integer"},"p_value":{"type":"integer"},"prc_auc":{"type":"integer"},"roc_auc":{"type":"integer"},"log_loss":{"type":"integer"},"max_lift":{"type":"integer"},"statistic":{"type":"integer"},"optimal_threshold":{"type":"integer"}}},"curves":{"type":"object","properties":{"cum":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"count":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"prc_auc":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"roc_auc":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"f1_curve":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"distribution":{"type":"array","items":{"type":"array","items":{"type":"integer"}}}}},"decile":{"type":"object","properties":{"ks":{"type":"array","items":{"type":"integer"}},"one":{"type":"array","items":{"type":"integer"}},"lift":{"type":"array","items":{"type":"integer"}},"zero":{"type":"array","items":{"type":"integer"}},"rate_one":{"type":"array","items":{"type":"integer"}},"subtotal":{"type":"array","items":{"type":"integer"}},"rate_zero":{"type":"array","items":{"type":"integer"}},"cum_rate_pos":{"type":"array","items":{"type":"integer"}},"cum_rate_zero":{"type":"array","items":{"type":"integer"}}}}}},"valid":{"type":"object","properties":{"metrics":{"type":"object","properties":{"ks":{"type":"integer"},"gini":{"type":"integer"},"max_f1":{"type":"integer"},"p_value":{"type":"integer"},"prc_auc":{"type":"integer"},"roc_auc":{"type":"integer"},"log_loss":{"type":"integer"},"max_lift":{"type":"integer"},"statistic":{"type":"integer"},"optimal_threshold":{"type":"integer"}}},"curves":{"type":"object","properties":{"cum":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"count":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"prc_auc":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"roc_auc":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"f1_curve":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"distribution":{"type":"array","items":{"type":"array","items":{"type":"integer"}}}}},"decile":{"type":"object","properties":{"ks":{"type":"array","items":{"type":"integer"}},"one":{"type":"array","items":{"type":"integer"}},"lift":{"type":"array","items":{"type":"integer"}},"zero":{"type":"array","items":{"type":"integer"}},"rate_one":{"type":"array","items":{"type":"integer"}},"subtotal":{"type":"array","items":{"type":"integer"}},"rate_zero":{"type":"array","items":{"type":"integer"}},"cum_rate_pos":{"type":"array","items":{"type":"integer"}},"cum_rate_zero":{"type":"array","items":{"type":"integer"}}}}}}}}},"test":{"type":"object","properties":{"metrics":{"type":"object","properties":{"ks":{"type":"integer"},"gini":{"type":"integer"},"max_f1":{"type":"integer"},"p_value":{"type":"integer"},"prc_auc":{"type":"integer"},"roc_auc":{"type":"integer"},"log_loss":{"type":"integer"},"max_lift":{"type":"integer"},"statistic":{"type":"integer"},"optimal_threshold":{"type":"integer"}}},"curves":{"type":"object","properties":{"cum":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"count":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"prc_auc":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"roc_auc":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"f1_curve":{"type":"array","items":{"type":"array","items":{"type":"integer"}}},"distribution":{"type":"array","items":{"type":"array","items":{"type":"integer"}}}}},"decile":{"type":"object","properties":{"ks":{"type":"array","items":{"type":"integer"}},"one":{"type":"array","items":{"type":"integer"}},"lift":{"type":"array","items":{"type":"integer"}},"zero":{"type":"array","items":{"type":"integer"}},"rate_one":{"type":"array","items":{"type":"integer"}},"subtotal":{"type":"array","items":{"type":"integer"}},"rate_zero":{"type":"array","items":{"type":"integer"}},"cum_rate_pos":{"type":"array","items":{"type":"integer"}},"cum_rate_zero":{"type":"array","items":{"type":"integer"}}}}}},"field_importance":{"type":"object","properties":{"field_name":{"type":"integer"}}},"time":{"type":"object","properties":{"train":{"type":"number"},"caculate":{"type":"number"}}}}}}}},"Dashboard":{"type":"object","properties":{"project_counts":{"type":"object","properties":{"project_count":{"type":"integer"},"dataset_count":{"type":"integer"},"model_count":{"type":"integer"},"prediction_count":{"type":"integer"}}},"storage_size":{"type":"object","properties":{"storage_size":{"type":"integer"},"free_storage":{"type":"integer"}}},"activity":{"type":"object","properties":{"total_count":{"type":"integer"}}},"recent_projects":{"type":"object","properties":{"projects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"description":{"type":"string"},"dataset_count":{"type":"integer"},"dataset_filesize":{"type":"integer"},"model_count":{"type":"integer"},"prediction_count":{"type":"integer"},"created":{"type":"string"},"last_updated":{"type":"string"}}}}}},"my_favorite":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"project":{"type":"string"},"type":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"}}}},"recent_activities":{"$ref":"#/definitions/RecentActivities"}}},"RecentActivities":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"},"project":{"type":"string"},"type":{"type":"string"},"status":{"type":"string"},"created_at":{"type":"string"},"updated_at":{"type":"string"}}}}}}