VsanHostDrsStats

VsanHostDrsStats
VsanHostDrsStats

vSAN storage stats per host to support DRS integration

This structure may be used only with operations rendered under /vsan.

AllOf
This class requires all of the following:
JSON Example
{
    "_typeName": "string",
    "host": {
        "_typeName": "string",
        "type": "string",
        "value": "string"
    },
    "stats": "string",
    "readLocalityPresented": false
}
host
Required

vSAN host entity associated to the DRS stats.

string As byte As byte
stats
Required

Binary value to present vSAN DRS stats in below C struct: typedef VmHostStat uint8; // vSAN VM read locality per host.

// 1 means the host can serve read request // without cross site IO, and 0 means // either the data is inaccessible to this // host or the host needs cross site read // to serve the read request. struct VmStats { Uuid vmUuid; // VM instance UUID; uint32 totalSizeInKb; // Total capacity used by this VM in KB on // vSAN datastore; VmHostStat perHostValue[0]; // Weight of VM active vSAN data contributed // per vSAN host. The order is determined by // host member list specified to API // VsanQueryHostDrsStats, and length is // determined by number of vSAN member hosts; }; struct Stats { uint64 hostCapInKb; // host capacity contributed to vSAN in KB; uint64 hostUsageInKb; // host usage on vSAN datastore in KB; uint32 numVms; // number of vSAN VMs registered on this host; uint32 numHosts; // number of vSAN member hosts; It is determined // by host member list specified to API // VsanQueryHostDrsStats. Any host member change // can be detected by vSAN VC service, and trigger // next stats query to capture the new change. VmStats perVmStats[0];// vSAN VM DRS stats, length is determined by // numVms; And note that size of VmStats struct // itself is dynamic. };

boolean
readLocalityPresented
Optional

Whether object site read locality is presented in VmStats