[U] add PlayFab SDK and SNS login improvements
- Add PlayFabSDK as local package dependency - Add PlayFabTool.cs for PlayFab API integration - Implement LoginBySns method in TYSdkFacade - Add Android SNS login support in SDKManager and UnityBridgeFunc - Add Build Android With Debug menu option - Improve exception handling and timeout management 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#if !DISABLE_PLAYFABENTITY_API
|
||||
using PlayFab.InsightsModels;
|
||||
|
||||
namespace PlayFab.Events
|
||||
{
|
||||
public partial class PlayFabEvents
|
||||
{
|
||||
public event PlayFabRequestEvent<InsightsEmptyRequest> OnInsightsGetDetailsRequestEvent;
|
||||
public event PlayFabResultEvent<InsightsGetDetailsResponse> OnInsightsGetDetailsResultEvent;
|
||||
public event PlayFabRequestEvent<InsightsEmptyRequest> OnInsightsGetLimitsRequestEvent;
|
||||
public event PlayFabResultEvent<InsightsGetLimitsResponse> OnInsightsGetLimitsResultEvent;
|
||||
public event PlayFabRequestEvent<InsightsGetOperationStatusRequest> OnInsightsGetOperationStatusRequestEvent;
|
||||
public event PlayFabResultEvent<InsightsGetOperationStatusResponse> OnInsightsGetOperationStatusResultEvent;
|
||||
public event PlayFabRequestEvent<InsightsGetPendingOperationsRequest> OnInsightsGetPendingOperationsRequestEvent;
|
||||
public event PlayFabResultEvent<InsightsGetPendingOperationsResponse> OnInsightsGetPendingOperationsResultEvent;
|
||||
public event PlayFabRequestEvent<InsightsSetPerformanceRequest> OnInsightsSetPerformanceRequestEvent;
|
||||
public event PlayFabResultEvent<InsightsOperationResponse> OnInsightsSetPerformanceResultEvent;
|
||||
public event PlayFabRequestEvent<InsightsSetStorageRetentionRequest> OnInsightsSetStorageRetentionRequestEvent;
|
||||
public event PlayFabResultEvent<InsightsOperationResponse> OnInsightsSetStorageRetentionResultEvent;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f37defb20913be94a8d7b0e4ed5b97cf
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,119 @@
|
||||
#if !DISABLE_PLAYFABENTITY_API && !DISABLE_PLAYFAB_STATIC_API
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using PlayFab.InsightsModels;
|
||||
using PlayFab.Internal;
|
||||
|
||||
namespace PlayFab
|
||||
{
|
||||
/// <summary>
|
||||
/// Manage the Insights performance level and data storage retention settings.
|
||||
/// </summary>
|
||||
public static class PlayFabInsightsAPI
|
||||
{
|
||||
static PlayFabInsightsAPI() {}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Verify entity login.
|
||||
/// </summary>
|
||||
public static bool IsEntityLoggedIn()
|
||||
{
|
||||
return PlayFabSettings.staticPlayer.IsEntityLoggedIn();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clear the Client SessionToken which allows this Client to call API calls requiring login.
|
||||
/// A new/fresh login will be required after calling this.
|
||||
/// </summary>
|
||||
public static void ForgetAllCredentials()
|
||||
{
|
||||
PlayFabSettings.staticPlayer.ForgetAllCredentials();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current values for the Insights performance and data storage retention, list of pending operations, and the
|
||||
/// performance and data storage retention limits.
|
||||
/// </summary>
|
||||
public static void GetDetails(InsightsEmptyRequest request, Action<InsightsGetDetailsResponse> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
|
||||
{
|
||||
var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer;
|
||||
var callSettings = PlayFabSettings.staticSettings;
|
||||
if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");
|
||||
|
||||
|
||||
PlayFabHttp.MakeApiCall("/Insights/GetDetails", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the range of allowed values for performance and data storage retention values as well as the submeter details
|
||||
/// for each performance level.
|
||||
/// </summary>
|
||||
public static void GetLimits(InsightsEmptyRequest request, Action<InsightsGetLimitsResponse> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
|
||||
{
|
||||
var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer;
|
||||
var callSettings = PlayFabSettings.staticSettings;
|
||||
if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");
|
||||
|
||||
|
||||
PlayFabHttp.MakeApiCall("/Insights/GetLimits", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the status of a SetPerformance or SetStorageRetention operation.
|
||||
/// </summary>
|
||||
public static void GetOperationStatus(InsightsGetOperationStatusRequest request, Action<InsightsGetOperationStatusResponse> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
|
||||
{
|
||||
var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer;
|
||||
var callSettings = PlayFabSettings.staticSettings;
|
||||
if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");
|
||||
|
||||
|
||||
PlayFabHttp.MakeApiCall("/Insights/GetOperationStatus", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a list of pending SetPerformance and/or SetStorageRetention operations for the title.
|
||||
/// </summary>
|
||||
public static void GetPendingOperations(InsightsGetPendingOperationsRequest request, Action<InsightsGetPendingOperationsResponse> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
|
||||
{
|
||||
var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer;
|
||||
var callSettings = PlayFabSettings.staticSettings;
|
||||
if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");
|
||||
|
||||
|
||||
PlayFabHttp.MakeApiCall("/Insights/GetPendingOperations", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the Insights performance level value for the title.
|
||||
/// </summary>
|
||||
public static void SetPerformance(InsightsSetPerformanceRequest request, Action<InsightsOperationResponse> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
|
||||
{
|
||||
var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer;
|
||||
var callSettings = PlayFabSettings.staticSettings;
|
||||
if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");
|
||||
|
||||
|
||||
PlayFabHttp.MakeApiCall("/Insights/SetPerformance", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the Insights data storage retention days value for the title.
|
||||
/// </summary>
|
||||
public static void SetStorageRetention(InsightsSetStorageRetentionRequest request, Action<InsightsOperationResponse> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
|
||||
{
|
||||
var context = (request == null ? null : request.AuthenticationContext) ?? PlayFabSettings.staticPlayer;
|
||||
var callSettings = PlayFabSettings.staticSettings;
|
||||
if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");
|
||||
|
||||
|
||||
PlayFabHttp.MakeApiCall("/Insights/SetStorageRetention", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 711d5cb10af3bcf44b9a605a7e7c03e3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,125 @@
|
||||
#if !DISABLE_PLAYFABENTITY_API
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using PlayFab.InsightsModels;
|
||||
using PlayFab.Internal;
|
||||
using PlayFab.SharedModels;
|
||||
|
||||
namespace PlayFab
|
||||
{
|
||||
/// <summary>
|
||||
/// Manage the Insights performance level and data storage retention settings.
|
||||
/// </summary>
|
||||
public class PlayFabInsightsInstanceAPI : IPlayFabInstanceApi
|
||||
{
|
||||
public readonly PlayFabApiSettings apiSettings = null;
|
||||
public readonly PlayFabAuthenticationContext authenticationContext = null;
|
||||
|
||||
public PlayFabInsightsInstanceAPI(PlayFabAuthenticationContext context)
|
||||
{
|
||||
if (context == null)
|
||||
throw new PlayFabException(PlayFabExceptionCode.AuthContextRequired, "Context cannot be null, create a PlayFabAuthenticationContext for each player in advance, or call <PlayFabClientInstanceAPI>.GetAuthenticationContext()");
|
||||
authenticationContext = context;
|
||||
}
|
||||
|
||||
public PlayFabInsightsInstanceAPI(PlayFabApiSettings settings, PlayFabAuthenticationContext context)
|
||||
{
|
||||
if (context == null)
|
||||
throw new PlayFabException(PlayFabExceptionCode.AuthContextRequired, "Context cannot be null, create a PlayFabAuthenticationContext for each player in advance, or call <PlayFabClientInstanceAPI>.GetAuthenticationContext()");
|
||||
apiSettings = settings;
|
||||
authenticationContext = context;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Verify entity login.
|
||||
/// </summary>
|
||||
public bool IsEntityLoggedIn()
|
||||
{
|
||||
return authenticationContext == null ? false : authenticationContext.IsEntityLoggedIn();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clear the Client SessionToken which allows this Client to call API calls requiring login.
|
||||
/// A new/fresh login will be required after calling this.
|
||||
/// </summary>
|
||||
public void ForgetAllCredentials()
|
||||
{
|
||||
if (authenticationContext != null)
|
||||
{
|
||||
authenticationContext.ForgetAllCredentials();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current values for the Insights performance and data storage retention, list of pending operations, and the
|
||||
/// performance and data storage retention limits.
|
||||
/// </summary>
|
||||
public void GetDetails(InsightsEmptyRequest request, Action<InsightsGetDetailsResponse> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
|
||||
{
|
||||
var context = (request == null ? null : request.AuthenticationContext) ?? authenticationContext;
|
||||
var callSettings = apiSettings ?? PlayFabSettings.staticSettings;
|
||||
if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");
|
||||
PlayFabHttp.MakeApiCall("/Insights/GetDetails", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves the range of allowed values for performance and data storage retention values as well as the submeter details
|
||||
/// for each performance level.
|
||||
/// </summary>
|
||||
public void GetLimits(InsightsEmptyRequest request, Action<InsightsGetLimitsResponse> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
|
||||
{
|
||||
var context = (request == null ? null : request.AuthenticationContext) ?? authenticationContext;
|
||||
var callSettings = apiSettings ?? PlayFabSettings.staticSettings;
|
||||
if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");
|
||||
PlayFabHttp.MakeApiCall("/Insights/GetLimits", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the status of a SetPerformance or SetStorageRetention operation.
|
||||
/// </summary>
|
||||
public void GetOperationStatus(InsightsGetOperationStatusRequest request, Action<InsightsGetOperationStatusResponse> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
|
||||
{
|
||||
var context = (request == null ? null : request.AuthenticationContext) ?? authenticationContext;
|
||||
var callSettings = apiSettings ?? PlayFabSettings.staticSettings;
|
||||
if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");
|
||||
PlayFabHttp.MakeApiCall("/Insights/GetOperationStatus", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a list of pending SetPerformance and/or SetStorageRetention operations for the title.
|
||||
/// </summary>
|
||||
public void GetPendingOperations(InsightsGetPendingOperationsRequest request, Action<InsightsGetPendingOperationsResponse> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
|
||||
{
|
||||
var context = (request == null ? null : request.AuthenticationContext) ?? authenticationContext;
|
||||
var callSettings = apiSettings ?? PlayFabSettings.staticSettings;
|
||||
if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");
|
||||
PlayFabHttp.MakeApiCall("/Insights/GetPendingOperations", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the Insights performance level value for the title.
|
||||
/// </summary>
|
||||
public void SetPerformance(InsightsSetPerformanceRequest request, Action<InsightsOperationResponse> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
|
||||
{
|
||||
var context = (request == null ? null : request.AuthenticationContext) ?? authenticationContext;
|
||||
var callSettings = apiSettings ?? PlayFabSettings.staticSettings;
|
||||
if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");
|
||||
PlayFabHttp.MakeApiCall("/Insights/SetPerformance", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the Insights data storage retention days value for the title.
|
||||
/// </summary>
|
||||
public void SetStorageRetention(InsightsSetStorageRetentionRequest request, Action<InsightsOperationResponse> resultCallback, Action<PlayFabError> errorCallback, object customData = null, Dictionary<string, string> extraHeaders = null)
|
||||
{
|
||||
var context = (request == null ? null : request.AuthenticationContext) ?? authenticationContext;
|
||||
var callSettings = apiSettings ?? PlayFabSettings.staticSettings;
|
||||
if (!context.IsEntityLoggedIn()) throw new PlayFabException(PlayFabExceptionCode.NotLoggedIn,"Must be logged in to call this method");
|
||||
PlayFabHttp.MakeApiCall("/Insights/SetStorageRetention", request, AuthType.EntityToken, resultCallback, errorCallback, customData, extraHeaders, context, callSettings, this);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c2e7ee83796bb834cbd6263a7a6d65ca
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,235 @@
|
||||
#if !DISABLE_PLAYFABENTITY_API
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using PlayFab.SharedModels;
|
||||
|
||||
namespace PlayFab.InsightsModels
|
||||
{
|
||||
[Serializable]
|
||||
public class InsightsEmptyRequest : PlayFabRequestCommon
|
||||
{
|
||||
/// <summary>
|
||||
/// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
|
||||
/// </summary>
|
||||
public Dictionary<string,string> CustomTags;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class InsightsGetDetailsResponse : PlayFabResultCommon
|
||||
{
|
||||
/// <summary>
|
||||
/// Amount of data (in MB) currently used by Insights.
|
||||
/// </summary>
|
||||
public uint DataUsageMb;
|
||||
/// <summary>
|
||||
/// Details of any error that occurred while retrieving Insights details.
|
||||
/// </summary>
|
||||
public string ErrorMessage;
|
||||
/// <summary>
|
||||
/// Allowed range of values for performance level and data storage retention.
|
||||
/// </summary>
|
||||
public InsightsGetLimitsResponse Limits;
|
||||
/// <summary>
|
||||
/// List of pending Insights operations for the title.
|
||||
/// </summary>
|
||||
public List<InsightsGetOperationStatusResponse> PendingOperations;
|
||||
/// <summary>
|
||||
/// Current Insights performance level setting.
|
||||
/// </summary>
|
||||
public int PerformanceLevel;
|
||||
/// <summary>
|
||||
/// Current Insights data storage retention value in days.
|
||||
/// </summary>
|
||||
public int RetentionDays;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class InsightsGetLimitsResponse : PlayFabResultCommon
|
||||
{
|
||||
/// <summary>
|
||||
/// Default Insights performance level.
|
||||
/// </summary>
|
||||
public int DefaultPerformanceLevel;
|
||||
/// <summary>
|
||||
/// Default Insights data storage retention days.
|
||||
/// </summary>
|
||||
public int DefaultStorageRetentionDays;
|
||||
/// <summary>
|
||||
/// Maximum allowed data storage retention days.
|
||||
/// </summary>
|
||||
public int StorageMaxRetentionDays;
|
||||
/// <summary>
|
||||
/// Minimum allowed data storage retention days.
|
||||
/// </summary>
|
||||
public int StorageMinRetentionDays;
|
||||
/// <summary>
|
||||
/// List of Insights submeter limits for the allowed performance levels.
|
||||
/// </summary>
|
||||
public List<InsightsPerformanceLevel> SubMeters;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the current status for the requested operation id.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class InsightsGetOperationStatusRequest : PlayFabRequestCommon
|
||||
{
|
||||
/// <summary>
|
||||
/// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
|
||||
/// </summary>
|
||||
public Dictionary<string,string> CustomTags;
|
||||
/// <summary>
|
||||
/// Id of the Insights operation.
|
||||
/// </summary>
|
||||
public string OperationId;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class InsightsGetOperationStatusResponse : PlayFabResultCommon
|
||||
{
|
||||
/// <summary>
|
||||
/// Optional message related to the operation details.
|
||||
/// </summary>
|
||||
public string Message;
|
||||
/// <summary>
|
||||
/// Time the operation was completed.
|
||||
/// </summary>
|
||||
public DateTime OperationCompletedTime;
|
||||
/// <summary>
|
||||
/// Id of the Insights operation.
|
||||
/// </summary>
|
||||
public string OperationId;
|
||||
/// <summary>
|
||||
/// Time the operation status was last updated.
|
||||
/// </summary>
|
||||
public DateTime OperationLastUpdated;
|
||||
/// <summary>
|
||||
/// Time the operation started.
|
||||
/// </summary>
|
||||
public DateTime OperationStartedTime;
|
||||
/// <summary>
|
||||
/// The type of operation, SetPerformance or SetStorageRetention.
|
||||
/// </summary>
|
||||
public string OperationType;
|
||||
/// <summary>
|
||||
/// The value requested for the operation.
|
||||
/// </summary>
|
||||
public int OperationValue;
|
||||
/// <summary>
|
||||
/// Current status of the operation.
|
||||
/// </summary>
|
||||
public string Status;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns a list of operations that are in the pending state for the requested operation type.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class InsightsGetPendingOperationsRequest : PlayFabRequestCommon
|
||||
{
|
||||
/// <summary>
|
||||
/// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
|
||||
/// </summary>
|
||||
public Dictionary<string,string> CustomTags;
|
||||
/// <summary>
|
||||
/// The type of pending operations requested, or blank for all operation types.
|
||||
/// </summary>
|
||||
public string OperationType;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class InsightsGetPendingOperationsResponse : PlayFabResultCommon
|
||||
{
|
||||
/// <summary>
|
||||
/// List of pending Insights operations.
|
||||
/// </summary>
|
||||
public List<InsightsGetOperationStatusResponse> PendingOperations;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class InsightsOperationResponse : PlayFabResultCommon
|
||||
{
|
||||
/// <summary>
|
||||
/// Optional message related to the operation details.
|
||||
/// </summary>
|
||||
public string Message;
|
||||
/// <summary>
|
||||
/// Id of the Insights operation.
|
||||
/// </summary>
|
||||
public string OperationId;
|
||||
/// <summary>
|
||||
/// The type of operation, SetPerformance or SetStorageRetention.
|
||||
/// </summary>
|
||||
public string OperationType;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class InsightsPerformanceLevel : PlayFabBaseModel
|
||||
{
|
||||
/// <summary>
|
||||
/// Number of allowed active event exports.
|
||||
/// </summary>
|
||||
public int ActiveEventExports;
|
||||
/// <summary>
|
||||
/// Maximum cache size.
|
||||
/// </summary>
|
||||
public int CacheSizeMB;
|
||||
/// <summary>
|
||||
/// Maximum number of concurrent queries.
|
||||
/// </summary>
|
||||
public int Concurrency;
|
||||
/// <summary>
|
||||
/// Number of Insights credits consumed per minute.
|
||||
/// </summary>
|
||||
public double CreditsPerMinute;
|
||||
/// <summary>
|
||||
/// Maximum events per second.
|
||||
/// </summary>
|
||||
public int EventsPerSecond;
|
||||
/// <summary>
|
||||
/// Performance level.
|
||||
/// </summary>
|
||||
public int Level;
|
||||
/// <summary>
|
||||
/// Maximum amount of memory allowed per query.
|
||||
/// </summary>
|
||||
public int MaxMemoryPerQueryMB;
|
||||
/// <summary>
|
||||
/// Amount of compute power allocated for queries and operations.
|
||||
/// </summary>
|
||||
public int VirtualCpuCores;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the performance level to the requested value. Use the GetLimits method to get the allowed values.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class InsightsSetPerformanceRequest : PlayFabRequestCommon
|
||||
{
|
||||
/// <summary>
|
||||
/// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
|
||||
/// </summary>
|
||||
public Dictionary<string,string> CustomTags;
|
||||
/// <summary>
|
||||
/// The Insights performance level to apply to the title.
|
||||
/// </summary>
|
||||
public int PerformanceLevel;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sets the data storage retention to the requested value. Use the GetLimits method to get the range of allowed values.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class InsightsSetStorageRetentionRequest : PlayFabRequestCommon
|
||||
{
|
||||
/// <summary>
|
||||
/// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
|
||||
/// </summary>
|
||||
public Dictionary<string,string> CustomTags;
|
||||
/// <summary>
|
||||
/// The Insights data storage retention value (in days) to apply to the title.
|
||||
/// </summary>
|
||||
public int RetentionDays;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0018df8cb03ec3a498320c2be74427e4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user