Kaspersky Security Center Automation  10.0
HRESULT IKlAkTasks::GetTaskHistory ( [in] BSTR  bstrTask,
[in] IKlAkCollection pFields2Return,
[in] IKlAkCollection pSortFields,
[in] BSTR  strHostName,
[in] IKlAkParams pFilter,
[out, retval] IKlAkChunkAccessor **  ppChunkAccessor 
) [inherited]

Acquire task execution history events.

Returns task execution history events.

Parameters:
bstrTask if of task.
pFields2Return array of task history event attribute names to return See List of event attributes for attribute names.
pSortFields array of containers each of them containing two attributes:
  • "Name" of type String, name of attribute used for sorting. See List of event attributes for attribute names.
  • "Asc" of type Boolean, ascending if true descending otherwise
strHostName name of the host. Events for specified host will be returned. Events from all hosts will be returned if "" (empty string) is specified.
pFilter IKlAkParams object containing values for attributes to filter events. Only events with matching attribute values will be returned. If empty all events for task will be returned. See List of event attributes for attribute names.
Return values:
ppChunkAccessor IKlAkChunkAccessor server-side collection of task history events.

See also Enumerating tasks, querying task statistics and running task sample.