adTempus API
ArcanaDevelopment.adTempus.Client Namespace / Job Class / GetExecutionHistory Method
Parameters for selecting the instances to return. See Remarks for additional information.


In This Topic
    GetExecutionHistory Method
    In This Topic
    Fetches the history (instances) for this job
    Syntax
    'Declaration
     
    
    <NotNullAttribute()>
    Public Function GetExecutionHistory( _
       ByVal parameters As InstanceQueryParameters _
    ) As ExecutionHistoryItemCollection
    [NotNull()]
    public ExecutionHistoryItemCollection GetExecutionHistory( 
       InstanceQueryParameters parameters
    )
    [NotNull()]
    public:
    ExecutionHistoryItemCollection^ GetExecutionHistory( 
       InstanceQueryParameters^ parameters
    ) 

    Parameters

    parameters
    Parameters for selecting the instances to return. See Remarks for additional information.

    Return Value

    A collection containing the requested history records.
    Remarks

    This method returns a collection of ExecutionHistoryItem objects representing the instances that match the query parameters. Any LogMessages associated with those instances are returned automatically and are accessible through ExecutionHistoryItem.LogMessages. If you also need log messages that are not associated with an instance (such as job-level alerts) use GetLogMessages or GetHistoryAndMessages, which combines both history and log message fetches in a single call.

    The TargetObjects collection for the parameters is cleared of all values and the job's OID is added. That is, this method will only return data for the current job. To query for multiple jobs use DataContext.GetJobHistory.

    See Also