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() {
await getMetricsTTL();
getRecordsTTL();
await getRecordsTTL();
changeDataMode();
}
async function getRecordsTTL() {

View File

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

View File

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