I need programmatic access to the following data over a given time window:
- the base-rate traffic which my node consumed
- the paid traffic which my node consumed
What are my options?
Canton Metrics?
For example, I see these two Canton Metrics:
- daml.sequencer-client.traffic-control.event-delivered-cost
- daml.sequencer-client.traffic-control.event-rejected-cost
Would I sum those metrics for the total traffic? However, I’m assuming that the metric does not differentiate between base-rate and paid traffic. Is that correct?
Scan API or Canton Console?
I see the traffic-status endpoint but that returns results for “at the time of the request.”
I see the traffic_state_of_members_at_timestamp function, but that would be challenging to use reliably due to traffic purchases and base rate credits during the time window.