Add initial code for mcis and vm plan with location-based algo #511
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
MCIS 최적 Plan 기능 제공을 위한 기본 코드를 추가하였습니다. (개발 버전 WIP)
/ns/{nsId}/testRecommendVm
Request Body 예시
결과 예시 : 필터링된 결과를 우선순위에 따라서 리스트업
(evaluationScore_01 에는 임시로, utility를 표시함. evaluationScore_02에는 임시로, 주어진 coordinate를 기준으로 떨어진 거리를 표시함)
[
{
"id": "aws-eu-west-2-c5n.xlarge",
"name": "aws-eu-west-2-c5n.xlarge",
"connectionName": "aws-eu-west-2",
"cspSpecName": "c5n.xlarge",
"os_type": "",
"num_vCPU": 4,
"num_core": 0,
"mem_GiB": 10,
"storage_GiB": 0,
"description": "",
"cost_per_hour": 0,
"num_storage": 0,
"max_num_storage": 0,
"max_total_storage_TiB": 0,
"net_bw_Gbps": 0,
"ebs_bw_Mbps": 0,
"gpu_model": "",
"num_gpu": 0,
"gpumem_GiB": 0,
"gpu_p2p": "",
"orderInFilteredResult": 1,
"evaluationStatus": "",
"evaluationScore_01": 0.96666664,
"evaluationScore_02": 5.242709,
"evaluationScore_03": 0,
"evaluationScore_04": 0,
"evaluationScore_05": 0,
"evaluationScore_06": 0,
"evaluationScore_07": 0,
"evaluationScore_08": 0,
"evaluationScore_09": 0,
"evaluationScore_10": 0,
"associatedObjectList": null,
"isAutoGenerated": false
},
{
"id": "aws-eu-central-1-c5n.xlarge",
"name": "aws-eu-central-1-c5n.xlarge",
"connectionName": "aws-eu-central-1",
"cspSpecName": "c5n.xlarge",
"os_type": "",
"num_vCPU": 4,
"num_core": 0,
"mem_GiB": 10,
"storage_GiB": 0,
"description": "",
"cost_per_hour": 0,
"num_storage": 0,
"max_num_storage": 0,
"max_total_storage_TiB": 0,
"net_bw_Gbps": 0,
"ebs_bw_Mbps": 0,
"gpu_model": "",
"num_gpu": 0,
"gpumem_GiB": 0,
"gpu_p2p": "",
"orderInFilteredResult": 2,
"evaluationStatus": "",
"evaluationScore_01": 0.93333334,
"evaluationScore_02": 6.692369,
"evaluationScore_03": 0,
"evaluationScore_04": 0,
"evaluationScore_05": 0,
"evaluationScore_06": 0,
"evaluationScore_07": 0,
"evaluationScore_08": 0,
"evaluationScore_09": 0,
"evaluationScore_10": 0,
"associatedObjectList": null,
"isAutoGenerated": false
},
{
...
"orderInFilteredResult": 3,
"evaluationStatus": "",
..
},
...,