You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by yw...@apache.org on 2019/02/16 10:25:12 UTC
[incubator-skywalking-query-protocol] branch new updated: Update:
Add database
This is an automated email from the ASF dual-hosted git repository.
ywang pushed a commit to branch new
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking-query-protocol.git
The following commit(s) were added to refs/heads/new by this push:
new c404f5d Update: Add database
c404f5d is described below
commit c404f5da696fbff4101b29cea31c766baf40f47e
Author: TinyAllen <al...@outlook.com>
AuthorDate: Sat Feb 16 18:24:57 2019 +0800
Update: Add database
Signed-off-by: TinyAllen <al...@outlook.com>
---
database.graphqls | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/database.graphqls b/database.graphqls
index b796107..da2f496 100644
--- a/database.graphqls
+++ b/database.graphqls
@@ -28,3 +28,23 @@ extend type Query {
getAllDatabases(duration: Duration!): [Database!]!
}
+input TopNRecordsCondition {
+ serviceId: ID!
+ metricName: String!
+ topN: Int!
+ # Top N order, ASC or DES.
+ order: Order!
+ duration: Duration!
+}
+
+type TopNRecord {
+ statement: String
+ latency: Long!
+ # Have value, Only if the record has the trace id.
+ # Slow record
+ traceId: String
+}
+
+extend type Query {
+ getTopNRecords(condition: TopNRecordsCondition!): [TopNRecord!]!
+}
\ No newline at end of file