curl --request POST \
--url https://api.hyperline.co/v1/aggregators \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"entity": "api_calls",
"operation": "count",
"type": "metered",
"where": {
"conditional": "and",
"fields": [
{
"property": "<string>",
"operator": "isNull"
}
]
},
"name": "<string>",
"description": "<string>",
"allow_negative_values": false,
"custom_event_name": "<string>",
"exposed_event_keys": [
"<string>"
]
}
'{
"id": "<string>",
"entity": "<string>",
"operation": "count",
"property": "<string>",
"where": {
"conditional": "and",
"fields": [
{
"property": "<string>",
"operator": "isNull"
}
]
},
"type": "metered",
"name": "<string>",
"description": "<string>",
"allow_negative_values": true,
"custom_event_name": "<string>",
"exposed_event_keys": [
"<string>"
],
"created_at": "2023-12-25",
"updated_at": "2023-12-25"
}Create a new aggregator.
curl --request POST \
--url https://api.hyperline.co/v1/aggregators \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"entity": "api_calls",
"operation": "count",
"type": "metered",
"where": {
"conditional": "and",
"fields": [
{
"property": "<string>",
"operator": "isNull"
}
]
},
"name": "<string>",
"description": "<string>",
"allow_negative_values": false,
"custom_event_name": "<string>",
"exposed_event_keys": [
"<string>"
]
}
'{
"id": "<string>",
"entity": "<string>",
"operation": "count",
"property": "<string>",
"where": {
"conditional": "and",
"fields": [
{
"property": "<string>",
"operator": "isNull"
}
]
},
"type": "metered",
"name": "<string>",
"description": "<string>",
"allow_negative_values": true,
"custom_event_name": "<string>",
"exposed_event_keys": [
"<string>"
],
"created_at": "2023-12-25",
"updated_at": "2023-12-25"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Create aggregator payload
Aggregator configuration to automatically count seats from billable events. Only count aggregators are supported for seat products.
The billable event entity to aggregate.
"api_calls"
The aggregation operation to perform.
count The type of aggregator.
metered, licensed Filter conditions for the aggregation.
Show child attributes
Name of the aggregator.
Description of the aggregator.
Whether the aggregator can produce negative values.
Custom event name for the aggregator.
Event keys exposed by the aggregator.
The newly created aggregator
count, sum Show child attributes
metered, licensed Was this page helpful?