@@ -764,8 +764,11 @@ func (enum *TriggerStatus) UnmarshalJSON(data []byte) error {
764764
765765// ContainerScalingOption: container scaling option.
766766type ContainerScalingOption struct {
767- // Precisely one of ConcurrentRequestsThreshold must be set.
767+ // Precisely one of ConcurrentRequestsThreshold, CPUUsageThreshold must be set.
768768 ConcurrentRequestsThreshold * uint32 `json:"concurrent_requests_threshold,omitempty"`
769+
770+ // Precisely one of ConcurrentRequestsThreshold, CPUUsageThreshold must be set.
771+ CPUUsageThreshold * uint32 `json:"cpu_usage_threshold,omitempty"`
769772}
770773
771774// SecretHashedValue: secret hashed value.
@@ -941,6 +944,7 @@ type Container struct {
941944
942945 // ScalingOption: possible values:
943946 // - concurrent_requests_threshold: Scale depending on the number of concurrent requests being processed per container instance.
947+ // - cpu_usage_threshold: Scale depending on the CPU usage of a container instance.
944948 ScalingOption * ContainerScalingOption `json:"scaling_option"`
945949
946950 // CreatedAt: creation date of the container.
@@ -1185,6 +1189,7 @@ type CreateContainerRequest struct {
11851189
11861190 // ScalingOption: possible values:
11871191 // - concurrent_requests_threshold: Scale depending on the number of concurrent requests being processed per container instance.
1192+ // - cpu_usage_threshold: Scale depending on the CPU usage of a container instance.
11881193 ScalingOption * ContainerScalingOption `json:"scaling_option,omitempty"`
11891194}
11901195
@@ -1777,6 +1782,7 @@ type UpdateContainerRequest struct {
17771782
17781783 // ScalingOption: possible values:
17791784 // - concurrent_requests_threshold: Scale depending on the number of concurrent requests being processed per container instance.
1785+ // - cpu_usage_threshold: Scale depending on the CPU usage of a container instance.
17801786 ScalingOption * ContainerScalingOption `json:"scaling_option,omitempty"`
17811787}
17821788
0 commit comments