wu-sheng commented on a change in pull request #62:
URL: 
https://github.com/apache/skywalking-data-collect-protocol/pull/62#discussion_r810053731



##########
File path: rover/Process.proto
##########
@@ -0,0 +1,111 @@
+/*
+ * 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";
+
+package skywalking.v3;
+
+option java_multiple_files = true;
+option java_package = "org.apache.skywalking.apm.network.rover.process.v3";
+option go_package = 
"skywalking.apache.org/repo/goapi/collect/rover/process/v3";
+
+import "common/Common.proto";
+
+// Define the Rover detected processes and report them.
+service ProcessService {
+    // Report discovered process in Rover
+    rpc reportProcesses (ProcessReportList) returns (ReportProcessDownstream) {
+    }
+
+    // Keep the process alive in the backend.
+    rpc keepAlive (ProcessPingPkgList) returns (KeepAliveProcessDownstream) {
+    }
+}
+
+message ProcessReportList {
+    repeated ProcessProperties processes = 1;
+}
+
+message ProcessProperties {
+    // Detect process mode
+    ProcessOwner owner = 1;
+    // The Process metadata
+    oneof metadata {
+        HostProcessMetadata hostProcess = 2;
+        KubernetesMetadata k8sMetadata = 3;
+    }
+}
+
+enum ProcessOwner {
+    KUBERNETES = 0;
+    VM = 1;
+}
+
+message HostProcessMetadata {
+    // [required] Service name of process
+    // Used to logically aggregate multiple Process
+    string serviceName = 1;
+    // [required] User define or generated process name
+    string name = 2;
+    // [required] Process full command line
+    string cmd = 3;
+    // [required] The IP address of the host where the process resides
+    string hostIP = 4;
+    // [required] The Process id of the host
+    int32 pid = 5;
+}
+
+// [WIP] Kubernetes process metadata
+message KubernetesMetadata {
+}
+
+message ReportProcessDownstream {
+    repeated ProcessDownstream processes = 1;
+}
+
+message ProcessDownstream {
+    // Generate process id
+    string processId = 1;
+    // The process detect mode
+    ProcessOwner owner = 2;

Review comment:
       Remove as you have `oneof`.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to