Add statistics route for execution environments
* Add statistics route for execution environments * Add maximum to port api definition Co-authored-by: Sebastian Serth <MrSerth@users.noreply.github.com>
This commit is contained in:
@ -53,6 +53,15 @@ type ExecutionEnvironmentData struct {
|
||||
ID int `json:"id"`
|
||||
}
|
||||
|
||||
// StatisticalExecutionEnvironmentData is the expected json structure of the response body
|
||||
// for routes returning statistics about execution environments.
|
||||
type StatisticalExecutionEnvironmentData struct {
|
||||
ID int `json:"id"`
|
||||
PrewarmingPoolSize uint `json:"prewarmingPoolSize"`
|
||||
IdleRunners uint `json:"idleRunners"`
|
||||
UsedRunners uint `json:"usedRunners"`
|
||||
}
|
||||
|
||||
// ExecutionEnvironmentRequest is the expected json structure of the request body
|
||||
// for the create execution environment function.
|
||||
type ExecutionEnvironmentRequest struct {
|
||||
|
Reference in New Issue
Block a user