diff --git a/Cargo.toml b/Cargo.toml index 7db1dc6..c6ae8b0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dragonfly-api" -version = "2.0.9" +version = "2.0.10" authors = ["Gaius "] edition = "2021" license = "Apache-2.0" diff --git a/proto/common.proto b/proto/common.proto index c9ccd9e..9e6ae30 100644 --- a/proto/common.proto +++ b/proto/common.proto @@ -191,15 +191,15 @@ message Host { // Host kernel version. string kernel_version = 11; // CPU Stat. - CPU cpu = 12; + // CPU cpu = 12; // Memory Stat. - Memory memory = 13; + // Memory memory = 13; // Network Stat. - Network network = 14; + // Network network = 14; // Disk Stat. - Disk disk = 15; + // Disk disk = 15; // Build information. - Build build = 16; + // Build build = 16; } // CPU Stat. diff --git a/src/common.rs b/src/common.rs index ed8cb1e..8e129d0 100644 --- a/src/common.rs +++ b/src/common.rs @@ -133,23 +133,19 @@ pub struct Host { #[prost(string, tag = "10")] pub platform_version: ::prost::alloc::string::String, /// Host kernel version. + /// + /// CPU Stat. + /// CPU cpu = 12; + /// Memory Stat. + /// Memory memory = 13; + /// Network Stat. + /// Network network = 14; + /// Disk Stat. + /// Disk disk = 15; + /// Build information. + /// Build build = 16; #[prost(string, tag = "11")] pub kernel_version: ::prost::alloc::string::String, - /// CPU Stat. - #[prost(message, optional, tag = "12")] - pub cpu: ::core::option::Option, - /// Memory Stat. - #[prost(message, optional, tag = "13")] - pub memory: ::core::option::Option, - /// Network Stat. - #[prost(message, optional, tag = "14")] - pub network: ::core::option::Option, - /// Disk Stat. - #[prost(message, optional, tag = "15")] - pub disk: ::core::option::Option, - /// Build information. - #[prost(message, optional, tag = "16")] - pub build: ::core::option::Option, } /// CPU Stat. #[allow(clippy::derive_partial_eq_without_eq)] diff --git a/src/descriptor.bin b/src/descriptor.bin index a7ac2e5..2d515a0 100644 Binary files a/src/descriptor.bin and b/src/descriptor.bin differ