Files
deb-python-pyvmomi/docs/vim/TaskFilterSpec.rst
Shawn Hartsock 15f7be9a52 pyVmomi reStructured Text Documentation
This external documentation for pyVmomi was generated using Googly Docs
(aka Google Standard Documentation) which renders very cleanly in
GitHub. Internal documentation for a class should be done in Sphinx
format because tools like pyCharm and Eclipse can use that documentation
as a hint for code completion.

Note: External docs as Googly Docs, internal docs as Sphinx.

Closes bug#15
2014-06-17 14:07:42 -04:00

3.5 KiB

vim.TaskFilterSpec

This data object type defines the specification for the task filter used to query tasks in the history collector database. The client creates a task history collector with a filter specification, then retrieves the tasks from the task history collector.

extends

vmodl.DynamicData

Attributes:

entity (vim.TaskFilterSpec.ByEntity, optional):

The filter specification for retrieving tasks by managed entity. If not provided, then the tasks attached to all managed entities are collected.

time (vim.TaskFilterSpec.ByTime, optional):

The filter specification for retrieving tasks by time. If not provided, then the tasks with any time stamp are collected.

userName (vim.TaskFilterSpec.ByUsername, optional):

The filter specification for retrieving tasks by user name. If not provided, then the tasks belonging to any user are collected.

state (vim.TaskInfo.State, optional):

This property, if provided, limits the set of collected tasks by their states. Task states are enumerated in State . If not provided, tasks are collected regardless of their state.

alarm (vim.alarm.Alarm, optional):

This property, if provided, limits the set of collected tasks to those associated with the specified alarm. If not provided, tasks are collected regardless of their association with alarms.

scheduledTask (vim.scheduler.ScheduledTask, optional):

This property, if provided, limits the set of collected tasks to those associated with the specified scheduled task. If not provided, tasks are collected regardless of their association with any scheduled task.

eventChainId (int, optional):

The filter specification for retrieving tasks by chain ID. If it is set, tasks not with the given eventChainId will be filtered out. If the property is not set, tasks' chain ID is disregarded for filtering purposes.

tag (str, optional):

The filter specification for retrieving tasks by tag . If it is set, tasks not with the given tag(s) will be filtered out. If the property is not set, tasks' tag is disregarded for filtering purposes. If it is set, and includes an empty string, tasks without a tag will be returned.

parentTaskKey (str, optional):

The filter specification for retrieving tasks by parentTaskKey . If it is set, tasks not with the given parentTaskKey(s) will be filtered out. If the property is not set, tasks' parentTaskKey is disregarded for filtering purposes.

rootTaskKey (str, optional):

The filter specification for retrieving tasks by rootTaskKey . If it is set, tasks not with the given rootTaskKey(s) will be filtered out. If the property is not set, tasks' rootTaskKey is disregarded for filtering purposes.