Was this helpful?

 

Apigee Edge Base Path: https://api.enterprise.apigee.com/v1/o/{org_name}

API Resource Path:

/stats/customaggregates

Description: Creates a new custom aggregate table and starts aggregation. The name of this custom aggregate table should be unique per scope or else API will throw an exception.

Verb: POST
Auth: Basic Auth
Media types:
application/json

For more information on custom aggregates, see Use custom aggregations..

Sample Request:

$ curl -H "Content-type:application/json" -X POST -d \
'{
    "displayName": "my_custom_agg",
    “description” : “This is a description”,
    “env”:”test”,
    "metrics": [
        "response_time",
        "message_count"
    ],
    "dimensions": [
        "is_error",
        "apiproxy",
        "developer_app"
    ],
}'  \
https://api.enterprise.apigee.com/v1/o/stats/customaggregates \
-u myname:mypass
Request Payload Elements:
 
Name Description
displayName A name for the aggregate. 
Sample Response:
{
    "name": custom_agg1_uuid,
    “displayName”:”my_custom_agg”
    “descriptions” : “This is a description.”,
    “env”:”test”,
    "status": "active",
    "metrics": [
        "response_time",
        "message_count"
    ],
    "dimensions": [
        "is_error",
        "apiproxy",
        "developer_app"
    ],
    “createdBy”:”ntesla@example.com”,
     “createdAt”:21627162
     “lastModifiedAt”:3728392
}
Response Payload Elements:
Name Description
displayName The name entered in the request payload. 
name The unique name assigned to the custom aggregate. 

Error codes

  • 400 Bad Request: If the display name validation fails. 

  • 500 Server Error: If the database is down or any other internal error.

  • 403 Forbidden: If you try to create more than the allowed number of custom aggregates. 

 

Help or comments?

  • Something's not working: See Apigee Support
  • Something's wrong with the docs: Click Send Feedback in the lower right.
    (Incorrect? Unclear? Broken link? Typo?)