@@ -97,10 +97,15 @@ export type TriggerStatus =
9797
9898export interface ContainerScalingOption {
9999 /**
100- * One-of ('scalingRule'): at most one of 'concurrentRequestsThreshold' could
101- * be set.
100+ * One-of ('scalingRule'): at most one of 'concurrentRequestsThreshold',
101+ * 'cpuUsageThreshold' could be set.
102102 */
103103 concurrentRequestsThreshold ?: number
104+ /**
105+ * One-of ('scalingRule'): at most one of 'concurrentRequestsThreshold',
106+ * 'cpuUsageThreshold' could be set.
107+ */
108+ cpuUsageThreshold ?: number
104109}
105110
106111export interface SecretHashedValue {
@@ -236,6 +241,8 @@ export interface Container {
236241 *
237242 * - Concurrent_requests_threshold: Scale depending on the number of concurrent
238243 * requests being processed per container instance.
244+ * - Cpu_usage_threshold: Scale depending on the CPU usage of a container
245+ * instance.
239246 */
240247 scalingOption ?: ContainerScalingOption
241248 /** Creation date of the container. */
@@ -433,6 +440,8 @@ export type CreateContainerRequest = {
433440 *
434441 * - Concurrent_requests_threshold: Scale depending on the number of concurrent
435442 * requests being processed per container instance.
443+ * - Cpu_usage_threshold: Scale depending on the CPU usage of a container
444+ * instance.
436445 */
437446 scalingOption ?: ContainerScalingOption
438447}
@@ -894,6 +903,8 @@ export type UpdateContainerRequest = {
894903 *
895904 * - Concurrent_requests_threshold: Scale depending on the number of concurrent
896905 * requests being processed per container instance.
906+ * - Cpu_usage_threshold: Scale depending on the CPU usage of a container
907+ * instance.
897908 */
898909 scalingOption ?: ContainerScalingOption
899910}
0 commit comments