This is an automated email from the ASF dual-hosted git repository.

wankai pushed a commit to branch layer-level
in repository https://gitbox.apache.org/repos/asf/skywalking-query-protocol.git

commit 7924d4febb491d79f2e08a31d85432731ae94b33
Author: wankai123 <[email protected]>
AuthorDate: Thu Jan 11 20:04:02 2024 +0800

    add layer levels query
---
 hierarchy.graphqls | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/hierarchy.graphqls b/hierarchy.graphqls
index 1432e22..af99ae7 100644
--- a/hierarchy.graphqls
+++ b/hierarchy.graphqls
@@ -51,9 +51,19 @@ type InstanceHierarchy {
     relations: [HierarchyInstanceRelation!]!
 }
 
+type LayerLevel {
+    # The layer name.
+    layer: String!
+    # The layer level.
+    # The level of the upper service should greater than the level of the 
lower service.
+    level: Int!
+}
+
 extend type Query {
     # Query the service hierarchy, based on the given service. Will 
recursively return all related layers services in the hierarchy.
     getServiceHierarchy(serviceId: ID!, layer: String!): ServiceHierarchy!
     # Query the instance hierarchy, based on the given instance. Will return 
all direct related layers instances in the hierarchy, no recursive.
     getInstanceHierarchy(instanceId: ID!, layer: String!): InstanceHierarchy!
+    # List layer hierarchy levels. The layer levels are defined in the 
`hierarchy-definition.yml`.
+    listLayerLevels: [LayerLevel!]!
 }

Reply via email to