fix: add ProcessRelation to entity types (#194)

This commit is contained in:
Fine0830
2022-11-28 22:49:23 +08:00
committed by GitHub
parent d8f91bbdf3
commit 5be106fc4f
5 changed files with 73 additions and 73 deletions

View File

@@ -145,6 +145,7 @@ export enum MetricCatalog {
SERVICE_RELATION = "ServiceRelation",
SERVICE_INSTANCE_RELATION = "ServiceInstanceRelation",
ENDPOINT_RELATION = "EndpointRelation",
PROCESS_RELATION = "ProcessRelation",
}
export const EntityType = [
{ value: "Service", label: "Service", key: 1 },

View File

@@ -43,7 +43,11 @@ limitations under the License. -->
</div>
<el-progress
:stroke-width="6"
:percentage="(i.value / maxValue) * 100"
:percentage="
isNaN(Number(i.value) / maxValue)
? 0
: (Number(i.value) / maxValue) * 100
"
:color="TextColors[config.color || 'purple']"
:show-text="false"
/>

View File

@@ -69,8 +69,8 @@ const activeNames = ref([0]);
const conditionsList = ref<NetworkProfilingRequest[]>([
{
uriRegex: "",
when4xx: InitTaskField.Whenxx[0].value,
when5xx: InitTaskField.Whenxx[1].value,
when4xx: InitTaskField.Whenxx[1].value,
when5xx: InitTaskField.Whenxx[0].value,
minDuration: NaN,
},
]);