feat: update tasks query

This commit is contained in:
Fine
2023-05-23 11:19:02 +08:00
parent b8ad72e1cc
commit 2c38d9c1f8
8 changed files with 56 additions and 10 deletions

View File

@@ -35,7 +35,7 @@ limitations under the License. -->
<td
class="profile-td"
:class="{
selected: continousProfilingStore.selectedStrategyTask.id === i.id,
selected: continousProfilingStore.selectedStrategy.id === i.id,
}"
>
<div class="ell">
@@ -84,7 +84,7 @@ limitations under the License. -->
}
async function changePolicy(item: StrategyItem) {
continousProfilingStore.setSelectedStrategyTask(item);
continousProfilingStore.setSelectedStrategy(item);
}
function setStrategies() {

View File

@@ -33,6 +33,7 @@ limitations under the License. -->
import { useDashboardStore } from "@/store/modules/dashboard";
import { useAppStoreWithOut } from "@/store/modules/app";
import { EntityType } from "../../data";
import { EBPFProfilingTriggerType } from "@/store/data";
/*global defineProps */
const props = defineProps({
@@ -54,6 +55,7 @@ limitations under the License. -->
const res = await ebpfStore.getTaskList({
serviceId,
targets: ["ON_CPU", "OFF_CPU"],
triggerType: EBPFProfilingTriggerType.FIXED_TIME,
});
if (res.errors) {

View File

@@ -77,6 +77,7 @@ limitations under the License. -->
import getLocalTime from "@/utils/localtime";
import { useAppStoreWithOut } from "@/store/modules/app";
import NewTask from "./NewTask.vue";
import { EBPFProfilingTriggerType } from "@/store/data";
/*global Nullable */
const { t } = useI18n();
@@ -185,6 +186,7 @@ limitations under the License. -->
serviceId,
serviceInstanceId,
targets: ["NETWORK"],
triggerType: EBPFProfilingTriggerType.FIXED_TIME,
});
if (res.errors) {