Scheduled Task - Create Insights Scheduled Scaling Task
Create a Insights Scheduled Scaling task, which can scale Insights Performance Units on a schedule
POST https://titleId.playfabapi.com/Admin/CreateInsightsScheduledScalingTask
Request Header
Name | Required | Type | Description |
---|---|---|---|
X-SecretKey | True |
string |
This API requires a title secret key, available to title admins, from PlayFab Game Manager. |
Request Body
Name | Required | Type | Description |
---|---|---|---|
IsActive | True |
boolean |
Whether the schedule is active. Inactive schedule will not trigger task execution. |
Name | True |
string |
Name of the task. This is a unique identifier for tasks in the title. |
Parameter | True |
Task details related to Insights Scaling |
|
CustomTags |
object |
The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). |
|
Description |
string |
Description the task |
|
Schedule |
string |
Cron expression for the run schedule of the task. The expression should be in UTC. |
Responses
Name | Type | Description |
---|---|---|
200 OK | ||
400 Bad Request |
This is the outer wrapper for all responses with errors |
Security
X-SecretKey
This API requires a title secret key, available to title admins, from PlayFab Game Manager.
Type:
apiKey
In:
header
Definitions
Name | Description |
---|---|
Api |
The basic wrapper around every failed API response |
Create |
Task name is unique within a title. Using a task name that's already taken will cause a name conflict error. Too many create-task requests within a short time will cause a create conflict error. |
Create |
|
Insights |
ApiErrorWrapper
The basic wrapper around every failed API response
Name | Type | Description |
---|---|---|
code |
integer |
Numerical HTTP code |
error |
string |
Playfab error code |
errorCode |
integer |
Numerical PlayFab error code |
errorDetails |
object |
Detailed description of individual issues with the request object |
errorMessage |
string |
Description for the PlayFab errorCode |
status |
string |
String HTTP code |
CreateInsightsScheduledScalingTaskRequest
Task name is unique within a title. Using a task name that's already taken will cause a name conflict error. Too many create-task requests within a short time will cause a create conflict error.
Name | Type | Description |
---|---|---|
CustomTags |
object |
The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). |
Description |
string |
Description the task |
IsActive |
boolean |
Whether the schedule is active. Inactive schedule will not trigger task execution. |
Name |
string |
Name of the task. This is a unique identifier for tasks in the title. |
Parameter |
Task details related to Insights Scaling |
|
Schedule |
string |
Cron expression for the run schedule of the task. The expression should be in UTC. |
CreateTaskResult
Name | Type | Description |
---|---|---|
TaskId |
string |
ID of the task |
InsightsScalingTaskParameter
Name | Type | Description |
---|---|---|
Level |
number |
Insights Performance Level to scale to. |
Error Codes
Name | Code |
---|---|
InvalidScheduledTaskName | 1256 |
InvalidTaskSchedule | 1257 |
ScheduledTaskCreateConflict | 1255 |
ScheduledTaskNameConflict | 1254 |
TitleNotOnUpdatedPricingPlan | 9000 |