Closed DanCech closed 8 years ago
I want to incorporate a clustering algorithm into our Graphite/Grafana environment. The code is written and its format is a tuple (cluster#:dataValue).
How should the data be sent to the pie, histogram or heat map chart?
Regards, Carl
Sent from my iPhone
Please include this information:
curl https://admin:admin@localhost:3000/api/orgs/1 -X PUT -i -d name=Main
Content-Type: application/json
Content-Type: text/plain
The
ApiSuccess
function usesRespond
rather thanJson
, which means that the incorrectContent-Type
header is sent in API success messages.text/plain
is sent but the actual content is a JSON object like{"message":"Organization updated"}
.In
pkg/api/common.go
line ~82 should be changed fromreturn Respond(200, resp)
toreturn Json(200, resp)
.