Function scale_app
Source pub async fn scale_app(
platform_id: i64,
app_id: String,
scale: Json<ScaleRequest>,
db_manager: &State<Arc<DatabaseManager>>,
) -> Result<Json<Application>, (Status, Json<Value>)>
Expand description
Scale a specific application.
§Arguments
platform_id
- Platform identifier
app_id
- The ID of the application to scale
scale
- JSON data containing scaling parameters
db_manager
- Database manager for accessing platform-specific pools
§Returns
The updated application if found, or None if not found