address feedbacks

This commit is contained in:
Fine 2025-05-29 16:00:19 +08:00
parent a26952597e
commit 4d75831419
3 changed files with 17 additions and 10 deletions

View File

@ -224,7 +224,7 @@ limitations under the License. -->
async function setTTL() { async function setTTL() {
await getMetricsTTL(); await getMetricsTTL();
getRecordsTTL(); await getRecordsTTL();
changeDataMode(); changeDataMode();
} }
async function getRecordsTTL() { async function getRecordsTTL() {

View File

@ -34,27 +34,28 @@ export const settingsStore = defineStore({
}), }),
actions: { actions: {
async getClusterNodes() { async getClusterNodes() {
const res = await fetchQuery({ const response = await fetchQuery({
method: "get", method: "get",
path: "ClusterNodes", path: "ClusterNodes",
}); });
return res.nodes; this.clusterNodes = response.nodes;
return response;
}, },
async getConfigTTL() { async getConfigTTL() {
const res = await fetchQuery({ const response = await fetchQuery({
method: "get", method: "get",
path: "ConfigTTL", path: "ConfigTTL",
}); });
this.configTTL = res; this.configTTL = response;
return res; return response;
}, },
async getDebuggingConfigDump() { async getDebuggingConfigDump() {
const res = await fetchQuery({ const response = await fetchQuery({
method: "get", method: "get",
path: "DebuggingConfigDump", path: "DebuggingConfigDump",
}); });
this.debuggingConfig = res; this.debuggingConfig = response;
return res; return response;
}, },
}, },
}); });

View File

@ -16,11 +16,17 @@
*/ */
import type { Duration } from "./app"; import type { Duration } from "./app";
const enum EventType {
ALL = "",
NORMAL = "Normal",
ERROR = "Error",
}
export type Event = { export type Event = {
uuid: string; uuid: string;
source: SourceInput; source: SourceInput;
name: string; name: string;
type: string; type: EventType;
message: string; message: string;
parameters: { key: string; value: string }[]; parameters: { key: string; value: string }[];
startTime: number | string; startTime: number | string;