/// <summary>
 /// Adds the specified sequence of metrics.
 /// </summary>
 /// <param name="metrics">The metrics to add.</param>
 public AnalyticsDataOptions AddMetrics(params AnalyticsMetric[] metrics)
 {
     if (Metrics == null)
     {
         Metrics = new AnalyticsMetricCollection();
     }
     Metrics.AddRange(metrics);
     return(this);
 }
 /// <summary>
 /// Adds the specified metric.
 /// </summary>
 /// <param name="metric">The metric to add.</param>
 public AnalyticsDataOptions AddMetric(AnalyticsMetric metric)
 {
     if (Metrics == null)
     {
         Metrics = new AnalyticsMetricCollection();
     }
     Metrics.Add(metric);
     return(this);
 }
 /// <summary>
 /// Gets the realtime data from the specified profile and metrics.
 /// </summary>
 /// <param name="profileId">The ID of the Analytics profile.</param>
 /// <param name="metrics">The metrics collection of what data to return.</param>
 /// <param name="dimensions">The dimensions collection of what data to return.</param>
 public AnalyticsRealtimeDataResponse GetRealtimeData(string profileId, AnalyticsMetricCollection metrics, AnalyticsDimensionCollection dimensions) {
     return GetRealtimeData(profileId, new AnalyticsRealtimeDataOptions {
         Metrics = metrics,
         Dimensions = dimensions
     });
 }
 /// <summary>
 /// Gets the realtime data from the specified profile, metrics and dimensions.
 /// </summary>
 /// <param name="profile">The Analytics profile to gather realtime data from.</param>
 /// <param name="metrics">The metrics collection of what data to return.</param>
 /// <param name="dimensions">The dimensions collection of what data to return.</param>
 public AnalyticsRealtimeDataResponse GetRealtimeData(AnalyticsProfile profile, AnalyticsMetricCollection metrics, AnalyticsDimensionCollection dimensions) {
     return GetRealtimeData(profile.Id, metrics, dimensions);
 }
 public AnalyticsDataResponse GetData(string profileId, DateTime startDate, DateTime endDate, AnalyticsMetricCollection metrics, AnalyticsDimensionCollection dimensions) {
     return AnalyticsDataResponse.ParseJson(Raw.GetData(profileId, startDate, endDate, metrics, dimensions));
 }
Ejemplo n.º 6
0
 public string GetRealtimeData(string profileId, AnalyticsMetricCollection metrics) {
     return GetRealtimeData(profileId, new AnalyticsRealtimeDataOptions {
         Metrics = metrics
     });
 }
Ejemplo n.º 7
0
 public string GetRealtimeData(AnalyticsProfile profile, AnalyticsMetricCollection metrics) {
     return GetRealtimeData(profile.Id, metrics);
 }
Ejemplo n.º 8
0
 public string GetData(string profileId, DateTime startDate, DateTime endDate, AnalyticsMetricCollection metrics, AnalyticsDimensionCollection dimensions) {
     return GetData(profileId, new AnalyticsDataOptions {
         StartDate = startDate,
         EndDate = endDate,
         Metrics = metrics,
         Dimensions = dimensions
     });
 }
Ejemplo n.º 9
0
 public string GetData(AnalyticsProfile profile, DateTime startDate, DateTime endDate, AnalyticsMetricCollection metrics, AnalyticsDimensionCollection dimensions) {
     return GetData(profile.Id, startDate, endDate, metrics, dimensions);
 }
 /// <summary>
 /// Adds the specified sequence of metrics.
 /// </summary>
 /// <param name="metrics">The metrics to add.</param>
 public AnalyticsRealtimeDataOptions AddMetrics(params AnalyticsMetric[] metrics) {
     if (Metrics == null) Metrics = new AnalyticsMetricCollection();
     Metrics.AddRange(metrics);
     return this;
 }
 /// <summary>
 /// Adds the specified metric.
 /// </summary>
 /// <param name="metric">The metric to add.</param>
 public AnalyticsRealtimeDataOptions AddMetric(AnalyticsMetric metric) {
     if (Metrics == null) Metrics = new AnalyticsMetricCollection();
     Metrics.Add(metric);
     return this;
 }