Create a new aggregation to track and measure metrics over a time window.
Basic Auth header with your app ID as the username and your app secret as the password.
ID of your Privy app.
Idempotency keys ensure API requests are executed only once within a 24-hour window.
Input for creating an aggregation.
The name of the aggregation.
1 - 255The RPC method this aggregation applies to.
eth_signTransaction, eth_signUserOperation The metric configuration for an aggregation, defining what field/field_source to measure and the aggregation function to apply.
The time window configuration for an aggregation.
Optional conditions to filter events before aggregation.
100Optional grouping configuration for bucketing metrics.
2The owner of the resource. If you provide this, do not specify an owner_id as it will be generated automatically. When updating a wallet, you can set the owner to null to remove the owner.
The key quorum ID to set as the owner of the resource. If you provide this, do not specify an owner.
Created aggregation object.
An aggregation that measures and tracks metrics over a period of time.
The name of the aggregation.
1 - 255The RPC method this aggregation applies to.
eth_signTransaction, eth_signUserOperation The metric configuration for an aggregation, defining what field/field_source to measure and the aggregation function to apply.
The time window configuration for an aggregation.
Unique ID of the aggregation.
Unix timestamp of when the aggregation was created in milliseconds.
The key quorum ID of the owner of the aggregation.
Optional conditions to filter events before aggregation.
100Optional grouping configuration for bucketing metrics.
2