FizVizController/FizVizController/AnalyticsManager.cs
/// <summary>
/// Load historical metrics data for a specified timeframe
/// </summary>
/// <param name="numberOfDays">Number of days to load</param>
/// <param name="metrics">Array of metrics to load</param>
Load historical metrics data for a specified timeframe
Load historical metrics data for a specified timeframe
public void LoadHistoricalData(int numberOfDays, string[] metrics)
        {
            DateTime startDate = DateTime.Today.AddDays(-numberOfDays);
            DateTime endDate = DateTime.Today.AddSeconds(-1);
            historicalData = GetAnalyticsData(null, metrics, startDate, endDate);
            historyDays = numberOfDays;
        }
public void LoadHistoricalData ( int numberOfDays , string [ ] metrics ) { DateTime startDate = DateTime . Today . AddDays ( - numberOfDays ) ; DateTime endDate = DateTime . Today . AddSeconds ( - 1 ) ; historicalData = GetAnalyticsData ( null , metrics , startDate , endDate ) ; historyDays = numberOfDays ; }
Load historical metrics data for a specified timeframe
Load historical metrics data for a specified timeframe
numberOfDays
int
Number of days to load
Number of days to load
metrics
string[]
Array of metrics to load
Array of metrics to load