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

Property of
  EventFilterSpec
Extends
  DynamicData
See also
  EventFilterSpecRecursionOption, ManagedEntity

## 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:vim25="urn:vim25" name="EventFilterSpecByEntity"> <complexContent> <extension base="vim25:DynamicData"> <sequence> <element name="entity" type="vim25:ManagedObjectReference"/> <element name="recursion" type="vim25:EventFilterSpecRecursionOption"/> </sequence> </extension> </complexContent> </complexType>