Class QueryChargeHelper
java.lang.Object
com.azure.digitaltwins.core.models.QueryChargeHelper
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Float
getQueryCharge
(PagedResponse<T> page) Extract the query-charge field from a page header.
-
Constructor Details
-
QueryChargeHelper
public QueryChargeHelper()
-
-
Method Details
-
getQueryCharge
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.
-