Skip to content

Budgets: all_time is REQUIRED, but a counter above 15 digits is omitted #287

Open

Description

@joshuagay

draft-hardt-aauth-budgets.md at 70d6737:

  • L1001 (Usage Response): "usage (REQUIRED when the request carried a scope key): Calendar counters for that scope."
  • L1011 (Calendar Counters): "all_time (REQUIRED): everything the resource has metered against budgets under this key."
  • L1017 (Calendar Counters): "Counters are subject to the 15-digit bound of (#range-limits). A resource whose cumulative figure would exceed it omits that counter rather than reporting an inexact number."
  • L1067 (Authorization and Errors): "A query for a scope key the resource does not recognize returns 200 with usage omitted"

When all_time exceeds 999,999,999,999,999, L1017 has the resource omit it and L1011 requires it. A tenant total at decimals 9 reaches the bound at about one million dollars, long before any single budget does. The resource can send usage without all_time, which the response shape does not allow, or omit usage, which reads as an unrecognized scope key (L1067).

Ask: Say what the response carries, for example: "all_time (REQUIRED unless it exceeds the bound of (#range-limits)): ... When it is omitted, the other counters are still reported."

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions