|
|
|
@@ -32,6 +32,9 @@ func (l *TaskDetailLogic) TaskDetail(req *types.TaskDetailReq) (resp *types.Task |
|
|
|
var clouds []models.Cloud |
|
|
|
l.svcCtx.DbEngin.Where("task_id = ?", req.TaskId).Find(&clouds) |
|
|
|
for _, cloud := range clouds { |
|
|
|
if l.svcCtx.K8sRpc[cloud.ParticipantId] == nil { |
|
|
|
continue |
|
|
|
} |
|
|
|
// 查询监控地址 |
|
|
|
var metricsUrl string |
|
|
|
l.svcCtx.DbEngin.Raw(" SELECT metrics_url FROM `sc_participant_phy_info` WHERE id = ? ", cloud.ParticipantId).Scan(&metricsUrl) |
|
|
|
|