mirror of
https://github.com/tribufu/proxmox-sharp
synced 2026-06-01 09:42:38 +00:00
Create basic api client
This commit is contained in:
parent
3f80ace7b8
commit
6d584cc063
29 changed files with 1008 additions and 1 deletions
55
src/Tribufu.Proxmox/Models/ProxmoxVirtualMachine.cs
Normal file
55
src/Tribufu.Proxmox/Models/ProxmoxVirtualMachine.cs
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
// Copyright (c) Tribufu. All Rights Reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Tribufu.Proxmox.Models
|
||||
{
|
||||
public class ProxmoxVirtualMachine
|
||||
{
|
||||
[JsonProperty("vmid")]
|
||||
public int VmId { get; set; }
|
||||
|
||||
[JsonProperty("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonProperty("status")]
|
||||
public string Status { get; set; }
|
||||
|
||||
[JsonProperty("uptime")]
|
||||
public long Uptime { get; set; }
|
||||
|
||||
[JsonProperty("cpu")]
|
||||
public double Cpu { get; set; }
|
||||
|
||||
[JsonProperty("cpus")]
|
||||
public int CpuCount { get; set; }
|
||||
|
||||
[JsonProperty("mem")]
|
||||
public long MemoryUsed { get; set; }
|
||||
|
||||
[JsonProperty("maxmem")]
|
||||
public long MemoryTotal { get; set; }
|
||||
|
||||
[JsonProperty("disk")]
|
||||
public long DiskUsed { get; set; }
|
||||
|
||||
[JsonProperty("maxdisk")]
|
||||
public long DiskTotal { get; set; }
|
||||
|
||||
[JsonProperty("diskread")]
|
||||
public long DiskRead { get; set; }
|
||||
|
||||
[JsonProperty("diskwrite")]
|
||||
public long DiskWrite { get; set; }
|
||||
|
||||
[JsonProperty("netin")]
|
||||
public long NetworkIn { get; set; }
|
||||
|
||||
[JsonProperty("netout")]
|
||||
public long NetworkOut { get; set; }
|
||||
|
||||
[JsonProperty("pid")]
|
||||
public int Pid { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue