Error while creating new customaggregation

Not applicable

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" : [ ] } }

Solved Solved
0 3 169
1 ACCEPTED SOLUTION

Apologies but this feature is not enabled for usage at this time. We will fix the documentation.

View solution in original post

3 REPLIES 3

Apologies but this feature is not enabled for usage at this time. We will fix the documentation.

@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"