Renames
This commit is contained in:
parent
6bd4157485
commit
d3536e0222
|
@ -10,7 +10,7 @@
|
||||||
async function download() {
|
async function download() {
|
||||||
loading = true
|
loading = true
|
||||||
try {
|
try {
|
||||||
await downloadStream(await API.getServerLogs())
|
await downloadStream(await API.getSystemLogs())
|
||||||
} finally {
|
} finally {
|
||||||
loading = false
|
loading = false
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ import { buildBackupsEndpoints } from "./backups"
|
||||||
import { buildEnvironmentVariableEndpoints } from "./environmentVariables"
|
import { buildEnvironmentVariableEndpoints } from "./environmentVariables"
|
||||||
import { buildEventEndpoints } from "./events"
|
import { buildEventEndpoints } from "./events"
|
||||||
import { buildAuditLogsEndpoints } from "./auditLogs"
|
import { buildAuditLogsEndpoints } from "./auditLogs"
|
||||||
import { buildLogsEndpoints } from "./logs"
|
import { buildSystemLogsEndpoints } from "./systemLogs"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Random identifier to uniquely identify a session in a tab. This is
|
* Random identifier to uniquely identify a session in a tab. This is
|
||||||
|
@ -278,6 +278,6 @@ export const createAPIClient = config => {
|
||||||
...buildEnvironmentVariableEndpoints(API),
|
...buildEnvironmentVariableEndpoints(API),
|
||||||
...buildEventEndpoints(API),
|
...buildEventEndpoints(API),
|
||||||
...buildAuditLogsEndpoints(API),
|
...buildAuditLogsEndpoints(API),
|
||||||
...buildLogsEndpoints(API),
|
...buildSystemLogsEndpoints(API),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
export const buildLogsEndpoints = API => ({
|
export const buildLogsEndpoints = API => ({
|
||||||
/**
|
/**
|
||||||
* Gets a list of datasources.
|
* Gets a stream for the system logs.
|
||||||
*/
|
*/
|
||||||
getServerLogs: async () => {
|
getSystemLogs: async () => {
|
||||||
return await API.get({
|
return await API.get({
|
||||||
url: "/api/global/system/logs",
|
url: "/api/global/system/logs",
|
||||||
json: false,
|
json: false,
|
Loading…
Reference in New Issue