# Data Object - EventFilterSpecByEntity(vim.event.EventFilterSpec.ByEntity)

Property of
  EventFilterSpec
Extends
  DynamicData
See also
  EventFilterSpecRecursionOption, ManagedEntity
Since
  2.0

## Data Object Description

This option specifies a managed entity used to filter event history. If the specified managed entity is a Folder or a ResourcePool, the query will actually be performed on the entities contained within that Folder or ResourcePool, so you cannot query for events on Folders and ResourcePools themselves this way.

Properties

Name | Type | Description
--- | --- | ---
entity P | ManagedObjectReference to a ManagedEntity | The managed entity to which the event pertains.
recursion | EventFilterSpecRecursionOption | Specification of related managed entities in the inventory hierarchy.
Properties inherited from DynamicData
None

P Required privilege: System.View
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="EventFilterSpecByEntity"> <complexContent> <extension base="vsan:DynamicData"> <sequence> <element name="entity" type="vsan:ManagedObjectReference"/> <element name="recursion" type="vsan:EventFilterSpecRecursionOption"/> </sequence> </extension> </complexContent> </complexType>