bytes
for all events of type transfer
(for a given customer, for a given billing period).”
customer_id
to fill in for each event. In this case, the hourly summaries are probably the best option. From the central location, it’s easy to look up the owner of each domain and provide the appropriate customer_id
.
Before deciding to send the hourly summaries, you check back with the customer support team about those traffic spike notifications they wanted. They assure you that the hourly cadence is fast enough for the notifications they want to send.
domain
. And your customers are happy with the new breakdown on their invoices.
As time passes and your customer base grows, the finance team discovers a worrisome problem. Your company has been billing customers based on their total data transfer, but your bandwidth costs are different in different parts of the world. In some cases, you’re actually losing money by undercharging for data transfer in certain regions.
As before, if your usage events didn’t include information about where the data transfer occurred, you’d have to go back into your code and add it. But because you already decided to send as much data as possible, there’s a data_center
field that will work. Billable metrics in Metronome can filter usage events in a variety of ways, so you are able to use a mapping of data center names to regions to define a new billable metric for each region. Going forward, you can bill based on those new metrics, where you can set individual prices for each region.