Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
cs
Type: Microsoft.Office.Server.Search.Administration.ContentSourceThe Microsoft.Office.Server.Search.Administration.ContentSource object from which you want to retrieve crawl data.
crawlType
Type: System.Int32Integer value that represents "FULL" (0) or "INCREMENTAL" (1) crawl types.
numberOfDays
Type: System.Int32Integer 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.