You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2019/04/16 13:31:38 UTC
[incubator-skywalking-data-collect-protocol] branch metric-proto
updated: Update metric.proto
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch metric-proto
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking-data-collect-protocol.git
The following commit(s) were added to refs/heads/metric-proto by this push:
new a0a9508 Update metric.proto
a0a9508 is described below
commit a0a95089a97afc44bd451f7bde03025a3228150e
Author: 吴晟 Wu Sheng <wu...@foxmail.com>
AuthorDate: Tue Apr 16 21:31:34 2019 +0800
Update metric.proto
---
metric/metric.proto | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/metric/metric.proto b/metric/metric.proto
index defe8c4..bb6db9f 100644
--- a/metric/metric.proto
+++ b/metric/metric.proto
@@ -57,14 +57,20 @@ message RelationMetric {
Endpoint dest_endpoint = 6;
}
- repeated Metric metrics = 7;
+ Metric metric = 7;
}
message Metric {
+ oneof identify {
+ string name = 1;
+ int32 id = 2;
+ }
+
+ int64 time = 3;
Type type = 4;
- Gauge gaugeValues = 5;
- Histogram histogramValues = 6;
+ repeated Gauge gaugeValues = 5;
+ repeated Histogram histogramValues = 6;
enum Type {
GAUGE = 0;
@@ -72,12 +78,10 @@ message Metric {
}
message Gauge {
- string name = 1;
int64 value = 2;
}
message Histogram {
- string name = 1;
repeated IntKeyIntValuePair values = 2;
}
}