Everytime i tried to get the list of customaggregates or create new one , i get this error:
http:// management_server:8080/v1/stats/customaggregates
{ “message” : “com.apigee.datastore.DataAccessException{ code = datastore.ErrorWhileAccessingDataStore, message = Error while accessing datastore;Please retry later, associated contexts = }”, “contexts” : , “cause” : { “code” : “datastore.ErrorWhileAccessingDataStore”, “message” : “Error while accessing datastore;Please retry later”, “contexts” : } }
Apologies but this feature is not enabled for usage at this time. We will fix the documentation.
birute
November 2, 2015, 6:41pm
3
@docs looks like some documentation update is needed
Are you using the right endpoint? I just tried it by including the org name in the request, as below, and it worked. Is it only the global endpoint, one with no org, does not work?
curl -X POST --header "Content-Type: application/json" -d "{
\"displayName\": \"testCustAgg\",
\"description\" : \"testCustAgg\",
\"env\" : \"prod\",
\"metrics\" : [
\"response_time\",
\"message_count\"
],
\"dimensions\" : [
\"is_error\",
\"apiproxy\",
\"developer_app\"
]
}" "https://api.enterprise.apigee.com/v1/organizations/myOrg/stats/customaggregates"