|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
The function provisioned configuration. |
||
| alwaysAllocateCPU |
boolean |
Specifies whether to always allocate CPU to function instances. |
true |
| alwaysAllocateGPU |
boolean |
Specifies whether to always allocate GPU to function instances. |
true |
| current |
integer |
The actual number of resources. |
1 |
| currentError |
string |
The error message when provisioned instance creation fails. |
image not found |
| functionArn |
string |
The resource descriptor of the function. |
acs:fc:cn-shanghai:124:functions/myFunction/prod |
| scheduledActions |
array |
The scheduled scaling policy configurations. |
|
| ScheduledAction |
The scheduled scaling policy. |
||
| target |
integer |
The current target number of resources. If a metric-based scaling policy or scheduled scaling policy exists, this value is the number of resources calculated by the policy. Otherwise, it is the default number of provisioned instances. Note
What is the difference between target and defaultTarget?
|
5 |
| targetTrackingPolicies |
array |
The metric-based scaling policy configurations. |
|
| TargetTrackingPolicy |
The metric-based scaling policy. |
||
| defaultTarget |
integer |
The default number of resources when all metric-based scaling policies and scheduled scaling policies are inactive. |
5 |