Query
query AggregatedEventsByCustomer($input: AggregatedEventsByCustomerInput!) {
aggregatedEventsByCustomer(input: $input) {
aggregatedUsage {
customerId
usage
}
}
}Variables
{
"input": {
"aggregation": {
"function": "AVG"
},
"environmentId": "value",
"filters": [
{
"conditions": [
{
"field": "string",
"operation": "CONTAINS"
}
]
}
]
}
}Response
{
"data": {
"aggregatedEventsByCustomer": {
"aggregatedUsage": [
{
"customerId": "string",
"usage": 1.5
}
]
}
}
}Queries
aggregatedEventsByCustomer
Get aggregated events by customer
QUERY
aggregatedEventsByCustomer(input: AggregatedEventsByCustomerInput!): AggregatedEventsByCustomer!Arguments
input
required
Input parameters for aggregating events by customer
Returns
aggregatedUsage
Aggregated usage data for the customer
Query
query AggregatedEventsByCustomer($input: AggregatedEventsByCustomerInput!) {
aggregatedEventsByCustomer(input: $input) {
aggregatedUsage {
customerId
usage
}
}
}Variables
{
"input": {
"aggregation": {
"function": "AVG"
},
"environmentId": "value",
"filters": [
{
"conditions": [
{
"field": "string",
"operation": "CONTAINS"
}
]
}
]
}
}Response
{
"data": {
"aggregatedEventsByCustomer": {
"aggregatedUsage": [
{
"customerId": "string",
"usage": 1.5
}
]
}
}
}