mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-06-29 17:27:34 +00:00
add Snapshot
This commit is contained in:
parent
134067e623
commit
af0af466ce
@ -141,7 +141,6 @@ export async function useDashboardQueryProcessor(configList: Indexable[]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return { source, tips, typesOfMQE };
|
return { source, tips, typesOfMQE };
|
||||||
}
|
}
|
||||||
async function fetchMetrics(configArr: any) {
|
async function fetchMetrics(configArr: any) {
|
||||||
|
@ -395,5 +395,6 @@ const msg = {
|
|||||||
profilingEvents: "Async Profiling Events",
|
profilingEvents: "Async Profiling Events",
|
||||||
execArgs: "Exec Args",
|
execArgs: "Exec Args",
|
||||||
instances: "Instances",
|
instances: "Instances",
|
||||||
|
snapshot: "Snapshot",
|
||||||
};
|
};
|
||||||
export default msg;
|
export default msg;
|
||||||
|
@ -395,5 +395,6 @@ const msg = {
|
|||||||
profilingEvents: "Async Profiling Events",
|
profilingEvents: "Async Profiling Events",
|
||||||
execArgs: "Exec Args",
|
execArgs: "Exec Args",
|
||||||
instances: "Instances",
|
instances: "Instances",
|
||||||
|
snapshot: "Snapshot",
|
||||||
};
|
};
|
||||||
export default msg;
|
export default msg;
|
||||||
|
@ -393,5 +393,6 @@ const msg = {
|
|||||||
profilingEvents: "异步分析事件",
|
profilingEvents: "异步分析事件",
|
||||||
execArgs: "String任务扩展",
|
execArgs: "String任务扩展",
|
||||||
instances: "实例",
|
instances: "实例",
|
||||||
|
snapshot: "快照",
|
||||||
};
|
};
|
||||||
export default msg;
|
export default msg;
|
||||||
|
1
src/types/alarm.d.ts
vendored
1
src/types/alarm.d.ts
vendored
@ -27,6 +27,7 @@ export interface Alarm {
|
|||||||
scope: string;
|
scope: string;
|
||||||
tags: Array<{ key: string; value: string }>;
|
tags: Array<{ key: string; value: string }>;
|
||||||
events: Event[];
|
events: Event[];
|
||||||
|
snapshot: Indexable;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Event {
|
export interface Event {
|
||||||
|
@ -75,6 +75,9 @@ limitations under the License. -->
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</span>
|
</span>
|
||||||
|
<span v-else-if="item.label === 'snapshot'">
|
||||||
|
<Snapshot :snapshot="currentDetail.snapshot" />
|
||||||
|
</span>
|
||||||
<span v-else>{{ currentDetail[item.label] }}</span>
|
<span v-else>{{ currentDetail[item.label] }}</span>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@ -117,6 +120,7 @@ limitations under the License. -->
|
|||||||
import { useAlarmStore } from "@/store/modules/alarm";
|
import { useAlarmStore } from "@/store/modules/alarm";
|
||||||
import { EventsDetailHeaders, AlarmDetailCol, EventsDetailKeys } from "./data";
|
import { EventsDetailHeaders, AlarmDetailCol, EventsDetailKeys } from "./data";
|
||||||
import { dateFormat } from "@/utils/dateFormat";
|
import { dateFormat } from "@/utils/dateFormat";
|
||||||
|
import Snapshot from "./components/Snapshot.vue";
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const alarmStore = useAlarmStore();
|
const alarmStore = useAlarmStore();
|
||||||
|
26
src/views/alarm/components/Snapshot.vue
Normal file
26
src/views/alarm/components/Snapshot.vue
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<!-- Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
|
contributor license agreements. See the NOTICE file distributed with
|
||||||
|
this work for additional information regarding copyright ownership.
|
||||||
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||||
|
(the "License"); you may not use this file except in compliance with
|
||||||
|
the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License. -->
|
||||||
|
<template>
|
||||||
|
<div class="snapshot flex-v"> Line Charts </div>
|
||||||
|
</template>
|
||||||
|
<script lang="ts" setup>
|
||||||
|
/*global defineProps */
|
||||||
|
const props = defineProps({
|
||||||
|
snapshot: { type: Object, default: () => {} },
|
||||||
|
});
|
||||||
|
|
||||||
|
console.log(props.snapshot);
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped></style>
|
@ -52,6 +52,10 @@ export const AlarmDetailCol = [
|
|||||||
label: "events",
|
label: "events",
|
||||||
value: "eventDetail",
|
value: "eventDetail",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "snapshot",
|
||||||
|
value: "snapshot",
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export const EventsDetailKeys = [
|
export const EventsDetailKeys = [
|
||||||
|
Loading…
Reference in New Issue
Block a user