diff --git a/common/common.proto b/common/common.proto index 51350911d4dcb8b2b2a0412361995c5854410226..71d39f62651952554e620789d58a2c3a23f8369b 100644 --- a/common/common.proto +++ b/common/common.proto @@ -40,3 +40,12 @@ enum DetectPoint { server = 1; proxy = 2; } + +meesage Commands { + repeated Command commands = 1; +} + +message Command { + string command = 1; + repeated KeyStringValuePair args = 2; +} diff --git a/register/InstancePing.proto b/register/InstancePing.proto new file mode 100644 index 0000000000000000000000000000000000000000..9d9069b91f3c3dc5f436e2a3e3ea4a205fba350e --- /dev/null +++ b/register/InstancePing.proto @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +syntax = "proto3"; + +option java_multiple_files = true; +option java_package = "org.apache.skywalking.apm.network.register"; +option csharp_namespace = "SkyWalking.NetworkProtocol"; + +import "common/common.proto"; + +service ServiceInstancePing { + rpc doPing (ServiceInstancePingPkg) returns (Commands) { + } +} + +message ServiceInstancePingPkg { + int32 serviceInstanceId = 1; + int64 time = 2; +} diff --git a/register/Register.proto b/register/Register.proto index 76d598c7e94baca20b2816ad6e52ed6801ac4fe7..24c83d10965876021898bb2ab553effa4fef660b 100644 --- a/register/Register.proto +++ b/register/Register.proto @@ -62,8 +62,9 @@ message ServiceInstances { message ServiceInstance { int32 serviceId = 1; string instanceUUID = 2; - repeated KeyStringValuePair tags = 3; - repeated KeyStringValuePair properties = 4; + int64 time = 3; + repeated KeyStringValuePair tags = 4; + repeated KeyStringValuePair properties = 5; } message ServiceInstanceRegisterMapping {