Files
scylladb/api/api-doc/utils.json
Amnon Heiman 0ca7189664 API: Adding the estimated_histogram to the utils definition file
This adds the estimated_histogram to the utils definition file.

The estimated_histogram holds a list of buckets and a list of buckets
offsets.

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
2015-08-12 13:10:18 +03:00

71 lines
1.8 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"
}
}
},
"estimated_histogram":{
"id":"estimated_histogram",
"description":"An estimated histogram values",
"properties":{
"buckets":{
"type":"array",
"items":{
"type":"long"
},
"description":"The histogram buckets"
},
"bucket_offsets":{
"type":"array",
"items":{
"type":"long"
},
"description":"The series of values to which the counts in `buckets` correspond"
}
}
}
}
}