37 lines
804 B
JavaScript
37 lines
804 B
JavaScript
import fetch from './fetch';
|
|
|
|
// 获取列表
|
|
export function getList(params) {
|
|
return fetch({
|
|
url: `/api/issues/search?components=kingchanx-fluid-cloudnative_fluid&s=FILE_LINE&issueStatuses=CONFIRMED%2COPEN&ps=100&&additionalFields=_all&timeZone=Asia%2FShanghai`,
|
|
method: 'get',
|
|
params
|
|
});
|
|
}
|
|
|
|
|
|
// 代码片段
|
|
export function getCodeSnippets(key) {
|
|
return fetch({
|
|
url: `/api/sources/issue_snippets?issueKey=${ key }`,
|
|
method: 'get',
|
|
});
|
|
}
|
|
|
|
// 问题分析
|
|
export function getProblemDetail(key) {
|
|
return fetch({
|
|
url: `/api/rules/show?key=${ key }`,
|
|
method: 'get',
|
|
});
|
|
}
|
|
|
|
// 数据汇总
|
|
export function getProblemData(component, keys) {
|
|
return fetch({
|
|
url: `/api/measures/component?component=${ component }&metricKeys=${ keys }`,
|
|
method: 'get',
|
|
});
|
|
}
|
|
|