You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2022/03/07 07:19:43 UTC

[skywalking-query-protocol] branch master updated: Update UI query proto for booster UI (#74)

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 db9da65  Update UI query proto for booster UI (#74)
db9da65 is described below

commit db9da65a4138d7e9a99820c24cdb5c5e3c6b35a6
Author: Kai <wa...@foxmail.com>
AuthorDate: Mon Mar 7 15:19:41 2022 +0800

    Update UI query proto for booster UI (#74)
---
 ui-configuration.graphqls | 38 +++++++++++++-------------------------
 1 file changed, 13 insertions(+), 25 deletions(-)

diff --git a/ui-configuration.graphqls b/ui-configuration.graphqls
index eded6a7..e6f9882 100644
--- a/ui-configuration.graphqls
+++ b/ui-configuration.graphqls
@@ -15,54 +15,42 @@
 # limitations under the License.
 
 # Dashboard Configuration provides the management capabilities for SkyWalking native UI.
-enum EntityOwnerTypeOfTemplate {
-    ALL,
-    SERVICE,
-    INSTANCE,
-    ENDPOINT,
-    SERVICE_RELATION,
-    SERVICE_INSTANCE_RELATION,
-    ENDPOINT_RELATION
-}
 
 type DashboardConfiguration {
     # ID is a generated UUID.
     id: String!
-    name: String!,
-    type: EntityOwnerTypeOfTemplate!,
-    layer: String!
     # JSON based configuration. The format of text is the export result on the UI page.
-    configuration: String!,
+    configuration: String!
 }
 
 extend type Query {
-    # Read an existing UI template according to given name.
-    getTemplate(name: String!): DashboardConfiguration!
+    # Read an existing UI template according to given id.
+    getTemplate(id: String!): DashboardConfiguration!
     # Read all configuration templates。
-    #
-    # includingDisabled represents whether includes the disabled templates in the query result. Default value is false.
-    # Mostly, should not include, but in the management page, should consider support this.
-    getAllTemplates(type: EntityOwnerTypeOfTemplate!, layer: String!): [DashboardConfiguration!]!
+    getAllTemplates: [DashboardConfiguration!]!
+}
+
+# Used for add new template
+input NewDashboardSetting {
+    # JSON based configuration. The format of text is the export result on the UI page.
+    configuration: String!
 }
 
 input DashboardSetting {
     id: String!
-    name: String!,
-    type: EntityOwnerTypeOfTemplate!,
-    layer: String!
     # JSON based configuration. The format of text is the export result on the UI page.
-    configuration: String!,
+    configuration: String!
 }
 
 type TemplateChangeStatus {
     id: String!
     # True means change successfully.
-    status: Boolean!,
+    status: Boolean!
     message: String
 }
 
 # Template Management page provides the creation, update and deletion for the different template typs.
 extend type Mutation {
-    addTemplate(setting: DashboardSetting!): TemplateChangeStatus!
+    addTemplate(setting: NewDashboardSetting!): TemplateChangeStatus!
     changeTemplate(setting: DashboardSetting!): TemplateChangeStatus!
 }