Add 4 services definition.
This commit is contained in:
parent
b29881c6fb
commit
fb5585e5c4
|
|
@ -0,0 +1,24 @@
|
|||
syntax = "proto3";
|
||||
|
||||
option java_multiple_files = true;
|
||||
option java_package = "org.skywalking.apm.network.trace.proto";
|
||||
|
||||
import "Downstream.proto";
|
||||
|
||||
service AggregatedMetricsService {
|
||||
rpc collect (AggregatedMetrics) returns (Downstream) {
|
||||
}
|
||||
}
|
||||
|
||||
message AggregatedMetrics {
|
||||
repeated Metric metrics = 1;
|
||||
}
|
||||
|
||||
// In aggregated metric, every operation metric is aggregated in 1 seconds.
|
||||
message Metric {
|
||||
int32 operationNameId = 1 ;
|
||||
int32 timeWindow = 2;
|
||||
int32 count = 3;
|
||||
int32 latency = 4; // ms
|
||||
repeated int32 topN = 5;
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
option java_multiple_files = true;
|
||||
option java_package = "org.skywalking.apm.network.trace.proto";
|
||||
|
||||
import "Downstream.proto";
|
||||
|
||||
service JVMMetricsService {
|
||||
rpc collect (JVMMetrics) returns (Downstream) {
|
||||
}
|
||||
}
|
||||
|
||||
message JVMMetrics {
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
syntax = "proto3";
|
||||
|
||||
option java_multiple_files = true;
|
||||
option java_package = "org.skywalking.apm.network.trace.proto";
|
||||
|
||||
//register service for ApplicationCode, this service is called when service starts.
|
||||
service ApplicationRegisterService {
|
||||
rpc register (ApplicationMetaInfo) returns (ApplicationRegiseredInfo) {
|
||||
}
|
||||
}
|
||||
|
||||
message ApplicationMetaInfo {
|
||||
string applicationCode = 1;
|
||||
}
|
||||
|
||||
message ApplicationRegiseredInfo {
|
||||
int32 applicationId = 2;
|
||||
}
|
||||
|
||||
//register service for ServiceName, Network address
|
||||
service DictionaryRegisterService {
|
||||
rpc register (DictionaryRegisterMetaInfo) returns (DictionaryRegiseredInfo) {
|
||||
}
|
||||
}
|
||||
|
||||
message DictionaryRegisterMetaInfo {
|
||||
repeated DictionaryRegisterElement elements = 1;
|
||||
}
|
||||
|
||||
message DictionaryRegisterElement {
|
||||
RegisterElementType type = 1;
|
||||
string name = 2;
|
||||
}
|
||||
|
||||
message DictionaryRegiseredInfo {
|
||||
repeated DictionaryRegiseredElement elements = 1;
|
||||
}
|
||||
|
||||
message DictionaryRegiseredElement {
|
||||
RegisterElementType type = 1;
|
||||
string name = 2;
|
||||
int32 id = 3;
|
||||
}
|
||||
|
||||
|
||||
enum RegisterElementType {
|
||||
ServiceName = 0;
|
||||
NetworkAddress = 1;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue