We've had influxdb_wrapper.get_events_for_organisation, which served the purpose of obtaining usage from organisations in SaaS. Then we introduced influxdb_wrapper.get_current_api_usage (#3340), which... seemingly serves the same purpose. Both their code paths lead to almost the same communication with InfluxDB, except for some aggregation in Influx vs in Python.
#6975 has introduced a flag get_current_api_usage_deprecated to help transition SaaS users to standard get_events_for_organisation.
Acceptance criteria
We've had
influxdb_wrapper.get_events_for_organisation, which served the purpose of obtaining usage from organisations in SaaS. Then we introducedinfluxdb_wrapper.get_current_api_usage(#3340), which... seemingly serves the same purpose. Both their code paths lead to almost the same communication with InfluxDB, except for some aggregation in Influx vs in Python.#6975 has introduced a flag
get_current_api_usage_deprecatedto help transition SaaS users to standardget_events_for_organisation.Acceptance criteria
get_current_api_usage_deprecatedis safely deleted.get_current_api_usage