|
@@ -8,7 +8,7 @@ export function listModel(){
|
|
|
|
|
|
export function listHost(modelId){
|
|
|
return request({
|
|
|
- url: '/risk/other/host/'+modelId,
|
|
|
+ url: '/risk/other/host?modelId='+modelId,
|
|
|
method: 'get',
|
|
|
})
|
|
|
}
|
|
@@ -38,21 +38,21 @@ export function addConfig(data){
|
|
|
|
|
|
export function deleteConfig(hcIds){
|
|
|
return request({
|
|
|
- url: '/risk/config/del/'+hcIds,
|
|
|
+ url: '/risk/config/del?hcIds='+hcIds,
|
|
|
method: 'get'
|
|
|
})
|
|
|
}
|
|
|
|
|
|
export function listNetwork(modelId,metricsId){
|
|
|
return request({
|
|
|
- url: '/risk/other/network/'+modelId+'/'+metricsId,
|
|
|
+ url: '/risk/other/network?modelId='+modelId+'&metricsId='+metricsId,
|
|
|
method: 'get',
|
|
|
})
|
|
|
}
|
|
|
|
|
|
export function listHostTrend(id){
|
|
|
return request({
|
|
|
- url: '/risk/other/host/trend/'+id,
|
|
|
+ url: '/risk/other/host/trend?id='+id,
|
|
|
method: 'get',
|
|
|
})
|
|
|
}
|