Class CostListPageResponse

    • Constructor Detail

    • Method Detail

      • data

         final List<BetaAnalyticsCostItem> data()

        Rows for this page, in the order set by order_by and order: one per combination of the group_by[] dimensions (and per time bucket, when time_bucket_width is set) with usage or cost in the range, or a single row when neither is set. Rows split out by cost_type or token_type (cost endpoint only) stay adjacent and are ranked as one unit.

      • dataRefreshedAt

         final Optional<OffsetDateTime> dataRefreshedAt()

        RFC 3339 timestamp of the export this response was served from. Null when no export yet covers any part of the requested range, in which case data is empty. Data beyond this watermark is incomplete; for stable results, set ending_at to this value or earlier. Data is typically refreshed every 4 hours. Values can be revised as late events arrive and reconciliation runs, until about 7 days after the end of the calendar month the usage falls in; for example, values for October 1 can change until about November 7.

      • hasMore

         final Boolean hasMore()

        Whether another page is available. When true, pass next_page as the page parameter to fetch it.

      • nextPage

         final Optional<String> nextPage()

        Opaque cursor for the next page, or null when has_more is false. Pass it as the page parameter, keeping the other parameters unchanged. A cursor can expire after the underlying data refreshes; the request then returns HTTP 410 and pagination must restart from the first page.

      • _dataRefreshedAt

         final JsonField<OffsetDateTime> _dataRefreshedAt()

        Returns the raw JSON value of dataRefreshedAt.

        Unlike dataRefreshedAt, this method doesn't throw if the JSON field has an unexpected type.

      • _hasMore

         final JsonField<Boolean> _hasMore()

        Returns the raw JSON value of hasMore.

        Unlike hasMore, this method doesn't throw if the JSON field has an unexpected type.

      • _nextPage

         final JsonField<String> _nextPage()

        Returns the raw JSON value of nextPage.

        Unlike nextPage, this method doesn't throw if the JSON field has an unexpected type.

      • validate

         final CostListPageResponse validate()

        Validates that the types of all values in this object match their expected types recursively.

        This method is not forwards compatible with new types from the API for existing fields.