mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-06-17 10:47:36 +00:00
address feedbacks
This commit is contained in:
parent
a26952597e
commit
4d75831419
@ -224,7 +224,7 @@ limitations under the License. -->
|
||||
|
||||
async function setTTL() {
|
||||
await getMetricsTTL();
|
||||
getRecordsTTL();
|
||||
await getRecordsTTL();
|
||||
changeDataMode();
|
||||
}
|
||||
async function getRecordsTTL() {
|
||||
|
@ -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;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user