From 450328c6445d4dc50a868a0b797a14755f1d82cc Mon Sep 17 00:00:00 2001 From: Wan Kai Date: Tue, 21 Feb 2023 14:48:32 +0800 Subject: [PATCH] Deprecate scope from entity (#108) --- metrics-v2.graphqls | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/metrics-v2.graphqls b/metrics-v2.graphqls index 35be22d..091ba42 100644 --- a/metrics-v2.graphqls +++ b/metrics-v2.graphqls @@ -34,13 +34,14 @@ enum MetricsType { } input Entity { - # 1. scope=All, no name is required. - # 2. scope=Service, ServiceInstance and Endpoint, set necessary serviceName/serviceInstanceName/endpointName - # 3. Scope=ServiceRelation, ServiceInstanceRelation, EndpointRelation and ProcessRelation + # Deprecated from 9.4.0 + # Scope could be sensed automatically through given metric name. + scope: Scope + # 1. metrics Scope=Service, ServiceInstance and Endpoint, set necessary serviceName/serviceInstanceName/endpointName + # 2. metrics Scope=ServiceRelation, ServiceInstanceRelation, EndpointRelation and ProcessRelation # serviceName/serviceInstanceName/endpointName/processName is/are the source(s) # destServiceName/destServiceInstanceName/destEndpointName/destProcessName is/are destination(s) # set necessary names of sources and destinations. - scope: Scope! serviceName: String # Normal service is the service having installed agent or metrics reported directly. # Unnormal service is conjectural service, usually detected by the agent.