changed to camelcase
This commit is contained in:
@@ -185,7 +185,7 @@ pub struct Acknowledgment {
|
|||||||
#[derive(Debug, Serialize, Clone)]
|
#[derive(Debug, Serialize, Clone)]
|
||||||
pub struct DockerRegistrationDto {
|
pub struct DockerRegistrationDto {
|
||||||
/// Unique server identifier (integer)
|
/// Unique server identifier (integer)
|
||||||
#[serde(rename = "Server_id")]
|
#[serde(rename = "serverId")]
|
||||||
pub server_id: u16,
|
pub server_id: u16,
|
||||||
/// Number of currently running containers
|
/// Number of currently running containers
|
||||||
// pub container_count: usize, --- IGNORE ---
|
// pub container_count: usize, --- IGNORE ---
|
||||||
@@ -198,12 +198,13 @@ pub struct DockerRegistrationDto {
|
|||||||
/// id: unique container ID (first 12 hex digits)
|
/// id: unique container ID (first 12 hex digits)
|
||||||
/// image: docker image name
|
/// image: docker image name
|
||||||
/// name: container name
|
/// name: container name
|
||||||
#[serde(rename = "Containers")]
|
#[serde(rename = "containers")]
|
||||||
pub containers: Vec<DockerContainer>, // Vec<DockerContainer>,
|
pub containers: Vec<DockerContainer>, // Vec<DockerContainer>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Clone)]
|
#[derive(Debug, Serialize, Clone)]
|
||||||
pub struct DockerMetricDto {
|
pub struct DockerMetricDto {
|
||||||
|
#[serde(rename = "serverId")]
|
||||||
pub server_id: u16,
|
pub server_id: u16,
|
||||||
/// json stringified array of DockerContainer
|
/// json stringified array of DockerContainer
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user