Class QueryChargeHelper

java.lang.Object
com.azure.digitaltwins.core.models.QueryChargeHelper

public final class QueryChargeHelper extends Object
A helper to extract the query charge from the query response. An Azure Digital Twins Query Unit (QU) is a unit of on-demand computation that's used to execute your Azure Digital Twins queries.
  • Constructor Details

    • QueryChargeHelper

      public QueryChargeHelper()
  • Method Details

    • getQueryCharge

      public static <T> Float getQueryCharge(PagedResponse<T> page)
      Extract the query-charge field from a page header.
      Type Parameters:
      T - The generic type of the page.
      Parameters:
      page - The page that contains the query-charge header.
      Returns:
      The query charge.