You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
906 B

import request from '@/utils/request';
const apiPrefix = '/api/vgpu';
class cardApi {
getCardList(data = { filters: {} }) {
return {
url: apiPrefix + '/v1/gpus',
method: 'POST',
data,
};
}
getCardType(data = { filters: {} }) {
return {
url: apiPrefix + '/v1/gpu-types',
method: 'POST',
data,
};
}
getCardListReq(data) {
return request(this.getCardList(data));
}
getCardDetail(params) {
return request({
url: apiPrefix + '/v1/gpu',
method: 'get',
params,
});
}
getRangeVector(data) {
return request({
url: apiPrefix + '/v1/monitor/query/range-vector',
method: 'post',
data,
});
}
getInstantVector(data) {
return request({
url: apiPrefix + '/v1/monitor/query/instant-vector',
method: 'post',
data,
});
}
}
export default new cardApi();