spend_threshold_reached
alert for each limit with a threshold matching the values entered by the end userin_alarm
state once the threshold is reachedcredit_type_id
of 2714e483-4ff1-48e4-9e25-ac732e8f24f2
represents a credit unit of US cents. However, spend alerts are not limited to USD. You can set them in custom pricing units, which you can define on the Offering page in the Metronome app.user_id
has spent more than $500 in a billing period, or when a specific organization_id
has spent more than $5000.
In Metronome, you have the option of adding group_values
filters to spend alerts to support this use case. Create an alert on spend for organization_id
= finance
using the following API call:
group_values
field, make sure that key is added as a group key on billable metrics associated with that customer’s contract. Spend on products where the key is not a group key on the underlying billable metrics will not contribute to the threshold.
When evaluating spend threshold alerts for a specific dimension, Metronome recomputes the invoice as if the group key is a presentation group key. In cases with tiered pricing, quantity rounding, or MAX billable metrics, the pricing and packaging will be applied to the subset of usage you define. For example, if you create an alert for organization_id
= finance
, the quantity will be rounded for the subset of usage by the finance org.
user_id
, a project_id
, and an organization_id
, but will be prevented from adding an alert using a fourth key. For keys with more than 5000 values for a given customer, contact your Metronome representative to discuss your spend alert configuration.