mirror of
https://github.com/Tribufu/ProxmoxSharp
synced 2026-08-10 05:11:09 +00:00
Create basic api client
This commit is contained in:
parent
3f80ace7b8
commit
6d584cc063
29 changed files with 1008 additions and 1 deletions
52
src/Tribufu.Proxmox/Models/ProxmoxNodeStatus.cs
Normal file
52
src/Tribufu.Proxmox/Models/ProxmoxNodeStatus.cs
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
// Copyright (c) Tribufu. All Rights Reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Tribufu.Proxmox.Models
|
||||
{
|
||||
public class ProxmoxNodeStatus
|
||||
{
|
||||
[JsonProperty("boot-info")]
|
||||
public ProxmoxBootInfo BootInfo { get; set; }
|
||||
|
||||
[JsonProperty("swap")]
|
||||
public ProxmoxMemoryStats Swap { get; set; }
|
||||
|
||||
[JsonProperty("rootfs")]
|
||||
public ProxmoxStorageStats RootFs { get; set; }
|
||||
|
||||
[JsonProperty("pveversion")]
|
||||
public string PveVersion { get; set; }
|
||||
|
||||
[JsonProperty("cpuinfo")]
|
||||
public ProxmoxCpuInfo CpuInfo { get; set; }
|
||||
|
||||
[JsonProperty("memory")]
|
||||
public ProxmoxMemoryStats Memory { get; set; }
|
||||
|
||||
[JsonProperty("ksm")]
|
||||
public ProxmoxKsmInfo Ksm { get; set; }
|
||||
|
||||
[JsonProperty("idle")]
|
||||
public double Idle { get; set; }
|
||||
|
||||
[JsonProperty("cpu")]
|
||||
public double Cpu { get; set; }
|
||||
|
||||
[JsonProperty("loadavg")]
|
||||
public string[] LoadAverage { get; set; }
|
||||
|
||||
[JsonProperty("current-kernel")]
|
||||
public ProxmoxKernelInfo CurrentKernel { get; set; }
|
||||
|
||||
[JsonProperty("kversion")]
|
||||
public string KernelVersion { get; set; }
|
||||
|
||||
[JsonProperty("wait")]
|
||||
public double Wait { get; set; }
|
||||
|
||||
[JsonProperty("uptime")]
|
||||
public long Uptime { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue