KSC Open API
Kaspersky Security Center API description
Tasks::GetTaskHistory ( wstring  strTask,
array  pFields2Return,
array  pSortFields,
wstring  strHostName,
params  pFilter,
[out] wstring  strIteratorId 
)

Acquire task execution history events.

Returns task execution history events.

Parameters:
strTask(wstring) task id in digital representation, like "1" or "45" and etc.
pFields2Return(array) array of task history event attribute names to return See List of event attributes for attribute names.
pSortFields(array) 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(wstring) name of the host. Events for specified host will be returned. Events from all hosts will be returned if "" (empty string) is specified.
pFilter(params) 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 filter attributes for attribute names.
[out]strIteratorId(wstring) result-set ID, identifier of the server-side collection of task history events, to acquire data use EventProcessing.GetRecordRange, after iterator MUST be released by EventProcessing.ReleaseIterator.
See also:
Sample. Creating and running task., Sample. Enumerating tasks, querying task statistics and running task.