Interface CostService

  • All Implemented Interfaces:

    
    public interface CostService
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public interface CostService.WithRawResponse

      A view of CostService that provides access to raw HTTP responses for each method.

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • list

         CostListPage list(CostListParams params)

        Get cost in USD across a date range, broken out by dimension.

        Returns one row per combination of the requested group_by[] dimensions (and time bucket, when time_bucket_width is set) that has cost in the range, ranked by spend or ordered by time bucket; every combination is returned across pages. With no group_by[] and no time_bucket_width, a single row aggregates the whole range. Includes all cost, whether or not it is attributable to a seat user. Requires an API key with the read:analytics scope, or an Admin API key.