修复性能门限提交失败异常
This commit is contained in:
@@ -103,7 +103,7 @@ export function addPerfThre(data: Record<string, any>) {
|
||||
return request({
|
||||
url: `/api/rest/databaseManagement/v1/omc_db/measure_threshold`,
|
||||
method: 'post',
|
||||
data: { measure_task: [obj] },
|
||||
data: { measure_threshold: [obj] },
|
||||
});
|
||||
}
|
||||
|
||||
@@ -113,17 +113,18 @@ export function addPerfThre(data: Record<string, any>) {
|
||||
* @returns object
|
||||
*/
|
||||
export function updatePerfThre(data: Record<string, any>) {
|
||||
console.log(data);
|
||||
let obj: any = {
|
||||
ne_type: data.neType,
|
||||
kpi_set: data.performanceArr,
|
||||
kpi_set: data.kpiSet,
|
||||
status: 'Inactive',
|
||||
orig_severity: data.origSeverity,
|
||||
threshold: data.threshold,
|
||||
threshold: ''+data.threshold,
|
||||
};
|
||||
return request({
|
||||
url: `/api/rest/databaseManagement/v1/omc_db/measure_task?WHERE=id=${data.id}`,
|
||||
url: `/api/rest/databaseManagement/v1/omc_db/measure_threshold?WHERE=id=${data.id}`,
|
||||
method: 'put',
|
||||
data: { data: obj },
|
||||
data: { measure_threshold: obj },
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user