Formatting Event Message Content

When displayed at the console,
Event
data objects are not formatted and do not provide context information. You can format an
Event
message using the predefined string in the
Event.fullFormattedMessage
property.
You can also format an
Event
message based on contextual information. At runtime, the
Event
data object is populated with values that contain information associated with the source of an event, for example, the
Event
data object’s
computeResource
,
datacenter
,
ds
,
dvs
,
host
,
net
, and
vm
properties.
You can use the properties of an
Event
object with the information in the
EventDescriptionEventDetail
in
EventManager.description.eventInfo
to format event messages.