This returns the unit associated with the path. If the path is set to cpuUsage, then this returns the unit object for percentage (%). If the path is set to diskUsage, then this returns the unit object for size (in MB). Unit returns null if no unit is associated with the path.
Unit only returns one unit, even if the path is set to a list property. If you have a view that contains a list of different metrics for one object, then you can use Units. This returns a list containing the unit for each item. For example, the view shows the CPU usage and the disk usage for a host in a row-oriented table. Set the Return Type to Units for a column, and the entries shows % and MB for CPU usage and disk usage, respectively.
Each property of a data object has a localized name. This Return Type returns the localized name of the property set in the Path. For example, if the context is a Host, and the path is set to cpuUsage, then Localized Property Name returns CPU Usage.