From 20f9997a843d18b54af8ac5c50bd4453c334c6b3 Mon Sep 17 00:00:00 2001 From: soul-walker <31162815+soul-walker@users.noreply.github.com> Date: Tue, 19 Nov 2024 19:14:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BB=BF=E7=9C=9F=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E7=AE=A1=E7=90=86proto=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/simulation_manage.proto | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/simulation_manage.proto diff --git a/src/simulation_manage.proto b/src/simulation_manage.proto new file mode 100644 index 0000000..472b7f1 --- /dev/null +++ b/src/simulation_manage.proto @@ -0,0 +1,27 @@ +syntax = "proto3"; + +package simulation_manage; + +// 仿真服务器状态 +message SimulationServerInfo { + // 服务id + string serviceId = 1; + // 服务器当前cpu使用率 + float cpuUsage = 2; + // 服务器总内存 + uint64 totalMemory = 3; + // 使用内存 + uint64 usedMemory = 4; +} + +// 启动仿真请求 +message StartSimulationRequest { + // 功能id + string functionId = 1; +} + +// 启动仿真响应 +message StartSimulationResponse { + // 仿真id + string simulationId = 1; +}