This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ScheduledPlugIn(DisplayName = "Index Recent Page Hits", DefaultEnabled = true, IntervalLength = 1, IntervalType = EPiServer.DataAbstraction.ScheduledIntervalType.Hours)] | |
public class IndexRecentHits : ScheduledJobBase | |
{ | |
//Settings | |
private readonly string _apiRootUrl = ConfigurationManager.AppSettings["episerver:profiles.ProfileApiBaseUrl"]; | |
private readonly string _appKey = ConfigurationManager.AppSettings["episerver:profiles.ProfileApiSubscriptionKey"]; | |
private readonly string _eventUrl = "/api/v1.0/trackevents/"; | |
private readonly string _timeWindow = ConfigurationManager.AppSettings["RecentHours"] ?? "24"; | |
private readonly int _resultsPerPage = 1000; |