mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 12:28:07 +00:00
Allow autoscale with a minimum of 0 (#2162)
This commit is contained in:
@ -668,9 +668,9 @@ class Scaleset(BaseModel):
|
|||||||
|
|
||||||
class AutoScale(BaseModel):
|
class AutoScale(BaseModel):
|
||||||
scaleset_id: UUID
|
scaleset_id: UUID
|
||||||
min: int = Field(ge=1)
|
min: int = Field(ge=0)
|
||||||
max: int = Field(ge=1)
|
max: int = Field(ge=1)
|
||||||
default: int = Field(ge=1)
|
default: int = Field(ge=0)
|
||||||
scale_out_amount: int = Field(ge=1)
|
scale_out_amount: int = Field(ge=1)
|
||||||
scale_out_cooldown: int = Field(ge=1)
|
scale_out_cooldown: int = Field(ge=1)
|
||||||
scale_in_amount: int = Field(ge=1)
|
scale_in_amount: int = Field(ge=1)
|
||||||
|
@ -172,7 +172,7 @@ class ScalesetUpdate(BaseRequest):
|
|||||||
class AutoScaleOptions(BaseModel):
|
class AutoScaleOptions(BaseModel):
|
||||||
min: int = Field(ge=0)
|
min: int = Field(ge=0)
|
||||||
max: int = Field(ge=1)
|
max: int = Field(ge=1)
|
||||||
default: int = Field(ge=1)
|
default: int = Field(ge=0)
|
||||||
scale_out_amount: int = Field(ge=1)
|
scale_out_amount: int = Field(ge=1)
|
||||||
scale_out_cooldown: int = Field(ge=1)
|
scale_out_cooldown: int = Field(ge=1)
|
||||||
scale_in_amount: int = Field(ge=1)
|
scale_in_amount: int = Field(ge=1)
|
||||||
|
Reference in New Issue
Block a user