Update an aggregate
Beta. The request and response shapes may still change.
Change the description of an aggregate. The body is the whole aggregate, not a patch: every other field must repeat its stored value, and a field that differs is refused. Omitting the description clears it.
To count in a different way, create a new aggregate and change your rules to read it. The new aggregate starts from zero.
Authorizations
Path Parameters
Body
What the aggregate counts for each value of key.
COUNT- The number of matching events.COUNT_DISTINCT- The number of different values ofdistinctin the matching events. A counter keeps at most 10,000 values: past this, the values seen least recently are dropped, so the count stops at 10,000.
COUNT, COUNT_DISTINCT "COUNT"
The event values that select a counter: there is one counter for each combination of their values. At least one, and each one only once.
target.phone_number- The phone number of the event target.target.email_address- The email address of the event target.target.phone_prefix_7andtarget.phone_prefix_9- The first 6 or 8 digits of the phone number of the event target: its first 7 or 9 characters, without the leading+. For+33612345678, they are336123and33612345.
An event has one target, so key and distinct together read either the email address or the phone number fields, not both. An event that has no value for one of them is not counted.
target.phone_number, target.email_address, target.phone_prefix_7, target.phone_prefix_9 The event value a COUNT_DISTINCT aggregate counts the different values of. Required for COUNT_DISTINCT, refused for COUNT. It takes the same values as key.
target.phone_number, target.email_address, target.phone_prefix_7, target.phone_prefix_9 "target.phone_number"
Response
OK