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