更新
This commit is contained in:
26
wcs/qd/src/api/monitor/loki.js
Normal file
26
wcs/qd/src/api/monitor/loki.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getAllLabels() {
|
||||
return request({
|
||||
url: 'api/loki/labels',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function getAllValues(label) {
|
||||
return request({
|
||||
url: 'api/loki/values',
|
||||
method: 'post',
|
||||
data: label
|
||||
})
|
||||
}
|
||||
|
||||
export function getLogData(param) {
|
||||
return request({
|
||||
url: 'api/loki/logs',
|
||||
method: 'post',
|
||||
data: param
|
||||
})
|
||||
}
|
||||
|
||||
export default { getAllLabels, getAllValues, getLogData }
|
||||
Reference in New Issue
Block a user