namespace Unity.Cloud.UserReporting.Client { /// /// Represents configuration for the user reporting client. /// public class UserReportingClientConfiguration { #region Constructors /// /// Creates a new instance of the class. /// public UserReportingClientConfiguration() { this.MaximumEventCount = 100; this.MaximumMeasureCount = 300; this.FramesPerMeasure = 60; this.MaximumScreenshotCount = 10; } /// /// Creates a new instance of the class. /// /// The maximum event count. This is a rolling window. /// The maximum measure count. This is a rolling window. /// The number of frames per measure. A user report is only created on the boundary between measures. A large number of frames per measure will increase user report creation time by this number of frames in the worst case. /// The maximum screenshot count. This is a rolling window. public UserReportingClientConfiguration(int maximumEventCount, int maximumMeasureCount, int framesPerMeasure, int maximumScreenshotCount) { this.MaximumEventCount = maximumEventCount; this.MaximumMeasureCount = maximumMeasureCount; this.FramesPerMeasure = framesPerMeasure; this.MaximumScreenshotCount = maximumScreenshotCount; } /// /// Creates a new instance of the class. /// /// The maximum event count. This is a rolling window. /// The metrics gathering mode. /// The maximum measure count. This is a rolling window. /// The number of frames per measure. A user report is only created on the boundary between measures. A large number of frames per measure will increase user report creation time by this number of frames in the worst case. /// The maximum screenshot count. This is a rolling window. public UserReportingClientConfiguration(int maximumEventCount, MetricsGatheringMode metricsGatheringMode, int maximumMeasureCount, int framesPerMeasure, int maximumScreenshotCount) { this.MaximumEventCount = maximumEventCount; this.MetricsGatheringMode = metricsGatheringMode; this.MaximumMeasureCount = maximumMeasureCount; this.FramesPerMeasure = framesPerMeasure; this.MaximumScreenshotCount = maximumScreenshotCount; } #endregion #region Properties /// /// Gets or sets the frames per measure. /// public int FramesPerMeasure { get; internal set; } /// /// Gets or sets the maximum event count. /// public int MaximumEventCount { get; internal set; } /// /// Gets or sets the maximum measure count. /// public int MaximumMeasureCount { get; internal set; } /// /// Gets or sets the maximum screenshot count. /// public int MaximumScreenshotCount { get; internal set; } /// /// Gets or sets the metrics gathering mode. /// public MetricsGatheringMode MetricsGatheringMode { get; internal set; } #endregion } }