Skip to content

CostAndUsage

Fields

  • organizationIdstringrequired
  • fromstringrequired
    format: date-time
  • tostringrequired
    format: date-time
  • granularitystringrequired

    hour, day or month.

  • currencystringrequired
  • ratedThroughstringrequired

    Every hour before this is rated; later costs are still coming.

    format: date-time
  • periodsarray ofobjectrequired

    Every period in the window.

    4 properties
    • startstringrequired
      format: date-time
    • endstringrequired

      Exclusive.

      format: date-time
    • estimatedbooleanrequired
    • groupsarray ofobjectrequired
      4 properties
      • keysmap ofstringrequired

        The group's values of the groupBy keys. project "" is organization-level usage.

      • billedCoststringrequired

        Micros.

        pattern: ^-?[0-9]+(\.[0-9]+)?$
      • quantitystring | nullrequired

        Set when grouped by meter or sku.

      • unitstring | nullrequired

        The quantity's unit; null for charges without a meter.

  • valuesmap ofarray<string>required

    Every value of each key in the window, whatever the filter.

  • labelsobjectrequired

    Display names for the IDs in the answer. IDs without one are left out.

    3 properties
    • servicesmap ofstringrequired
    • metersmap ofstringrequired
    • skusmap ofstringrequired
  • nextCursornullrequired

    One page: always null.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close