You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// DatastoreUsageSummary tracks usage details for a specific Datastore
typeDatastoreUsageSummarystruct {
Datastore mo.Datastore
StorageRemainingPercentfloat64
StorageUsedPercentfloat64
StorageTotalint64
StorageUsedint64
StorageRemainingint64
CriticalThresholdint
WarningThresholdint
}
I should note that each int64 field is using bytes as the unit of measurement (UOM). This matches the vSphere API:
freeSpace
xsd:long
Available space of this datastore, in bytes. The server periodically updates this value. It can be explicitly refreshed with the Refresh operation. This property is guaranteed to be valid only if accessible is true.
Other types (such as percentages used for WARNING and CRITICAL thresholds) should also be reviewed and annotated.
The text was updated successfully, but these errors were encountered:
Example:
check-vmware/internal/vsphere/datastores.go
Lines 33 to 43 in 7e988e8
I should note that each
int64
field is using bytes as the unit of measurement (UOM). This matches the vSphere API:Other types (such as percentages used for WARNING and CRITICAL thresholds) should also be reviewed and annotated.
The text was updated successfully, but these errors were encountered: