Files
scylladb/api/api-doc/utils.json
Amnon Heiman 4908222d6a Adding utils.json Swagger definition file
The utils file will hold general modules, that need to be used by
multiple modules.

As a start, it holds the histogram definition.

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
2015-07-26 10:58:45 +03:00

51 lines
1.2 KiB
JSON

{
"apiVersion":"0.0.1",
"swaggerVersion":"1.2",
"basePath":"{{Protocol}}://{{Host}}",
"resourcePath":"/utils",
"produces":[
"application/json"
],
"apis":[
],
"models":{
"histogram":{
"id":"histogram",
"description":"A histogram values",
"properties":{
"count":{
"type":"long",
"description":"Total count so far"
},
"sum":{
"type":"long",
"description":"Total sum so far"
},
"min":{
"type":"long",
"description":"The min so far"
},
"max":{
"type":"long",
"description":"The max so far"
},
"variance":{
"type":"double",
"description":"The variance"
},
"mean":{
"type":"double",
"description":"The mean"
},
"sample":{
"type":"array",
"items":{
"type":"long"
},
"description":"A sample containing the last n elements"
}
}
}
}
}