public static Scope valueOf(int scopeId) {
            if (inServiceCatalog(scopeId)) {
                return Service;
            }
            if (inServiceInstanceCatalog(scopeId)) {
                return ServiceInstance;
            }
            if (inEndpointCatalog(scopeId)) {
                return Endpoint;
            }
            if (inServiceRelationCatalog(scopeId)) {
                return ServiceRelation;
            }
            if (inServiceInstanceRelationCatalog(scopeId)) {
                return ServiceInstanceRelation;
            }
            if (inEndpointRelationCatalog(scopeId)) {
                return EndpointRelation;
            }
            if (inProcessCatalog(scopeId)) {
                return Process;
            }
            if (inProcessRelationCatalog(scopeId)) {
                return ProcessRelation;
            }
            return All;
        }
Scope ID is defined in {@link DefaultScopeDefine}.
oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/query/enumeration/Scope.java