未验证 提交 ed35f4e8 编写于 作者: W wankai123 提交者: GitHub

Set layer to mesh relation. (#8424)

上级 40bec82e
...@@ -27,6 +27,7 @@ Release Notes. ...@@ -27,6 +27,7 @@ Release Notes.
* Bump up grpc to 1.43.2 and protobuf to 3.19.2 to fix CVE-2021-22569. * Bump up grpc to 1.43.2 and protobuf to 3.19.2 to fix CVE-2021-22569.
* Add source layer and dest layer to relation. * Add source layer and dest layer to relation.
* Follow protocol grammar fix `GCPhrase -> GCPhase`. * Follow protocol grammar fix `GCPhrase -> GCPhase`.
* Set layer to mesh relation.
#### UI #### UI
......
...@@ -161,9 +161,11 @@ public class TelemetryDataDispatcher { ...@@ -161,9 +161,11 @@ public class TelemetryDataDispatcher {
ServiceRelation serviceRelation = new ServiceRelation(); ServiceRelation serviceRelation = new ServiceRelation();
serviceRelation.setTimeBucket(minuteTimeBucket); serviceRelation.setTimeBucket(minuteTimeBucket);
serviceRelation.setSourceServiceName(metrics.getSourceServiceName()); serviceRelation.setSourceServiceName(metrics.getSourceServiceName());
serviceRelation.setSourceLayer(Layer.MESH);
serviceRelation.setSourceNormal(true); serviceRelation.setSourceNormal(true);
serviceRelation.setSourceServiceInstanceName(metrics.getSourceServiceInstance()); serviceRelation.setSourceServiceInstanceName(metrics.getSourceServiceInstance());
serviceRelation.setDestServiceName(metrics.getDestServiceName()); serviceRelation.setDestServiceName(metrics.getDestServiceName());
serviceRelation.setDestLayer(Layer.MESH);
serviceRelation.setDestNormal(true); serviceRelation.setDestNormal(true);
serviceRelation.setDestServiceInstanceName(metrics.getDestServiceInstance()); serviceRelation.setDestServiceInstanceName(metrics.getDestServiceInstance());
serviceRelation.setEndpoint(metrics.getEndpoint()); serviceRelation.setEndpoint(metrics.getEndpoint());
...@@ -207,8 +209,10 @@ public class TelemetryDataDispatcher { ...@@ -207,8 +209,10 @@ public class TelemetryDataDispatcher {
serviceRelation.setTimeBucket(minuteTimeBucket); serviceRelation.setTimeBucket(minuteTimeBucket);
serviceRelation.setSourceServiceInstanceName(metrics.getSourceServiceInstance()); serviceRelation.setSourceServiceInstanceName(metrics.getSourceServiceInstance());
serviceRelation.setSourceServiceName(metrics.getSourceServiceName()); serviceRelation.setSourceServiceName(metrics.getSourceServiceName());
serviceRelation.setSourceServiceLayer(Layer.MESH);
serviceRelation.setSourceServiceNormal(true); serviceRelation.setSourceServiceNormal(true);
serviceRelation.setDestServiceInstanceName(metrics.getDestServiceInstance()); serviceRelation.setDestServiceInstanceName(metrics.getDestServiceInstance());
serviceRelation.setDestServiceLayer(Layer.MESH);
serviceRelation.setDestServiceNormal(true); serviceRelation.setDestServiceNormal(true);
serviceRelation.setDestServiceName(metrics.getDestServiceName()); serviceRelation.setDestServiceName(metrics.getDestServiceName());
serviceRelation.setEndpoint(metrics.getEndpoint()); serviceRelation.setEndpoint(metrics.getEndpoint());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册