SPUsagePeriodType Enumeration

Specifies the time interval on which a usage report for a Web site is based.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

public enum SPUsagePeriodType

Member nameDescription
dayReturns usage information for each day during the past 31 days starting from the previous day.
lastMonthSummarizes usage information for the last 31 days relative to the previous day.

In usage reports created by using one of the GetUsageData methods of the SPWeb class, the SPUsagePeriodType enumeration is used together with the SPUsageReportType enumeration to define the information that is returned.