Class BetaAnalyticsCostMetrics
-
- All Implemented Interfaces:
public final class BetaAnalyticsCostMetricsThe cost of one row.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaAnalyticsCostMetrics.BuilderA builder for BetaAnalyticsCostMetrics.
-
Method Summary
Modifier and Type Method Description final Stringamount()Amount (post-discount, pre-credit) in fractional cents (minor units). final Stringcurrency()Currency code for the cost amount. final StringlistAmount()List-price amount (pre-discount) in fractional cents. final Optional<Long>requests()Number of API requests in this row's scope. final JsonField<String>_amount()Returns the raw JSON value of amount. final JsonField<String>_currency()Returns the raw JSON value of currency. final JsonField<String>_listAmount()Returns the raw JSON value of listAmount. final JsonField<Long>_requests()Returns the raw JSON value of requests. final Map<String, JsonValue>_additionalProperties()final BetaAnalyticsCostMetrics.BuildertoBuilder()final BetaAnalyticsCostMetricsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaAnalyticsCostMetrics.Builderbuilder()Returns a mutable builder for constructing an instance of BetaAnalyticsCostMetrics. -
-
Method Detail
-
listAmount
final String listAmount()
List-price amount (pre-discount) in fractional cents.
-
requests
final Optional<Long> requests()
Number of API requests in this row's scope. Null when
group_byincludescost_typeortoken_type(the count has no per-component attribution; read it from the ungrouped response). For sandbox / code-execution events, this counts execution spans rather than HTTP requests (these rows surface withproduct: null).
-
_amount
final JsonField<String> _amount()
Returns the raw JSON value of amount.
Unlike amount, this method doesn't throw if the JSON field has an unexpected type.
-
_currency
final JsonField<String> _currency()
Returns the raw JSON value of currency.
Unlike currency, this method doesn't throw if the JSON field has an unexpected type.
-
_listAmount
final JsonField<String> _listAmount()
Returns the raw JSON value of listAmount.
Unlike listAmount, this method doesn't throw if the JSON field has an unexpected type.
-
_requests
final JsonField<Long> _requests()
Returns the raw JSON value of requests.
Unlike requests, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaAnalyticsCostMetrics.Builder toBuilder()
-
validate
final BetaAnalyticsCostMetrics 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.
-
builder
final static BetaAnalyticsCostMetrics.Builder builder()
Returns a mutable builder for constructing an instance of BetaAnalyticsCostMetrics.
The following fields are required:
.amount() .currency() .listAmount() .requests()
-
-
-
-