mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-13 08:17:33 +00:00
feat: update
This commit is contained in:
parent
29a282e0c9
commit
1f9281433a
@ -397,5 +397,6 @@ const msg = {
|
|||||||
threshold: "Threshold",
|
threshold: "Threshold",
|
||||||
uriRegex: "URI Regex",
|
uriRegex: "URI Regex",
|
||||||
uriList: "URI List",
|
uriList: "URI List",
|
||||||
|
process: "Process",
|
||||||
};
|
};
|
||||||
export default msg;
|
export default msg;
|
||||||
|
@ -395,6 +395,7 @@ const msg = {
|
|||||||
count: "Contar",
|
count: "Contar",
|
||||||
threshold: "Umbral",
|
threshold: "Umbral",
|
||||||
uriRegex: "Lista URI",
|
uriRegex: "Lista URI",
|
||||||
uriList: "URI List",
|
uriList: "Lista URI",
|
||||||
|
process: "Proceso",
|
||||||
};
|
};
|
||||||
export default msg;
|
export default msg;
|
||||||
|
@ -394,5 +394,6 @@ const msg = {
|
|||||||
threshold: "阈值",
|
threshold: "阈值",
|
||||||
uriRegex: "URI规则",
|
uriRegex: "URI规则",
|
||||||
uriList: "URI列表",
|
uriList: "URI列表",
|
||||||
|
process: "进程",
|
||||||
};
|
};
|
||||||
export default msg;
|
export default msg;
|
||||||
|
@ -18,7 +18,7 @@ limitations under the License. -->
|
|||||||
<div class="header">
|
<div class="header">
|
||||||
<span class="label mr-5">{{ t("instance") }}</span>
|
<span class="label mr-5">{{ t("instance") }}</span>
|
||||||
<Selector
|
<Selector
|
||||||
class="selector"
|
class="selector mr-10"
|
||||||
size="small"
|
size="small"
|
||||||
:value="instanceId"
|
:value="instanceId"
|
||||||
:options="continousProfilingStore.instances"
|
:options="continousProfilingStore.instances"
|
||||||
@ -27,18 +27,21 @@ limitations under the License. -->
|
|||||||
/>
|
/>
|
||||||
<span class="label mr-5">{{ t("process") }}</span>
|
<span class="label mr-5">{{ t("process") }}</span>
|
||||||
<Selector
|
<Selector
|
||||||
class="selector"
|
class="selector mr-10"
|
||||||
size="small"
|
size="small"
|
||||||
:value="processId"
|
:value="processId"
|
||||||
:options="continousProfilingStore.processes"
|
:options="continousProfilingStore.processes"
|
||||||
placeholder="Select a process"
|
placeholder="Select a process"
|
||||||
@change="changeProcess"
|
@change="changeProcess"
|
||||||
/>
|
/>
|
||||||
|
<el-button type="primary" size="small">
|
||||||
|
{{ t("analysis") }}
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref } from "vue";
|
import { ref, watch } from "vue";
|
||||||
import { useI18n } from "vue-i18n";
|
import { useI18n } from "vue-i18n";
|
||||||
import { useSelectorStore } from "@/store/modules/selectors";
|
import { useSelectorStore } from "@/store/modules/selectors";
|
||||||
import { useContinousProfilingStore } from "@/store/modules/continous-profiling";
|
import { useContinousProfilingStore } from "@/store/modules/continous-profiling";
|
||||||
@ -49,7 +52,6 @@ limitations under the License. -->
|
|||||||
const processId = ref<string>("");
|
const processId = ref<string>("");
|
||||||
const instanceId = ref<string>("");
|
const instanceId = ref<string>("");
|
||||||
|
|
||||||
getSelectors();
|
|
||||||
function changeInstance(opt: { id: string }[]) {
|
function changeInstance(opt: { id: string }[]) {
|
||||||
instanceId.value = opt[0].id;
|
instanceId.value = opt[0].id;
|
||||||
}
|
}
|
||||||
@ -60,9 +62,20 @@ limitations under the License. -->
|
|||||||
|
|
||||||
async function getSelectors() {
|
async function getSelectors() {
|
||||||
const serviceId = (selectorStore.currentService && selectorStore.currentService.id) || "";
|
const serviceId = (selectorStore.currentService && selectorStore.currentService.id) || "";
|
||||||
await continousProfilingStore.getServiceInstances(serviceId.value);
|
|
||||||
|
await continousProfilingStore.getServiceInstances(serviceId);
|
||||||
|
instanceId.value = (continousProfilingStore.instances[0] || {}).id || "";
|
||||||
await continousProfilingStore.getProcesses(instanceId.value);
|
await continousProfilingStore.getProcesses(instanceId.value);
|
||||||
|
processId.value = (continousProfilingStore.processes[0] || {}).id || "";
|
||||||
}
|
}
|
||||||
|
getSelectors();
|
||||||
|
|
||||||
|
watch(
|
||||||
|
() => selectorStore.currentService,
|
||||||
|
() => {
|
||||||
|
getSelectors();
|
||||||
|
},
|
||||||
|
);
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.header {
|
.header {
|
||||||
|
Loading…
Reference in New Issue
Block a user