Introduces two endpoints with operations specific to service levels: - switch_tenants: updates the scheduling group of all connections to be aligned with the service level specific to the logged in user. This is mostly legacy API, as with service levels on raft this is done automatically. - count_connections: for each user and for each scheduling group, counts how many connections are assigned to that user and scheduling group. This API is used in tests.
56 lines
1.5 KiB
JSON
56 lines
1.5 KiB
JSON
{
|
|
"apiVersion":"0.0.1",
|
|
"swaggerVersion":"1.2",
|
|
"basePath":"{{Protocol}}://{{Host}}",
|
|
"resourcePath":"/service_levels",
|
|
"produces":[
|
|
"application/json"
|
|
],
|
|
"apis":[
|
|
{
|
|
"path":"/service_levels/switch_tenants",
|
|
"operations":[
|
|
{
|
|
"method":"POST",
|
|
"summary":"Switch tenants on all opened connections if needed",
|
|
"type":"void",
|
|
"nickname":"do_switch_tenants",
|
|
"produces":[
|
|
"application/json"
|
|
],
|
|
"parameters":[]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"path":"/service_levels/count_connections",
|
|
"operations":[
|
|
{
|
|
"method":"GET",
|
|
"summary":"Count opened CQL connections per scheduling group per user",
|
|
"type":"connections_count_map",
|
|
"nickname":"count_connections",
|
|
"produces":[
|
|
"application/json"
|
|
],
|
|
"parameters":[]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"models":{},
|
|
"components": {
|
|
"schemas": {
|
|
"connections_count_map": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
} |