mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-01 23:35:12 +00:00
feat: remove the layer filed for instance query (#81)
This commit is contained in:
parent
024a0fe44c
commit
a0b57d0a5a
@ -20,10 +20,10 @@ export const Services = {
|
|||||||
services: listServices(layer: $layer) {
|
services: listServices(layer: $layer) {
|
||||||
id
|
id
|
||||||
value: name
|
value: name
|
||||||
label: name
|
label: name
|
||||||
group
|
group
|
||||||
layers
|
layers
|
||||||
normal
|
normal
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
};
|
};
|
||||||
@ -36,17 +36,16 @@ export const Instances = {
|
|||||||
variable: "$serviceId: ID!, $duration: Duration!",
|
variable: "$serviceId: ID!, $duration: Duration!",
|
||||||
query: `
|
query: `
|
||||||
pods: listInstances(duration: $duration, serviceId: $serviceId) {
|
pods: listInstances(duration: $duration, serviceId: $serviceId) {
|
||||||
id
|
id
|
||||||
value: name
|
value: name
|
||||||
label: name
|
label: name
|
||||||
language
|
language
|
||||||
instanceUUID
|
instanceUUID
|
||||||
layer
|
attributes {
|
||||||
attributes {
|
name
|
||||||
name
|
value
|
||||||
value
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
`,
|
`,
|
||||||
};
|
};
|
||||||
export const Endpoints = {
|
export const Endpoints = {
|
||||||
@ -66,10 +65,10 @@ export const getService = {
|
|||||||
service: getService(serviceId: $serviceId) {
|
service: getService(serviceId: $serviceId) {
|
||||||
id
|
id
|
||||||
value: name
|
value: name
|
||||||
label: name
|
label: name
|
||||||
group
|
group
|
||||||
layers
|
layers
|
||||||
normal
|
normal
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
};
|
};
|
||||||
@ -79,16 +78,15 @@ export const getInstance = {
|
|||||||
query: `
|
query: `
|
||||||
instance: getInstance(instanceId: $instanceId) {
|
instance: getInstance(instanceId: $instanceId) {
|
||||||
id
|
id
|
||||||
value: name
|
value: name
|
||||||
label: name
|
label: name
|
||||||
language
|
language
|
||||||
instanceUUID
|
instanceUUID
|
||||||
layer
|
attributes {
|
||||||
attributes {
|
name
|
||||||
name
|
value
|
||||||
value
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
`,
|
`,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -97,10 +95,10 @@ export const getEndpoint = {
|
|||||||
query: `
|
query: `
|
||||||
endpoint: getEndpointInfo(endpointId: $endpointId) {
|
endpoint: getEndpointInfo(endpointId: $endpointId) {
|
||||||
id
|
id
|
||||||
value: name
|
value: name
|
||||||
label: name
|
label: name
|
||||||
serviceId
|
serviceId
|
||||||
serviceName
|
serviceName
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
};
|
};
|
||||||
|
1
src/types/selector.d.ts
vendored
1
src/types/selector.d.ts
vendored
@ -26,7 +26,6 @@ export type Service = {
|
|||||||
export type Instance = {
|
export type Instance = {
|
||||||
value: string;
|
value: string;
|
||||||
label: string;
|
label: string;
|
||||||
layer?: string;
|
|
||||||
language?: string;
|
language?: string;
|
||||||
instanceUUID?: string;
|
instanceUUID?: string;
|
||||||
attributes?: { name: string; value: string }[];
|
attributes?: { name: string; value: string }[];
|
||||||
|
Loading…
Reference in New Issue
Block a user