#if !DISABLE_PLAYFABENTITY_API using System; using System.Collections.Generic; using PlayFab.SharedModels; namespace PlayFab.InsightsModels { [Serializable] public class InsightsEmptyRequest : PlayFabRequestCommon { /// /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). /// public Dictionary CustomTags; } [Serializable] public class InsightsGetDetailsResponse : PlayFabResultCommon { /// /// Amount of data (in MB) currently used by Insights. /// public uint DataUsageMb; /// /// Details of any error that occurred while retrieving Insights details. /// public string ErrorMessage; /// /// Allowed range of values for performance level and data storage retention. /// public InsightsGetLimitsResponse Limits; /// /// List of pending Insights operations for the title. /// public List PendingOperations; /// /// Current Insights performance level setting. /// public int PerformanceLevel; /// /// Current Insights data storage retention value in days. /// public int RetentionDays; } [Serializable] public class InsightsGetLimitsResponse : PlayFabResultCommon { /// /// Default Insights performance level. /// public int DefaultPerformanceLevel; /// /// Default Insights data storage retention days. /// public int DefaultStorageRetentionDays; /// /// Maximum allowed data storage retention days. /// public int StorageMaxRetentionDays; /// /// Minimum allowed data storage retention days. /// public int StorageMinRetentionDays; /// /// List of Insights submeter limits for the allowed performance levels. /// public List SubMeters; } /// /// Returns the current status for the requested operation id. /// [Serializable] public class InsightsGetOperationStatusRequest : PlayFabRequestCommon { /// /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). /// public Dictionary CustomTags; /// /// Id of the Insights operation. /// public string OperationId; } [Serializable] public class InsightsGetOperationStatusResponse : PlayFabResultCommon { /// /// Optional message related to the operation details. /// public string Message; /// /// Time the operation was completed. /// public DateTime OperationCompletedTime; /// /// Id of the Insights operation. /// public string OperationId; /// /// Time the operation status was last updated. /// public DateTime OperationLastUpdated; /// /// Time the operation started. /// public DateTime OperationStartedTime; /// /// The type of operation, SetPerformance or SetStorageRetention. /// public string OperationType; /// /// The value requested for the operation. /// public int OperationValue; /// /// Current status of the operation. /// public string Status; } /// /// Returns a list of operations that are in the pending state for the requested operation type. /// [Serializable] public class InsightsGetPendingOperationsRequest : PlayFabRequestCommon { /// /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). /// public Dictionary CustomTags; /// /// The type of pending operations requested, or blank for all operation types. /// public string OperationType; } [Serializable] public class InsightsGetPendingOperationsResponse : PlayFabResultCommon { /// /// List of pending Insights operations. /// public List PendingOperations; } [Serializable] public class InsightsOperationResponse : PlayFabResultCommon { /// /// Optional message related to the operation details. /// public string Message; /// /// Id of the Insights operation. /// public string OperationId; /// /// The type of operation, SetPerformance or SetStorageRetention. /// public string OperationType; } [Serializable] public class InsightsPerformanceLevel : PlayFabBaseModel { /// /// Number of allowed active event exports. /// public int ActiveEventExports; /// /// Maximum cache size. /// public int CacheSizeMB; /// /// Maximum number of concurrent queries. /// public int Concurrency; /// /// Number of Insights credits consumed per minute. /// public double CreditsPerMinute; /// /// Maximum events per second. /// public int EventsPerSecond; /// /// Performance level. /// public int Level; /// /// Maximum amount of memory allowed per query. /// public int MaxMemoryPerQueryMB; /// /// Amount of compute power allocated for queries and operations. /// public int VirtualCpuCores; } /// /// Sets the performance level to the requested value. Use the GetLimits method to get the allowed values. /// [Serializable] public class InsightsSetPerformanceRequest : PlayFabRequestCommon { /// /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). /// public Dictionary CustomTags; /// /// The Insights performance level to apply to the title. /// public int PerformanceLevel; } /// /// Sets the data storage retention to the requested value. Use the GetLimits method to get the range of allowed values. /// [Serializable] public class InsightsSetStorageRetentionRequest : PlayFabRequestCommon { /// /// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). /// public Dictionary CustomTags; /// /// The Insights data storage retention value (in days) to apply to the title. /// public int RetentionDays; } } #endif