Per the docs, methods.GetCurrentTime(ctx, c) will retrieve the vCenter server time in UTC.
We should be able to gather the current time from a reference NTP server and compare against this value. If the difference is more than X, then one state, if more than Y, then another state.
Not sure if this is capability is present for standalone ESXi hosts or if only through vCenter.
Per the docs,
methods.GetCurrentTime(ctx, c)
will retrieve the vCenter server time in UTC.We should be able to gather the current time from a reference NTP server and compare against this value. If the difference is more than X, then one state, if more than Y, then another state.
Not sure if this is capability is present for standalone ESXi hosts or if only through vCenter.