You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wa...@apache.org on 2024/11/01 03:02:31 UTC

(skywalking-query-protocol) branch master updated: Add owner for MQE values (#141)

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

wankai 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 3b838ae  Add owner for MQE values (#141)
3b838ae is described below

commit 3b838aea1efa17ce084c6724bd4fa9f9d2133edd
Author: Wan Kai <wa...@foxmail.com>
AuthorDate: Fri Nov 1 11:02:26 2024 +0800

    Add owner for MQE values (#141)
---
 metrics-v3.graphqls | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/metrics-v3.graphqls b/metrics-v3.graphqls
index c4fd56a..9e05d8d 100644
--- a/metrics-v3.graphqls
+++ b/metrics-v3.graphqls
@@ -57,9 +57,29 @@ enum ExpressionResultType {
     RECORD_LIST
 }
 
+type Owner {
+    # Scope=Service, return serviceID, serviceName
+    # Scope=ServiceInstance, return serviceID, serviceName, serviceInstanceID, serviceInstanceName
+    # Scope=Endpoint, return serviceID, serviceName, endpointID, endpointName
+    scope: Scope
+    serviceID: ID
+    serviceName: String
+    # Normal service is the service having installed agent or metrics reported directly.
+    # Unnormal service is conjectural service, usually detected by the agent.
+    normal: Boolean
+    serviceInstanceID: ID
+    serviceInstanceName: String
+    endpointID: ID
+    endpointName: String
+}
+
 type MQEValue {
     # Timestamp or name of the entity or record. It could be NULL if it is the result of an aggregate calculation.
     id: ID
+    # The owner of this metric value.
+    # When make a topN query, the owner info will be returned.
+    # Since 10.2
+    owner: Owner
     # Value is formatted double/int or NULL if the value is absent.
     value: String
     # Sampled record could associate with a trace.