diff --git a/DO_OPENAPI_COMMIT_SHA.txt b/DO_OPENAPI_COMMIT_SHA.txt
index a68b34d5..63573f23 100644
--- a/DO_OPENAPI_COMMIT_SHA.txt
+++ b/DO_OPENAPI_COMMIT_SHA.txt
@@ -1 +1 @@
-aa940c7
+a3ffbf2
diff --git a/src/pydo/aio/operations/_operations.py b/src/pydo/aio/operations/_operations.py
index aa723ce3..826a8ada 100644
--- a/src/pydo/aio/operations/_operations.py
+++ b/src/pydo/aio/operations/_operations.py
@@ -269,6 +269,7 @@
build_genai_create_knowledge_base_data_source_request,
build_genai_create_knowledge_base_request,
build_genai_create_model_api_key_request,
+ build_genai_create_model_router_request,
build_genai_create_oauth2_dropbox_tokens_request,
build_genai_create_openai_api_key_request,
build_genai_create_scheduled_indexing_request,
@@ -279,6 +280,7 @@
build_genai_delete_knowledge_base_data_source_request,
build_genai_delete_knowledge_base_request,
build_genai_delete_model_api_key_request,
+ build_genai_delete_model_router_request,
build_genai_delete_openai_api_key_request,
build_genai_delete_scheduled_indexing_request,
build_genai_delete_workspace_request,
@@ -297,6 +299,7 @@
build_genai_get_indexing_job_details_signed_url_request,
build_genai_get_indexing_job_request,
build_genai_get_knowledge_base_request,
+ build_genai_get_model_router_request,
build_genai_get_oauth2_url_request,
build_genai_get_openai_api_key_request,
build_genai_get_scheduled_indexing_request,
@@ -319,6 +322,9 @@
build_genai_list_knowledge_base_data_sources_request,
build_genai_list_knowledge_bases_request,
build_genai_list_model_api_keys_request,
+ build_genai_list_model_router_presets_request,
+ build_genai_list_model_router_task_presets_request,
+ build_genai_list_model_routers_request,
build_genai_list_models_request,
build_genai_list_openai_api_keys_request,
build_genai_list_workspaces_request,
@@ -337,6 +343,7 @@
build_genai_update_knowledge_base_data_source_request,
build_genai_update_knowledge_base_request,
build_genai_update_model_api_key_request,
+ build_genai_update_model_router_request,
build_genai_update_openai_api_key_request,
build_genai_update_workspace_request,
build_image_actions_get_request,
@@ -4010,8 +4017,9 @@ async def list(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -4309,21 +4317,6 @@ async def list(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -4525,17 +4518,24 @@ async def list(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -5103,7 +5103,9 @@ async def list(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -5113,7 +5115,7 @@ async def list(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -5546,8 +5548,10 @@ async def list(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0,
# Optional. Threshold value for alert.
"window":
@@ -5858,21 +5862,6 @@ async def list(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count":
- 0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional. Default value is
- 80. The average target CPU utilization for
- the component.
- }
- },
- "min_instance_count":
- 0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", #
Optional. The name of the branch to use.
@@ -6086,17 +6075,24 @@ async def list(
"autoscaling": {
"max_instance_count":
0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
+ this component. Maximum 250. Consider using a larger
+ instance size if your application requires more than
+ 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional. Default value is
- 80. The average target CPU utilization for
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95
+ target request duration in milliseconds for
the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target
+ number of requests per second per instance
+ for the component.
}
},
"min_instance_count":
0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
+ this component.
},
"bitbucket": {
"branch": "str", #
@@ -6692,7 +6688,9 @@ async def list(
"autoscaling": {
"max_instance_count":
0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
+ this component. Maximum 250. Consider using a larger
+ instance size if your application requires more than
+ 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional. Default value is
@@ -6702,7 +6700,7 @@ async def list(
},
"min_instance_count":
0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
+ this component.
},
"bitbucket": {
"branch": "str", #
@@ -7239,8 +7237,10 @@ async def list(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0,
# Optional. Threshold value for alert.
"window":
@@ -7551,21 +7551,6 @@ async def list(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count":
- 0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional. Default value is
- 80. The average target CPU utilization for
- the component.
- }
- },
- "min_instance_count":
- 0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", #
Optional. The name of the branch to use.
@@ -7779,17 +7764,24 @@ async def list(
"autoscaling": {
"max_instance_count":
0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
+ this component. Maximum 250. Consider using a larger
+ instance size if your application requires more than
+ 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional. Default value is
- 80. The average target CPU utilization for
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95
+ target request duration in milliseconds for
the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target
+ number of requests per second per instance
+ for the component.
}
},
"min_instance_count":
0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
+ this component.
},
"bitbucket": {
"branch": "str", #
@@ -8385,7 +8377,9 @@ async def list(
"autoscaling": {
"max_instance_count":
0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
+ this component. Maximum 250. Consider using a larger
+ instance size if your application requires more than
+ 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional. Default value is
@@ -8395,7 +8389,7 @@ async def list(
},
"min_instance_count":
0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
+ this component.
},
"bitbucket": {
"branch": "str", #
@@ -8870,8 +8864,10 @@ async def list(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0,
# Optional. Threshold value for alert.
"window":
@@ -9182,21 +9178,6 @@ async def list(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count":
- 0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional. Default value is
- 80. The average target CPU utilization for
- the component.
- }
- },
- "min_instance_count":
- 0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", #
Optional. The name of the branch to use.
@@ -9410,17 +9391,24 @@ async def list(
"autoscaling": {
"max_instance_count":
0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
+ this component. Maximum 250. Consider using a larger
+ instance size if your application requires more than
+ 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional. Default value is
- 80. The average target CPU utilization for
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95
+ target request duration in milliseconds for
the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target
+ number of requests per second per instance
+ for the component.
}
},
"min_instance_count":
0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
+ this component.
},
"bitbucket": {
"branch": "str", #
@@ -10016,7 +10004,9 @@ async def list(
"autoscaling": {
"max_instance_count":
0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
+ this component. Maximum 250. Consider using a larger
+ instance size if your application requires more than
+ 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional. Default value is
@@ -10026,7 +10016,7 @@ async def list(
},
"min_instance_count":
0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
+ this component.
},
"bitbucket": {
"branch": "str", #
@@ -10492,8 +10482,10 @@ async def list(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0,
# Optional. Threshold value for alert.
"window":
@@ -10804,21 +10796,6 @@ async def list(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count":
- 0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional. Default value is
- 80. The average target CPU utilization for
- the component.
- }
- },
- "min_instance_count":
- 0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", #
Optional. The name of the branch to use.
@@ -11032,17 +11009,24 @@ async def list(
"autoscaling": {
"max_instance_count":
0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
+ this component. Maximum 250. Consider using a larger
+ instance size if your application requires more than
+ 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional. Default value is
- 80. The average target CPU utilization for
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95
+ target request duration in milliseconds for
the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target
+ number of requests per second per instance
+ for the component.
}
},
"min_instance_count":
0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
+ this component.
},
"bitbucket": {
"branch": "str", #
@@ -11638,7 +11622,9 @@ async def list(
"autoscaling": {
"max_instance_count":
0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
+ this component. Maximum 250. Consider using a larger
+ instance size if your application requires more than
+ 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional. Default value is
@@ -11648,7 +11634,7 @@ async def list(
},
"min_instance_count":
0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
+ this component.
},
"bitbucket": {
"branch": "str", #
@@ -12109,7 +12095,8 @@ async def create(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
- and "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold
value for alert.
"window": "UNSPECIFIED_WINDOW" #
@@ -12380,21 +12367,6 @@ async def create(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
- for the component.
- }
- },
- "min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The name of the
branch to use.
@@ -12575,18 +12547,23 @@ async def create(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
+ "request_duration": {
+ "p95_milliseconds": 0 #
+ Optional. The p95 target request duration in milliseconds
for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second per
+ instance for the component.
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -13093,8 +13070,9 @@ async def create(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional.
@@ -13103,8 +13081,7 @@ async def create(
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -13393,8 +13370,8 @@ async def create(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -13679,21 +13656,6 @@ async def create(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -13884,18 +13846,23 @@ async def create(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -14427,8 +14394,9 @@ async def create(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -14437,8 +14405,7 @@ async def create(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -14846,8 +14813,9 @@ async def create(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -15145,21 +15113,6 @@ async def create(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -15361,17 +15314,24 @@ async def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -15939,7 +15899,9 @@ async def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -15949,7 +15911,7 @@ async def create(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -16460,8 +16422,9 @@ async def create(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -16759,21 +16722,6 @@ async def create(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -16975,17 +16923,24 @@ async def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -17553,7 +17508,9 @@ async def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -17563,7 +17520,7 @@ async def create(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -18013,8 +17970,9 @@ async def create(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -18312,21 +18270,6 @@ async def create(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -18528,17 +18471,24 @@ async def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -19106,7 +19056,9 @@ async def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -19116,7 +19068,7 @@ async def create(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -19558,8 +19510,9 @@ async def create(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -19857,21 +19810,6 @@ async def create(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -20073,17 +20011,24 @@ async def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -20651,7 +20596,9 @@ async def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -20661,7 +20608,7 @@ async def create(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -21048,8 +20995,8 @@ async def create(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -21334,21 +21281,6 @@ async def create(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -21539,18 +21471,23 @@ async def create(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -22082,8 +22019,9 @@ async def create(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -22092,8 +22030,7 @@ async def create(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -22501,8 +22438,9 @@ async def create(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -22800,21 +22738,6 @@ async def create(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -23016,17 +22939,24 @@ async def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -23594,7 +23524,9 @@ async def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -23604,7 +23536,7 @@ async def create(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -24115,8 +24047,9 @@ async def create(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -24414,21 +24347,6 @@ async def create(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -24630,17 +24548,24 @@ async def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -25208,7 +25133,9 @@ async def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -25218,7 +25145,7 @@ async def create(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -25668,8 +25595,9 @@ async def create(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -25967,21 +25895,6 @@ async def create(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -26183,17 +26096,24 @@ async def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -26761,7 +26681,9 @@ async def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -26771,7 +26693,7 @@ async def create(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -27213,8 +27135,9 @@ async def create(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -27512,21 +27435,6 @@ async def create(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -27728,17 +27636,24 @@ async def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -28306,7 +28221,9 @@ async def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -28316,7 +28233,7 @@ async def create(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -28693,7 +28610,8 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
- and "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold
value for alert.
"window": "UNSPECIFIED_WINDOW" #
@@ -28964,21 +28882,6 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
- for the component.
- }
- },
- "min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The name of the
branch to use.
@@ -29159,18 +29062,23 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
+ "request_duration": {
+ "p95_milliseconds": 0 #
+ Optional. The p95 target request duration in milliseconds
for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second per
+ instance for the component.
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -29677,8 +29585,9 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional.
@@ -29687,8 +29596,7 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -29977,8 +29885,8 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -30263,21 +30171,6 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -30468,18 +30361,23 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -31011,8 +30909,9 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -31021,8 +30920,7 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -31430,8 +31328,9 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -31729,21 +31628,6 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -31945,17 +31829,24 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -32523,7 +32414,9 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -32533,7 +32426,7 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -33044,8 +32937,9 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -33343,21 +33237,6 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -33559,17 +33438,24 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -34137,7 +34023,9 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -34147,7 +34035,7 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -34597,8 +34485,9 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -34896,21 +34785,6 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -35112,17 +34986,24 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -35690,7 +35571,9 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -35700,7 +35583,7 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -36142,8 +36025,9 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -36441,21 +36325,6 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -36657,17 +36526,24 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -37235,7 +37111,9 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -37245,7 +37123,7 @@ async def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -37814,8 +37692,8 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -38100,21 +37978,6 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -38305,18 +38168,23 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -38848,8 +38716,9 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -38858,8 +38727,7 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -39267,8 +39135,9 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -39566,21 +39435,6 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -39782,17 +39636,24 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -40360,7 +40221,9 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -40370,7 +40233,7 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -40881,8 +40744,9 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -41180,21 +41044,6 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -41396,17 +41245,24 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -41974,7 +41830,9 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -41984,7 +41842,7 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -42434,8 +42292,9 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -42733,21 +42592,6 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -42949,17 +42793,24 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -43527,7 +43378,9 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -43537,7 +43390,7 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -43979,8 +43832,9 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -44278,21 +44132,6 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -44494,17 +44333,24 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -45072,7 +44918,9 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -45082,7 +44930,7 @@ async def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JS
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -45560,7 +45408,8 @@ async def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
- and "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold
value for alert.
"window": "UNSPECIFIED_WINDOW" #
@@ -45831,21 +45680,6 @@ async def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
- for the component.
- }
- },
- "min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The name of the
branch to use.
@@ -46026,18 +45860,23 @@ async def update(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
+ "request_duration": {
+ "p95_milliseconds": 0 #
+ Optional. The p95 target request duration in milliseconds
for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second per
+ instance for the component.
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -46544,8 +46383,9 @@ async def update(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional.
@@ -46554,8 +46394,7 @@ async def update(
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -46846,8 +46685,8 @@ async def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -47132,21 +46971,6 @@ async def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -47337,18 +47161,23 @@ async def update(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -47880,8 +47709,9 @@ async def update(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -47890,8 +47720,7 @@ async def update(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -48299,8 +48128,9 @@ async def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -48598,21 +48428,6 @@ async def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -48814,17 +48629,24 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -49392,7 +49214,9 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -49402,7 +49226,7 @@ async def update(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -49913,8 +49737,9 @@ async def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -50212,21 +50037,6 @@ async def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -50428,17 +50238,24 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -51006,7 +50823,9 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -51016,7 +50835,7 @@ async def update(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -51466,8 +51285,9 @@ async def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -51765,21 +51585,6 @@ async def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -51981,17 +51786,24 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -52559,7 +52371,9 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -52569,7 +52383,7 @@ async def update(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -53011,8 +52825,9 @@ async def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -53310,21 +53125,6 @@ async def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -53526,17 +53326,24 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -54104,7 +53911,9 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -54114,7 +53923,7 @@ async def update(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -54519,8 +54328,8 @@ async def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -54805,21 +54614,6 @@ async def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -55010,18 +54804,23 @@ async def update(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -55553,8 +55352,9 @@ async def update(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -55563,8 +55363,7 @@ async def update(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -55972,8 +55771,9 @@ async def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -56271,21 +56071,6 @@ async def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -56487,17 +56272,24 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -57065,7 +56857,9 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -57075,7 +56869,7 @@ async def update(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -57586,8 +57380,9 @@ async def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -57885,21 +57680,6 @@ async def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -58101,17 +57881,24 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -58679,7 +58466,9 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -58689,7 +58478,7 @@ async def update(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -59139,8 +58928,9 @@ async def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -59438,21 +59228,6 @@ async def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -59654,17 +59429,24 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -60232,7 +60014,9 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -60242,7 +60026,7 @@ async def update(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -60684,8 +60468,9 @@ async def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -60983,21 +60768,6 @@ async def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -61199,17 +60969,24 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -61777,7 +61554,9 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -61787,7 +61566,7 @@ async def update(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -62179,7 +61958,8 @@ async def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
- and "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold
value for alert.
"window": "UNSPECIFIED_WINDOW" #
@@ -62450,21 +62230,6 @@ async def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
- for the component.
- }
- },
- "min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The name of the
branch to use.
@@ -62645,18 +62410,23 @@ async def update(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
+ "request_duration": {
+ "p95_milliseconds": 0 #
+ Optional. The p95 target request duration in milliseconds
for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second per
+ instance for the component.
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -63163,8 +62933,9 @@ async def update(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional.
@@ -63173,8 +62944,7 @@ async def update(
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -63465,8 +63235,8 @@ async def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -63751,21 +63521,6 @@ async def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -63956,18 +63711,23 @@ async def update(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -64499,8 +64259,9 @@ async def update(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -64509,8 +64270,7 @@ async def update(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -64918,8 +64678,9 @@ async def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -65217,21 +64978,6 @@ async def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -65433,17 +65179,24 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -66011,7 +65764,9 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -66021,7 +65776,7 @@ async def update(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -66532,8 +66287,9 @@ async def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -66831,21 +66587,6 @@ async def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -67047,17 +66788,24 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -67625,7 +67373,9 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -67635,7 +67385,7 @@ async def update(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -68085,8 +67835,9 @@ async def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -68384,21 +68135,6 @@ async def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -68600,17 +68336,24 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -69178,7 +68921,9 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -69188,7 +68933,7 @@ async def update(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -69630,8 +69375,9 @@ async def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -69929,21 +69675,6 @@ async def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -70145,17 +69876,24 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -70723,7 +70461,9 @@ async def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -70733,7 +70473,7 @@ async def update(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -71338,8 +71078,8 @@ async def restart(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -71624,21 +71364,6 @@ async def restart(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -71829,18 +71554,23 @@ async def restart(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -72372,8 +72102,9 @@ async def restart(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -72382,8 +72113,7 @@ async def restart(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -72842,8 +72572,8 @@ async def restart(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -73128,21 +72858,6 @@ async def restart(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -73333,18 +73048,23 @@ async def restart(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -73876,8 +73596,9 @@ async def restart(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -73886,8 +73607,7 @@ async def restart(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -74346,8 +74066,8 @@ async def restart(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -74632,21 +74352,6 @@ async def restart(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -74837,18 +74542,23 @@ async def restart(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -75380,8 +75090,9 @@ async def restart(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -75390,8 +75101,7 @@ async def restart(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -76375,8 +76085,9 @@ async def list_deployments(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -76674,21 +76385,6 @@ async def list_deployments(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -76890,17 +76586,24 @@ async def list_deployments(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -77468,7 +77171,9 @@ async def list_deployments(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -77478,7 +77183,7 @@ async def list_deployments(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -78042,8 +77747,8 @@ async def create_deployment(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -78328,21 +78033,6 @@ async def create_deployment(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -78533,18 +78223,23 @@ async def create_deployment(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -79076,8 +78771,9 @@ async def create_deployment(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -79086,8 +78782,7 @@ async def create_deployment(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -79547,8 +79242,8 @@ async def create_deployment(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -79833,21 +79528,6 @@ async def create_deployment(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -80038,18 +79718,23 @@ async def create_deployment(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -80581,8 +80266,9 @@ async def create_deployment(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -80591,8 +80277,7 @@ async def create_deployment(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -81050,8 +80735,8 @@ async def create_deployment(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -81336,21 +81021,6 @@ async def create_deployment(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -81541,18 +81211,23 @@ async def create_deployment(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -82084,8 +81759,9 @@ async def create_deployment(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -82094,8 +81770,7 @@ async def create_deployment(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -82637,8 +82312,8 @@ async def get_deployment(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -82923,21 +82598,6 @@ async def get_deployment(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -83128,18 +82788,23 @@ async def get_deployment(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -83671,8 +83336,9 @@ async def get_deployment(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -83681,8 +83347,7 @@ async def get_deployment(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -84211,8 +83876,8 @@ async def cancel_deployment(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -84497,21 +84162,6 @@ async def cancel_deployment(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -84702,18 +84352,23 @@ async def cancel_deployment(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -85245,8 +84900,9 @@ async def cancel_deployment(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -85255,8 +84911,7 @@ async def cancel_deployment(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -87069,8 +86724,10 @@ async def list_events(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0,
# Optional. Threshold value for alert.
"window":
@@ -87381,21 +87038,6 @@ async def list_events(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count":
- 0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional. Default value is
- 80. The average target CPU utilization for
- the component.
- }
- },
- "min_instance_count":
- 0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", #
Optional. The name of the branch to use.
@@ -87609,17 +87251,24 @@ async def list_events(
"autoscaling": {
"max_instance_count":
0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
+ this component. Maximum 250. Consider using a larger
+ instance size if your application requires more than
+ 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional. Default value is
- 80. The average target CPU utilization for
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95
+ target request duration in milliseconds for
the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target
+ number of requests per second per instance
+ for the component.
}
},
"min_instance_count":
0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
+ this component.
},
"bitbucket": {
"branch": "str", #
@@ -88215,7 +87864,9 @@ async def list_events(
"autoscaling": {
"max_instance_count":
0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
+ this component. Maximum 250. Consider using a larger
+ instance size if your application requires more than
+ 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional. Default value is
@@ -88225,7 +87876,7 @@ async def list_events(
},
"min_instance_count":
0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
+ this component.
},
"bitbucket": {
"branch": "str", #
@@ -88823,8 +88474,9 @@ async def get_event(self, app_id: str, event_id: str, **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -89122,21 +88774,6 @@ async def get_event(self, app_id: str, event_id: str, **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -89338,17 +88975,24 @@ async def get_event(self, app_id: str, event_id: str, **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -89916,7 +89560,9 @@ async def get_event(self, app_id: str, event_id: str, **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -89926,7 +89572,7 @@ async def get_event(self, app_id: str, event_id: str, **kwargs: Any) -> JSON:
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -90507,8 +90153,9 @@ async def cancel_event(self, app_id: str, event_id: str, **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -90806,21 +90453,6 @@ async def cancel_event(self, app_id: str, event_id: str, **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -91022,17 +90654,24 @@ async def cancel_event(self, app_id: str, event_id: str, **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -91600,7 +91239,9 @@ async def cancel_event(self, app_id: str, event_id: str, **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -91610,7 +91251,7 @@ async def cancel_event(self, app_id: str, event_id: str, **kwargs: Any) -> JSON:
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -92548,7 +92189,8 @@ async def validate_app_spec(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
- and "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold
value for alert.
"window": "UNSPECIFIED_WINDOW" #
@@ -92819,21 +92461,6 @@ async def validate_app_spec(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
- for the component.
- }
- },
- "min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The name of the
branch to use.
@@ -93014,18 +92641,23 @@ async def validate_app_spec(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
+ "request_duration": {
+ "p95_milliseconds": 0 #
+ Optional. The p95 target request duration in milliseconds
for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second per
+ instance for the component.
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -93532,8 +93164,9 @@ async def validate_app_spec(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional.
@@ -93542,8 +93175,7 @@ async def validate_app_spec(
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -93841,7 +93473,8 @@ async def validate_app_spec(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
- and "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold
value for alert.
"window": "UNSPECIFIED_WINDOW" #
@@ -94112,21 +93745,6 @@ async def validate_app_spec(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
- for the component.
- }
- },
- "min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The name of the
branch to use.
@@ -94307,18 +93925,23 @@ async def validate_app_spec(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
+ "request_duration": {
+ "p95_milliseconds": 0 #
+ Optional. The p95 target request duration in milliseconds
for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second per
+ instance for the component.
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -94825,8 +94448,9 @@ async def validate_app_spec(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional.
@@ -94835,8 +94459,7 @@ async def validate_app_spec(
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -95156,7 +94779,8 @@ async def validate_app_spec(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
- and "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold
value for alert.
"window": "UNSPECIFIED_WINDOW" #
@@ -95427,21 +95051,6 @@ async def validate_app_spec(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
- for the component.
- }
- },
- "min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The name of the
branch to use.
@@ -95622,18 +95231,23 @@ async def validate_app_spec(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
+ "request_duration": {
+ "p95_milliseconds": 0 #
+ Optional. The p95 target request duration in milliseconds
for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second per
+ instance for the component.
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -96140,8 +95754,9 @@ async def validate_app_spec(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional.
@@ -96150,8 +95765,7 @@ async def validate_app_spec(
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -96454,7 +96068,8 @@ async def validate_app_spec(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
- and "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold
value for alert.
"window": "UNSPECIFIED_WINDOW" #
@@ -96725,21 +96340,6 @@ async def validate_app_spec(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
- for the component.
- }
- },
- "min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The name of the
branch to use.
@@ -96920,18 +96520,23 @@ async def validate_app_spec(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
+ "request_duration": {
+ "p95_milliseconds": 0 #
+ Optional. The p95 target request duration in milliseconds
for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second per
+ instance for the component.
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -97438,8 +97043,9 @@ async def validate_app_spec(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional.
@@ -97448,8 +97054,7 @@ async def validate_app_spec(
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -97747,7 +97352,8 @@ async def validate_app_spec(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
- and "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold
value for alert.
"window": "UNSPECIFIED_WINDOW" #
@@ -98018,21 +97624,6 @@ async def validate_app_spec(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
- for the component.
- }
- },
- "min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The name of the
branch to use.
@@ -98213,18 +97804,23 @@ async def validate_app_spec(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
+ "request_duration": {
+ "p95_milliseconds": 0 #
+ Optional. The p95 target request duration in milliseconds
for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second per
+ instance for the component.
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -98731,8 +98327,9 @@ async def validate_app_spec(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional.
@@ -98741,8 +98338,7 @@ async def validate_app_spec(
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -99069,7 +98665,8 @@ async def list_alerts(self, app_id: str, **kwargs: Any) -> JSON:
"DOMAIN_LIVE", "AUTOSCALE_FAILED", "AUTOSCALE_SUCCEEDED",
"FUNCTIONS_ACTIVATION_COUNT", "FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE", "FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold value for alert.
"window": "UNSPECIFIED_WINDOW" # Optional. Default
value is "UNSPECIFIED_WINDOW". Known values are:
@@ -99266,8 +98863,9 @@ async def assign_alert_destinations(
"DEPLOYMENT_FAILED", "DEPLOYMENT_LIVE", "DOMAIN_FAILED", "DOMAIN_LIVE",
"AUTOSCALE_FAILED", "AUTOSCALE_SUCCEEDED", "FUNCTIONS_ACTIVATION_COUNT",
"FUNCTIONS_AVERAGE_DURATION_MS", "FUNCTIONS_ERROR_RATE_PER_MINUTE",
- "FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold value for alert.
"window": "UNSPECIFIED_WINDOW" # Optional. Default value is
"UNSPECIFIED_WINDOW". Known values are: "UNSPECIFIED_WINDOW",
@@ -99371,8 +98969,9 @@ async def assign_alert_destinations(
"DEPLOYMENT_FAILED", "DEPLOYMENT_LIVE", "DOMAIN_FAILED", "DOMAIN_LIVE",
"AUTOSCALE_FAILED", "AUTOSCALE_SUCCEEDED", "FUNCTIONS_ACTIVATION_COUNT",
"FUNCTIONS_AVERAGE_DURATION_MS", "FUNCTIONS_ERROR_RATE_PER_MINUTE",
- "FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold value for alert.
"window": "UNSPECIFIED_WINDOW" # Optional. Default value is
"UNSPECIFIED_WINDOW". Known values are: "UNSPECIFIED_WINDOW",
@@ -99481,8 +99080,9 @@ async def assign_alert_destinations(
"DEPLOYMENT_FAILED", "DEPLOYMENT_LIVE", "DOMAIN_FAILED", "DOMAIN_LIVE",
"AUTOSCALE_FAILED", "AUTOSCALE_SUCCEEDED", "FUNCTIONS_ACTIVATION_COUNT",
"FUNCTIONS_AVERAGE_DURATION_MS", "FUNCTIONS_ERROR_RATE_PER_MINUTE",
- "FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold value for alert.
"window": "UNSPECIFIED_WINDOW" # Optional. Default value is
"UNSPECIFIED_WINDOW". Known values are: "UNSPECIFIED_WINDOW",
@@ -99852,8 +99452,8 @@ async def create_rollback(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -100138,21 +99738,6 @@ async def create_rollback(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -100343,18 +99928,23 @@ async def create_rollback(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -100886,8 +100476,9 @@ async def create_rollback(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -100896,8 +100487,7 @@ async def create_rollback(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -101365,8 +100955,8 @@ async def create_rollback(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -101651,21 +101241,6 @@ async def create_rollback(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -101856,18 +101431,23 @@ async def create_rollback(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -102399,8 +101979,9 @@ async def create_rollback(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -102409,8 +101990,7 @@ async def create_rollback(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -102881,8 +102461,8 @@ async def create_rollback(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -103167,21 +102747,6 @@ async def create_rollback(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -103372,18 +102937,23 @@ async def create_rollback(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -103915,8 +103485,9 @@ async def create_rollback(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -103925,8 +103496,7 @@ async def create_rollback(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -104992,8 +104562,8 @@ async def revert_rollback(self, app_id: str, **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -105278,21 +104848,6 @@ async def revert_rollback(self, app_id: str, **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -105483,18 +105038,23 @@ async def revert_rollback(self, app_id: str, **kwargs: Any) -> JSON:
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -106026,8 +105586,9 @@ async def revert_rollback(self, app_id: str, **kwargs: Any) -> JSON:
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -106036,8 +105597,7 @@ async def revert_rollback(self, app_id: str, **kwargs: Any) -> JSON:
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -238800,6 +238360,1509 @@ async def regenerate_model_api_key(self, api_key_uuid: str, **kwargs: Any) -> JS
return cast(JSON, deserialized) # type: ignore
+ @distributed_trace_async
+ async def list_model_routers(
+ self,
+ *,
+ page: Optional[int] = None,
+ per_page: Optional[int] = None,
+ **kwargs: Any
+ ) -> JSON:
+ # pylint: disable=line-too-long
+ """List Model Routers.
+
+ To list model routers, send a GET request to ``/v2/gen-ai/models/routers``.
+
+ :keyword page: Page number. Default value is None.
+ :paramtype page: int
+ :keyword per_page: Items per page. Default value is None.
+ :paramtype per_page: int
+ :return: JSON object
+ :rtype: JSON
+ :raises ~azure.core.exceptions.HttpResponseError:
+
+ Example:
+ .. code-block:: python
+
+ # response body for status code(s): 200
+ response == {
+ "links": {
+ "pages": {
+ "first": "str", # Optional. First page.
+ "last": "str", # Optional. Last page.
+ "next": "str", # Optional. Next page.
+ "previous": "str" # Optional. Previous page.
+ }
+ },
+ "meta": {
+ "page": 0, # Optional. The current page.
+ "pages": 0, # Optional. Total number of pages.
+ "total": 0 # Optional. Total amount of items over all pages.
+ },
+ "model_routers": [
+ {
+ "config": {
+ "fallback_models": [
+ "str" # Optional. Router-level fallback
+ models.
+ ],
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", #
+ Optional. Short task description.
+ "name": "str" # Optional.
+ Task name.
+ },
+ "models": [
+ "str" # Optional. Models
+ assigned to the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional.
+ One of: none, cheapest, fastest. Known values are:
+ "none", "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task
+ slug.
+ }
+ ]
+ },
+ "created_at": "2020-02-20 00:00:00", # Optional. Creation
+ date / time.
+ "description": "str", # Optional. Description.
+ "name": "str", # Optional. Name of the model router.
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ],
+ "updated_at": "2020-02-20 00:00:00", # Optional. Last
+ modified.
+ "uuid": "str" # Optional. Unique id.
+ }
+ ]
+ }
+ # response body for status code(s): 404
+ response == {
+ "id": "str", # A short identifier corresponding to the HTTP status code
+ returned. For example, the ID for a response returning a 404 status code would
+ be "not_found.". Required.
+ "message": "str", # A message providing additional information about the
+ error, including details to help resolve it when possible. Required.
+ "request_id": "str" # Optional. Optionally, some endpoints may include a
+ request ID that should be provided when reporting bugs or opening support
+ tickets to help identify the issue.
+ }
+ """
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ 401: cast(
+ Type[HttpResponseError],
+ lambda response: ClientAuthenticationError(response=response),
+ ),
+ 429: HttpResponseError,
+ 500: HttpResponseError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = kwargs.pop("params", {}) or {}
+
+ cls: ClsType[JSON] = kwargs.pop("cls", None)
+
+ _request = build_genai_list_model_routers_request(
+ page=page,
+ per_page=per_page,
+ headers=_headers,
+ params=_params,
+ )
+ _request.url = self._client.format_url(_request.url)
+
+ _stream = False
+ pipeline_response: PipelineResponse = (
+ await self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 404]:
+ if _stream:
+ await response.read() # Load the body in memory and close the socket
+ map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore
+ raise HttpResponseError(response=response)
+
+ response_headers = {}
+ if response.status_code == 200:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if response.status_code == 404:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if cls:
+ return cls(pipeline_response, cast(JSON, deserialized), response_headers) # type: ignore
+
+ return cast(JSON, deserialized) # type: ignore
+
+ @overload
+ async def create_model_router(
+ self,
+ body: Optional[JSON] = None,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> JSON:
+ # pylint: disable=line-too-long
+ """Create a Model Router.
+
+ To create a model router, send a POST request to ``/v2/gen-ai/models/routers``.
+
+ :param body: Default value is None.
+ :type body: JSON
+ :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
+ Default value is "application/json".
+ :paramtype content_type: str
+ :return: JSON object
+ :rtype: JSON
+ :raises ~azure.core.exceptions.HttpResponseError:
+
+ Example:
+ .. code-block:: python
+
+ # JSON input template you can fill out and use as your body input.
+ body = {
+ "description": "str", # Optional. Model router description.
+ "fallback_models": [
+ "str" # Optional. Fallback models.
+ ],
+ "name": "str", # Optional. Model router name.
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", # Optional. Short task
+ description.
+ "name": "str" # Optional. Task name.
+ },
+ "models": [
+ "str" # Optional. Models assigned to the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional. One of: none, cheapest,
+ fastest. Known values are: "none", "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ],
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ]
+ }
+
+ # response body for status code(s): 200
+ response == {
+ "model_router": {
+ "config": {
+ "fallback_models": [
+ "str" # Optional. Router-level fallback models.
+ ],
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", # Optional.
+ Short task description.
+ "name": "str" # Optional. Task name.
+ },
+ "models": [
+ "str" # Optional. Models assigned to
+ the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional. One of:
+ none, cheapest, fastest. Known values are: "none",
+ "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ]
+ },
+ "created_at": "2020-02-20 00:00:00", # Optional. Creation date /
+ time.
+ "description": "str", # Optional. Description.
+ "name": "str", # Optional. Name of the model router.
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ],
+ "updated_at": "2020-02-20 00:00:00", # Optional. Last modified.
+ "uuid": "str" # Optional. Unique id.
+ }
+ }
+ # response body for status code(s): 404
+ response == {
+ "id": "str", # A short identifier corresponding to the HTTP status code
+ returned. For example, the ID for a response returning a 404 status code would
+ be "not_found.". Required.
+ "message": "str", # A message providing additional information about the
+ error, including details to help resolve it when possible. Required.
+ "request_id": "str" # Optional. Optionally, some endpoints may include a
+ request ID that should be provided when reporting bugs or opening support
+ tickets to help identify the issue.
+ }
+ """
+
+ @overload
+ async def create_model_router(
+ self,
+ body: Optional[IO[bytes]] = None,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> JSON:
+ # pylint: disable=line-too-long
+ """Create a Model Router.
+
+ To create a model router, send a POST request to ``/v2/gen-ai/models/routers``.
+
+ :param body: Default value is None.
+ :type body: IO[bytes]
+ :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
+ Default value is "application/json".
+ :paramtype content_type: str
+ :return: JSON object
+ :rtype: JSON
+ :raises ~azure.core.exceptions.HttpResponseError:
+
+ Example:
+ .. code-block:: python
+
+ # response body for status code(s): 200
+ response == {
+ "model_router": {
+ "config": {
+ "fallback_models": [
+ "str" # Optional. Router-level fallback models.
+ ],
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", # Optional.
+ Short task description.
+ "name": "str" # Optional. Task name.
+ },
+ "models": [
+ "str" # Optional. Models assigned to
+ the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional. One of:
+ none, cheapest, fastest. Known values are: "none",
+ "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ]
+ },
+ "created_at": "2020-02-20 00:00:00", # Optional. Creation date /
+ time.
+ "description": "str", # Optional. Description.
+ "name": "str", # Optional. Name of the model router.
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ],
+ "updated_at": "2020-02-20 00:00:00", # Optional. Last modified.
+ "uuid": "str" # Optional. Unique id.
+ }
+ }
+ # response body for status code(s): 404
+ response == {
+ "id": "str", # A short identifier corresponding to the HTTP status code
+ returned. For example, the ID for a response returning a 404 status code would
+ be "not_found.". Required.
+ "message": "str", # A message providing additional information about the
+ error, including details to help resolve it when possible. Required.
+ "request_id": "str" # Optional. Optionally, some endpoints may include a
+ request ID that should be provided when reporting bugs or opening support
+ tickets to help identify the issue.
+ }
+ """
+
+ @distributed_trace_async
+ async def create_model_router(
+ self, body: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any
+ ) -> JSON:
+ # pylint: disable=line-too-long
+ """Create a Model Router.
+
+ To create a model router, send a POST request to ``/v2/gen-ai/models/routers``.
+
+ :param body: Is either a JSON type or a IO[bytes] type. Default value is None.
+ :type body: JSON or IO[bytes]
+ :return: JSON object
+ :rtype: JSON
+ :raises ~azure.core.exceptions.HttpResponseError:
+
+ Example:
+ .. code-block:: python
+
+ # JSON input template you can fill out and use as your body input.
+ body = {
+ "description": "str", # Optional. Model router description.
+ "fallback_models": [
+ "str" # Optional. Fallback models.
+ ],
+ "name": "str", # Optional. Model router name.
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", # Optional. Short task
+ description.
+ "name": "str" # Optional. Task name.
+ },
+ "models": [
+ "str" # Optional. Models assigned to the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional. One of: none, cheapest,
+ fastest. Known values are: "none", "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ],
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ]
+ }
+
+ # response body for status code(s): 200
+ response == {
+ "model_router": {
+ "config": {
+ "fallback_models": [
+ "str" # Optional. Router-level fallback models.
+ ],
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", # Optional.
+ Short task description.
+ "name": "str" # Optional. Task name.
+ },
+ "models": [
+ "str" # Optional. Models assigned to
+ the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional. One of:
+ none, cheapest, fastest. Known values are: "none",
+ "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ]
+ },
+ "created_at": "2020-02-20 00:00:00", # Optional. Creation date /
+ time.
+ "description": "str", # Optional. Description.
+ "name": "str", # Optional. Name of the model router.
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ],
+ "updated_at": "2020-02-20 00:00:00", # Optional. Last modified.
+ "uuid": "str" # Optional. Unique id.
+ }
+ }
+ # response body for status code(s): 404
+ response == {
+ "id": "str", # A short identifier corresponding to the HTTP status code
+ returned. For example, the ID for a response returning a 404 status code would
+ be "not_found.". Required.
+ "message": "str", # A message providing additional information about the
+ error, including details to help resolve it when possible. Required.
+ "request_id": "str" # Optional. Optionally, some endpoints may include a
+ request ID that should be provided when reporting bugs or opening support
+ tickets to help identify the issue.
+ }
+ """
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ 401: cast(
+ Type[HttpResponseError],
+ lambda response: ClientAuthenticationError(response=response),
+ ),
+ 429: HttpResponseError,
+ 500: HttpResponseError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
+ _params = kwargs.pop("params", {}) or {}
+
+ content_type: Optional[str] = kwargs.pop(
+ "content_type", _headers.pop("Content-Type", None)
+ )
+ cls: ClsType[JSON] = kwargs.pop("cls", None)
+
+ content_type = content_type or "application/json"
+ _json = None
+ _content = None
+ if isinstance(body, (IOBase, bytes)):
+ _content = body
+ else:
+ if body is not None:
+ _json = body
+ else:
+ _json = None
+
+ _request = build_genai_create_model_router_request(
+ content_type=content_type,
+ json=_json,
+ content=_content,
+ headers=_headers,
+ params=_params,
+ )
+ _request.url = self._client.format_url(_request.url)
+
+ _stream = False
+ pipeline_response: PipelineResponse = (
+ await self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 404]:
+ if _stream:
+ await response.read() # Load the body in memory and close the socket
+ map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore
+ raise HttpResponseError(response=response)
+
+ response_headers = {}
+ if response.status_code == 200:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if response.status_code == 404:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if cls:
+ return cls(pipeline_response, cast(JSON, deserialized), response_headers) # type: ignore
+
+ return cast(JSON, deserialized) # type: ignore
+
+ @distributed_trace_async
+ async def list_model_router_presets(
+ self,
+ *,
+ page: Optional[int] = None,
+ per_page: Optional[int] = None,
+ **kwargs: Any
+ ) -> JSON:
+ # pylint: disable=line-too-long
+ """List Model Router Presets.
+
+ To list model router presets, send a GET request to ``/v2/gen-ai/models/routers/presets``.
+
+ :keyword page: Page number. Default value is None.
+ :paramtype page: int
+ :keyword per_page: Items per page. Default value is None.
+ :paramtype per_page: int
+ :return: JSON object
+ :rtype: JSON
+ :raises ~azure.core.exceptions.HttpResponseError:
+
+ Example:
+ .. code-block:: python
+
+ # response body for status code(s): 200
+ response == {
+ "links": {
+ "pages": {
+ "first": "str", # Optional. First page.
+ "last": "str", # Optional. Last page.
+ "next": "str", # Optional. Next page.
+ "previous": "str" # Optional. Previous page.
+ }
+ },
+ "meta": {
+ "page": 0, # Optional. The current page.
+ "pages": 0, # Optional. Total number of pages.
+ "total": 0 # Optional. Total amount of items over all pages.
+ },
+ "presets": [
+ {
+ "config": {
+ "fallback_models": [
+ "str" # Optional. Router-level fallback
+ models.
+ ],
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", #
+ Optional. Short task description.
+ "name": "str" # Optional.
+ Task name.
+ },
+ "models": [
+ "str" # Optional. Models
+ assigned to the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional.
+ One of: none, cheapest, fastest. Known values are:
+ "none", "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task
+ slug.
+ }
+ ]
+ },
+ "display_name": "str", # Optional. Display name for UI
+ surfaces.
+ "long_description": "str", # Optional. Long description for
+ details views.
+ "short_description": "str", # Optional. Short description
+ for list views.
+ "slug": "str" # Optional. Stable slug for routing usage.
+ }
+ ]
+ }
+ # response body for status code(s): 404
+ response == {
+ "id": "str", # A short identifier corresponding to the HTTP status code
+ returned. For example, the ID for a response returning a 404 status code would
+ be "not_found.". Required.
+ "message": "str", # A message providing additional information about the
+ error, including details to help resolve it when possible. Required.
+ "request_id": "str" # Optional. Optionally, some endpoints may include a
+ request ID that should be provided when reporting bugs or opening support
+ tickets to help identify the issue.
+ }
+ """
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ 401: cast(
+ Type[HttpResponseError],
+ lambda response: ClientAuthenticationError(response=response),
+ ),
+ 429: HttpResponseError,
+ 500: HttpResponseError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = kwargs.pop("params", {}) or {}
+
+ cls: ClsType[JSON] = kwargs.pop("cls", None)
+
+ _request = build_genai_list_model_router_presets_request(
+ page=page,
+ per_page=per_page,
+ headers=_headers,
+ params=_params,
+ )
+ _request.url = self._client.format_url(_request.url)
+
+ _stream = False
+ pipeline_response: PipelineResponse = (
+ await self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 404]:
+ if _stream:
+ await response.read() # Load the body in memory and close the socket
+ map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore
+ raise HttpResponseError(response=response)
+
+ response_headers = {}
+ if response.status_code == 200:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if response.status_code == 404:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if cls:
+ return cls(pipeline_response, cast(JSON, deserialized), response_headers) # type: ignore
+
+ return cast(JSON, deserialized) # type: ignore
+
+ @distributed_trace_async
+ async def list_model_router_task_presets(
+ self,
+ *,
+ page: Optional[int] = None,
+ per_page: Optional[int] = None,
+ **kwargs: Any
+ ) -> JSON:
+ # pylint: disable=line-too-long
+ """List Model Router Task Presets.
+
+ To list model router task presets, send a GET request to
+ ``/v2/gen-ai/models/routers/tasks/presets``.
+
+ :keyword page: Page number. Default value is None.
+ :paramtype page: int
+ :keyword per_page: Items per page. Default value is None.
+ :paramtype per_page: int
+ :return: JSON object
+ :rtype: JSON
+ :raises ~azure.core.exceptions.HttpResponseError:
+
+ Example:
+ .. code-block:: python
+
+ # response body for status code(s): 200
+ response == {
+ "links": {
+ "pages": {
+ "first": "str", # Optional. First page.
+ "last": "str", # Optional. Last page.
+ "next": "str", # Optional. Next page.
+ "previous": "str" # Optional. Previous page.
+ }
+ },
+ "meta": {
+ "page": 0, # Optional. The current page.
+ "pages": 0, # Optional. Total number of pages.
+ "total": 0 # Optional. Total amount of items over all pages.
+ },
+ "tasks": [
+ {
+ "category": "str", # Optional. Higher-level grouping used by
+ the UI.
+ "description": "str", # Optional. Task description.
+ "models": [
+ "str" # Optional. Default models assigned to this
+ task.
+ ],
+ "name": "str", # Optional. Display name.
+ "selection_policy": {
+ "prefer": "str" # Optional. One of: none, cheapest,
+ fastest. Known values are: "none", "cheapest", and "fastest".
+ },
+ "tags": [
+ "str" # Optional. Lightweight labels for filtering.
+ ],
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ]
+ }
+ # response body for status code(s): 404
+ response == {
+ "id": "str", # A short identifier corresponding to the HTTP status code
+ returned. For example, the ID for a response returning a 404 status code would
+ be "not_found.". Required.
+ "message": "str", # A message providing additional information about the
+ error, including details to help resolve it when possible. Required.
+ "request_id": "str" # Optional. Optionally, some endpoints may include a
+ request ID that should be provided when reporting bugs or opening support
+ tickets to help identify the issue.
+ }
+ """
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ 401: cast(
+ Type[HttpResponseError],
+ lambda response: ClientAuthenticationError(response=response),
+ ),
+ 429: HttpResponseError,
+ 500: HttpResponseError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = kwargs.pop("params", {}) or {}
+
+ cls: ClsType[JSON] = kwargs.pop("cls", None)
+
+ _request = build_genai_list_model_router_task_presets_request(
+ page=page,
+ per_page=per_page,
+ headers=_headers,
+ params=_params,
+ )
+ _request.url = self._client.format_url(_request.url)
+
+ _stream = False
+ pipeline_response: PipelineResponse = (
+ await self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 404]:
+ if _stream:
+ await response.read() # Load the body in memory and close the socket
+ map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore
+ raise HttpResponseError(response=response)
+
+ response_headers = {}
+ if response.status_code == 200:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if response.status_code == 404:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if cls:
+ return cls(pipeline_response, cast(JSON, deserialized), response_headers) # type: ignore
+
+ return cast(JSON, deserialized) # type: ignore
+
+ @distributed_trace_async
+ async def get_model_router(self, uuid: str, **kwargs: Any) -> JSON:
+ # pylint: disable=line-too-long
+ """Retrieve an Existing Model Router.
+
+ To retrieve details of a model router, send a GET request to
+ ``/v2/gen-ai/models/routers/{uuid}``.
+
+ :param uuid: Model router id. Required.
+ :type uuid: str
+ :return: JSON object
+ :rtype: JSON
+ :raises ~azure.core.exceptions.HttpResponseError:
+
+ Example:
+ .. code-block:: python
+
+ # response body for status code(s): 200
+ response == {
+ "model_router": {
+ "config": {
+ "fallback_models": [
+ "str" # Optional. Router-level fallback models.
+ ],
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", # Optional.
+ Short task description.
+ "name": "str" # Optional. Task name.
+ },
+ "models": [
+ "str" # Optional. Models assigned to
+ the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional. One of:
+ none, cheapest, fastest. Known values are: "none",
+ "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ]
+ },
+ "created_at": "2020-02-20 00:00:00", # Optional. Creation date /
+ time.
+ "description": "str", # Optional. Description.
+ "name": "str", # Optional. Name of the model router.
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ],
+ "updated_at": "2020-02-20 00:00:00", # Optional. Last modified.
+ "uuid": "str" # Optional. Unique id.
+ }
+ }
+ # response body for status code(s): 404
+ response == {
+ "id": "str", # A short identifier corresponding to the HTTP status code
+ returned. For example, the ID for a response returning a 404 status code would
+ be "not_found.". Required.
+ "message": "str", # A message providing additional information about the
+ error, including details to help resolve it when possible. Required.
+ "request_id": "str" # Optional. Optionally, some endpoints may include a
+ request ID that should be provided when reporting bugs or opening support
+ tickets to help identify the issue.
+ }
+ """
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ 401: cast(
+ Type[HttpResponseError],
+ lambda response: ClientAuthenticationError(response=response),
+ ),
+ 429: HttpResponseError,
+ 500: HttpResponseError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = kwargs.pop("params", {}) or {}
+
+ cls: ClsType[JSON] = kwargs.pop("cls", None)
+
+ _request = build_genai_get_model_router_request(
+ uuid=uuid,
+ headers=_headers,
+ params=_params,
+ )
+ _request.url = self._client.format_url(_request.url)
+
+ _stream = False
+ pipeline_response: PipelineResponse = (
+ await self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 404]:
+ if _stream:
+ await response.read() # Load the body in memory and close the socket
+ map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore
+ raise HttpResponseError(response=response)
+
+ response_headers = {}
+ if response.status_code == 200:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if response.status_code == 404:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if cls:
+ return cls(pipeline_response, cast(JSON, deserialized), response_headers) # type: ignore
+
+ return cast(JSON, deserialized) # type: ignore
+
+ @overload
+ async def update_model_router(
+ self,
+ uuid: str,
+ body: Optional[JSON] = None,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> JSON:
+ # pylint: disable=line-too-long
+ """Update a Model Router.
+
+ To update a model router, send a PUT request to ``/v2/gen-ai/models/routers/{uuid}``.
+
+ :param uuid: Model router id. Required.
+ :type uuid: str
+ :param body: Default value is None.
+ :type body: JSON
+ :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
+ Default value is "application/json".
+ :paramtype content_type: str
+ :return: JSON object
+ :rtype: JSON
+ :raises ~azure.core.exceptions.HttpResponseError:
+
+ Example:
+ .. code-block:: python
+
+ # JSON input template you can fill out and use as your body input.
+ body = {
+ "description": "str", # Optional. Model router description.
+ "fallback_models": [
+ "str" # Optional. Fallback models.
+ ],
+ "name": "str", # Optional. Model router name.
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", # Optional. Short task
+ description.
+ "name": "str" # Optional. Task name.
+ },
+ "models": [
+ "str" # Optional. Models assigned to the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional. One of: none, cheapest,
+ fastest. Known values are: "none", "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ],
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ],
+ "uuid": "str" # Optional. Model router id.
+ }
+
+ # response body for status code(s): 200
+ response == {
+ "model_router": {
+ "config": {
+ "fallback_models": [
+ "str" # Optional. Router-level fallback models.
+ ],
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", # Optional.
+ Short task description.
+ "name": "str" # Optional. Task name.
+ },
+ "models": [
+ "str" # Optional. Models assigned to
+ the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional. One of:
+ none, cheapest, fastest. Known values are: "none",
+ "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ]
+ },
+ "created_at": "2020-02-20 00:00:00", # Optional. Creation date /
+ time.
+ "description": "str", # Optional. Description.
+ "name": "str", # Optional. Name of the model router.
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ],
+ "updated_at": "2020-02-20 00:00:00", # Optional. Last modified.
+ "uuid": "str" # Optional. Unique id.
+ }
+ }
+ # response body for status code(s): 404
+ response == {
+ "id": "str", # A short identifier corresponding to the HTTP status code
+ returned. For example, the ID for a response returning a 404 status code would
+ be "not_found.". Required.
+ "message": "str", # A message providing additional information about the
+ error, including details to help resolve it when possible. Required.
+ "request_id": "str" # Optional. Optionally, some endpoints may include a
+ request ID that should be provided when reporting bugs or opening support
+ tickets to help identify the issue.
+ }
+ """
+
+ @overload
+ async def update_model_router(
+ self,
+ uuid: str,
+ body: Optional[IO[bytes]] = None,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any
+ ) -> JSON:
+ # pylint: disable=line-too-long
+ """Update a Model Router.
+
+ To update a model router, send a PUT request to ``/v2/gen-ai/models/routers/{uuid}``.
+
+ :param uuid: Model router id. Required.
+ :type uuid: str
+ :param body: Default value is None.
+ :type body: IO[bytes]
+ :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
+ Default value is "application/json".
+ :paramtype content_type: str
+ :return: JSON object
+ :rtype: JSON
+ :raises ~azure.core.exceptions.HttpResponseError:
+
+ Example:
+ .. code-block:: python
+
+ # response body for status code(s): 200
+ response == {
+ "model_router": {
+ "config": {
+ "fallback_models": [
+ "str" # Optional. Router-level fallback models.
+ ],
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", # Optional.
+ Short task description.
+ "name": "str" # Optional. Task name.
+ },
+ "models": [
+ "str" # Optional. Models assigned to
+ the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional. One of:
+ none, cheapest, fastest. Known values are: "none",
+ "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ]
+ },
+ "created_at": "2020-02-20 00:00:00", # Optional. Creation date /
+ time.
+ "description": "str", # Optional. Description.
+ "name": "str", # Optional. Name of the model router.
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ],
+ "updated_at": "2020-02-20 00:00:00", # Optional. Last modified.
+ "uuid": "str" # Optional. Unique id.
+ }
+ }
+ # response body for status code(s): 404
+ response == {
+ "id": "str", # A short identifier corresponding to the HTTP status code
+ returned. For example, the ID for a response returning a 404 status code would
+ be "not_found.". Required.
+ "message": "str", # A message providing additional information about the
+ error, including details to help resolve it when possible. Required.
+ "request_id": "str" # Optional. Optionally, some endpoints may include a
+ request ID that should be provided when reporting bugs or opening support
+ tickets to help identify the issue.
+ }
+ """
+
+ @distributed_trace_async
+ async def update_model_router(
+ self, uuid: str, body: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any
+ ) -> JSON:
+ # pylint: disable=line-too-long
+ """Update a Model Router.
+
+ To update a model router, send a PUT request to ``/v2/gen-ai/models/routers/{uuid}``.
+
+ :param uuid: Model router id. Required.
+ :type uuid: str
+ :param body: Is either a JSON type or a IO[bytes] type. Default value is None.
+ :type body: JSON or IO[bytes]
+ :return: JSON object
+ :rtype: JSON
+ :raises ~azure.core.exceptions.HttpResponseError:
+
+ Example:
+ .. code-block:: python
+
+ # JSON input template you can fill out and use as your body input.
+ body = {
+ "description": "str", # Optional. Model router description.
+ "fallback_models": [
+ "str" # Optional. Fallback models.
+ ],
+ "name": "str", # Optional. Model router name.
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", # Optional. Short task
+ description.
+ "name": "str" # Optional. Task name.
+ },
+ "models": [
+ "str" # Optional. Models assigned to the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional. One of: none, cheapest,
+ fastest. Known values are: "none", "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ],
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ],
+ "uuid": "str" # Optional. Model router id.
+ }
+
+ # response body for status code(s): 200
+ response == {
+ "model_router": {
+ "config": {
+ "fallback_models": [
+ "str" # Optional. Router-level fallback models.
+ ],
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", # Optional.
+ Short task description.
+ "name": "str" # Optional. Task name.
+ },
+ "models": [
+ "str" # Optional. Models assigned to
+ the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional. One of:
+ none, cheapest, fastest. Known values are: "none",
+ "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ]
+ },
+ "created_at": "2020-02-20 00:00:00", # Optional. Creation date /
+ time.
+ "description": "str", # Optional. Description.
+ "name": "str", # Optional. Name of the model router.
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ],
+ "updated_at": "2020-02-20 00:00:00", # Optional. Last modified.
+ "uuid": "str" # Optional. Unique id.
+ }
+ }
+ # response body for status code(s): 404
+ response == {
+ "id": "str", # A short identifier corresponding to the HTTP status code
+ returned. For example, the ID for a response returning a 404 status code would
+ be "not_found.". Required.
+ "message": "str", # A message providing additional information about the
+ error, including details to help resolve it when possible. Required.
+ "request_id": "str" # Optional. Optionally, some endpoints may include a
+ request ID that should be provided when reporting bugs or opening support
+ tickets to help identify the issue.
+ }
+ """
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ 401: cast(
+ Type[HttpResponseError],
+ lambda response: ClientAuthenticationError(response=response),
+ ),
+ 429: HttpResponseError,
+ 500: HttpResponseError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
+ _params = kwargs.pop("params", {}) or {}
+
+ content_type: Optional[str] = kwargs.pop(
+ "content_type", _headers.pop("Content-Type", None)
+ )
+ cls: ClsType[JSON] = kwargs.pop("cls", None)
+
+ content_type = content_type or "application/json"
+ _json = None
+ _content = None
+ if isinstance(body, (IOBase, bytes)):
+ _content = body
+ else:
+ if body is not None:
+ _json = body
+ else:
+ _json = None
+
+ _request = build_genai_update_model_router_request(
+ uuid=uuid,
+ content_type=content_type,
+ json=_json,
+ content=_content,
+ headers=_headers,
+ params=_params,
+ )
+ _request.url = self._client.format_url(_request.url)
+
+ _stream = False
+ pipeline_response: PipelineResponse = (
+ await self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 404]:
+ if _stream:
+ await response.read() # Load the body in memory and close the socket
+ map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore
+ raise HttpResponseError(response=response)
+
+ response_headers = {}
+ if response.status_code == 200:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if response.status_code == 404:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if cls:
+ return cls(pipeline_response, cast(JSON, deserialized), response_headers) # type: ignore
+
+ return cast(JSON, deserialized) # type: ignore
+
+ @distributed_trace_async
+ async def delete_model_router(self, uuid: str, **kwargs: Any) -> JSON:
+ # pylint: disable=line-too-long
+ """Delete a Model Router.
+
+ To delete a model router, send a DELETE request to ``/v2/gen-ai/models/routers/{uuid}``.
+
+ :param uuid: Model router id. Required.
+ :type uuid: str
+ :return: JSON object
+ :rtype: JSON
+ :raises ~azure.core.exceptions.HttpResponseError:
+
+ Example:
+ .. code-block:: python
+
+ # response body for status code(s): 200
+ response == {
+ "uuid": "str" # Optional. The id of the deleted model router.
+ }
+ # response body for status code(s): 404
+ response == {
+ "id": "str", # A short identifier corresponding to the HTTP status code
+ returned. For example, the ID for a response returning a 404 status code would
+ be "not_found.". Required.
+ "message": "str", # A message providing additional information about the
+ error, including details to help resolve it when possible. Required.
+ "request_id": "str" # Optional. Optionally, some endpoints may include a
+ request ID that should be provided when reporting bugs or opening support
+ tickets to help identify the issue.
+ }
+ """
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ 401: cast(
+ Type[HttpResponseError],
+ lambda response: ClientAuthenticationError(response=response),
+ ),
+ 429: HttpResponseError,
+ 500: HttpResponseError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = kwargs.pop("params", {}) or {}
+
+ cls: ClsType[JSON] = kwargs.pop("cls", None)
+
+ _request = build_genai_delete_model_router_request(
+ uuid=uuid,
+ headers=_headers,
+ params=_params,
+ )
+ _request.url = self._client.format_url(_request.url)
+
+ _stream = False
+ pipeline_response: PipelineResponse = (
+ await self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 404]:
+ if _stream:
+ await response.read() # Load the body in memory and close the socket
+ map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore
+ raise HttpResponseError(response=response)
+
+ response_headers = {}
+ if response.status_code == 200:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if response.status_code == 404:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if cls:
+ return cls(pipeline_response, cast(JSON, deserialized), response_headers) # type: ignore
+
+ return cast(JSON, deserialized) # type: ignore
+
@overload
async def create_oauth2_dropbox_tokens(
self,
diff --git a/src/pydo/operations/_operations.py b/src/pydo/operations/_operations.py
index 0c9cd483..36a93601 100644
--- a/src/pydo/operations/_operations.py
+++ b/src/pydo/operations/_operations.py
@@ -14264,6 +14264,166 @@ def build_genai_regenerate_model_api_key_request( # pylint: disable=name-too-lo
return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs)
+def build_genai_list_model_routers_request(
+ *, page: Optional[int] = None, per_page: Optional[int] = None, **kwargs: Any
+) -> HttpRequest:
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ accept = _headers.pop("Accept", "application/json")
+
+ # Construct URL
+ _url = "/v2/gen-ai/models/routers"
+
+ # Construct parameters
+ if page is not None:
+ _params["page"] = _SERIALIZER.query("page", page, "int")
+ if per_page is not None:
+ _params["per_page"] = _SERIALIZER.query("per_page", per_page, "int")
+
+ # Construct headers
+ _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
+
+ return HttpRequest(
+ method="GET", url=_url, params=_params, headers=_headers, **kwargs
+ )
+
+
+def build_genai_create_model_router_request(**kwargs: Any) -> HttpRequest:
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
+
+ content_type: Optional[str] = kwargs.pop(
+ "content_type", _headers.pop("Content-Type", None)
+ )
+ accept = _headers.pop("Accept", "application/json")
+
+ # Construct URL
+ _url = "/v2/gen-ai/models/routers"
+
+ # Construct headers
+ if content_type is not None:
+ _headers["Content-Type"] = _SERIALIZER.header(
+ "content_type", content_type, "str"
+ )
+ _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
+
+ return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)
+
+
+def build_genai_list_model_router_presets_request( # pylint: disable=name-too-long
+ *, page: Optional[int] = None, per_page: Optional[int] = None, **kwargs: Any
+) -> HttpRequest:
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ accept = _headers.pop("Accept", "application/json")
+
+ # Construct URL
+ _url = "/v2/gen-ai/models/routers/presets"
+
+ # Construct parameters
+ if page is not None:
+ _params["page"] = _SERIALIZER.query("page", page, "int")
+ if per_page is not None:
+ _params["per_page"] = _SERIALIZER.query("per_page", per_page, "int")
+
+ # Construct headers
+ _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
+
+ return HttpRequest(
+ method="GET", url=_url, params=_params, headers=_headers, **kwargs
+ )
+
+
+def build_genai_list_model_router_task_presets_request( # pylint: disable=name-too-long
+ *, page: Optional[int] = None, per_page: Optional[int] = None, **kwargs: Any
+) -> HttpRequest:
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
+ _params = case_insensitive_dict(kwargs.pop("params", {}) or {})
+
+ accept = _headers.pop("Accept", "application/json")
+
+ # Construct URL
+ _url = "/v2/gen-ai/models/routers/tasks/presets"
+
+ # Construct parameters
+ if page is not None:
+ _params["page"] = _SERIALIZER.query("page", page, "int")
+ if per_page is not None:
+ _params["per_page"] = _SERIALIZER.query("per_page", per_page, "int")
+
+ # Construct headers
+ _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
+
+ return HttpRequest(
+ method="GET", url=_url, params=_params, headers=_headers, **kwargs
+ )
+
+
+def build_genai_get_model_router_request(uuid: str, **kwargs: Any) -> HttpRequest:
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
+
+ accept = _headers.pop("Accept", "application/json")
+
+ # Construct URL
+ _url = "/v2/gen-ai/models/routers/{uuid}"
+ path_format_arguments = {
+ "uuid": _SERIALIZER.url("uuid", uuid, "str"),
+ }
+
+ _url: str = _url.format(**path_format_arguments) # type: ignore
+
+ # Construct headers
+ _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
+
+ return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)
+
+
+def build_genai_update_model_router_request(uuid: str, **kwargs: Any) -> HttpRequest:
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
+
+ content_type: Optional[str] = kwargs.pop(
+ "content_type", _headers.pop("Content-Type", None)
+ )
+ accept = _headers.pop("Accept", "application/json")
+
+ # Construct URL
+ _url = "/v2/gen-ai/models/routers/{uuid}"
+ path_format_arguments = {
+ "uuid": _SERIALIZER.url("uuid", uuid, "str"),
+ }
+
+ _url: str = _url.format(**path_format_arguments) # type: ignore
+
+ # Construct headers
+ if content_type is not None:
+ _headers["Content-Type"] = _SERIALIZER.header(
+ "content_type", content_type, "str"
+ )
+ _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
+
+ return HttpRequest(method="PUT", url=_url, headers=_headers, **kwargs)
+
+
+def build_genai_delete_model_router_request(uuid: str, **kwargs: Any) -> HttpRequest:
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
+
+ accept = _headers.pop("Accept", "application/json")
+
+ # Construct URL
+ _url = "/v2/gen-ai/models/routers/{uuid}"
+ path_format_arguments = {
+ "uuid": _SERIALIZER.url("uuid", uuid, "str"),
+ }
+
+ _url: str = _url.format(**path_format_arguments) # type: ignore
+
+ # Construct headers
+ _headers["Accept"] = _SERIALIZER.header("accept", accept, "str")
+
+ return HttpRequest(method="DELETE", url=_url, headers=_headers, **kwargs)
+
+
def build_genai_create_oauth2_dropbox_tokens_request(
**kwargs: Any,
) -> HttpRequest: # pylint: disable=name-too-long
@@ -18294,8 +18454,9 @@ def list(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -18593,21 +18754,6 @@ def list(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -18809,17 +18955,24 @@ def list(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -19387,7 +19540,9 @@ def list(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -19397,7 +19552,7 @@ def list(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -19830,8 +19985,10 @@ def list(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0,
# Optional. Threshold value for alert.
"window":
@@ -20142,21 +20299,6 @@ def list(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count":
- 0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional. Default value is
- 80. The average target CPU utilization for
- the component.
- }
- },
- "min_instance_count":
- 0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", #
Optional. The name of the branch to use.
@@ -20370,17 +20512,24 @@ def list(
"autoscaling": {
"max_instance_count":
0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
+ this component. Maximum 250. Consider using a larger
+ instance size if your application requires more than
+ 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional. Default value is
- 80. The average target CPU utilization for
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95
+ target request duration in milliseconds for
the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target
+ number of requests per second per instance
+ for the component.
}
},
"min_instance_count":
0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
+ this component.
},
"bitbucket": {
"branch": "str", #
@@ -20976,7 +21125,9 @@ def list(
"autoscaling": {
"max_instance_count":
0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
+ this component. Maximum 250. Consider using a larger
+ instance size if your application requires more than
+ 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional. Default value is
@@ -20986,7 +21137,7 @@ def list(
},
"min_instance_count":
0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
+ this component.
},
"bitbucket": {
"branch": "str", #
@@ -21523,8 +21674,10 @@ def list(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0,
# Optional. Threshold value for alert.
"window":
@@ -21835,21 +21988,6 @@ def list(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count":
- 0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional. Default value is
- 80. The average target CPU utilization for
- the component.
- }
- },
- "min_instance_count":
- 0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", #
Optional. The name of the branch to use.
@@ -22063,17 +22201,24 @@ def list(
"autoscaling": {
"max_instance_count":
0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
+ this component. Maximum 250. Consider using a larger
+ instance size if your application requires more than
+ 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional. Default value is
- 80. The average target CPU utilization for
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95
+ target request duration in milliseconds for
the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target
+ number of requests per second per instance
+ for the component.
}
},
"min_instance_count":
0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
+ this component.
},
"bitbucket": {
"branch": "str", #
@@ -22669,7 +22814,9 @@ def list(
"autoscaling": {
"max_instance_count":
0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
+ this component. Maximum 250. Consider using a larger
+ instance size if your application requires more than
+ 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional. Default value is
@@ -22679,7 +22826,7 @@ def list(
},
"min_instance_count":
0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
+ this component.
},
"bitbucket": {
"branch": "str", #
@@ -23154,8 +23301,10 @@ def list(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0,
# Optional. Threshold value for alert.
"window":
@@ -23466,21 +23615,6 @@ def list(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count":
- 0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional. Default value is
- 80. The average target CPU utilization for
- the component.
- }
- },
- "min_instance_count":
- 0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", #
Optional. The name of the branch to use.
@@ -23694,17 +23828,24 @@ def list(
"autoscaling": {
"max_instance_count":
0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
+ this component. Maximum 250. Consider using a larger
+ instance size if your application requires more than
+ 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional. Default value is
- 80. The average target CPU utilization for
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95
+ target request duration in milliseconds for
the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target
+ number of requests per second per instance
+ for the component.
}
},
"min_instance_count":
0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
+ this component.
},
"bitbucket": {
"branch": "str", #
@@ -24300,7 +24441,9 @@ def list(
"autoscaling": {
"max_instance_count":
0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
+ this component. Maximum 250. Consider using a larger
+ instance size if your application requires more than
+ 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional. Default value is
@@ -24310,7 +24453,7 @@ def list(
},
"min_instance_count":
0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
+ this component.
},
"bitbucket": {
"branch": "str", #
@@ -24776,8 +24919,10 @@ def list(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0,
# Optional. Threshold value for alert.
"window":
@@ -25088,21 +25233,6 @@ def list(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count":
- 0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional. Default value is
- 80. The average target CPU utilization for
- the component.
- }
- },
- "min_instance_count":
- 0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", #
Optional. The name of the branch to use.
@@ -25316,17 +25446,24 @@ def list(
"autoscaling": {
"max_instance_count":
0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
+ this component. Maximum 250. Consider using a larger
+ instance size if your application requires more than
+ 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional. Default value is
- 80. The average target CPU utilization for
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95
+ target request duration in milliseconds for
the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target
+ number of requests per second per instance
+ for the component.
}
},
"min_instance_count":
0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
+ this component.
},
"bitbucket": {
"branch": "str", #
@@ -25922,7 +26059,9 @@ def list(
"autoscaling": {
"max_instance_count":
0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
+ this component. Maximum 250. Consider using a larger
+ instance size if your application requires more than
+ 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional. Default value is
@@ -25932,7 +26071,7 @@ def list(
},
"min_instance_count":
0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
+ this component.
},
"bitbucket": {
"branch": "str", #
@@ -26393,7 +26532,8 @@ def create(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
- and "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold
value for alert.
"window": "UNSPECIFIED_WINDOW" #
@@ -26664,21 +26804,6 @@ def create(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
- for the component.
- }
- },
- "min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The name of the
branch to use.
@@ -26859,18 +26984,23 @@ def create(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
+ "request_duration": {
+ "p95_milliseconds": 0 #
+ Optional. The p95 target request duration in milliseconds
for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second per
+ instance for the component.
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -27377,8 +27507,9 @@ def create(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional.
@@ -27387,8 +27518,7 @@ def create(
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -27677,8 +27807,8 @@ def create(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -27963,21 +28093,6 @@ def create(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -28168,18 +28283,23 @@ def create(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -28711,8 +28831,9 @@ def create(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -28721,8 +28842,7 @@ def create(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -29130,8 +29250,9 @@ def create(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -29429,21 +29550,6 @@ def create(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -29645,17 +29751,24 @@ def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -30223,7 +30336,9 @@ def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -30233,7 +30348,7 @@ def create(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -30744,8 +30859,9 @@ def create(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -31043,21 +31159,6 @@ def create(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -31259,17 +31360,24 @@ def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -31837,7 +31945,9 @@ def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -31847,7 +31957,7 @@ def create(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -32297,8 +32407,9 @@ def create(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -32596,21 +32707,6 @@ def create(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -32812,17 +32908,24 @@ def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -33390,7 +33493,9 @@ def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -33400,7 +33505,7 @@ def create(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -33842,8 +33947,9 @@ def create(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -34141,21 +34247,6 @@ def create(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -34357,17 +34448,24 @@ def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -34935,7 +35033,9 @@ def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -34945,7 +35045,7 @@ def create(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -35332,8 +35432,8 @@ def create(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -35618,21 +35718,6 @@ def create(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -35823,18 +35908,23 @@ def create(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -36366,8 +36456,9 @@ def create(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -36376,8 +36467,7 @@ def create(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -36785,8 +36875,9 @@ def create(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -37084,21 +37175,6 @@ def create(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -37300,17 +37376,24 @@ def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -37878,7 +37961,9 @@ def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -37888,7 +37973,7 @@ def create(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -38399,8 +38484,9 @@ def create(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -38698,21 +38784,6 @@ def create(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -38914,17 +38985,24 @@ def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -39492,7 +39570,9 @@ def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -39502,7 +39582,7 @@ def create(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -39952,8 +40032,9 @@ def create(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -40251,21 +40332,6 @@ def create(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -40467,17 +40533,24 @@ def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -41045,7 +41118,9 @@ def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -41055,7 +41130,7 @@ def create(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -41497,8 +41572,9 @@ def create(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -41796,21 +41872,6 @@ def create(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -42012,17 +42073,24 @@ def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -42590,7 +42658,9 @@ def create(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -42600,7 +42670,7 @@ def create(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -42977,7 +43047,8 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
- and "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold
value for alert.
"window": "UNSPECIFIED_WINDOW" #
@@ -43248,21 +43319,6 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
- for the component.
- }
- },
- "min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The name of the
branch to use.
@@ -43443,18 +43499,23 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
+ "request_duration": {
+ "p95_milliseconds": 0 #
+ Optional. The p95 target request duration in milliseconds
for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second per
+ instance for the component.
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -43961,8 +44022,9 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional.
@@ -43971,8 +44033,7 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -44261,8 +44322,8 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -44547,21 +44608,6 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -44752,18 +44798,23 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -45295,8 +45346,9 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -45305,8 +45357,7 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -45714,8 +45765,9 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -46013,21 +46065,6 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -46229,17 +46266,24 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -46807,7 +46851,9 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -46817,7 +46863,7 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -47328,8 +47374,9 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -47627,21 +47674,6 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -47843,17 +47875,24 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -48421,7 +48460,9 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -48431,7 +48472,7 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -48881,8 +48922,9 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -49180,21 +49222,6 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -49396,17 +49423,24 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -49974,7 +50008,9 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -49984,7 +50020,7 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -50426,8 +50462,9 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -50725,21 +50762,6 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -50941,17 +50963,24 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -51519,7 +51548,9 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -51529,7 +51560,7 @@ def create(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -52098,8 +52129,8 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -52384,21 +52415,6 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -52589,18 +52605,23 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -53132,8 +53153,9 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -53142,8 +53164,7 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -53551,8 +53572,9 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -53850,21 +53872,6 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -54066,17 +54073,24 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -54644,7 +54658,9 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -54654,7 +54670,7 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -55165,8 +55181,9 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -55464,21 +55481,6 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -55680,17 +55682,24 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -56258,7 +56267,9 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -56268,7 +56279,7 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -56718,8 +56729,9 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -57017,21 +57029,6 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -57233,17 +57230,24 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -57811,7 +57815,9 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -57821,7 +57827,7 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -58263,8 +58269,9 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -58562,21 +58569,6 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -58778,17 +58770,24 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -59356,7 +59355,9 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -59366,7 +59367,7 @@ def get(self, id: str, *, name: Optional[str] = None, **kwargs: Any) -> JSON:
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -59844,7 +59845,8 @@ def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
- and "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold
value for alert.
"window": "UNSPECIFIED_WINDOW" #
@@ -60115,21 +60117,6 @@ def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
- for the component.
- }
- },
- "min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The name of the
branch to use.
@@ -60310,18 +60297,23 @@ def update(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
+ "request_duration": {
+ "p95_milliseconds": 0 #
+ Optional. The p95 target request duration in milliseconds
for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second per
+ instance for the component.
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -60828,8 +60820,9 @@ def update(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional.
@@ -60838,8 +60831,7 @@ def update(
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -61130,8 +61122,8 @@ def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -61416,21 +61408,6 @@ def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -61621,18 +61598,23 @@ def update(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -62164,8 +62146,9 @@ def update(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -62174,8 +62157,7 @@ def update(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -62583,8 +62565,9 @@ def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -62882,21 +62865,6 @@ def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -63098,17 +63066,24 @@ def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -63676,7 +63651,9 @@ def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -63686,7 +63663,7 @@ def update(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -64197,8 +64174,9 @@ def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -64496,21 +64474,6 @@ def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -64712,17 +64675,24 @@ def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -65290,7 +65260,9 @@ def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -65300,7 +65272,7 @@ def update(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -65750,8 +65722,9 @@ def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -66049,21 +66022,6 @@ def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -66265,17 +66223,24 @@ def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -66843,7 +66808,9 @@ def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -66853,7 +66820,7 @@ def update(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -67295,8 +67262,9 @@ def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -67594,21 +67562,6 @@ def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -67810,17 +67763,24 @@ def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -68388,7 +68348,9 @@ def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -68398,7 +68360,7 @@ def update(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -68803,8 +68765,8 @@ def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -69089,21 +69051,6 @@ def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -69294,18 +69241,23 @@ def update(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -69837,8 +69789,9 @@ def update(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -69847,8 +69800,7 @@ def update(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -70256,8 +70208,9 @@ def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -70555,21 +70508,6 @@ def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -70771,17 +70709,24 @@ def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -71349,7 +71294,9 @@ def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -71359,7 +71306,7 @@ def update(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -71870,8 +71817,9 @@ def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -72169,21 +72117,6 @@ def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -72385,17 +72318,24 @@ def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -72963,7 +72903,9 @@ def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -72973,7 +72915,7 @@ def update(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -73423,8 +73365,9 @@ def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -73722,21 +73665,6 @@ def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -73938,17 +73866,24 @@ def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -74516,7 +74451,9 @@ def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -74526,7 +74463,7 @@ def update(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -74968,8 +74905,9 @@ def update(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -75267,21 +75205,6 @@ def update(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -75483,17 +75406,24 @@ def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -76061,7 +75991,9 @@ def update(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -76071,7 +76003,7 @@ def update(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -76461,7 +76393,8 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
- and "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold
value for alert.
"window": "UNSPECIFIED_WINDOW" #
@@ -76732,21 +76665,6 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
- for the component.
- }
- },
- "min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The name of the
branch to use.
@@ -76927,18 +76845,23 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
+ "request_duration": {
+ "p95_milliseconds": 0 #
+ Optional. The p95 target request duration in milliseconds
for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second per
+ instance for the component.
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -77445,8 +77368,9 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional.
@@ -77455,8 +77379,7 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -77747,8 +77670,8 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -78033,21 +77956,6 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -78238,18 +78146,23 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -78781,8 +78694,9 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -78791,8 +78705,7 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -79200,8 +79113,9 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -79499,21 +79413,6 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -79715,17 +79614,24 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -80293,7 +80199,9 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -80303,7 +80211,7 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -80814,8 +80722,9 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -81113,21 +81022,6 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -81329,17 +81223,24 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -81907,7 +81808,9 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -81917,7 +81820,7 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -82367,8 +82270,9 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -82666,21 +82570,6 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -82882,17 +82771,24 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -83460,7 +83356,9 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -83470,7 +83368,7 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -83912,8 +83810,9 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -84211,21 +84110,6 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -84427,17 +84311,24 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -85005,7 +84896,9 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -85015,7 +84908,7 @@ def update(self, id: str, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON:
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -85620,8 +85513,8 @@ def restart(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -85906,21 +85799,6 @@ def restart(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -86111,18 +85989,23 @@ def restart(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -86654,8 +86537,9 @@ def restart(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -86664,8 +86548,7 @@ def restart(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -87124,8 +87007,8 @@ def restart(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -87410,21 +87293,6 @@ def restart(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -87615,18 +87483,23 @@ def restart(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -88158,8 +88031,9 @@ def restart(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -88168,8 +88042,7 @@ def restart(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -88628,8 +88501,8 @@ def restart(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -88914,21 +88787,6 @@ def restart(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -89119,18 +88977,23 @@ def restart(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -89662,8 +89525,9 @@ def restart(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -89672,8 +89536,7 @@ def restart(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -90657,8 +90520,9 @@ def list_deployments(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -90956,21 +90820,6 @@ def list_deployments(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -91172,17 +91021,24 @@ def list_deployments(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -91750,7 +91606,9 @@ def list_deployments(
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -91760,7 +91618,7 @@ def list_deployments(
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -92324,8 +92182,8 @@ def create_deployment(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -92610,21 +92468,6 @@ def create_deployment(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -92815,18 +92658,23 @@ def create_deployment(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -93358,8 +93206,9 @@ def create_deployment(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -93368,8 +93217,7 @@ def create_deployment(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -93829,8 +93677,8 @@ def create_deployment(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -94115,21 +93963,6 @@ def create_deployment(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -94320,18 +94153,23 @@ def create_deployment(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -94863,8 +94701,9 @@ def create_deployment(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -94873,8 +94712,7 @@ def create_deployment(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -95332,8 +95170,8 @@ def create_deployment(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -95618,21 +95456,6 @@ def create_deployment(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -95823,18 +95646,23 @@ def create_deployment(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -96366,8 +96194,9 @@ def create_deployment(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -96376,8 +96205,7 @@ def create_deployment(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -96917,8 +96745,8 @@ def get_deployment(self, app_id: str, deployment_id: str, **kwargs: Any) -> JSON
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -97203,21 +97031,6 @@ def get_deployment(self, app_id: str, deployment_id: str, **kwargs: Any) -> JSON
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -97408,18 +97221,23 @@ def get_deployment(self, app_id: str, deployment_id: str, **kwargs: Any) -> JSON
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -97951,8 +97769,9 @@ def get_deployment(self, app_id: str, deployment_id: str, **kwargs: Any) -> JSON
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -97961,8 +97780,7 @@ def get_deployment(self, app_id: str, deployment_id: str, **kwargs: Any) -> JSON
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -98489,8 +98307,8 @@ def cancel_deployment(self, app_id: str, deployment_id: str, **kwargs: Any) -> J
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -98775,21 +98593,6 @@ def cancel_deployment(self, app_id: str, deployment_id: str, **kwargs: Any) -> J
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -98980,18 +98783,23 @@ def cancel_deployment(self, app_id: str, deployment_id: str, **kwargs: Any) -> J
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -99523,8 +99331,9 @@ def cancel_deployment(self, app_id: str, deployment_id: str, **kwargs: Any) -> J
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -99533,8 +99342,7 @@ def cancel_deployment(self, app_id: str, deployment_id: str, **kwargs: Any) -> J
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -101347,8 +101155,10 @@ def list_events(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0,
# Optional. Threshold value for alert.
"window":
@@ -101658,21 +101468,238 @@ def list_events(
]
},
"jobs": [
+ {
+ "bitbucket": {
+ "branch": "str", #
+ Optional. The name of the branch to use.
+ "deploy_on_push":
+ bool, # Optional. Whether to automatically deploy
+ new commits made to the repo.
+ "repo": "str" #
+ Optional. The name of the repo in the format
+ owner/repo. Example: ``digitalocean/sample-golang``.
+ },
+ "build_command": "str", #
+ Optional. An optional build command to run while building
+ this component from source.
+ "dockerfile_path": "str", #
+ Optional. The path to the Dockerfile relative to the root
+ of the repo. If set, it will be used to build this
+ component. Otherwise, App Platform will attempt to build
+ it using buildpacks.
+ "environment_slug": "str", #
+ Optional. An environment slug describing the type of this
+ app. For a full list, please refer to `the product
+ documentation
+ `_.
+ "envs": [
+ {
+ "key": "str",
+ # The variable name. Required.
+ "scope":
+ "RUN_AND_BUILD_TIME", # Optional. Default value
+ is "RUN_AND_BUILD_TIME". * RUN_TIME: Made
+ available only at run-time * BUILD_TIME: Made
+ available only at build-time *
+ RUN_AND_BUILD_TIME: Made available at both build
+ and run-time. Known values are: "UNSET",
+ "RUN_TIME", "BUILD_TIME", and
+ "RUN_AND_BUILD_TIME".
+ "type":
+ "GENERAL", # Optional. Default value is
+ "GENERAL". * GENERAL: A plain-text environment
+ variable * SECRET: A secret encrypted environment
+ variable. Known values are: "GENERAL" and
+ "SECRET".
+ "value":
+ "str" # Optional. The value. If the type is
+ ``SECRET``"" , the value will be encrypted on
+ first submission. On following submissions, the
+ encrypted value should be used.
+ }
+ ],
+ "git": {
+ "branch": "str", #
+ Optional. The name of the branch to use.
+ "repo_clone_url":
+ "str" # Optional. The clone URL of the repo.
+ Example:
+ ``https://github.com/digitalocean/sample-golang.git``.
+ },
+ "github": {
+ "branch": "str", #
+ Optional. The name of the branch to use.
+ "deploy_on_push":
+ bool, # Optional. Whether to automatically deploy
+ new commits made to the repo.
+ "repo": "str" #
+ Optional. The name of the repo in the format
+ owner/repo. Example: ``digitalocean/sample-golang``.
+ },
+ "gitlab": {
+ "branch": "str", #
+ Optional. The name of the branch to use.
+ "deploy_on_push":
+ bool, # Optional. Whether to automatically deploy
+ new commits made to the repo.
+ "repo": "str" #
+ Optional. The name of the repo in the format
+ owner/repo. Example: ``digitalocean/sample-golang``.
+ },
+ "image": {
+ "deploy_on_push": {
+ "enabled":
+ bool # Optional. Whether to automatically deploy
+ new images. Can only be used for images hosted in
+ DOCR and can only be used with an image tag, not
+ a specific digest.
+ },
+ "digest": "str", #
+ Optional. The image digest. Cannot be specified if
+ tag is provided.
+ "registry": "str", #
+ Optional. The registry name. Must be left empty for
+ the ``DOCR`` registry type.
+ "registry_credentials": "str", # Optional. The
+ credentials to be able to pull the image. The value
+ will be encrypted on first submission. On following
+ submissions, the encrypted value should be used. *
+ "$username:$access_token" for registries of type
+ ``DOCKER_HUB``. * "$username:$access_token" for
+ registries of type ``GHCR``.
+ "registry_type":
+ "str", # Optional. * DOCKER_HUB: The DockerHub
+ container registry type. * DOCR: The DigitalOcean
+ container registry type. * GHCR: The Github container
+ registry type. Known values are: "DOCKER_HUB",
+ "DOCR", and "GHCR".
+ "repository": "str",
+ # Optional. The repository name.
+ "tag": "latest" #
+ Optional. Default value is "latest". The repository
+ tag. Defaults to ``latest`` if not provided and no
+ digest is provided. Cannot be specified if digest is
+ provided.
+ },
+ "instance_count": 1, #
+ Optional. Default value is 1. The amount of instances
+ that this component should be scaled to. Default: 1. Must
+ not be set if autoscaling is used.
+ "instance_size_slug": {},
+ "kind": "UNSPECIFIED", #
+ Optional. Default value is "UNSPECIFIED". * UNSPECIFIED:
+ Default job type, will auto-complete to POST_DEPLOY kind.
+ * PRE_DEPLOY: Indicates a job that runs before an app
+ deployment. * POST_DEPLOY: Indicates a job that runs
+ after an app deployment. * FAILED_DEPLOY: Indicates a job
+ that runs after a component fails to deploy. Known values
+ are: "UNSPECIFIED", "PRE_DEPLOY", "POST_DEPLOY", and
+ "FAILED_DEPLOY".
+ "log_destinations": [
+ {
+ "name":
+ "str", # Required.
+ "datadog": {
+ "api_key": "str", # Datadog API key.
+ Required.
+ "endpoint": "str" # Optional. Datadog HTTP
+ log intake endpoint.
+ },
+ "logtail": {
+ "token": "str" # Optional. Logtail token.
+ },
+ "open_search": {
+ "basic_auth": {
+ "password": "str", # Optional. Password
+ for user defined in User. Is required
+ when ``endpoint`` is set. Cannot be set
+ if using a DigitalOcean DBaaS OpenSearch
+ cluster.
+ "user": "str" # Optional. Username to
+ authenticate with. Only required when
+ ``endpoint`` is set. Defaults to
+ ``doadmin`` when ``cluster_name`` is set.
+ },
+ "cluster_name": "str", # Optional. The name
+ of a DigitalOcean DBaaS OpenSearch cluster to
+ use as a log forwarding destination. Cannot
+ be specified if ``endpoint`` is also
+ specified.
+ "endpoint": "str", # Optional. OpenSearch
+ API Endpoint. Only HTTPS is supported.
+ Format:
+ https://:code:``::code:``. Cannot
+ be specified if ``cluster_name`` is also
+ specified.
+ "index_name": "logs" # Optional. Default
+ value is "logs". The index name to use for
+ the logs. If not set, the default index name
+ is "logs".
+ },
+ "papertrail":
+ {
+ "endpoint": "str" # Papertrail syslog
+ endpoint. Required.
+ }
+ }
+ ],
+ "name": "str", # Optional.
+ The name. Must be unique across all components within the
+ same app.
+ "run_command": "str", #
+ Optional. An optional run command to override the
+ component's default.
+ "source_dir": "str", #
+ Optional. An optional path to the working directory to
+ use for the build. For Dockerfile builds, this will be
+ used as the build context. Must be relative to the root
+ of the repo.
+ "termination": {
+ "grace_period_seconds": 0 # Optional. The number of
+ seconds to wait between sending a TERM signal to a
+ container and issuing a KILL which causes immediate
+ shutdown. (Default 120).
+ }
+ }
+ ],
+ "maintenance": {
+ "archive": bool, # Optional.
+ Indicates whether the app should be archived. Setting this to
+ true implies that enabled is set to true.
+ "enabled": bool, # Optional.
+ Indicates whether maintenance mode should be enabled for the
+ app.
+ "offline_page_url": "str" #
+ Optional. A custom offline page to display when maintenance
+ mode is enabled or the app is archived.
+ },
+ "region": "str", # Optional. The slug form
+ of the geographical origin of the app. Default: ``nearest
+ available``. Known values are: "atl", "nyc", "sfo", "tor", "ams",
+ "fra", "lon", "blr", "sgp", and "syd".
+ "services": [
{
"autoscaling": {
"max_instance_count":
0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
+ this component. Maximum 250. Consider using a larger
+ instance size if your application requires more than
+ 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional. Default value is
- 80. The average target CPU utilization for
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95
+ target request duration in milliseconds for
the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target
+ number of requests per second per instance
+ for the component.
}
},
"min_instance_count":
0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
+ this component.
},
"bitbucket": {
"branch": "str", #
@@ -101687,277 +101714,52 @@ def list_events(
"build_command": "str", #
Optional. An optional build command to run while building
this component from source.
- "dockerfile_path": "str", #
- Optional. The path to the Dockerfile relative to the root
- of the repo. If set, it will be used to build this
- component. Otherwise, App Platform will attempt to build
- it using buildpacks.
- "environment_slug": "str", #
- Optional. An environment slug describing the type of this
- app. For a full list, please refer to `the product
- documentation
- `_.
- "envs": [
- {
- "key": "str",
- # The variable name. Required.
- "scope":
- "RUN_AND_BUILD_TIME", # Optional. Default value
- is "RUN_AND_BUILD_TIME". * RUN_TIME: Made
- available only at run-time * BUILD_TIME: Made
- available only at build-time *
- RUN_AND_BUILD_TIME: Made available at both build
- and run-time. Known values are: "UNSET",
- "RUN_TIME", "BUILD_TIME", and
- "RUN_AND_BUILD_TIME".
- "type":
- "GENERAL", # Optional. Default value is
- "GENERAL". * GENERAL: A plain-text environment
- variable * SECRET: A secret encrypted environment
- variable. Known values are: "GENERAL" and
- "SECRET".
- "value":
- "str" # Optional. The value. If the type is
- ``SECRET``"" , the value will be encrypted on
- first submission. On following submissions, the
- encrypted value should be used.
- }
- ],
- "git": {
- "branch": "str", #
- Optional. The name of the branch to use.
- "repo_clone_url":
- "str" # Optional. The clone URL of the repo.
- Example:
- ``https://github.com/digitalocean/sample-golang.git``.
- },
- "github": {
- "branch": "str", #
- Optional. The name of the branch to use.
- "deploy_on_push":
- bool, # Optional. Whether to automatically deploy
- new commits made to the repo.
- "repo": "str" #
- Optional. The name of the repo in the format
- owner/repo. Example: ``digitalocean/sample-golang``.
- },
- "gitlab": {
- "branch": "str", #
- Optional. The name of the branch to use.
- "deploy_on_push":
- bool, # Optional. Whether to automatically deploy
- new commits made to the repo.
- "repo": "str" #
- Optional. The name of the repo in the format
- owner/repo. Example: ``digitalocean/sample-golang``.
- },
- "image": {
- "deploy_on_push": {
- "enabled":
- bool # Optional. Whether to automatically deploy
- new images. Can only be used for images hosted in
- DOCR and can only be used with an image tag, not
- a specific digest.
- },
- "digest": "str", #
- Optional. The image digest. Cannot be specified if
- tag is provided.
- "registry": "str", #
- Optional. The registry name. Must be left empty for
- the ``DOCR`` registry type.
- "registry_credentials": "str", # Optional. The
- credentials to be able to pull the image. The value
- will be encrypted on first submission. On following
- submissions, the encrypted value should be used. *
- "$username:$access_token" for registries of type
- ``DOCKER_HUB``. * "$username:$access_token" for
- registries of type ``GHCR``.
- "registry_type":
- "str", # Optional. * DOCKER_HUB: The DockerHub
- container registry type. * DOCR: The DigitalOcean
- container registry type. * GHCR: The Github container
- registry type. Known values are: "DOCKER_HUB",
- "DOCR", and "GHCR".
- "repository": "str",
- # Optional. The repository name.
- "tag": "latest" #
- Optional. Default value is "latest". The repository
- tag. Defaults to ``latest`` if not provided and no
- digest is provided. Cannot be specified if digest is
- provided.
- },
- "instance_count": 1, #
- Optional. Default value is 1. The amount of instances
- that this component should be scaled to. Default: 1. Must
- not be set if autoscaling is used.
- "instance_size_slug": {},
- "kind": "UNSPECIFIED", #
- Optional. Default value is "UNSPECIFIED". * UNSPECIFIED:
- Default job type, will auto-complete to POST_DEPLOY kind.
- * PRE_DEPLOY: Indicates a job that runs before an app
- deployment. * POST_DEPLOY: Indicates a job that runs
- after an app deployment. * FAILED_DEPLOY: Indicates a job
- that runs after a component fails to deploy. Known values
- are: "UNSPECIFIED", "PRE_DEPLOY", "POST_DEPLOY", and
- "FAILED_DEPLOY".
- "log_destinations": [
- {
- "name":
- "str", # Required.
- "datadog": {
- "api_key": "str", # Datadog API key.
- Required.
- "endpoint": "str" # Optional. Datadog HTTP
- log intake endpoint.
- },
- "logtail": {
- "token": "str" # Optional. Logtail token.
- },
- "open_search": {
- "basic_auth": {
- "password": "str", # Optional. Password
- for user defined in User. Is required
- when ``endpoint`` is set. Cannot be set
- if using a DigitalOcean DBaaS OpenSearch
- cluster.
- "user": "str" # Optional. Username to
- authenticate with. Only required when
- ``endpoint`` is set. Defaults to
- ``doadmin`` when ``cluster_name`` is set.
- },
- "cluster_name": "str", # Optional. The name
- of a DigitalOcean DBaaS OpenSearch cluster to
- use as a log forwarding destination. Cannot
- be specified if ``endpoint`` is also
- specified.
- "endpoint": "str", # Optional. OpenSearch
- API Endpoint. Only HTTPS is supported.
- Format:
- https://:code:``::code:``. Cannot
- be specified if ``cluster_name`` is also
- specified.
- "index_name": "logs" # Optional. Default
- value is "logs". The index name to use for
- the logs. If not set, the default index name
- is "logs".
- },
- "papertrail":
- {
- "endpoint": "str" # Papertrail syslog
- endpoint. Required.
- }
- }
- ],
- "name": "str", # Optional.
- The name. Must be unique across all components within the
- same app.
- "run_command": "str", #
- Optional. An optional run command to override the
- component's default.
- "source_dir": "str", #
- Optional. An optional path to the working directory to
- use for the build. For Dockerfile builds, this will be
- used as the build context. Must be relative to the root
- of the repo.
- "termination": {
- "grace_period_seconds": 0 # Optional. The number of
- seconds to wait between sending a TERM signal to a
- container and issuing a KILL which causes immediate
- shutdown. (Default 120).
- }
- }
- ],
- "maintenance": {
- "archive": bool, # Optional.
- Indicates whether the app should be archived. Setting this to
- true implies that enabled is set to true.
- "enabled": bool, # Optional.
- Indicates whether maintenance mode should be enabled for the
- app.
- "offline_page_url": "str" #
- Optional. A custom offline page to display when maintenance
- mode is enabled or the app is archived.
- },
- "region": "str", # Optional. The slug form
- of the geographical origin of the app. Default: ``nearest
- available``. Known values are: "atl", "nyc", "sfo", "tor", "ams",
- "fra", "lon", "blr", "sgp", and "syd".
- "services": [
- {
- "autoscaling": {
- "max_instance_count":
- 0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional. Default value is
- 80. The average target CPU utilization for
- the component.
- }
- },
- "min_instance_count":
- 0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
- },
- "bitbucket": {
- "branch": "str", #
- Optional. The name of the branch to use.
- "deploy_on_push":
- bool, # Optional. Whether to automatically deploy
- new commits made to the repo.
- "repo": "str" #
- Optional. The name of the repo in the format
- owner/repo. Example: ``digitalocean/sample-golang``.
- },
- "build_command": "str", #
- Optional. An optional build command to run while building
- this component from source.
- "cors": {
- "allow_credentials":
- bool, # Optional. Whether browsers should expose the
- response to the client-side JavaScript code when the
- request"u2019s credentials mode is include. This
- configures the ``Access-Control-Allow-Credentials``
- header.
- "allow_headers": [
- "str" #
- Optional. The set of allowed HTTP request
- headers. This configures the
- ``Access-Control-Allow-Headers`` header.
- ],
- "allow_methods": [
- "str" #
- Optional. The set of allowed HTTP methods. This
- configures the ``Access-Control-Allow-Methods``
- header.
- ],
- "allow_origins": [
- {
- "exact": "str", # Optional. Exact string
- match. Only 1 of ``exact``"" , ``prefix``"" ,
- or ``regex`` must be set.
- "prefix": "str", # Optional. Prefix-based
- match. Only 1 of ``exact``"" , ``prefix``"" ,
- or ``regex`` must be set.
- "regex": "str" # Optional. RE2 style
- regex-based match. Only 1 of ``exact``"" ,
- ``prefix``"" , or ``regex`` must be set. For
- more information about RE2 syntax, see:
- https://github.com/google/re2/wiki/Syntax.
- }
- ],
- "expose_headers": [
- "str" #
- Optional. The set of HTTP response headers that
- browsers are allowed to access. This configures
- the ``Access-Control-Expose-Headers`` header.
- ],
- "max_age": "str" #
- Optional. An optional duration specifying how long
- browsers can cache the results of a preflight
- request. This configures the
- ``Access-Control-Max-Age`` header.
- },
+ "cors": {
+ "allow_credentials":
+ bool, # Optional. Whether browsers should expose the
+ response to the client-side JavaScript code when the
+ request"u2019s credentials mode is include. This
+ configures the ``Access-Control-Allow-Credentials``
+ header.
+ "allow_headers": [
+ "str" #
+ Optional. The set of allowed HTTP request
+ headers. This configures the
+ ``Access-Control-Allow-Headers`` header.
+ ],
+ "allow_methods": [
+ "str" #
+ Optional. The set of allowed HTTP methods. This
+ configures the ``Access-Control-Allow-Methods``
+ header.
+ ],
+ "allow_origins": [
+ {
+ "exact": "str", # Optional. Exact string
+ match. Only 1 of ``exact``"" , ``prefix``"" ,
+ or ``regex`` must be set.
+ "prefix": "str", # Optional. Prefix-based
+ match. Only 1 of ``exact``"" , ``prefix``"" ,
+ or ``regex`` must be set.
+ "regex": "str" # Optional. RE2 style
+ regex-based match. Only 1 of ``exact``"" ,
+ ``prefix``"" , or ``regex`` must be set. For
+ more information about RE2 syntax, see:
+ https://github.com/google/re2/wiki/Syntax.
+ }
+ ],
+ "expose_headers": [
+ "str" #
+ Optional. The set of HTTP response headers that
+ browsers are allowed to access. This configures
+ the ``Access-Control-Expose-Headers`` header.
+ ],
+ "max_age": "str" #
+ Optional. An optional duration specifying how long
+ browsers can cache the results of a preflight
+ request. This configures the
+ ``Access-Control-Max-Age`` header.
+ },
"dockerfile_path": "str", #
Optional. The path to the Dockerfile relative to the root
of the repo. If set, it will be used to build this
@@ -102493,7 +102295,9 @@ def list_events(
"autoscaling": {
"max_instance_count":
0, # Optional. The maximum amount of instances for
- this component. Must be more than min_instance_count.
+ this component. Maximum 250. Consider using a larger
+ instance size if your application requires more than
+ 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional. Default value is
@@ -102503,7 +102307,7 @@ def list_events(
},
"min_instance_count":
0 # Optional. The minimum amount of instances for
- this component. Must be less than max_instance_count.
+ this component.
},
"bitbucket": {
"branch": "str", #
@@ -103101,8 +102905,9 @@ def get_event(self, app_id: str, event_id: str, **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -103400,21 +103205,6 @@ def get_event(self, app_id: str, event_id: str, **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -103616,17 +103406,24 @@ def get_event(self, app_id: str, event_id: str, **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -104194,7 +103991,9 @@ def get_event(self, app_id: str, event_id: str, **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -104204,7 +104003,7 @@ def get_event(self, app_id: str, event_id: str, **kwargs: Any) -> JSON:
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -104785,8 +104584,9 @@ def cancel_event(self, app_id: str, event_id: str, **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, #
Optional. Threshold value for alert.
"window":
@@ -105084,21 +104884,6 @@ def cancel_event(self, app_id: str, event_id: str, **kwargs: Any) -> JSON:
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, #
- Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
- }
- },
- "min_instance_count": 0 #
- Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional.
The name of the branch to use.
@@ -105300,17 +105085,24 @@ def cancel_event(self, app_id: str, event_id: str, **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
- "cpu": {
- "percent": 80
- # Optional. Default value is 80. The average
- target CPU utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0 # Optional. The p95 target
+ request duration in milliseconds for the
+ component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 # Optional. The target number
+ of requests per second per instance for the
+ component.
}
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -105878,7 +105670,9 @@ def cancel_event(self, app_id: str, event_id: str, **kwargs: Any) -> JSON:
"autoscaling": {
"max_instance_count": 0, #
Optional. The maximum amount of instances for this
- component. Must be more than min_instance_count.
+ component. Maximum 250. Consider using a larger instance
+ size if your application requires more than 250
+ instances.
"metrics": {
"cpu": {
"percent": 80
@@ -105888,7 +105682,7 @@ def cancel_event(self, app_id: str, event_id: str, **kwargs: Any) -> JSON:
},
"min_instance_count": 0 #
Optional. The minimum amount of instances for this
- component. Must be less than max_instance_count.
+ component.
},
"bitbucket": {
"branch": "str", # Optional.
@@ -106826,7 +106620,8 @@ def validate_app_spec(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
- and "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold
value for alert.
"window": "UNSPECIFIED_WINDOW" #
@@ -107096,21 +106891,204 @@ def validate_app_spec(
]
},
"jobs": [
+ {
+ "bitbucket": {
+ "branch": "str", # Optional. The name of the
+ branch to use.
+ "deploy_on_push": bool, # Optional. Whether
+ to automatically deploy new commits made to the repo.
+ "repo": "str" # Optional. The name of the
+ repo in the format owner/repo. Example:
+ ``digitalocean/sample-golang``.
+ },
+ "build_command": "str", # Optional. An optional
+ build command to run while building this component from source.
+ "dockerfile_path": "str", # Optional. The path to
+ the Dockerfile relative to the root of the repo. If set, it will be
+ used to build this component. Otherwise, App Platform will attempt to
+ build it using buildpacks.
+ "environment_slug": "str", # Optional. An
+ environment slug describing the type of this app. For a full list,
+ please refer to `the product documentation
+ `_.
+ "envs": [
+ {
+ "key": "str", # The variable name.
+ Required.
+ "scope": "RUN_AND_BUILD_TIME", #
+ Optional. Default value is "RUN_AND_BUILD_TIME". * RUN_TIME:
+ Made available only at run-time * BUILD_TIME: Made available
+ only at build-time * RUN_AND_BUILD_TIME: Made available at
+ both build and run-time. Known values are: "UNSET",
+ "RUN_TIME", "BUILD_TIME", and "RUN_AND_BUILD_TIME".
+ "type": "GENERAL", # Optional.
+ Default value is "GENERAL". * GENERAL: A plain-text
+ environment variable * SECRET: A secret encrypted environment
+ variable. Known values are: "GENERAL" and "SECRET".
+ "value": "str" # Optional. The
+ value. If the type is ``SECRET``"" , the value will be
+ encrypted on first submission. On following submissions, the
+ encrypted value should be used.
+ }
+ ],
+ "git": {
+ "branch": "str", # Optional. The name of the
+ branch to use.
+ "repo_clone_url": "str" # Optional. The
+ clone URL of the repo. Example:
+ ``https://github.com/digitalocean/sample-golang.git``.
+ },
+ "github": {
+ "branch": "str", # Optional. The name of the
+ branch to use.
+ "deploy_on_push": bool, # Optional. Whether
+ to automatically deploy new commits made to the repo.
+ "repo": "str" # Optional. The name of the
+ repo in the format owner/repo. Example:
+ ``digitalocean/sample-golang``.
+ },
+ "gitlab": {
+ "branch": "str", # Optional. The name of the
+ branch to use.
+ "deploy_on_push": bool, # Optional. Whether
+ to automatically deploy new commits made to the repo.
+ "repo": "str" # Optional. The name of the
+ repo in the format owner/repo. Example:
+ ``digitalocean/sample-golang``.
+ },
+ "image": {
+ "deploy_on_push": {
+ "enabled": bool # Optional. Whether
+ to automatically deploy new images. Can only be used for
+ images hosted in DOCR and can only be used with an image tag,
+ not a specific digest.
+ },
+ "digest": "str", # Optional. The image
+ digest. Cannot be specified if tag is provided.
+ "registry": "str", # Optional. The registry
+ name. Must be left empty for the ``DOCR`` registry type.
+ "registry_credentials": "str", # Optional.
+ The credentials to be able to pull the image. The value will be
+ encrypted on first submission. On following submissions, the
+ encrypted value should be used. * "$username:$access_token" for
+ registries of type ``DOCKER_HUB``. * "$username:$access_token"
+ for registries of type ``GHCR``.
+ "registry_type": "str", # Optional. *
+ DOCKER_HUB: The DockerHub container registry type. * DOCR: The
+ DigitalOcean container registry type. * GHCR: The Github
+ container registry type. Known values are: "DOCKER_HUB", "DOCR",
+ and "GHCR".
+ "repository": "str", # Optional. The
+ repository name.
+ "tag": "latest" # Optional. Default value is
+ "latest". The repository tag. Defaults to ``latest`` if not
+ provided and no digest is provided. Cannot be specified if digest
+ is provided.
+ },
+ "instance_count": 1, # Optional. Default value is 1.
+ The amount of instances that this component should be scaled to.
+ Default: 1. Must not be set if autoscaling is used.
+ "instance_size_slug": {},
+ "kind": "UNSPECIFIED", # Optional. Default value is
+ "UNSPECIFIED". * UNSPECIFIED: Default job type, will auto-complete to
+ POST_DEPLOY kind. * PRE_DEPLOY: Indicates a job that runs before an
+ app deployment. * POST_DEPLOY: Indicates a job that runs after an app
+ deployment. * FAILED_DEPLOY: Indicates a job that runs after a
+ component fails to deploy. Known values are: "UNSPECIFIED",
+ "PRE_DEPLOY", "POST_DEPLOY", and "FAILED_DEPLOY".
+ "log_destinations": [
+ {
+ "name": "str", # Required.
+ "datadog": {
+ "api_key": "str", # Datadog
+ API key. Required.
+ "endpoint": "str" #
+ Optional. Datadog HTTP log intake endpoint.
+ },
+ "logtail": {
+ "token": "str" # Optional.
+ Logtail token.
+ },
+ "open_search": {
+ "basic_auth": {
+ "password": "str", #
+ Optional. Password for user defined in User. Is
+ required when ``endpoint`` is set. Cannot be set if
+ using a DigitalOcean DBaaS OpenSearch cluster.
+ "user": "str" #
+ Optional. Username to authenticate with. Only
+ required when ``endpoint`` is set. Defaults to
+ ``doadmin`` when ``cluster_name`` is set.
+ },
+ "cluster_name": "str", #
+ Optional. The name of a DigitalOcean DBaaS OpenSearch
+ cluster to use as a log forwarding destination. Cannot be
+ specified if ``endpoint`` is also specified.
+ "endpoint": "str", #
+ Optional. OpenSearch API Endpoint. Only HTTPS is
+ supported. Format: https://:code:``::code:``.
+ Cannot be specified if ``cluster_name`` is also
+ specified.
+ "index_name": "logs" #
+ Optional. Default value is "logs". The index name to use
+ for the logs. If not set, the default index name is
+ "logs".
+ },
+ "papertrail": {
+ "endpoint": "str" #
+ Papertrail syslog endpoint. Required.
+ }
+ }
+ ],
+ "name": "str", # Optional. The name. Must be unique
+ across all components within the same app.
+ "run_command": "str", # Optional. An optional run
+ command to override the component's default.
+ "source_dir": "str", # Optional. An optional path to
+ the working directory to use for the build. For Dockerfile builds,
+ this will be used as the build context. Must be relative to the root
+ of the repo.
+ "termination": {
+ "grace_period_seconds": 0 # Optional. The
+ number of seconds to wait between sending a TERM signal to a
+ container and issuing a KILL which causes immediate shutdown.
+ (Default 120).
+ }
+ }
+ ],
+ "maintenance": {
+ "archive": bool, # Optional. Indicates whether the app
+ should be archived. Setting this to true implies that enabled is set to
+ true.
+ "enabled": bool, # Optional. Indicates whether maintenance
+ mode should be enabled for the app.
+ "offline_page_url": "str" # Optional. A custom offline page
+ to display when maintenance mode is enabled or the app is archived.
+ },
+ "region": "str", # Optional. The slug form of the geographical
+ origin of the app. Default: ``nearest available``. Known values are: "atl",
+ "nyc", "sfo", "tor", "ams", "fra", "lon", "blr", "sgp", and "syd".
+ "services": [
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
+ "request_duration": {
+ "p95_milliseconds": 0 #
+ Optional. The p95 target request duration in milliseconds
for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second per
+ instance for the component.
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -107123,240 +107101,47 @@ def validate_app_spec(
},
"build_command": "str", # Optional. An optional
build command to run while building this component from source.
- "dockerfile_path": "str", # Optional. The path to
- the Dockerfile relative to the root of the repo. If set, it will be
- used to build this component. Otherwise, App Platform will attempt to
- build it using buildpacks.
- "environment_slug": "str", # Optional. An
- environment slug describing the type of this app. For a full list,
- please refer to `the product documentation
- `_.
- "envs": [
- {
- "key": "str", # The variable name.
- Required.
- "scope": "RUN_AND_BUILD_TIME", #
- Optional. Default value is "RUN_AND_BUILD_TIME". * RUN_TIME:
- Made available only at run-time * BUILD_TIME: Made available
- only at build-time * RUN_AND_BUILD_TIME: Made available at
- both build and run-time. Known values are: "UNSET",
- "RUN_TIME", "BUILD_TIME", and "RUN_AND_BUILD_TIME".
- "type": "GENERAL", # Optional.
- Default value is "GENERAL". * GENERAL: A plain-text
- environment variable * SECRET: A secret encrypted environment
- variable. Known values are: "GENERAL" and "SECRET".
- "value": "str" # Optional. The
- value. If the type is ``SECRET``"" , the value will be
- encrypted on first submission. On following submissions, the
- encrypted value should be used.
- }
- ],
- "git": {
- "branch": "str", # Optional. The name of the
- branch to use.
- "repo_clone_url": "str" # Optional. The
- clone URL of the repo. Example:
- ``https://github.com/digitalocean/sample-golang.git``.
- },
- "github": {
- "branch": "str", # Optional. The name of the
- branch to use.
- "deploy_on_push": bool, # Optional. Whether
- to automatically deploy new commits made to the repo.
- "repo": "str" # Optional. The name of the
- repo in the format owner/repo. Example:
- ``digitalocean/sample-golang``.
- },
- "gitlab": {
- "branch": "str", # Optional. The name of the
- branch to use.
- "deploy_on_push": bool, # Optional. Whether
- to automatically deploy new commits made to the repo.
- "repo": "str" # Optional. The name of the
- repo in the format owner/repo. Example:
- ``digitalocean/sample-golang``.
- },
- "image": {
- "deploy_on_push": {
- "enabled": bool # Optional. Whether
- to automatically deploy new images. Can only be used for
- images hosted in DOCR and can only be used with an image tag,
- not a specific digest.
- },
- "digest": "str", # Optional. The image
- digest. Cannot be specified if tag is provided.
- "registry": "str", # Optional. The registry
- name. Must be left empty for the ``DOCR`` registry type.
- "registry_credentials": "str", # Optional.
- The credentials to be able to pull the image. The value will be
- encrypted on first submission. On following submissions, the
- encrypted value should be used. * "$username:$access_token" for
- registries of type ``DOCKER_HUB``. * "$username:$access_token"
- for registries of type ``GHCR``.
- "registry_type": "str", # Optional. *
- DOCKER_HUB: The DockerHub container registry type. * DOCR: The
- DigitalOcean container registry type. * GHCR: The Github
- container registry type. Known values are: "DOCKER_HUB", "DOCR",
- and "GHCR".
- "repository": "str", # Optional. The
- repository name.
- "tag": "latest" # Optional. Default value is
- "latest". The repository tag. Defaults to ``latest`` if not
- provided and no digest is provided. Cannot be specified if digest
- is provided.
- },
- "instance_count": 1, # Optional. Default value is 1.
- The amount of instances that this component should be scaled to.
- Default: 1. Must not be set if autoscaling is used.
- "instance_size_slug": {},
- "kind": "UNSPECIFIED", # Optional. Default value is
- "UNSPECIFIED". * UNSPECIFIED: Default job type, will auto-complete to
- POST_DEPLOY kind. * PRE_DEPLOY: Indicates a job that runs before an
- app deployment. * POST_DEPLOY: Indicates a job that runs after an app
- deployment. * FAILED_DEPLOY: Indicates a job that runs after a
- component fails to deploy. Known values are: "UNSPECIFIED",
- "PRE_DEPLOY", "POST_DEPLOY", and "FAILED_DEPLOY".
- "log_destinations": [
- {
- "name": "str", # Required.
- "datadog": {
- "api_key": "str", # Datadog
- API key. Required.
- "endpoint": "str" #
- Optional. Datadog HTTP log intake endpoint.
- },
- "logtail": {
- "token": "str" # Optional.
- Logtail token.
- },
- "open_search": {
- "basic_auth": {
- "password": "str", #
- Optional. Password for user defined in User. Is
- required when ``endpoint`` is set. Cannot be set if
- using a DigitalOcean DBaaS OpenSearch cluster.
- "user": "str" #
- Optional. Username to authenticate with. Only
- required when ``endpoint`` is set. Defaults to
- ``doadmin`` when ``cluster_name`` is set.
- },
- "cluster_name": "str", #
- Optional. The name of a DigitalOcean DBaaS OpenSearch
- cluster to use as a log forwarding destination. Cannot be
- specified if ``endpoint`` is also specified.
- "endpoint": "str", #
- Optional. OpenSearch API Endpoint. Only HTTPS is
- supported. Format: https://:code:``::code:``.
- Cannot be specified if ``cluster_name`` is also
- specified.
- "index_name": "logs" #
- Optional. Default value is "logs". The index name to use
- for the logs. If not set, the default index name is
- "logs".
- },
- "papertrail": {
- "endpoint": "str" #
- Papertrail syslog endpoint. Required.
- }
- }
- ],
- "name": "str", # Optional. The name. Must be unique
- across all components within the same app.
- "run_command": "str", # Optional. An optional run
- command to override the component's default.
- "source_dir": "str", # Optional. An optional path to
- the working directory to use for the build. For Dockerfile builds,
- this will be used as the build context. Must be relative to the root
- of the repo.
- "termination": {
- "grace_period_seconds": 0 # Optional. The
- number of seconds to wait between sending a TERM signal to a
- container and issuing a KILL which causes immediate shutdown.
- (Default 120).
- }
- }
- ],
- "maintenance": {
- "archive": bool, # Optional. Indicates whether the app
- should be archived. Setting this to true implies that enabled is set to
- true.
- "enabled": bool, # Optional. Indicates whether maintenance
- mode should be enabled for the app.
- "offline_page_url": "str" # Optional. A custom offline page
- to display when maintenance mode is enabled or the app is archived.
- },
- "region": "str", # Optional. The slug form of the geographical
- origin of the app. Default: ``nearest available``. Known values are: "atl",
- "nyc", "sfo", "tor", "ams", "fra", "lon", "blr", "sgp", and "syd".
- "services": [
- {
- "autoscaling": {
- "max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
- for the component.
- }
- },
- "min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
- },
- "bitbucket": {
- "branch": "str", # Optional. The name of the
- branch to use.
- "deploy_on_push": bool, # Optional. Whether
- to automatically deploy new commits made to the repo.
- "repo": "str" # Optional. The name of the
- repo in the format owner/repo. Example:
- ``digitalocean/sample-golang``.
- },
- "build_command": "str", # Optional. An optional
- build command to run while building this component from source.
- "cors": {
- "allow_credentials": bool, # Optional.
- Whether browsers should expose the response to the client-side
- JavaScript code when the request"u2019s credentials mode is
- include. This configures the ``Access-Control-Allow-Credentials``
- header.
- "allow_headers": [
- "str" # Optional. The set of allowed
- HTTP request headers. This configures the
- ``Access-Control-Allow-Headers`` header.
- ],
- "allow_methods": [
- "str" # Optional. The set of allowed
- HTTP methods. This configures the
- ``Access-Control-Allow-Methods`` header.
- ],
- "allow_origins": [
- {
- "exact": "str", # Optional.
- Exact string match. Only 1 of ``exact``"" , ``prefix``""
- , or ``regex`` must be set.
- "prefix": "str", # Optional.
- Prefix-based match. Only 1 of ``exact``"" , ``prefix``""
- , or ``regex`` must be set.
- "regex": "str" # Optional.
- RE2 style regex-based match. Only 1 of ``exact``"" ,
- ``prefix``"" , or ``regex`` must be set. For more
- information about RE2 syntax, see:
- https://github.com/google/re2/wiki/Syntax.
- }
- ],
- "expose_headers": [
- "str" # Optional. The set of HTTP
- response headers that browsers are allowed to access. This
- configures the ``Access-Control-Expose-Headers`` header.
- ],
- "max_age": "str" # Optional. An optional
- duration specifying how long browsers can cache the results of a
- preflight request. This configures the ``Access-Control-Max-Age``
- header.
- },
+ "cors": {
+ "allow_credentials": bool, # Optional.
+ Whether browsers should expose the response to the client-side
+ JavaScript code when the request"u2019s credentials mode is
+ include. This configures the ``Access-Control-Allow-Credentials``
+ header.
+ "allow_headers": [
+ "str" # Optional. The set of allowed
+ HTTP request headers. This configures the
+ ``Access-Control-Allow-Headers`` header.
+ ],
+ "allow_methods": [
+ "str" # Optional. The set of allowed
+ HTTP methods. This configures the
+ ``Access-Control-Allow-Methods`` header.
+ ],
+ "allow_origins": [
+ {
+ "exact": "str", # Optional.
+ Exact string match. Only 1 of ``exact``"" , ``prefix``""
+ , or ``regex`` must be set.
+ "prefix": "str", # Optional.
+ Prefix-based match. Only 1 of ``exact``"" , ``prefix``""
+ , or ``regex`` must be set.
+ "regex": "str" # Optional.
+ RE2 style regex-based match. Only 1 of ``exact``"" ,
+ ``prefix``"" , or ``regex`` must be set. For more
+ information about RE2 syntax, see:
+ https://github.com/google/re2/wiki/Syntax.
+ }
+ ],
+ "expose_headers": [
+ "str" # Optional. The set of HTTP
+ response headers that browsers are allowed to access. This
+ configures the ``Access-Control-Expose-Headers`` header.
+ ],
+ "max_age": "str" # Optional. An optional
+ duration specifying how long browsers can cache the results of a
+ preflight request. This configures the ``Access-Control-Max-Age``
+ header.
+ },
"dockerfile_path": "str", # Optional. The path to
the Dockerfile relative to the root of the repo. If set, it will be
used to build this component. Otherwise, App Platform will attempt to
@@ -107810,8 +107595,9 @@ def validate_app_spec(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional.
@@ -107820,8 +107606,7 @@ def validate_app_spec(
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -108119,7 +107904,8 @@ def validate_app_spec(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
- and "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold
value for alert.
"window": "UNSPECIFIED_WINDOW" #
@@ -108390,21 +108176,6 @@ def validate_app_spec(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
- for the component.
- }
- },
- "min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The name of the
branch to use.
@@ -108585,18 +108356,23 @@ def validate_app_spec(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
+ "request_duration": {
+ "p95_milliseconds": 0 #
+ Optional. The p95 target request duration in milliseconds
for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second per
+ instance for the component.
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -109103,8 +108879,9 @@ def validate_app_spec(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional.
@@ -109113,8 +108890,7 @@ def validate_app_spec(
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -109434,7 +109210,8 @@ def validate_app_spec(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
- and "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold
value for alert.
"window": "UNSPECIFIED_WINDOW" #
@@ -109705,21 +109482,6 @@ def validate_app_spec(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
- for the component.
- }
- },
- "min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The name of the
branch to use.
@@ -109900,18 +109662,23 @@ def validate_app_spec(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
+ "request_duration": {
+ "p95_milliseconds": 0 #
+ Optional. The p95 target request duration in milliseconds
for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second per
+ instance for the component.
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -110418,8 +110185,9 @@ def validate_app_spec(
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional.
@@ -110428,8 +110196,7 @@ def validate_app_spec(
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -110730,7 +110497,8 @@ def validate_app_spec(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
- and "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold
value for alert.
"window": "UNSPECIFIED_WINDOW" #
@@ -111001,21 +110769,6 @@ def validate_app_spec(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
- for the component.
- }
- },
- "min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The name of the
branch to use.
@@ -111196,18 +110949,23 @@ def validate_app_spec(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
+ "request_duration": {
+ "p95_milliseconds": 0 #
+ Optional. The p95 target request duration in milliseconds
for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second per
+ instance for the component.
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -111714,8 +111472,9 @@ def validate_app_spec(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional.
@@ -111724,8 +111483,7 @@ def validate_app_spec(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -112023,7 +111781,8 @@ def validate_app_spec(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
- and "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold
value for alert.
"window": "UNSPECIFIED_WINDOW" #
@@ -112293,21 +112052,204 @@ def validate_app_spec(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON
]
},
"jobs": [
+ {
+ "bitbucket": {
+ "branch": "str", # Optional. The name of the
+ branch to use.
+ "deploy_on_push": bool, # Optional. Whether
+ to automatically deploy new commits made to the repo.
+ "repo": "str" # Optional. The name of the
+ repo in the format owner/repo. Example:
+ ``digitalocean/sample-golang``.
+ },
+ "build_command": "str", # Optional. An optional
+ build command to run while building this component from source.
+ "dockerfile_path": "str", # Optional. The path to
+ the Dockerfile relative to the root of the repo. If set, it will be
+ used to build this component. Otherwise, App Platform will attempt to
+ build it using buildpacks.
+ "environment_slug": "str", # Optional. An
+ environment slug describing the type of this app. For a full list,
+ please refer to `the product documentation
+ `_.
+ "envs": [
+ {
+ "key": "str", # The variable name.
+ Required.
+ "scope": "RUN_AND_BUILD_TIME", #
+ Optional. Default value is "RUN_AND_BUILD_TIME". * RUN_TIME:
+ Made available only at run-time * BUILD_TIME: Made available
+ only at build-time * RUN_AND_BUILD_TIME: Made available at
+ both build and run-time. Known values are: "UNSET",
+ "RUN_TIME", "BUILD_TIME", and "RUN_AND_BUILD_TIME".
+ "type": "GENERAL", # Optional.
+ Default value is "GENERAL". * GENERAL: A plain-text
+ environment variable * SECRET: A secret encrypted environment
+ variable. Known values are: "GENERAL" and "SECRET".
+ "value": "str" # Optional. The
+ value. If the type is ``SECRET``"" , the value will be
+ encrypted on first submission. On following submissions, the
+ encrypted value should be used.
+ }
+ ],
+ "git": {
+ "branch": "str", # Optional. The name of the
+ branch to use.
+ "repo_clone_url": "str" # Optional. The
+ clone URL of the repo. Example:
+ ``https://github.com/digitalocean/sample-golang.git``.
+ },
+ "github": {
+ "branch": "str", # Optional. The name of the
+ branch to use.
+ "deploy_on_push": bool, # Optional. Whether
+ to automatically deploy new commits made to the repo.
+ "repo": "str" # Optional. The name of the
+ repo in the format owner/repo. Example:
+ ``digitalocean/sample-golang``.
+ },
+ "gitlab": {
+ "branch": "str", # Optional. The name of the
+ branch to use.
+ "deploy_on_push": bool, # Optional. Whether
+ to automatically deploy new commits made to the repo.
+ "repo": "str" # Optional. The name of the
+ repo in the format owner/repo. Example:
+ ``digitalocean/sample-golang``.
+ },
+ "image": {
+ "deploy_on_push": {
+ "enabled": bool # Optional. Whether
+ to automatically deploy new images. Can only be used for
+ images hosted in DOCR and can only be used with an image tag,
+ not a specific digest.
+ },
+ "digest": "str", # Optional. The image
+ digest. Cannot be specified if tag is provided.
+ "registry": "str", # Optional. The registry
+ name. Must be left empty for the ``DOCR`` registry type.
+ "registry_credentials": "str", # Optional.
+ The credentials to be able to pull the image. The value will be
+ encrypted on first submission. On following submissions, the
+ encrypted value should be used. * "$username:$access_token" for
+ registries of type ``DOCKER_HUB``. * "$username:$access_token"
+ for registries of type ``GHCR``.
+ "registry_type": "str", # Optional. *
+ DOCKER_HUB: The DockerHub container registry type. * DOCR: The
+ DigitalOcean container registry type. * GHCR: The Github
+ container registry type. Known values are: "DOCKER_HUB", "DOCR",
+ and "GHCR".
+ "repository": "str", # Optional. The
+ repository name.
+ "tag": "latest" # Optional. Default value is
+ "latest". The repository tag. Defaults to ``latest`` if not
+ provided and no digest is provided. Cannot be specified if digest
+ is provided.
+ },
+ "instance_count": 1, # Optional. Default value is 1.
+ The amount of instances that this component should be scaled to.
+ Default: 1. Must not be set if autoscaling is used.
+ "instance_size_slug": {},
+ "kind": "UNSPECIFIED", # Optional. Default value is
+ "UNSPECIFIED". * UNSPECIFIED: Default job type, will auto-complete to
+ POST_DEPLOY kind. * PRE_DEPLOY: Indicates a job that runs before an
+ app deployment. * POST_DEPLOY: Indicates a job that runs after an app
+ deployment. * FAILED_DEPLOY: Indicates a job that runs after a
+ component fails to deploy. Known values are: "UNSPECIFIED",
+ "PRE_DEPLOY", "POST_DEPLOY", and "FAILED_DEPLOY".
+ "log_destinations": [
+ {
+ "name": "str", # Required.
+ "datadog": {
+ "api_key": "str", # Datadog
+ API key. Required.
+ "endpoint": "str" #
+ Optional. Datadog HTTP log intake endpoint.
+ },
+ "logtail": {
+ "token": "str" # Optional.
+ Logtail token.
+ },
+ "open_search": {
+ "basic_auth": {
+ "password": "str", #
+ Optional. Password for user defined in User. Is
+ required when ``endpoint`` is set. Cannot be set if
+ using a DigitalOcean DBaaS OpenSearch cluster.
+ "user": "str" #
+ Optional. Username to authenticate with. Only
+ required when ``endpoint`` is set. Defaults to
+ ``doadmin`` when ``cluster_name`` is set.
+ },
+ "cluster_name": "str", #
+ Optional. The name of a DigitalOcean DBaaS OpenSearch
+ cluster to use as a log forwarding destination. Cannot be
+ specified if ``endpoint`` is also specified.
+ "endpoint": "str", #
+ Optional. OpenSearch API Endpoint. Only HTTPS is
+ supported. Format: https://:code:``::code:``.
+ Cannot be specified if ``cluster_name`` is also
+ specified.
+ "index_name": "logs" #
+ Optional. Default value is "logs". The index name to use
+ for the logs. If not set, the default index name is
+ "logs".
+ },
+ "papertrail": {
+ "endpoint": "str" #
+ Papertrail syslog endpoint. Required.
+ }
+ }
+ ],
+ "name": "str", # Optional. The name. Must be unique
+ across all components within the same app.
+ "run_command": "str", # Optional. An optional run
+ command to override the component's default.
+ "source_dir": "str", # Optional. An optional path to
+ the working directory to use for the build. For Dockerfile builds,
+ this will be used as the build context. Must be relative to the root
+ of the repo.
+ "termination": {
+ "grace_period_seconds": 0 # Optional. The
+ number of seconds to wait between sending a TERM signal to a
+ container and issuing a KILL which causes immediate shutdown.
+ (Default 120).
+ }
+ }
+ ],
+ "maintenance": {
+ "archive": bool, # Optional. Indicates whether the app
+ should be archived. Setting this to true implies that enabled is set to
+ true.
+ "enabled": bool, # Optional. Indicates whether maintenance
+ mode should be enabled for the app.
+ "offline_page_url": "str" # Optional. A custom offline page
+ to display when maintenance mode is enabled or the app is archived.
+ },
+ "region": "str", # Optional. The slug form of the geographical
+ origin of the app. Default: ``nearest available``. Known values are: "atl",
+ "nyc", "sfo", "tor", "ams", "fra", "lon", "blr", "sgp", and "syd".
+ "services": [
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
+ "request_duration": {
+ "p95_milliseconds": 0 #
+ Optional. The p95 target request duration in milliseconds
for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second per
+ instance for the component.
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -112320,6 +112262,47 @@ def validate_app_spec(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON
},
"build_command": "str", # Optional. An optional
build command to run while building this component from source.
+ "cors": {
+ "allow_credentials": bool, # Optional.
+ Whether browsers should expose the response to the client-side
+ JavaScript code when the request"u2019s credentials mode is
+ include. This configures the ``Access-Control-Allow-Credentials``
+ header.
+ "allow_headers": [
+ "str" # Optional. The set of allowed
+ HTTP request headers. This configures the
+ ``Access-Control-Allow-Headers`` header.
+ ],
+ "allow_methods": [
+ "str" # Optional. The set of allowed
+ HTTP methods. This configures the
+ ``Access-Control-Allow-Methods`` header.
+ ],
+ "allow_origins": [
+ {
+ "exact": "str", # Optional.
+ Exact string match. Only 1 of ``exact``"" , ``prefix``""
+ , or ``regex`` must be set.
+ "prefix": "str", # Optional.
+ Prefix-based match. Only 1 of ``exact``"" , ``prefix``""
+ , or ``regex`` must be set.
+ "regex": "str" # Optional.
+ RE2 style regex-based match. Only 1 of ``exact``"" ,
+ ``prefix``"" , or ``regex`` must be set. For more
+ information about RE2 syntax, see:
+ https://github.com/google/re2/wiki/Syntax.
+ }
+ ],
+ "expose_headers": [
+ "str" # Optional. The set of HTTP
+ response headers that browsers are allowed to access. This
+ configures the ``Access-Control-Expose-Headers`` header.
+ ],
+ "max_age": "str" # Optional. An optional
+ duration specifying how long browsers can cache the results of a
+ preflight request. This configures the ``Access-Control-Max-Age``
+ header.
+ },
"dockerfile_path": "str", # Optional. The path to
the Dockerfile relative to the root of the repo. If set, it will be
used to build this component. Otherwise, App Platform will attempt to
@@ -112373,263 +112356,29 @@ def validate_app_spec(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON
repo in the format owner/repo. Example:
``digitalocean/sample-golang``.
},
- "image": {
- "deploy_on_push": {
- "enabled": bool # Optional. Whether
- to automatically deploy new images. Can only be used for
- images hosted in DOCR and can only be used with an image tag,
- not a specific digest.
- },
- "digest": "str", # Optional. The image
- digest. Cannot be specified if tag is provided.
- "registry": "str", # Optional. The registry
- name. Must be left empty for the ``DOCR`` registry type.
- "registry_credentials": "str", # Optional.
- The credentials to be able to pull the image. The value will be
- encrypted on first submission. On following submissions, the
- encrypted value should be used. * "$username:$access_token" for
- registries of type ``DOCKER_HUB``. * "$username:$access_token"
- for registries of type ``GHCR``.
- "registry_type": "str", # Optional. *
- DOCKER_HUB: The DockerHub container registry type. * DOCR: The
- DigitalOcean container registry type. * GHCR: The Github
- container registry type. Known values are: "DOCKER_HUB", "DOCR",
- and "GHCR".
- "repository": "str", # Optional. The
- repository name.
- "tag": "latest" # Optional. Default value is
- "latest". The repository tag. Defaults to ``latest`` if not
- provided and no digest is provided. Cannot be specified if digest
- is provided.
- },
- "instance_count": 1, # Optional. Default value is 1.
- The amount of instances that this component should be scaled to.
- Default: 1. Must not be set if autoscaling is used.
- "instance_size_slug": {},
- "kind": "UNSPECIFIED", # Optional. Default value is
- "UNSPECIFIED". * UNSPECIFIED: Default job type, will auto-complete to
- POST_DEPLOY kind. * PRE_DEPLOY: Indicates a job that runs before an
- app deployment. * POST_DEPLOY: Indicates a job that runs after an app
- deployment. * FAILED_DEPLOY: Indicates a job that runs after a
- component fails to deploy. Known values are: "UNSPECIFIED",
- "PRE_DEPLOY", "POST_DEPLOY", and "FAILED_DEPLOY".
- "log_destinations": [
- {
- "name": "str", # Required.
- "datadog": {
- "api_key": "str", # Datadog
- API key. Required.
- "endpoint": "str" #
- Optional. Datadog HTTP log intake endpoint.
- },
- "logtail": {
- "token": "str" # Optional.
- Logtail token.
- },
- "open_search": {
- "basic_auth": {
- "password": "str", #
- Optional. Password for user defined in User. Is
- required when ``endpoint`` is set. Cannot be set if
- using a DigitalOcean DBaaS OpenSearch cluster.
- "user": "str" #
- Optional. Username to authenticate with. Only
- required when ``endpoint`` is set. Defaults to
- ``doadmin`` when ``cluster_name`` is set.
- },
- "cluster_name": "str", #
- Optional. The name of a DigitalOcean DBaaS OpenSearch
- cluster to use as a log forwarding destination. Cannot be
- specified if ``endpoint`` is also specified.
- "endpoint": "str", #
- Optional. OpenSearch API Endpoint. Only HTTPS is
- supported. Format: https://:code:``::code:``.
- Cannot be specified if ``cluster_name`` is also
- specified.
- "index_name": "logs" #
- Optional. Default value is "logs". The index name to use
- for the logs. If not set, the default index name is
- "logs".
- },
- "papertrail": {
- "endpoint": "str" #
- Papertrail syslog endpoint. Required.
- }
- }
- ],
- "name": "str", # Optional. The name. Must be unique
- across all components within the same app.
- "run_command": "str", # Optional. An optional run
- command to override the component's default.
- "source_dir": "str", # Optional. An optional path to
- the working directory to use for the build. For Dockerfile builds,
- this will be used as the build context. Must be relative to the root
- of the repo.
- "termination": {
- "grace_period_seconds": 0 # Optional. The
- number of seconds to wait between sending a TERM signal to a
- container and issuing a KILL which causes immediate shutdown.
- (Default 120).
- }
- }
- ],
- "maintenance": {
- "archive": bool, # Optional. Indicates whether the app
- should be archived. Setting this to true implies that enabled is set to
- true.
- "enabled": bool, # Optional. Indicates whether maintenance
- mode should be enabled for the app.
- "offline_page_url": "str" # Optional. A custom offline page
- to display when maintenance mode is enabled or the app is archived.
- },
- "region": "str", # Optional. The slug form of the geographical
- origin of the app. Default: ``nearest available``. Known values are: "atl",
- "nyc", "sfo", "tor", "ams", "fra", "lon", "blr", "sgp", and "syd".
- "services": [
- {
- "autoscaling": {
- "max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 # Optional.
- Default value is 80. The average target CPU utilization
- for the component.
- }
- },
- "min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
- },
- "bitbucket": {
- "branch": "str", # Optional. The name of the
- branch to use.
- "deploy_on_push": bool, # Optional. Whether
- to automatically deploy new commits made to the repo.
- "repo": "str" # Optional. The name of the
- repo in the format owner/repo. Example:
- ``digitalocean/sample-golang``.
- },
- "build_command": "str", # Optional. An optional
- build command to run while building this component from source.
- "cors": {
- "allow_credentials": bool, # Optional.
- Whether browsers should expose the response to the client-side
- JavaScript code when the request"u2019s credentials mode is
- include. This configures the ``Access-Control-Allow-Credentials``
- header.
- "allow_headers": [
- "str" # Optional. The set of allowed
- HTTP request headers. This configures the
- ``Access-Control-Allow-Headers`` header.
- ],
- "allow_methods": [
- "str" # Optional. The set of allowed
- HTTP methods. This configures the
- ``Access-Control-Allow-Methods`` header.
- ],
- "allow_origins": [
- {
- "exact": "str", # Optional.
- Exact string match. Only 1 of ``exact``"" , ``prefix``""
- , or ``regex`` must be set.
- "prefix": "str", # Optional.
- Prefix-based match. Only 1 of ``exact``"" , ``prefix``""
- , or ``regex`` must be set.
- "regex": "str" # Optional.
- RE2 style regex-based match. Only 1 of ``exact``"" ,
- ``prefix``"" , or ``regex`` must be set. For more
- information about RE2 syntax, see:
- https://github.com/google/re2/wiki/Syntax.
- }
- ],
- "expose_headers": [
- "str" # Optional. The set of HTTP
- response headers that browsers are allowed to access. This
- configures the ``Access-Control-Expose-Headers`` header.
- ],
- "max_age": "str" # Optional. An optional
- duration specifying how long browsers can cache the results of a
- preflight request. This configures the ``Access-Control-Max-Age``
- header.
- },
- "dockerfile_path": "str", # Optional. The path to
- the Dockerfile relative to the root of the repo. If set, it will be
- used to build this component. Otherwise, App Platform will attempt to
- build it using buildpacks.
- "environment_slug": "str", # Optional. An
- environment slug describing the type of this app. For a full list,
- please refer to `the product documentation
- `_.
- "envs": [
- {
- "key": "str", # The variable name.
- Required.
- "scope": "RUN_AND_BUILD_TIME", #
- Optional. Default value is "RUN_AND_BUILD_TIME". * RUN_TIME:
- Made available only at run-time * BUILD_TIME: Made available
- only at build-time * RUN_AND_BUILD_TIME: Made available at
- both build and run-time. Known values are: "UNSET",
- "RUN_TIME", "BUILD_TIME", and "RUN_AND_BUILD_TIME".
- "type": "GENERAL", # Optional.
- Default value is "GENERAL". * GENERAL: A plain-text
- environment variable * SECRET: A secret encrypted environment
- variable. Known values are: "GENERAL" and "SECRET".
- "value": "str" # Optional. The
- value. If the type is ``SECRET``"" , the value will be
- encrypted on first submission. On following submissions, the
- encrypted value should be used.
- }
- ],
- "git": {
- "branch": "str", # Optional. The name of the
- branch to use.
- "repo_clone_url": "str" # Optional. The
- clone URL of the repo. Example:
- ``https://github.com/digitalocean/sample-golang.git``.
- },
- "github": {
- "branch": "str", # Optional. The name of the
- branch to use.
- "deploy_on_push": bool, # Optional. Whether
- to automatically deploy new commits made to the repo.
- "repo": "str" # Optional. The name of the
- repo in the format owner/repo. Example:
- ``digitalocean/sample-golang``.
- },
- "gitlab": {
- "branch": "str", # Optional. The name of the
- branch to use.
- "deploy_on_push": bool, # Optional. Whether
- to automatically deploy new commits made to the repo.
- "repo": "str" # Optional. The name of the
- repo in the format owner/repo. Example:
- ``digitalocean/sample-golang``.
- },
- "health_check": {
- "failure_threshold": 0, # Optional. The
- number of failed health checks before considered unhealthy.
- "http_path": "str", # Optional. The route
- path used for the HTTP health check ping. If not set, the HTTP
- health check will be disabled and a TCP health check used
- instead.
- "initial_delay_seconds": 0, # Optional. The
- number of seconds to wait before beginning health checks.
- "period_seconds": 0, # Optional. The number
- of seconds to wait between health checks.
- "port": 0, # Optional. The port on which the
- health check will be performed. If not set, the health check will
- be performed on the component's http_port.
- "success_threshold": 0, # Optional. The
- number of successful health checks before considered healthy.
- "timeout_seconds": 0 # Optional. The number
- of seconds after which the check times out.
- },
- "http_port": 0, # Optional. The internal port on
- which this service's run command will listen. Default: 8080 If there
- is not an environment variable with the name ``PORT``"" , one will be
- automatically added with its value set to the value of this field.
+ "health_check": {
+ "failure_threshold": 0, # Optional. The
+ number of failed health checks before considered unhealthy.
+ "http_path": "str", # Optional. The route
+ path used for the HTTP health check ping. If not set, the HTTP
+ health check will be disabled and a TCP health check used
+ instead.
+ "initial_delay_seconds": 0, # Optional. The
+ number of seconds to wait before beginning health checks.
+ "period_seconds": 0, # Optional. The number
+ of seconds to wait between health checks.
+ "port": 0, # Optional. The port on which the
+ health check will be performed. If not set, the health check will
+ be performed on the component's http_port.
+ "success_threshold": 0, # Optional. The
+ number of successful health checks before considered healthy.
+ "timeout_seconds": 0 # Optional. The number
+ of seconds after which the check times out.
+ },
+ "http_port": 0, # Optional. The internal port on
+ which this service's run command will listen. Default: 8080 If there
+ is not an environment variable with the name ``PORT``"" , one will be
+ automatically added with its value set to the value of this field.
"image": {
"deploy_on_push": {
"enabled": bool # Optional. Whether
@@ -113007,8 +112756,9 @@ def validate_app_spec(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON
{
"autoscaling": {
"max_instance_count": 0, # Optional. The
- maximum amount of instances for this component. Must be more than
- min_instance_count.
+ maximum amount of instances for this component. Maximum 250.
+ Consider using a larger instance size if your application
+ requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 # Optional.
@@ -113017,8 +112767,7 @@ def validate_app_spec(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON
}
},
"min_instance_count": 0 # Optional. The
- minimum amount of instances for this component. Must be less than
- max_instance_count.
+ minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The name of the
@@ -113345,7 +113094,8 @@ def list_alerts(self, app_id: str, **kwargs: Any) -> JSON:
"DOMAIN_LIVE", "AUTOSCALE_FAILED", "AUTOSCALE_SUCCEEDED",
"FUNCTIONS_ACTIVATION_COUNT", "FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE", "FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold value for alert.
"window": "UNSPECIFIED_WINDOW" # Optional. Default
value is "UNSPECIFIED_WINDOW". Known values are:
@@ -113542,8 +113292,9 @@ def assign_alert_destinations(
"DEPLOYMENT_FAILED", "DEPLOYMENT_LIVE", "DOMAIN_FAILED", "DOMAIN_LIVE",
"AUTOSCALE_FAILED", "AUTOSCALE_SUCCEEDED", "FUNCTIONS_ACTIVATION_COUNT",
"FUNCTIONS_AVERAGE_DURATION_MS", "FUNCTIONS_ERROR_RATE_PER_MINUTE",
- "FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold value for alert.
"window": "UNSPECIFIED_WINDOW" # Optional. Default value is
"UNSPECIFIED_WINDOW". Known values are: "UNSPECIFIED_WINDOW",
@@ -113647,8 +113398,9 @@ def assign_alert_destinations(
"DEPLOYMENT_FAILED", "DEPLOYMENT_LIVE", "DOMAIN_FAILED", "DOMAIN_LIVE",
"AUTOSCALE_FAILED", "AUTOSCALE_SUCCEEDED", "FUNCTIONS_ACTIVATION_COUNT",
"FUNCTIONS_AVERAGE_DURATION_MS", "FUNCTIONS_ERROR_RATE_PER_MINUTE",
- "FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold value for alert.
"window": "UNSPECIFIED_WINDOW" # Optional. Default value is
"UNSPECIFIED_WINDOW". Known values are: "UNSPECIFIED_WINDOW",
@@ -113757,8 +113509,9 @@ def assign_alert_destinations(
"DEPLOYMENT_FAILED", "DEPLOYMENT_LIVE", "DOMAIN_FAILED", "DOMAIN_LIVE",
"AUTOSCALE_FAILED", "AUTOSCALE_SUCCEEDED", "FUNCTIONS_ACTIVATION_COUNT",
"FUNCTIONS_AVERAGE_DURATION_MS", "FUNCTIONS_ERROR_RATE_PER_MINUTE",
- "FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_AVERAGE_WAIT_TIME_MS", "FUNCTIONS_ERROR_COUNT",
+ "FUNCTIONS_GB_RATE_PER_SECOND", "REQUESTS_PER_SECOND", and
+ "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional. Threshold value for alert.
"window": "UNSPECIFIED_WINDOW" # Optional. Default value is
"UNSPECIFIED_WINDOW". Known values are: "UNSPECIFIED_WINDOW",
@@ -114128,8 +113881,8 @@ def create_rollback(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -114414,21 +114167,6 @@ def create_rollback(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -114619,18 +114357,23 @@ def create_rollback(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -115162,8 +114905,9 @@ def create_rollback(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -115172,8 +114916,7 @@ def create_rollback(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -115641,8 +115384,8 @@ def create_rollback(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -115926,21 +115669,214 @@ def create_rollback(
]
},
"jobs": [
+ {
+ "bitbucket": {
+ "branch": "str", # Optional. The
+ name of the branch to use.
+ "deploy_on_push": bool, # Optional.
+ Whether to automatically deploy new commits made to the repo.
+ "repo": "str" # Optional. The name
+ of the repo in the format owner/repo. Example:
+ ``digitalocean/sample-golang``.
+ },
+ "build_command": "str", # Optional. An
+ optional build command to run while building this component from
+ source.
+ "dockerfile_path": "str", # Optional. The
+ path to the Dockerfile relative to the root of the repo. If set,
+ it will be used to build this component. Otherwise, App Platform
+ will attempt to build it using buildpacks.
+ "environment_slug": "str", # Optional. An
+ environment slug describing the type of this app. For a full
+ list, please refer to `the product documentation
+ `_.
+ "envs": [
+ {
+ "key": "str", # The variable
+ name. Required.
+ "scope":
+ "RUN_AND_BUILD_TIME", # Optional. Default value is
+ "RUN_AND_BUILD_TIME". * RUN_TIME: Made available only at
+ run-time * BUILD_TIME: Made available only at build-time
+ * RUN_AND_BUILD_TIME: Made available at both build and
+ run-time. Known values are: "UNSET", "RUN_TIME",
+ "BUILD_TIME", and "RUN_AND_BUILD_TIME".
+ "type": "GENERAL", #
+ Optional. Default value is "GENERAL". * GENERAL: A
+ plain-text environment variable * SECRET: A secret
+ encrypted environment variable. Known values are:
+ "GENERAL" and "SECRET".
+ "value": "str" # Optional.
+ The value. If the type is ``SECRET``"" , the value will
+ be encrypted on first submission. On following
+ submissions, the encrypted value should be used.
+ }
+ ],
+ "git": {
+ "branch": "str", # Optional. The
+ name of the branch to use.
+ "repo_clone_url": "str" # Optional.
+ The clone URL of the repo. Example:
+ ``https://github.com/digitalocean/sample-golang.git``.
+ },
+ "github": {
+ "branch": "str", # Optional. The
+ name of the branch to use.
+ "deploy_on_push": bool, # Optional.
+ Whether to automatically deploy new commits made to the repo.
+ "repo": "str" # Optional. The name
+ of the repo in the format owner/repo. Example:
+ ``digitalocean/sample-golang``.
+ },
+ "gitlab": {
+ "branch": "str", # Optional. The
+ name of the branch to use.
+ "deploy_on_push": bool, # Optional.
+ Whether to automatically deploy new commits made to the repo.
+ "repo": "str" # Optional. The name
+ of the repo in the format owner/repo. Example:
+ ``digitalocean/sample-golang``.
+ },
+ "image": {
+ "deploy_on_push": {
+ "enabled": bool # Optional.
+ Whether to automatically deploy new images. Can only be
+ used for images hosted in DOCR and can only be used with
+ an image tag, not a specific digest.
+ },
+ "digest": "str", # Optional. The
+ image digest. Cannot be specified if tag is provided.
+ "registry": "str", # Optional. The
+ registry name. Must be left empty for the ``DOCR`` registry
+ type.
+ "registry_credentials": "str", #
+ Optional. The credentials to be able to pull the image. The
+ value will be encrypted on first submission. On following
+ submissions, the encrypted value should be used. *
+ "$username:$access_token" for registries of type
+ ``DOCKER_HUB``. * "$username:$access_token" for registries of
+ type ``GHCR``.
+ "registry_type": "str", # Optional.
+ * DOCKER_HUB: The DockerHub container registry type. * DOCR:
+ The DigitalOcean container registry type. * GHCR: The Github
+ container registry type. Known values are: "DOCKER_HUB",
+ "DOCR", and "GHCR".
+ "repository": "str", # Optional. The
+ repository name.
+ "tag": "latest" # Optional. Default
+ value is "latest". The repository tag. Defaults to ``latest``
+ if not provided and no digest is provided. Cannot be
+ specified if digest is provided.
+ },
+ "instance_count": 1, # Optional. Default
+ value is 1. The amount of instances that this component should be
+ scaled to. Default: 1. Must not be set if autoscaling is used.
+ "instance_size_slug": {},
+ "kind": "UNSPECIFIED", # Optional. Default
+ value is "UNSPECIFIED". * UNSPECIFIED: Default job type, will
+ auto-complete to POST_DEPLOY kind. * PRE_DEPLOY: Indicates a job
+ that runs before an app deployment. * POST_DEPLOY: Indicates a
+ job that runs after an app deployment. * FAILED_DEPLOY: Indicates
+ a job that runs after a component fails to deploy. Known values
+ are: "UNSPECIFIED", "PRE_DEPLOY", "POST_DEPLOY", and
+ "FAILED_DEPLOY".
+ "log_destinations": [
+ {
+ "name": "str", # Required.
+ "datadog": {
+ "api_key": "str", #
+ Datadog API key. Required.
+ "endpoint": "str" #
+ Optional. Datadog HTTP log intake endpoint.
+ },
+ "logtail": {
+ "token": "str" #
+ Optional. Logtail token.
+ },
+ "open_search": {
+ "basic_auth": {
+ "password":
+ "str", # Optional. Password for user defined in
+ User. Is required when ``endpoint`` is set.
+ Cannot be set if using a DigitalOcean DBaaS
+ OpenSearch cluster.
+ "user": "str"
+ # Optional. Username to authenticate with. Only
+ required when ``endpoint`` is set. Defaults to
+ ``doadmin`` when ``cluster_name`` is set.
+ },
+ "cluster_name":
+ "str", # Optional. The name of a DigitalOcean DBaaS
+ OpenSearch cluster to use as a log forwarding
+ destination. Cannot be specified if ``endpoint`` is
+ also specified.
+ "endpoint": "str", #
+ Optional. OpenSearch API Endpoint. Only HTTPS is
+ supported. Format:
+ https://:code:``::code:``. Cannot be
+ specified if ``cluster_name`` is also specified.
+ "index_name": "logs"
+ # Optional. Default value is "logs". The index name
+ to use for the logs. If not set, the default index
+ name is "logs".
+ },
+ "papertrail": {
+ "endpoint": "str" #
+ Papertrail syslog endpoint. Required.
+ }
+ }
+ ],
+ "name": "str", # Optional. The name. Must be
+ unique across all components within the same app.
+ "run_command": "str", # Optional. An
+ optional run command to override the component's default.
+ "source_dir": "str", # Optional. An optional
+ path to the working directory to use for the build. For
+ Dockerfile builds, this will be used as the build context. Must
+ be relative to the root of the repo.
+ "termination": {
+ "grace_period_seconds": 0 #
+ Optional. The number of seconds to wait between sending a
+ TERM signal to a container and issuing a KILL which causes
+ immediate shutdown. (Default 120).
+ }
+ }
+ ],
+ "maintenance": {
+ "archive": bool, # Optional. Indicates whether the
+ app should be archived. Setting this to true implies that enabled is
+ set to true.
+ "enabled": bool, # Optional. Indicates whether
+ maintenance mode should be enabled for the app.
+ "offline_page_url": "str" # Optional. A custom
+ offline page to display when maintenance mode is enabled or the app
+ is archived.
+ },
+ "region": "str", # Optional. The slug form of the
+ geographical origin of the app. Default: ``nearest available``. Known
+ values are: "atl", "nyc", "sfo", "tor", "ams", "fra", "lon", "blr",
+ "sgp", and "syd".
+ "services": [
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -115954,6 +115890,48 @@ def create_rollback(
"build_command": "str", # Optional. An
optional build command to run while building this component from
source.
+ "cors": {
+ "allow_credentials": bool, #
+ Optional. Whether browsers should expose the response to the
+ client-side JavaScript code when the request"u2019s
+ credentials mode is include. This configures the
+ ``Access-Control-Allow-Credentials`` header.
+ "allow_headers": [
+ "str" # Optional. The set of
+ allowed HTTP request headers. This configures the
+ ``Access-Control-Allow-Headers`` header.
+ ],
+ "allow_methods": [
+ "str" # Optional. The set of
+ allowed HTTP methods. This configures the
+ ``Access-Control-Allow-Methods`` header.
+ ],
+ "allow_origins": [
+ {
+ "exact": "str", #
+ Optional. Exact string match. Only 1 of ``exact``"" ,
+ ``prefix``"" , or ``regex`` must be set.
+ "prefix": "str", #
+ Optional. Prefix-based match. Only 1 of ``exact``"" ,
+ ``prefix``"" , or ``regex`` must be set.
+ "regex": "str" #
+ Optional. RE2 style regex-based match. Only 1 of
+ ``exact``"" , ``prefix``"" , or ``regex`` must be
+ set. For more information about RE2 syntax, see:
+ https://github.com/google/re2/wiki/Syntax.
+ }
+ ],
+ "expose_headers": [
+ "str" # Optional. The set of
+ HTTP response headers that browsers are allowed to
+ access. This configures the
+ ``Access-Control-Expose-Headers`` header.
+ ],
+ "max_age": "str" # Optional. An
+ optional duration specifying how long browsers can cache the
+ results of a preflight request. This configures the
+ ``Access-Control-Max-Age`` header.
+ },
"dockerfile_path": "str", # Optional. The
path to the Dockerfile relative to the root of the repo. If set,
it will be used to build this component. Otherwise, App Platform
@@ -116009,278 +115987,33 @@ def create_rollback(
of the repo in the format owner/repo. Example:
``digitalocean/sample-golang``.
},
- "image": {
- "deploy_on_push": {
- "enabled": bool # Optional.
- Whether to automatically deploy new images. Can only be
- used for images hosted in DOCR and can only be used with
- an image tag, not a specific digest.
- },
- "digest": "str", # Optional. The
- image digest. Cannot be specified if tag is provided.
- "registry": "str", # Optional. The
- registry name. Must be left empty for the ``DOCR`` registry
- type.
- "registry_credentials": "str", #
- Optional. The credentials to be able to pull the image. The
- value will be encrypted on first submission. On following
- submissions, the encrypted value should be used. *
- "$username:$access_token" for registries of type
- ``DOCKER_HUB``. * "$username:$access_token" for registries of
- type ``GHCR``.
- "registry_type": "str", # Optional.
- * DOCKER_HUB: The DockerHub container registry type. * DOCR:
- The DigitalOcean container registry type. * GHCR: The Github
- container registry type. Known values are: "DOCKER_HUB",
- "DOCR", and "GHCR".
- "repository": "str", # Optional. The
- repository name.
- "tag": "latest" # Optional. Default
- value is "latest". The repository tag. Defaults to ``latest``
- if not provided and no digest is provided. Cannot be
- specified if digest is provided.
- },
- "instance_count": 1, # Optional. Default
- value is 1. The amount of instances that this component should be
- scaled to. Default: 1. Must not be set if autoscaling is used.
- "instance_size_slug": {},
- "kind": "UNSPECIFIED", # Optional. Default
- value is "UNSPECIFIED". * UNSPECIFIED: Default job type, will
- auto-complete to POST_DEPLOY kind. * PRE_DEPLOY: Indicates a job
- that runs before an app deployment. * POST_DEPLOY: Indicates a
- job that runs after an app deployment. * FAILED_DEPLOY: Indicates
- a job that runs after a component fails to deploy. Known values
- are: "UNSPECIFIED", "PRE_DEPLOY", "POST_DEPLOY", and
- "FAILED_DEPLOY".
- "log_destinations": [
- {
- "name": "str", # Required.
- "datadog": {
- "api_key": "str", #
- Datadog API key. Required.
- "endpoint": "str" #
- Optional. Datadog HTTP log intake endpoint.
- },
- "logtail": {
- "token": "str" #
- Optional. Logtail token.
- },
- "open_search": {
- "basic_auth": {
- "password":
- "str", # Optional. Password for user defined in
- User. Is required when ``endpoint`` is set.
- Cannot be set if using a DigitalOcean DBaaS
- OpenSearch cluster.
- "user": "str"
- # Optional. Username to authenticate with. Only
- required when ``endpoint`` is set. Defaults to
- ``doadmin`` when ``cluster_name`` is set.
- },
- "cluster_name":
- "str", # Optional. The name of a DigitalOcean DBaaS
- OpenSearch cluster to use as a log forwarding
- destination. Cannot be specified if ``endpoint`` is
- also specified.
- "endpoint": "str", #
- Optional. OpenSearch API Endpoint. Only HTTPS is
- supported. Format:
- https://:code:``::code:``. Cannot be
- specified if ``cluster_name`` is also specified.
- "index_name": "logs"
- # Optional. Default value is "logs". The index name
- to use for the logs. If not set, the default index
- name is "logs".
- },
- "papertrail": {
- "endpoint": "str" #
- Papertrail syslog endpoint. Required.
- }
- }
- ],
- "name": "str", # Optional. The name. Must be
- unique across all components within the same app.
- "run_command": "str", # Optional. An
- optional run command to override the component's default.
- "source_dir": "str", # Optional. An optional
- path to the working directory to use for the build. For
- Dockerfile builds, this will be used as the build context. Must
- be relative to the root of the repo.
- "termination": {
- "grace_period_seconds": 0 #
- Optional. The number of seconds to wait between sending a
- TERM signal to a container and issuing a KILL which causes
- immediate shutdown. (Default 120).
- }
- }
- ],
- "maintenance": {
- "archive": bool, # Optional. Indicates whether the
- app should be archived. Setting this to true implies that enabled is
- set to true.
- "enabled": bool, # Optional. Indicates whether
- maintenance mode should be enabled for the app.
- "offline_page_url": "str" # Optional. A custom
- offline page to display when maintenance mode is enabled or the app
- is archived.
- },
- "region": "str", # Optional. The slug form of the
- geographical origin of the app. Default: ``nearest available``. Known
- values are: "atl", "nyc", "sfo", "tor", "ams", "fra", "lon", "blr",
- "sgp", and "syd".
- "services": [
- {
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
- "bitbucket": {
- "branch": "str", # Optional. The
- name of the branch to use.
- "deploy_on_push": bool, # Optional.
- Whether to automatically deploy new commits made to the repo.
- "repo": "str" # Optional. The name
- of the repo in the format owner/repo. Example:
- ``digitalocean/sample-golang``.
- },
- "build_command": "str", # Optional. An
- optional build command to run while building this component from
- source.
- "cors": {
- "allow_credentials": bool, #
- Optional. Whether browsers should expose the response to the
- client-side JavaScript code when the request"u2019s
- credentials mode is include. This configures the
- ``Access-Control-Allow-Credentials`` header.
- "allow_headers": [
- "str" # Optional. The set of
- allowed HTTP request headers. This configures the
- ``Access-Control-Allow-Headers`` header.
- ],
- "allow_methods": [
- "str" # Optional. The set of
- allowed HTTP methods. This configures the
- ``Access-Control-Allow-Methods`` header.
- ],
- "allow_origins": [
- {
- "exact": "str", #
- Optional. Exact string match. Only 1 of ``exact``"" ,
- ``prefix``"" , or ``regex`` must be set.
- "prefix": "str", #
- Optional. Prefix-based match. Only 1 of ``exact``"" ,
- ``prefix``"" , or ``regex`` must be set.
- "regex": "str" #
- Optional. RE2 style regex-based match. Only 1 of
- ``exact``"" , ``prefix``"" , or ``regex`` must be
- set. For more information about RE2 syntax, see:
- https://github.com/google/re2/wiki/Syntax.
- }
- ],
- "expose_headers": [
- "str" # Optional. The set of
- HTTP response headers that browsers are allowed to
- access. This configures the
- ``Access-Control-Expose-Headers`` header.
- ],
- "max_age": "str" # Optional. An
- optional duration specifying how long browsers can cache the
- results of a preflight request. This configures the
- ``Access-Control-Max-Age`` header.
- },
- "dockerfile_path": "str", # Optional. The
- path to the Dockerfile relative to the root of the repo. If set,
- it will be used to build this component. Otherwise, App Platform
- will attempt to build it using buildpacks.
- "environment_slug": "str", # Optional. An
- environment slug describing the type of this app. For a full
- list, please refer to `the product documentation
- `_.
- "envs": [
- {
- "key": "str", # The variable
- name. Required.
- "scope":
- "RUN_AND_BUILD_TIME", # Optional. Default value is
- "RUN_AND_BUILD_TIME". * RUN_TIME: Made available only at
- run-time * BUILD_TIME: Made available only at build-time
- * RUN_AND_BUILD_TIME: Made available at both build and
- run-time. Known values are: "UNSET", "RUN_TIME",
- "BUILD_TIME", and "RUN_AND_BUILD_TIME".
- "type": "GENERAL", #
- Optional. Default value is "GENERAL". * GENERAL: A
- plain-text environment variable * SECRET: A secret
- encrypted environment variable. Known values are:
- "GENERAL" and "SECRET".
- "value": "str" # Optional.
- The value. If the type is ``SECRET``"" , the value will
- be encrypted on first submission. On following
- submissions, the encrypted value should be used.
- }
- ],
- "git": {
- "branch": "str", # Optional. The
- name of the branch to use.
- "repo_clone_url": "str" # Optional.
- The clone URL of the repo. Example:
- ``https://github.com/digitalocean/sample-golang.git``.
- },
- "github": {
- "branch": "str", # Optional. The
- name of the branch to use.
- "deploy_on_push": bool, # Optional.
- Whether to automatically deploy new commits made to the repo.
- "repo": "str" # Optional. The name
- of the repo in the format owner/repo. Example:
- ``digitalocean/sample-golang``.
- },
- "gitlab": {
- "branch": "str", # Optional. The
- name of the branch to use.
- "deploy_on_push": bool, # Optional.
- Whether to automatically deploy new commits made to the repo.
- "repo": "str" # Optional. The name
- of the repo in the format owner/repo. Example:
- ``digitalocean/sample-golang``.
- },
- "health_check": {
- "failure_threshold": 0, # Optional.
- The number of failed health checks before considered
- unhealthy.
- "http_path": "str", # Optional. The
- route path used for the HTTP health check ping. If not set,
- the HTTP health check will be disabled and a TCP health check
- used instead.
- "initial_delay_seconds": 0, #
- Optional. The number of seconds to wait before beginning
- health checks.
- "period_seconds": 0, # Optional. The
- number of seconds to wait between health checks.
- "port": 0, # Optional. The port on
- which the health check will be performed. If not set, the
- health check will be performed on the component's http_port.
- "success_threshold": 0, # Optional.
- The number of successful health checks before considered
- healthy.
- "timeout_seconds": 0 # Optional. The
- number of seconds after which the check times out.
- },
- "http_port": 0, # Optional. The internal
- port on which this service's run command will listen. Default:
- 8080 If there is not an environment variable with the name
- ``PORT``"" , one will be automatically added with its value set
- to the value of this field.
+ "health_check": {
+ "failure_threshold": 0, # Optional.
+ The number of failed health checks before considered
+ unhealthy.
+ "http_path": "str", # Optional. The
+ route path used for the HTTP health check ping. If not set,
+ the HTTP health check will be disabled and a TCP health check
+ used instead.
+ "initial_delay_seconds": 0, #
+ Optional. The number of seconds to wait before beginning
+ health checks.
+ "period_seconds": 0, # Optional. The
+ number of seconds to wait between health checks.
+ "port": 0, # Optional. The port on
+ which the health check will be performed. If not set, the
+ health check will be performed on the component's http_port.
+ "success_threshold": 0, # Optional.
+ The number of successful health checks before considered
+ healthy.
+ "timeout_seconds": 0 # Optional. The
+ number of seconds after which the check times out.
+ },
+ "http_port": 0, # Optional. The internal
+ port on which this service's run command will listen. Default:
+ 8080 If there is not an environment variable with the name
+ ``PORT``"" , one will be automatically added with its value set
+ to the value of this field.
"image": {
"deploy_on_push": {
"enabled": bool # Optional.
@@ -116675,8 +116408,9 @@ def create_rollback(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -116685,8 +116419,7 @@ def create_rollback(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -117157,8 +116890,8 @@ def create_rollback(
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -117443,21 +117176,6 @@ def create_rollback(
},
"jobs": [
{
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
"bitbucket": {
"branch": "str", # Optional. The
name of the branch to use.
@@ -117648,18 +117366,23 @@ def create_rollback(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -118191,8 +117914,9 @@ def create_rollback(
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -118201,8 +117925,7 @@ def create_rollback(
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -119268,8 +118991,8 @@ def revert_rollback(self, app_id: str, **kwargs: Any) -> JSON:
"FUNCTIONS_AVERAGE_DURATION_MS",
"FUNCTIONS_ERROR_RATE_PER_MINUTE",
"FUNCTIONS_AVERAGE_WAIT_TIME_MS",
- "FUNCTIONS_ERROR_COUNT", and
- "FUNCTIONS_GB_RATE_PER_SECOND".
+ "FUNCTIONS_ERROR_COUNT", "FUNCTIONS_GB_RATE_PER_SECOND",
+ "REQUESTS_PER_SECOND", and "REQUEST_DURATION_P95_MS".
"value": 0.0, # Optional.
Threshold value for alert.
"window":
@@ -119553,21 +119276,214 @@ def revert_rollback(self, app_id: str, **kwargs: Any) -> JSON:
]
},
"jobs": [
+ {
+ "bitbucket": {
+ "branch": "str", # Optional. The
+ name of the branch to use.
+ "deploy_on_push": bool, # Optional.
+ Whether to automatically deploy new commits made to the repo.
+ "repo": "str" # Optional. The name
+ of the repo in the format owner/repo. Example:
+ ``digitalocean/sample-golang``.
+ },
+ "build_command": "str", # Optional. An
+ optional build command to run while building this component from
+ source.
+ "dockerfile_path": "str", # Optional. The
+ path to the Dockerfile relative to the root of the repo. If set,
+ it will be used to build this component. Otherwise, App Platform
+ will attempt to build it using buildpacks.
+ "environment_slug": "str", # Optional. An
+ environment slug describing the type of this app. For a full
+ list, please refer to `the product documentation
+ `_.
+ "envs": [
+ {
+ "key": "str", # The variable
+ name. Required.
+ "scope":
+ "RUN_AND_BUILD_TIME", # Optional. Default value is
+ "RUN_AND_BUILD_TIME". * RUN_TIME: Made available only at
+ run-time * BUILD_TIME: Made available only at build-time
+ * RUN_AND_BUILD_TIME: Made available at both build and
+ run-time. Known values are: "UNSET", "RUN_TIME",
+ "BUILD_TIME", and "RUN_AND_BUILD_TIME".
+ "type": "GENERAL", #
+ Optional. Default value is "GENERAL". * GENERAL: A
+ plain-text environment variable * SECRET: A secret
+ encrypted environment variable. Known values are:
+ "GENERAL" and "SECRET".
+ "value": "str" # Optional.
+ The value. If the type is ``SECRET``"" , the value will
+ be encrypted on first submission. On following
+ submissions, the encrypted value should be used.
+ }
+ ],
+ "git": {
+ "branch": "str", # Optional. The
+ name of the branch to use.
+ "repo_clone_url": "str" # Optional.
+ The clone URL of the repo. Example:
+ ``https://github.com/digitalocean/sample-golang.git``.
+ },
+ "github": {
+ "branch": "str", # Optional. The
+ name of the branch to use.
+ "deploy_on_push": bool, # Optional.
+ Whether to automatically deploy new commits made to the repo.
+ "repo": "str" # Optional. The name
+ of the repo in the format owner/repo. Example:
+ ``digitalocean/sample-golang``.
+ },
+ "gitlab": {
+ "branch": "str", # Optional. The
+ name of the branch to use.
+ "deploy_on_push": bool, # Optional.
+ Whether to automatically deploy new commits made to the repo.
+ "repo": "str" # Optional. The name
+ of the repo in the format owner/repo. Example:
+ ``digitalocean/sample-golang``.
+ },
+ "image": {
+ "deploy_on_push": {
+ "enabled": bool # Optional.
+ Whether to automatically deploy new images. Can only be
+ used for images hosted in DOCR and can only be used with
+ an image tag, not a specific digest.
+ },
+ "digest": "str", # Optional. The
+ image digest. Cannot be specified if tag is provided.
+ "registry": "str", # Optional. The
+ registry name. Must be left empty for the ``DOCR`` registry
+ type.
+ "registry_credentials": "str", #
+ Optional. The credentials to be able to pull the image. The
+ value will be encrypted on first submission. On following
+ submissions, the encrypted value should be used. *
+ "$username:$access_token" for registries of type
+ ``DOCKER_HUB``. * "$username:$access_token" for registries of
+ type ``GHCR``.
+ "registry_type": "str", # Optional.
+ * DOCKER_HUB: The DockerHub container registry type. * DOCR:
+ The DigitalOcean container registry type. * GHCR: The Github
+ container registry type. Known values are: "DOCKER_HUB",
+ "DOCR", and "GHCR".
+ "repository": "str", # Optional. The
+ repository name.
+ "tag": "latest" # Optional. Default
+ value is "latest". The repository tag. Defaults to ``latest``
+ if not provided and no digest is provided. Cannot be
+ specified if digest is provided.
+ },
+ "instance_count": 1, # Optional. Default
+ value is 1. The amount of instances that this component should be
+ scaled to. Default: 1. Must not be set if autoscaling is used.
+ "instance_size_slug": {},
+ "kind": "UNSPECIFIED", # Optional. Default
+ value is "UNSPECIFIED". * UNSPECIFIED: Default job type, will
+ auto-complete to POST_DEPLOY kind. * PRE_DEPLOY: Indicates a job
+ that runs before an app deployment. * POST_DEPLOY: Indicates a
+ job that runs after an app deployment. * FAILED_DEPLOY: Indicates
+ a job that runs after a component fails to deploy. Known values
+ are: "UNSPECIFIED", "PRE_DEPLOY", "POST_DEPLOY", and
+ "FAILED_DEPLOY".
+ "log_destinations": [
+ {
+ "name": "str", # Required.
+ "datadog": {
+ "api_key": "str", #
+ Datadog API key. Required.
+ "endpoint": "str" #
+ Optional. Datadog HTTP log intake endpoint.
+ },
+ "logtail": {
+ "token": "str" #
+ Optional. Logtail token.
+ },
+ "open_search": {
+ "basic_auth": {
+ "password":
+ "str", # Optional. Password for user defined in
+ User. Is required when ``endpoint`` is set.
+ Cannot be set if using a DigitalOcean DBaaS
+ OpenSearch cluster.
+ "user": "str"
+ # Optional. Username to authenticate with. Only
+ required when ``endpoint`` is set. Defaults to
+ ``doadmin`` when ``cluster_name`` is set.
+ },
+ "cluster_name":
+ "str", # Optional. The name of a DigitalOcean DBaaS
+ OpenSearch cluster to use as a log forwarding
+ destination. Cannot be specified if ``endpoint`` is
+ also specified.
+ "endpoint": "str", #
+ Optional. OpenSearch API Endpoint. Only HTTPS is
+ supported. Format:
+ https://:code:``::code:``. Cannot be
+ specified if ``cluster_name`` is also specified.
+ "index_name": "logs"
+ # Optional. Default value is "logs". The index name
+ to use for the logs. If not set, the default index
+ name is "logs".
+ },
+ "papertrail": {
+ "endpoint": "str" #
+ Papertrail syslog endpoint. Required.
+ }
+ }
+ ],
+ "name": "str", # Optional. The name. Must be
+ unique across all components within the same app.
+ "run_command": "str", # Optional. An
+ optional run command to override the component's default.
+ "source_dir": "str", # Optional. An optional
+ path to the working directory to use for the build. For
+ Dockerfile builds, this will be used as the build context. Must
+ be relative to the root of the repo.
+ "termination": {
+ "grace_period_seconds": 0 #
+ Optional. The number of seconds to wait between sending a
+ TERM signal to a container and issuing a KILL which causes
+ immediate shutdown. (Default 120).
+ }
+ }
+ ],
+ "maintenance": {
+ "archive": bool, # Optional. Indicates whether the
+ app should be archived. Setting this to true implies that enabled is
+ set to true.
+ "enabled": bool, # Optional. Indicates whether
+ maintenance mode should be enabled for the app.
+ "offline_page_url": "str" # Optional. A custom
+ offline page to display when maintenance mode is enabled or the app
+ is archived.
+ },
+ "region": "str", # Optional. The slug form of the
+ geographical origin of the app. Default: ``nearest available``. Known
+ values are: "atl", "nyc", "sfo", "tor", "ams", "fra", "lon", "blr",
+ "sgp", and "syd".
+ "services": [
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
+ "request_duration": {
+ "p95_milliseconds": 0
+ # Optional. The p95 target request duration in
+ milliseconds for the component.
+ },
+ "requests_per_second": {
+ "per_instance": 0 #
+ Optional. The target number of requests per second
+ per instance for the component.
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -119581,6 +119497,48 @@ def revert_rollback(self, app_id: str, **kwargs: Any) -> JSON:
"build_command": "str", # Optional. An
optional build command to run while building this component from
source.
+ "cors": {
+ "allow_credentials": bool, #
+ Optional. Whether browsers should expose the response to the
+ client-side JavaScript code when the request"u2019s
+ credentials mode is include. This configures the
+ ``Access-Control-Allow-Credentials`` header.
+ "allow_headers": [
+ "str" # Optional. The set of
+ allowed HTTP request headers. This configures the
+ ``Access-Control-Allow-Headers`` header.
+ ],
+ "allow_methods": [
+ "str" # Optional. The set of
+ allowed HTTP methods. This configures the
+ ``Access-Control-Allow-Methods`` header.
+ ],
+ "allow_origins": [
+ {
+ "exact": "str", #
+ Optional. Exact string match. Only 1 of ``exact``"" ,
+ ``prefix``"" , or ``regex`` must be set.
+ "prefix": "str", #
+ Optional. Prefix-based match. Only 1 of ``exact``"" ,
+ ``prefix``"" , or ``regex`` must be set.
+ "regex": "str" #
+ Optional. RE2 style regex-based match. Only 1 of
+ ``exact``"" , ``prefix``"" , or ``regex`` must be
+ set. For more information about RE2 syntax, see:
+ https://github.com/google/re2/wiki/Syntax.
+ }
+ ],
+ "expose_headers": [
+ "str" # Optional. The set of
+ HTTP response headers that browsers are allowed to
+ access. This configures the
+ ``Access-Control-Expose-Headers`` header.
+ ],
+ "max_age": "str" # Optional. An
+ optional duration specifying how long browsers can cache the
+ results of a preflight request. This configures the
+ ``Access-Control-Max-Age`` header.
+ },
"dockerfile_path": "str", # Optional. The
path to the Dockerfile relative to the root of the repo. If set,
it will be used to build this component. Otherwise, App Platform
@@ -119636,278 +119594,33 @@ def revert_rollback(self, app_id: str, **kwargs: Any) -> JSON:
of the repo in the format owner/repo. Example:
``digitalocean/sample-golang``.
},
- "image": {
- "deploy_on_push": {
- "enabled": bool # Optional.
- Whether to automatically deploy new images. Can only be
- used for images hosted in DOCR and can only be used with
- an image tag, not a specific digest.
- },
- "digest": "str", # Optional. The
- image digest. Cannot be specified if tag is provided.
- "registry": "str", # Optional. The
- registry name. Must be left empty for the ``DOCR`` registry
- type.
- "registry_credentials": "str", #
- Optional. The credentials to be able to pull the image. The
- value will be encrypted on first submission. On following
- submissions, the encrypted value should be used. *
- "$username:$access_token" for registries of type
- ``DOCKER_HUB``. * "$username:$access_token" for registries of
- type ``GHCR``.
- "registry_type": "str", # Optional.
- * DOCKER_HUB: The DockerHub container registry type. * DOCR:
- The DigitalOcean container registry type. * GHCR: The Github
- container registry type. Known values are: "DOCKER_HUB",
- "DOCR", and "GHCR".
- "repository": "str", # Optional. The
- repository name.
- "tag": "latest" # Optional. Default
- value is "latest". The repository tag. Defaults to ``latest``
- if not provided and no digest is provided. Cannot be
- specified if digest is provided.
- },
- "instance_count": 1, # Optional. Default
- value is 1. The amount of instances that this component should be
- scaled to. Default: 1. Must not be set if autoscaling is used.
- "instance_size_slug": {},
- "kind": "UNSPECIFIED", # Optional. Default
- value is "UNSPECIFIED". * UNSPECIFIED: Default job type, will
- auto-complete to POST_DEPLOY kind. * PRE_DEPLOY: Indicates a job
- that runs before an app deployment. * POST_DEPLOY: Indicates a
- job that runs after an app deployment. * FAILED_DEPLOY: Indicates
- a job that runs after a component fails to deploy. Known values
- are: "UNSPECIFIED", "PRE_DEPLOY", "POST_DEPLOY", and
- "FAILED_DEPLOY".
- "log_destinations": [
- {
- "name": "str", # Required.
- "datadog": {
- "api_key": "str", #
- Datadog API key. Required.
- "endpoint": "str" #
- Optional. Datadog HTTP log intake endpoint.
- },
- "logtail": {
- "token": "str" #
- Optional. Logtail token.
- },
- "open_search": {
- "basic_auth": {
- "password":
- "str", # Optional. Password for user defined in
- User. Is required when ``endpoint`` is set.
- Cannot be set if using a DigitalOcean DBaaS
- OpenSearch cluster.
- "user": "str"
- # Optional. Username to authenticate with. Only
- required when ``endpoint`` is set. Defaults to
- ``doadmin`` when ``cluster_name`` is set.
- },
- "cluster_name":
- "str", # Optional. The name of a DigitalOcean DBaaS
- OpenSearch cluster to use as a log forwarding
- destination. Cannot be specified if ``endpoint`` is
- also specified.
- "endpoint": "str", #
- Optional. OpenSearch API Endpoint. Only HTTPS is
- supported. Format:
- https://:code:``::code:``. Cannot be
- specified if ``cluster_name`` is also specified.
- "index_name": "logs"
- # Optional. Default value is "logs". The index name
- to use for the logs. If not set, the default index
- name is "logs".
- },
- "papertrail": {
- "endpoint": "str" #
- Papertrail syslog endpoint. Required.
- }
- }
- ],
- "name": "str", # Optional. The name. Must be
- unique across all components within the same app.
- "run_command": "str", # Optional. An
- optional run command to override the component's default.
- "source_dir": "str", # Optional. An optional
- path to the working directory to use for the build. For
- Dockerfile builds, this will be used as the build context. Must
- be relative to the root of the repo.
- "termination": {
- "grace_period_seconds": 0 #
- Optional. The number of seconds to wait between sending a
- TERM signal to a container and issuing a KILL which causes
- immediate shutdown. (Default 120).
- }
- }
- ],
- "maintenance": {
- "archive": bool, # Optional. Indicates whether the
- app should be archived. Setting this to true implies that enabled is
- set to true.
- "enabled": bool, # Optional. Indicates whether
- maintenance mode should be enabled for the app.
- "offline_page_url": "str" # Optional. A custom
- offline page to display when maintenance mode is enabled or the app
- is archived.
- },
- "region": "str", # Optional. The slug form of the
- geographical origin of the app. Default: ``nearest available``. Known
- values are: "atl", "nyc", "sfo", "tor", "ams", "fra", "lon", "blr",
- "sgp", and "syd".
- "services": [
- {
- "autoscaling": {
- "max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
- "metrics": {
- "cpu": {
- "percent": 80 #
- Optional. Default value is 80. The average target CPU
- utilization for the component.
- }
- },
- "min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
- },
- "bitbucket": {
- "branch": "str", # Optional. The
- name of the branch to use.
- "deploy_on_push": bool, # Optional.
- Whether to automatically deploy new commits made to the repo.
- "repo": "str" # Optional. The name
- of the repo in the format owner/repo. Example:
- ``digitalocean/sample-golang``.
- },
- "build_command": "str", # Optional. An
- optional build command to run while building this component from
- source.
- "cors": {
- "allow_credentials": bool, #
- Optional. Whether browsers should expose the response to the
- client-side JavaScript code when the request"u2019s
- credentials mode is include. This configures the
- ``Access-Control-Allow-Credentials`` header.
- "allow_headers": [
- "str" # Optional. The set of
- allowed HTTP request headers. This configures the
- ``Access-Control-Allow-Headers`` header.
- ],
- "allow_methods": [
- "str" # Optional. The set of
- allowed HTTP methods. This configures the
- ``Access-Control-Allow-Methods`` header.
- ],
- "allow_origins": [
- {
- "exact": "str", #
- Optional. Exact string match. Only 1 of ``exact``"" ,
- ``prefix``"" , or ``regex`` must be set.
- "prefix": "str", #
- Optional. Prefix-based match. Only 1 of ``exact``"" ,
- ``prefix``"" , or ``regex`` must be set.
- "regex": "str" #
- Optional. RE2 style regex-based match. Only 1 of
- ``exact``"" , ``prefix``"" , or ``regex`` must be
- set. For more information about RE2 syntax, see:
- https://github.com/google/re2/wiki/Syntax.
- }
- ],
- "expose_headers": [
- "str" # Optional. The set of
- HTTP response headers that browsers are allowed to
- access. This configures the
- ``Access-Control-Expose-Headers`` header.
- ],
- "max_age": "str" # Optional. An
- optional duration specifying how long browsers can cache the
- results of a preflight request. This configures the
- ``Access-Control-Max-Age`` header.
- },
- "dockerfile_path": "str", # Optional. The
- path to the Dockerfile relative to the root of the repo. If set,
- it will be used to build this component. Otherwise, App Platform
- will attempt to build it using buildpacks.
- "environment_slug": "str", # Optional. An
- environment slug describing the type of this app. For a full
- list, please refer to `the product documentation
- `_.
- "envs": [
- {
- "key": "str", # The variable
- name. Required.
- "scope":
- "RUN_AND_BUILD_TIME", # Optional. Default value is
- "RUN_AND_BUILD_TIME". * RUN_TIME: Made available only at
- run-time * BUILD_TIME: Made available only at build-time
- * RUN_AND_BUILD_TIME: Made available at both build and
- run-time. Known values are: "UNSET", "RUN_TIME",
- "BUILD_TIME", and "RUN_AND_BUILD_TIME".
- "type": "GENERAL", #
- Optional. Default value is "GENERAL". * GENERAL: A
- plain-text environment variable * SECRET: A secret
- encrypted environment variable. Known values are:
- "GENERAL" and "SECRET".
- "value": "str" # Optional.
- The value. If the type is ``SECRET``"" , the value will
- be encrypted on first submission. On following
- submissions, the encrypted value should be used.
- }
- ],
- "git": {
- "branch": "str", # Optional. The
- name of the branch to use.
- "repo_clone_url": "str" # Optional.
- The clone URL of the repo. Example:
- ``https://github.com/digitalocean/sample-golang.git``.
- },
- "github": {
- "branch": "str", # Optional. The
- name of the branch to use.
- "deploy_on_push": bool, # Optional.
- Whether to automatically deploy new commits made to the repo.
- "repo": "str" # Optional. The name
- of the repo in the format owner/repo. Example:
- ``digitalocean/sample-golang``.
- },
- "gitlab": {
- "branch": "str", # Optional. The
- name of the branch to use.
- "deploy_on_push": bool, # Optional.
- Whether to automatically deploy new commits made to the repo.
- "repo": "str" # Optional. The name
- of the repo in the format owner/repo. Example:
- ``digitalocean/sample-golang``.
- },
- "health_check": {
- "failure_threshold": 0, # Optional.
- The number of failed health checks before considered
- unhealthy.
- "http_path": "str", # Optional. The
- route path used for the HTTP health check ping. If not set,
- the HTTP health check will be disabled and a TCP health check
- used instead.
- "initial_delay_seconds": 0, #
- Optional. The number of seconds to wait before beginning
- health checks.
- "period_seconds": 0, # Optional. The
- number of seconds to wait between health checks.
- "port": 0, # Optional. The port on
- which the health check will be performed. If not set, the
- health check will be performed on the component's http_port.
- "success_threshold": 0, # Optional.
- The number of successful health checks before considered
- healthy.
- "timeout_seconds": 0 # Optional. The
- number of seconds after which the check times out.
- },
- "http_port": 0, # Optional. The internal
- port on which this service's run command will listen. Default:
- 8080 If there is not an environment variable with the name
- ``PORT``"" , one will be automatically added with its value set
- to the value of this field.
+ "health_check": {
+ "failure_threshold": 0, # Optional.
+ The number of failed health checks before considered
+ unhealthy.
+ "http_path": "str", # Optional. The
+ route path used for the HTTP health check ping. If not set,
+ the HTTP health check will be disabled and a TCP health check
+ used instead.
+ "initial_delay_seconds": 0, #
+ Optional. The number of seconds to wait before beginning
+ health checks.
+ "period_seconds": 0, # Optional. The
+ number of seconds to wait between health checks.
+ "port": 0, # Optional. The port on
+ which the health check will be performed. If not set, the
+ health check will be performed on the component's http_port.
+ "success_threshold": 0, # Optional.
+ The number of successful health checks before considered
+ healthy.
+ "timeout_seconds": 0 # Optional. The
+ number of seconds after which the check times out.
+ },
+ "http_port": 0, # Optional. The internal
+ port on which this service's run command will listen. Default:
+ 8080 If there is not an environment variable with the name
+ ``PORT``"" , one will be automatically added with its value set
+ to the value of this field.
"image": {
"deploy_on_push": {
"enabled": bool # Optional.
@@ -120302,8 +120015,9 @@ def revert_rollback(self, app_id: str, **kwargs: Any) -> JSON:
{
"autoscaling": {
"max_instance_count": 0, # Optional.
- The maximum amount of instances for this component. Must be
- more than min_instance_count.
+ The maximum amount of instances for this component. Maximum
+ 250. Consider using a larger instance size if your
+ application requires more than 250 instances.
"metrics": {
"cpu": {
"percent": 80 #
@@ -120312,8 +120026,7 @@ def revert_rollback(self, app_id: str, **kwargs: Any) -> JSON:
}
},
"min_instance_count": 0 # Optional.
- The minimum amount of instances for this component. Must be
- less than max_instance_count.
+ The minimum amount of instances for this component.
},
"bitbucket": {
"branch": "str", # Optional. The
@@ -253024,6 +252737,1509 @@ def regenerate_model_api_key(self, api_key_uuid: str, **kwargs: Any) -> JSON:
return cast(JSON, deserialized) # type: ignore
+ @distributed_trace
+ def list_model_routers(
+ self,
+ *,
+ page: Optional[int] = None,
+ per_page: Optional[int] = None,
+ **kwargs: Any,
+ ) -> JSON:
+ # pylint: disable=line-too-long
+ """List Model Routers.
+
+ To list model routers, send a GET request to ``/v2/gen-ai/models/routers``.
+
+ :keyword page: Page number. Default value is None.
+ :paramtype page: int
+ :keyword per_page: Items per page. Default value is None.
+ :paramtype per_page: int
+ :return: JSON object
+ :rtype: JSON
+ :raises ~azure.core.exceptions.HttpResponseError:
+
+ Example:
+ .. code-block:: python
+
+ # response body for status code(s): 200
+ response == {
+ "links": {
+ "pages": {
+ "first": "str", # Optional. First page.
+ "last": "str", # Optional. Last page.
+ "next": "str", # Optional. Next page.
+ "previous": "str" # Optional. Previous page.
+ }
+ },
+ "meta": {
+ "page": 0, # Optional. The current page.
+ "pages": 0, # Optional. Total number of pages.
+ "total": 0 # Optional. Total amount of items over all pages.
+ },
+ "model_routers": [
+ {
+ "config": {
+ "fallback_models": [
+ "str" # Optional. Router-level fallback
+ models.
+ ],
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", #
+ Optional. Short task description.
+ "name": "str" # Optional.
+ Task name.
+ },
+ "models": [
+ "str" # Optional. Models
+ assigned to the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional.
+ One of: none, cheapest, fastest. Known values are:
+ "none", "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task
+ slug.
+ }
+ ]
+ },
+ "created_at": "2020-02-20 00:00:00", # Optional. Creation
+ date / time.
+ "description": "str", # Optional. Description.
+ "name": "str", # Optional. Name of the model router.
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ],
+ "updated_at": "2020-02-20 00:00:00", # Optional. Last
+ modified.
+ "uuid": "str" # Optional. Unique id.
+ }
+ ]
+ }
+ # response body for status code(s): 404
+ response == {
+ "id": "str", # A short identifier corresponding to the HTTP status code
+ returned. For example, the ID for a response returning a 404 status code would
+ be "not_found.". Required.
+ "message": "str", # A message providing additional information about the
+ error, including details to help resolve it when possible. Required.
+ "request_id": "str" # Optional. Optionally, some endpoints may include a
+ request ID that should be provided when reporting bugs or opening support
+ tickets to help identify the issue.
+ }
+ """
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ 401: cast(
+ Type[HttpResponseError],
+ lambda response: ClientAuthenticationError(response=response),
+ ),
+ 429: HttpResponseError,
+ 500: HttpResponseError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = kwargs.pop("params", {}) or {}
+
+ cls: ClsType[JSON] = kwargs.pop("cls", None)
+
+ _request = build_genai_list_model_routers_request(
+ page=page,
+ per_page=per_page,
+ headers=_headers,
+ params=_params,
+ )
+ _request.url = self._client.format_url(_request.url)
+
+ _stream = False
+ pipeline_response: PipelineResponse = (
+ self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 404]:
+ if _stream:
+ response.read() # Load the body in memory and close the socket
+ map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore
+ raise HttpResponseError(response=response)
+
+ response_headers = {}
+ if response.status_code == 200:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if response.status_code == 404:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if cls:
+ return cls(pipeline_response, cast(JSON, deserialized), response_headers) # type: ignore
+
+ return cast(JSON, deserialized) # type: ignore
+
+ @overload
+ def create_model_router(
+ self,
+ body: Optional[JSON] = None,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any,
+ ) -> JSON:
+ # pylint: disable=line-too-long
+ """Create a Model Router.
+
+ To create a model router, send a POST request to ``/v2/gen-ai/models/routers``.
+
+ :param body: Default value is None.
+ :type body: JSON
+ :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
+ Default value is "application/json".
+ :paramtype content_type: str
+ :return: JSON object
+ :rtype: JSON
+ :raises ~azure.core.exceptions.HttpResponseError:
+
+ Example:
+ .. code-block:: python
+
+ # JSON input template you can fill out and use as your body input.
+ body = {
+ "description": "str", # Optional. Model router description.
+ "fallback_models": [
+ "str" # Optional. Fallback models.
+ ],
+ "name": "str", # Optional. Model router name.
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", # Optional. Short task
+ description.
+ "name": "str" # Optional. Task name.
+ },
+ "models": [
+ "str" # Optional. Models assigned to the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional. One of: none, cheapest,
+ fastest. Known values are: "none", "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ],
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ]
+ }
+
+ # response body for status code(s): 200
+ response == {
+ "model_router": {
+ "config": {
+ "fallback_models": [
+ "str" # Optional. Router-level fallback models.
+ ],
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", # Optional.
+ Short task description.
+ "name": "str" # Optional. Task name.
+ },
+ "models": [
+ "str" # Optional. Models assigned to
+ the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional. One of:
+ none, cheapest, fastest. Known values are: "none",
+ "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ]
+ },
+ "created_at": "2020-02-20 00:00:00", # Optional. Creation date /
+ time.
+ "description": "str", # Optional. Description.
+ "name": "str", # Optional. Name of the model router.
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ],
+ "updated_at": "2020-02-20 00:00:00", # Optional. Last modified.
+ "uuid": "str" # Optional. Unique id.
+ }
+ }
+ # response body for status code(s): 404
+ response == {
+ "id": "str", # A short identifier corresponding to the HTTP status code
+ returned. For example, the ID for a response returning a 404 status code would
+ be "not_found.". Required.
+ "message": "str", # A message providing additional information about the
+ error, including details to help resolve it when possible. Required.
+ "request_id": "str" # Optional. Optionally, some endpoints may include a
+ request ID that should be provided when reporting bugs or opening support
+ tickets to help identify the issue.
+ }
+ """
+
+ @overload
+ def create_model_router(
+ self,
+ body: Optional[IO[bytes]] = None,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any,
+ ) -> JSON:
+ # pylint: disable=line-too-long
+ """Create a Model Router.
+
+ To create a model router, send a POST request to ``/v2/gen-ai/models/routers``.
+
+ :param body: Default value is None.
+ :type body: IO[bytes]
+ :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
+ Default value is "application/json".
+ :paramtype content_type: str
+ :return: JSON object
+ :rtype: JSON
+ :raises ~azure.core.exceptions.HttpResponseError:
+
+ Example:
+ .. code-block:: python
+
+ # response body for status code(s): 200
+ response == {
+ "model_router": {
+ "config": {
+ "fallback_models": [
+ "str" # Optional. Router-level fallback models.
+ ],
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", # Optional.
+ Short task description.
+ "name": "str" # Optional. Task name.
+ },
+ "models": [
+ "str" # Optional. Models assigned to
+ the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional. One of:
+ none, cheapest, fastest. Known values are: "none",
+ "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ]
+ },
+ "created_at": "2020-02-20 00:00:00", # Optional. Creation date /
+ time.
+ "description": "str", # Optional. Description.
+ "name": "str", # Optional. Name of the model router.
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ],
+ "updated_at": "2020-02-20 00:00:00", # Optional. Last modified.
+ "uuid": "str" # Optional. Unique id.
+ }
+ }
+ # response body for status code(s): 404
+ response == {
+ "id": "str", # A short identifier corresponding to the HTTP status code
+ returned. For example, the ID for a response returning a 404 status code would
+ be "not_found.". Required.
+ "message": "str", # A message providing additional information about the
+ error, including details to help resolve it when possible. Required.
+ "request_id": "str" # Optional. Optionally, some endpoints may include a
+ request ID that should be provided when reporting bugs or opening support
+ tickets to help identify the issue.
+ }
+ """
+
+ @distributed_trace
+ def create_model_router(
+ self, body: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any
+ ) -> JSON:
+ # pylint: disable=line-too-long
+ """Create a Model Router.
+
+ To create a model router, send a POST request to ``/v2/gen-ai/models/routers``.
+
+ :param body: Is either a JSON type or a IO[bytes] type. Default value is None.
+ :type body: JSON or IO[bytes]
+ :return: JSON object
+ :rtype: JSON
+ :raises ~azure.core.exceptions.HttpResponseError:
+
+ Example:
+ .. code-block:: python
+
+ # JSON input template you can fill out and use as your body input.
+ body = {
+ "description": "str", # Optional. Model router description.
+ "fallback_models": [
+ "str" # Optional. Fallback models.
+ ],
+ "name": "str", # Optional. Model router name.
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", # Optional. Short task
+ description.
+ "name": "str" # Optional. Task name.
+ },
+ "models": [
+ "str" # Optional. Models assigned to the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional. One of: none, cheapest,
+ fastest. Known values are: "none", "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ],
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ]
+ }
+
+ # response body for status code(s): 200
+ response == {
+ "model_router": {
+ "config": {
+ "fallback_models": [
+ "str" # Optional. Router-level fallback models.
+ ],
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", # Optional.
+ Short task description.
+ "name": "str" # Optional. Task name.
+ },
+ "models": [
+ "str" # Optional. Models assigned to
+ the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional. One of:
+ none, cheapest, fastest. Known values are: "none",
+ "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ]
+ },
+ "created_at": "2020-02-20 00:00:00", # Optional. Creation date /
+ time.
+ "description": "str", # Optional. Description.
+ "name": "str", # Optional. Name of the model router.
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ],
+ "updated_at": "2020-02-20 00:00:00", # Optional. Last modified.
+ "uuid": "str" # Optional. Unique id.
+ }
+ }
+ # response body for status code(s): 404
+ response == {
+ "id": "str", # A short identifier corresponding to the HTTP status code
+ returned. For example, the ID for a response returning a 404 status code would
+ be "not_found.". Required.
+ "message": "str", # A message providing additional information about the
+ error, including details to help resolve it when possible. Required.
+ "request_id": "str" # Optional. Optionally, some endpoints may include a
+ request ID that should be provided when reporting bugs or opening support
+ tickets to help identify the issue.
+ }
+ """
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ 401: cast(
+ Type[HttpResponseError],
+ lambda response: ClientAuthenticationError(response=response),
+ ),
+ 429: HttpResponseError,
+ 500: HttpResponseError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
+ _params = kwargs.pop("params", {}) or {}
+
+ content_type: Optional[str] = kwargs.pop(
+ "content_type", _headers.pop("Content-Type", None)
+ )
+ cls: ClsType[JSON] = kwargs.pop("cls", None)
+
+ content_type = content_type or "application/json"
+ _json = None
+ _content = None
+ if isinstance(body, (IOBase, bytes)):
+ _content = body
+ else:
+ if body is not None:
+ _json = body
+ else:
+ _json = None
+
+ _request = build_genai_create_model_router_request(
+ content_type=content_type,
+ json=_json,
+ content=_content,
+ headers=_headers,
+ params=_params,
+ )
+ _request.url = self._client.format_url(_request.url)
+
+ _stream = False
+ pipeline_response: PipelineResponse = (
+ self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 404]:
+ if _stream:
+ response.read() # Load the body in memory and close the socket
+ map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore
+ raise HttpResponseError(response=response)
+
+ response_headers = {}
+ if response.status_code == 200:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if response.status_code == 404:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if cls:
+ return cls(pipeline_response, cast(JSON, deserialized), response_headers) # type: ignore
+
+ return cast(JSON, deserialized) # type: ignore
+
+ @distributed_trace
+ def list_model_router_presets(
+ self,
+ *,
+ page: Optional[int] = None,
+ per_page: Optional[int] = None,
+ **kwargs: Any,
+ ) -> JSON:
+ # pylint: disable=line-too-long
+ """List Model Router Presets.
+
+ To list model router presets, send a GET request to ``/v2/gen-ai/models/routers/presets``.
+
+ :keyword page: Page number. Default value is None.
+ :paramtype page: int
+ :keyword per_page: Items per page. Default value is None.
+ :paramtype per_page: int
+ :return: JSON object
+ :rtype: JSON
+ :raises ~azure.core.exceptions.HttpResponseError:
+
+ Example:
+ .. code-block:: python
+
+ # response body for status code(s): 200
+ response == {
+ "links": {
+ "pages": {
+ "first": "str", # Optional. First page.
+ "last": "str", # Optional. Last page.
+ "next": "str", # Optional. Next page.
+ "previous": "str" # Optional. Previous page.
+ }
+ },
+ "meta": {
+ "page": 0, # Optional. The current page.
+ "pages": 0, # Optional. Total number of pages.
+ "total": 0 # Optional. Total amount of items over all pages.
+ },
+ "presets": [
+ {
+ "config": {
+ "fallback_models": [
+ "str" # Optional. Router-level fallback
+ models.
+ ],
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", #
+ Optional. Short task description.
+ "name": "str" # Optional.
+ Task name.
+ },
+ "models": [
+ "str" # Optional. Models
+ assigned to the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional.
+ One of: none, cheapest, fastest. Known values are:
+ "none", "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task
+ slug.
+ }
+ ]
+ },
+ "display_name": "str", # Optional. Display name for UI
+ surfaces.
+ "long_description": "str", # Optional. Long description for
+ details views.
+ "short_description": "str", # Optional. Short description
+ for list views.
+ "slug": "str" # Optional. Stable slug for routing usage.
+ }
+ ]
+ }
+ # response body for status code(s): 404
+ response == {
+ "id": "str", # A short identifier corresponding to the HTTP status code
+ returned. For example, the ID for a response returning a 404 status code would
+ be "not_found.". Required.
+ "message": "str", # A message providing additional information about the
+ error, including details to help resolve it when possible. Required.
+ "request_id": "str" # Optional. Optionally, some endpoints may include a
+ request ID that should be provided when reporting bugs or opening support
+ tickets to help identify the issue.
+ }
+ """
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ 401: cast(
+ Type[HttpResponseError],
+ lambda response: ClientAuthenticationError(response=response),
+ ),
+ 429: HttpResponseError,
+ 500: HttpResponseError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = kwargs.pop("params", {}) or {}
+
+ cls: ClsType[JSON] = kwargs.pop("cls", None)
+
+ _request = build_genai_list_model_router_presets_request(
+ page=page,
+ per_page=per_page,
+ headers=_headers,
+ params=_params,
+ )
+ _request.url = self._client.format_url(_request.url)
+
+ _stream = False
+ pipeline_response: PipelineResponse = (
+ self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 404]:
+ if _stream:
+ response.read() # Load the body in memory and close the socket
+ map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore
+ raise HttpResponseError(response=response)
+
+ response_headers = {}
+ if response.status_code == 200:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if response.status_code == 404:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if cls:
+ return cls(pipeline_response, cast(JSON, deserialized), response_headers) # type: ignore
+
+ return cast(JSON, deserialized) # type: ignore
+
+ @distributed_trace
+ def list_model_router_task_presets(
+ self,
+ *,
+ page: Optional[int] = None,
+ per_page: Optional[int] = None,
+ **kwargs: Any,
+ ) -> JSON:
+ # pylint: disable=line-too-long
+ """List Model Router Task Presets.
+
+ To list model router task presets, send a GET request to
+ ``/v2/gen-ai/models/routers/tasks/presets``.
+
+ :keyword page: Page number. Default value is None.
+ :paramtype page: int
+ :keyword per_page: Items per page. Default value is None.
+ :paramtype per_page: int
+ :return: JSON object
+ :rtype: JSON
+ :raises ~azure.core.exceptions.HttpResponseError:
+
+ Example:
+ .. code-block:: python
+
+ # response body for status code(s): 200
+ response == {
+ "links": {
+ "pages": {
+ "first": "str", # Optional. First page.
+ "last": "str", # Optional. Last page.
+ "next": "str", # Optional. Next page.
+ "previous": "str" # Optional. Previous page.
+ }
+ },
+ "meta": {
+ "page": 0, # Optional. The current page.
+ "pages": 0, # Optional. Total number of pages.
+ "total": 0 # Optional. Total amount of items over all pages.
+ },
+ "tasks": [
+ {
+ "category": "str", # Optional. Higher-level grouping used by
+ the UI.
+ "description": "str", # Optional. Task description.
+ "models": [
+ "str" # Optional. Default models assigned to this
+ task.
+ ],
+ "name": "str", # Optional. Display name.
+ "selection_policy": {
+ "prefer": "str" # Optional. One of: none, cheapest,
+ fastest. Known values are: "none", "cheapest", and "fastest".
+ },
+ "tags": [
+ "str" # Optional. Lightweight labels for filtering.
+ ],
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ]
+ }
+ # response body for status code(s): 404
+ response == {
+ "id": "str", # A short identifier corresponding to the HTTP status code
+ returned. For example, the ID for a response returning a 404 status code would
+ be "not_found.". Required.
+ "message": "str", # A message providing additional information about the
+ error, including details to help resolve it when possible. Required.
+ "request_id": "str" # Optional. Optionally, some endpoints may include a
+ request ID that should be provided when reporting bugs or opening support
+ tickets to help identify the issue.
+ }
+ """
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ 401: cast(
+ Type[HttpResponseError],
+ lambda response: ClientAuthenticationError(response=response),
+ ),
+ 429: HttpResponseError,
+ 500: HttpResponseError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = kwargs.pop("params", {}) or {}
+
+ cls: ClsType[JSON] = kwargs.pop("cls", None)
+
+ _request = build_genai_list_model_router_task_presets_request(
+ page=page,
+ per_page=per_page,
+ headers=_headers,
+ params=_params,
+ )
+ _request.url = self._client.format_url(_request.url)
+
+ _stream = False
+ pipeline_response: PipelineResponse = (
+ self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 404]:
+ if _stream:
+ response.read() # Load the body in memory and close the socket
+ map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore
+ raise HttpResponseError(response=response)
+
+ response_headers = {}
+ if response.status_code == 200:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if response.status_code == 404:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if cls:
+ return cls(pipeline_response, cast(JSON, deserialized), response_headers) # type: ignore
+
+ return cast(JSON, deserialized) # type: ignore
+
+ @distributed_trace
+ def get_model_router(self, uuid: str, **kwargs: Any) -> JSON:
+ # pylint: disable=line-too-long
+ """Retrieve an Existing Model Router.
+
+ To retrieve details of a model router, send a GET request to
+ ``/v2/gen-ai/models/routers/{uuid}``.
+
+ :param uuid: Model router id. Required.
+ :type uuid: str
+ :return: JSON object
+ :rtype: JSON
+ :raises ~azure.core.exceptions.HttpResponseError:
+
+ Example:
+ .. code-block:: python
+
+ # response body for status code(s): 200
+ response == {
+ "model_router": {
+ "config": {
+ "fallback_models": [
+ "str" # Optional. Router-level fallback models.
+ ],
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", # Optional.
+ Short task description.
+ "name": "str" # Optional. Task name.
+ },
+ "models": [
+ "str" # Optional. Models assigned to
+ the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional. One of:
+ none, cheapest, fastest. Known values are: "none",
+ "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ]
+ },
+ "created_at": "2020-02-20 00:00:00", # Optional. Creation date /
+ time.
+ "description": "str", # Optional. Description.
+ "name": "str", # Optional. Name of the model router.
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ],
+ "updated_at": "2020-02-20 00:00:00", # Optional. Last modified.
+ "uuid": "str" # Optional. Unique id.
+ }
+ }
+ # response body for status code(s): 404
+ response == {
+ "id": "str", # A short identifier corresponding to the HTTP status code
+ returned. For example, the ID for a response returning a 404 status code would
+ be "not_found.". Required.
+ "message": "str", # A message providing additional information about the
+ error, including details to help resolve it when possible. Required.
+ "request_id": "str" # Optional. Optionally, some endpoints may include a
+ request ID that should be provided when reporting bugs or opening support
+ tickets to help identify the issue.
+ }
+ """
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ 401: cast(
+ Type[HttpResponseError],
+ lambda response: ClientAuthenticationError(response=response),
+ ),
+ 429: HttpResponseError,
+ 500: HttpResponseError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = kwargs.pop("params", {}) or {}
+
+ cls: ClsType[JSON] = kwargs.pop("cls", None)
+
+ _request = build_genai_get_model_router_request(
+ uuid=uuid,
+ headers=_headers,
+ params=_params,
+ )
+ _request.url = self._client.format_url(_request.url)
+
+ _stream = False
+ pipeline_response: PipelineResponse = (
+ self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 404]:
+ if _stream:
+ response.read() # Load the body in memory and close the socket
+ map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore
+ raise HttpResponseError(response=response)
+
+ response_headers = {}
+ if response.status_code == 200:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if response.status_code == 404:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if cls:
+ return cls(pipeline_response, cast(JSON, deserialized), response_headers) # type: ignore
+
+ return cast(JSON, deserialized) # type: ignore
+
+ @overload
+ def update_model_router(
+ self,
+ uuid: str,
+ body: Optional[JSON] = None,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any,
+ ) -> JSON:
+ # pylint: disable=line-too-long
+ """Update a Model Router.
+
+ To update a model router, send a PUT request to ``/v2/gen-ai/models/routers/{uuid}``.
+
+ :param uuid: Model router id. Required.
+ :type uuid: str
+ :param body: Default value is None.
+ :type body: JSON
+ :keyword content_type: Body Parameter content-type. Content type parameter for JSON body.
+ Default value is "application/json".
+ :paramtype content_type: str
+ :return: JSON object
+ :rtype: JSON
+ :raises ~azure.core.exceptions.HttpResponseError:
+
+ Example:
+ .. code-block:: python
+
+ # JSON input template you can fill out and use as your body input.
+ body = {
+ "description": "str", # Optional. Model router description.
+ "fallback_models": [
+ "str" # Optional. Fallback models.
+ ],
+ "name": "str", # Optional. Model router name.
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", # Optional. Short task
+ description.
+ "name": "str" # Optional. Task name.
+ },
+ "models": [
+ "str" # Optional. Models assigned to the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional. One of: none, cheapest,
+ fastest. Known values are: "none", "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ],
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ],
+ "uuid": "str" # Optional. Model router id.
+ }
+
+ # response body for status code(s): 200
+ response == {
+ "model_router": {
+ "config": {
+ "fallback_models": [
+ "str" # Optional. Router-level fallback models.
+ ],
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", # Optional.
+ Short task description.
+ "name": "str" # Optional. Task name.
+ },
+ "models": [
+ "str" # Optional. Models assigned to
+ the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional. One of:
+ none, cheapest, fastest. Known values are: "none",
+ "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ]
+ },
+ "created_at": "2020-02-20 00:00:00", # Optional. Creation date /
+ time.
+ "description": "str", # Optional. Description.
+ "name": "str", # Optional. Name of the model router.
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ],
+ "updated_at": "2020-02-20 00:00:00", # Optional. Last modified.
+ "uuid": "str" # Optional. Unique id.
+ }
+ }
+ # response body for status code(s): 404
+ response == {
+ "id": "str", # A short identifier corresponding to the HTTP status code
+ returned. For example, the ID for a response returning a 404 status code would
+ be "not_found.". Required.
+ "message": "str", # A message providing additional information about the
+ error, including details to help resolve it when possible. Required.
+ "request_id": "str" # Optional. Optionally, some endpoints may include a
+ request ID that should be provided when reporting bugs or opening support
+ tickets to help identify the issue.
+ }
+ """
+
+ @overload
+ def update_model_router(
+ self,
+ uuid: str,
+ body: Optional[IO[bytes]] = None,
+ *,
+ content_type: str = "application/json",
+ **kwargs: Any,
+ ) -> JSON:
+ # pylint: disable=line-too-long
+ """Update a Model Router.
+
+ To update a model router, send a PUT request to ``/v2/gen-ai/models/routers/{uuid}``.
+
+ :param uuid: Model router id. Required.
+ :type uuid: str
+ :param body: Default value is None.
+ :type body: IO[bytes]
+ :keyword content_type: Body Parameter content-type. Content type parameter for binary body.
+ Default value is "application/json".
+ :paramtype content_type: str
+ :return: JSON object
+ :rtype: JSON
+ :raises ~azure.core.exceptions.HttpResponseError:
+
+ Example:
+ .. code-block:: python
+
+ # response body for status code(s): 200
+ response == {
+ "model_router": {
+ "config": {
+ "fallback_models": [
+ "str" # Optional. Router-level fallback models.
+ ],
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", # Optional.
+ Short task description.
+ "name": "str" # Optional. Task name.
+ },
+ "models": [
+ "str" # Optional. Models assigned to
+ the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional. One of:
+ none, cheapest, fastest. Known values are: "none",
+ "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ]
+ },
+ "created_at": "2020-02-20 00:00:00", # Optional. Creation date /
+ time.
+ "description": "str", # Optional. Description.
+ "name": "str", # Optional. Name of the model router.
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ],
+ "updated_at": "2020-02-20 00:00:00", # Optional. Last modified.
+ "uuid": "str" # Optional. Unique id.
+ }
+ }
+ # response body for status code(s): 404
+ response == {
+ "id": "str", # A short identifier corresponding to the HTTP status code
+ returned. For example, the ID for a response returning a 404 status code would
+ be "not_found.". Required.
+ "message": "str", # A message providing additional information about the
+ error, including details to help resolve it when possible. Required.
+ "request_id": "str" # Optional. Optionally, some endpoints may include a
+ request ID that should be provided when reporting bugs or opening support
+ tickets to help identify the issue.
+ }
+ """
+
+ @distributed_trace
+ def update_model_router(
+ self, uuid: str, body: Optional[Union[JSON, IO[bytes]]] = None, **kwargs: Any
+ ) -> JSON:
+ # pylint: disable=line-too-long
+ """Update a Model Router.
+
+ To update a model router, send a PUT request to ``/v2/gen-ai/models/routers/{uuid}``.
+
+ :param uuid: Model router id. Required.
+ :type uuid: str
+ :param body: Is either a JSON type or a IO[bytes] type. Default value is None.
+ :type body: JSON or IO[bytes]
+ :return: JSON object
+ :rtype: JSON
+ :raises ~azure.core.exceptions.HttpResponseError:
+
+ Example:
+ .. code-block:: python
+
+ # JSON input template you can fill out and use as your body input.
+ body = {
+ "description": "str", # Optional. Model router description.
+ "fallback_models": [
+ "str" # Optional. Fallback models.
+ ],
+ "name": "str", # Optional. Model router name.
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", # Optional. Short task
+ description.
+ "name": "str" # Optional. Task name.
+ },
+ "models": [
+ "str" # Optional. Models assigned to the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional. One of: none, cheapest,
+ fastest. Known values are: "none", "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ],
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ],
+ "uuid": "str" # Optional. Model router id.
+ }
+
+ # response body for status code(s): 200
+ response == {
+ "model_router": {
+ "config": {
+ "fallback_models": [
+ "str" # Optional. Router-level fallback models.
+ ],
+ "policies": [
+ {
+ "custom_task": {
+ "description": "str", # Optional.
+ Short task description.
+ "name": "str" # Optional. Task name.
+ },
+ "models": [
+ "str" # Optional. Models assigned to
+ the task.
+ ],
+ "selection_policy": {
+ "prefer": "str" # Optional. One of:
+ none, cheapest, fastest. Known values are: "none",
+ "cheapest", and "fastest".
+ },
+ "task_slug": "str" # Optional. Task slug.
+ }
+ ]
+ },
+ "created_at": "2020-02-20 00:00:00", # Optional. Creation date /
+ time.
+ "description": "str", # Optional. Description.
+ "name": "str", # Optional. Name of the model router.
+ "regions": [
+ "str" # Optional. Target regions for the router.
+ ],
+ "updated_at": "2020-02-20 00:00:00", # Optional. Last modified.
+ "uuid": "str" # Optional. Unique id.
+ }
+ }
+ # response body for status code(s): 404
+ response == {
+ "id": "str", # A short identifier corresponding to the HTTP status code
+ returned. For example, the ID for a response returning a 404 status code would
+ be "not_found.". Required.
+ "message": "str", # A message providing additional information about the
+ error, including details to help resolve it when possible. Required.
+ "request_id": "str" # Optional. Optionally, some endpoints may include a
+ request ID that should be provided when reporting bugs or opening support
+ tickets to help identify the issue.
+ }
+ """
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ 401: cast(
+ Type[HttpResponseError],
+ lambda response: ClientAuthenticationError(response=response),
+ ),
+ 429: HttpResponseError,
+ 500: HttpResponseError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
+ _params = kwargs.pop("params", {}) or {}
+
+ content_type: Optional[str] = kwargs.pop(
+ "content_type", _headers.pop("Content-Type", None)
+ )
+ cls: ClsType[JSON] = kwargs.pop("cls", None)
+
+ content_type = content_type or "application/json"
+ _json = None
+ _content = None
+ if isinstance(body, (IOBase, bytes)):
+ _content = body
+ else:
+ if body is not None:
+ _json = body
+ else:
+ _json = None
+
+ _request = build_genai_update_model_router_request(
+ uuid=uuid,
+ content_type=content_type,
+ json=_json,
+ content=_content,
+ headers=_headers,
+ params=_params,
+ )
+ _request.url = self._client.format_url(_request.url)
+
+ _stream = False
+ pipeline_response: PipelineResponse = (
+ self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 404]:
+ if _stream:
+ response.read() # Load the body in memory and close the socket
+ map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore
+ raise HttpResponseError(response=response)
+
+ response_headers = {}
+ if response.status_code == 200:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if response.status_code == 404:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if cls:
+ return cls(pipeline_response, cast(JSON, deserialized), response_headers) # type: ignore
+
+ return cast(JSON, deserialized) # type: ignore
+
+ @distributed_trace
+ def delete_model_router(self, uuid: str, **kwargs: Any) -> JSON:
+ # pylint: disable=line-too-long
+ """Delete a Model Router.
+
+ To delete a model router, send a DELETE request to ``/v2/gen-ai/models/routers/{uuid}``.
+
+ :param uuid: Model router id. Required.
+ :type uuid: str
+ :return: JSON object
+ :rtype: JSON
+ :raises ~azure.core.exceptions.HttpResponseError:
+
+ Example:
+ .. code-block:: python
+
+ # response body for status code(s): 200
+ response == {
+ "uuid": "str" # Optional. The id of the deleted model router.
+ }
+ # response body for status code(s): 404
+ response == {
+ "id": "str", # A short identifier corresponding to the HTTP status code
+ returned. For example, the ID for a response returning a 404 status code would
+ be "not_found.". Required.
+ "message": "str", # A message providing additional information about the
+ error, including details to help resolve it when possible. Required.
+ "request_id": "str" # Optional. Optionally, some endpoints may include a
+ request ID that should be provided when reporting bugs or opening support
+ tickets to help identify the issue.
+ }
+ """
+ error_map: MutableMapping[int, Type[HttpResponseError]] = {
+ 404: ResourceNotFoundError,
+ 409: ResourceExistsError,
+ 304: ResourceNotModifiedError,
+ 401: cast(
+ Type[HttpResponseError],
+ lambda response: ClientAuthenticationError(response=response),
+ ),
+ 429: HttpResponseError,
+ 500: HttpResponseError,
+ }
+ error_map.update(kwargs.pop("error_map", {}) or {})
+
+ _headers = kwargs.pop("headers", {}) or {}
+ _params = kwargs.pop("params", {}) or {}
+
+ cls: ClsType[JSON] = kwargs.pop("cls", None)
+
+ _request = build_genai_delete_model_router_request(
+ uuid=uuid,
+ headers=_headers,
+ params=_params,
+ )
+ _request.url = self._client.format_url(_request.url)
+
+ _stream = False
+ pipeline_response: PipelineResponse = (
+ self._client._pipeline.run( # pylint: disable=protected-access
+ _request, stream=_stream, **kwargs
+ )
+ )
+
+ response = pipeline_response.http_response
+
+ if response.status_code not in [200, 404]:
+ if _stream:
+ response.read() # Load the body in memory and close the socket
+ map_error(status_code=response.status_code, response=response, error_map=error_map) # type: ignore
+ raise HttpResponseError(response=response)
+
+ response_headers = {}
+ if response.status_code == 200:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if response.status_code == 404:
+ response_headers["ratelimit-limit"] = self._deserialize(
+ "int", response.headers.get("ratelimit-limit")
+ )
+ response_headers["ratelimit-remaining"] = self._deserialize(
+ "int", response.headers.get("ratelimit-remaining")
+ )
+ response_headers["ratelimit-reset"] = self._deserialize(
+ "int", response.headers.get("ratelimit-reset")
+ )
+
+ if response.content:
+ deserialized = response.json()
+ else:
+ deserialized = None
+
+ if cls:
+ return cls(pipeline_response, cast(JSON, deserialized), response_headers) # type: ignore
+
+ return cast(JSON, deserialized) # type: ignore
+
@overload
def create_oauth2_dropbox_tokens(
self,