Check registered application by id
Check registered application by id whether or not exists in collector when agent reconnect to collector.
diff --git a/ApplicationRegisterService.proto b/ApplicationRegisterService.proto
index a3b8e3a..8c824e7 100644
--- a/ApplicationRegisterService.proto
+++ b/ApplicationRegisterService.proto
@@ -26,6 +26,9 @@
//register service for ApplicationCode, this service is called when service starts.
service ApplicationRegisterService {
+ rpc registeredApplicationCheck (RegisteredApplication) returns (ApplicationCheckResult) {
+ }
+
rpc applicationCodeRegister (Application) returns (ApplicationMapping) {
}
}
@@ -37,3 +40,11 @@
message ApplicationMapping {
KeyWithIntegerValue application = 1;
}
+
+message RegisteredApplication {
+ int32 applicationId = 1;
+}
+
+message ApplicationCheckResult {
+ bool existed = 1;
+}