This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-query-protocol.git
The following commit(s) were added to refs/heads/master by this push:
new e783764 add layer levels query (#129)
e783764 is described below
commit e783764462d8f9dbb0dc033a4d5c6438ad682e28
Author: Wan Kai <[email protected]>
AuthorDate: Thu Jan 11 20:06:37 2024 +0800
add layer levels query (#129)
---
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!]!
}