CrawlHistory.GetNDayAvgStats Method

Returns average statistics for all crawls on a content source from a date that is a specified number of days in the past.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Function GetNDayAvgStats ( _
    cs As ContentSource, _
    crawlType As Integer, _
    numberOfDays As Integer _
) As DataTable
'Usage
Dim instance As CrawlHistory
Dim cs As ContentSource
Dim crawlType As Integer
Dim numberOfDays As Integer
Dim returnValue As DataTable

returnValue = instance.GetNDayAvgStats(cs, _
    crawlType, numberOfDays)
public DataTable GetNDayAvgStats(
    ContentSource cs,
    int crawlType,
    int numberOfDays
)

Parameters

  • crawlType
    Type: System.Int32

    Integer value that represents "FULL" (0) or "INCREMENTAL" (1) crawl types.

  • numberOfDays
    Type: System.Int32

    Integer value that specifies the number of days in the past for which you want to retrieve crawl data.

Return Value

Type: System.Data.DataTable
A DataTable object with the following columns: DurationAverage, AverageSuccesses, AverageErrors, and AverageWarnings.

See Also

Reference

CrawlHistory Class

CrawlHistory Members

Microsoft.Office.Server.Search.Administration Namespace