mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-06-29 04:27:34 +00:00
address feedbacks
This commit is contained in:
parent
a26952597e
commit
4d75831419
@ -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() {
|
||||||
|
@ -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;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user