Skip to content

Commit

Permalink
Update API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ioppermann committed Oct 24, 2024
1 parent b6daea1 commit e2def57
Show file tree
Hide file tree
Showing 6 changed files with 506 additions and 3 deletions.
57 changes: 57 additions & 0 deletions cluster/docs/ClusterAPI_docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,14 @@ const docTemplateClusterAPI = `{
"description": "percent",
"type": "number"
},
"limitGPU": {
"description": "GPU limits",
"allOf": [
{
"$ref": "#/definitions/app.ConfigLimitGPU"
}
]
},
"limitMemory": {
"description": "bytes",
"type": "integer"
Expand Down Expand Up @@ -1401,6 +1409,27 @@ const docTemplateClusterAPI = `{
}
}
},
"app.ConfigLimitGPU": {
"type": "object",
"properties": {
"decoder": {
"description": "percent 0-100",
"type": "number"
},
"encoder": {
"description": "percent 0-100",
"type": "number"
},
"memory": {
"description": "bytes",
"type": "integer"
},
"usage": {
"description": "percent 0-100",
"type": "number"
}
}
},
"client.AddIdentityRequest": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1669,6 +1698,26 @@ const docTemplateClusterAPI = `{
}
}
},
"compress": {
"type": "object",
"properties": {
"encoding": {
"type": "array",
"items": {
"type": "string"
}
},
"mimetypes": {
"type": "array",
"items": {
"type": "string"
}
},
"min_length": {
"type": "integer"
}
}
},
"created_at": {
"description": "When this config has been persisted",
"type": "string"
Expand Down Expand Up @@ -1861,6 +1910,14 @@ const docTemplateClusterAPI = `{
"description": "percent 0-100",
"type": "number"
},
"max_gpu_memory_usage": {
"description": "percent 0-100",
"type": "number"
},
"max_gpu_usage": {
"description": "percent 0-100",
"type": "number"
},
"max_memory_usage": {
"description": "percent 0-100",
"type": "number"
Expand Down
57 changes: 57 additions & 0 deletions cluster/docs/ClusterAPI_swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1300,6 +1300,14 @@
"description": "percent",
"type": "number"
},
"limitGPU": {
"description": "GPU limits",
"allOf": [
{
"$ref": "#/definitions/app.ConfigLimitGPU"
}
]
},
"limitMemory": {
"description": "bytes",
"type": "integer"
Expand Down Expand Up @@ -1394,6 +1402,27 @@
}
}
},
"app.ConfigLimitGPU": {
"type": "object",
"properties": {
"decoder": {
"description": "percent 0-100",
"type": "number"
},
"encoder": {
"description": "percent 0-100",
"type": "number"
},
"memory": {
"description": "bytes",
"type": "integer"
},
"usage": {
"description": "percent 0-100",
"type": "number"
}
}
},
"client.AddIdentityRequest": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1662,6 +1691,26 @@
}
}
},
"compress": {
"type": "object",
"properties": {
"encoding": {
"type": "array",
"items": {
"type": "string"
}
},
"mimetypes": {
"type": "array",
"items": {
"type": "string"
}
},
"min_length": {
"type": "integer"
}
}
},
"created_at": {
"description": "When this config has been persisted",
"type": "string"
Expand Down Expand Up @@ -1854,6 +1903,14 @@
"description": "percent 0-100",
"type": "number"
},
"max_gpu_memory_usage": {
"description": "percent 0-100",
"type": "number"
},
"max_gpu_usage": {
"description": "percent 0-100",
"type": "number"
},
"max_memory_usage": {
"description": "percent 0-100",
"type": "number"
Expand Down
38 changes: 38 additions & 0 deletions cluster/docs/ClusterAPI_swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ definitions:
limitCPU:
description: percent
type: number
limitGPU:
allOf:
- $ref: '#/definitions/app.ConfigLimitGPU'
description: GPU limits
limitMemory:
description: bytes
type: integer
Expand Down Expand Up @@ -81,6 +85,21 @@ definitions:
purgeOnDelete:
type: boolean
type: object
app.ConfigLimitGPU:
properties:
decoder:
description: percent 0-100
type: number
encoder:
description: percent 0-100
type: number
memory:
description: bytes
type: integer
usage:
description: percent 0-100
type: number
type: object
client.AddIdentityRequest:
properties:
identity:
Expand Down Expand Up @@ -256,6 +275,19 @@ definitions:
format: int64
type: integer
type: object
compress:
properties:
encoding:
items:
type: string
type: array
mimetypes:
items:
type: string
type: array
min_length:
type: integer
type: object
created_at:
description: When this config has been persisted
type: string
Expand Down Expand Up @@ -387,6 +419,12 @@ definitions:
max_cpu_usage:
description: percent 0-100
type: number
max_gpu_memory_usage:
description: percent 0-100
type: number
max_gpu_usage:
description: percent 0-100
type: number
max_memory_usage:
description: percent 0-100
type: number
Expand Down
Loading

0 comments on commit e2def57

Please sign in to comment.