Skip to content

Standardise querying API calls count #6985

@emyller

Description

@emyller

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

  • 100% of users are standardised without issues.
  • The feature flag get_current_api_usage_deprecated is safely deleted.
  • Code is updated to dismiss get_current_api_usage

Metadata

Metadata

Assignees

No one assigned

    Labels

    tech-debtTechnical debt issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions