Class BetaAnalyticsUsageItem
-
- All Implemented Interfaces:
public final class BetaAnalyticsUsageItem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaAnalyticsUsageItem.BuilderA builder for BetaAnalyticsUsageItem.
-
Method Summary
Modifier and Type Method Description final OffsetDateTimeendingAt()End of the period this row covers (exclusive), as an RFC 3339 UTC timestamp: the end of the row's time bucket when a time-bucket width is set; otherwise the requested ending_at(or, when omitted, the earlier of now andstarting_atplus 31 days) rounded down to the hour, because without a time bucket the report covers whole hours.final BetaAnalyticsUsageGroupgroup()The dimension values this row's usage is broken out by. final OffsetDateTimestartingAt()Start of the period this row covers (inclusive), as an RFC 3339 UTC timestamp: the start of the row's time bucket when a time-bucket width is set, otherwise the requested starting_atrounded down to the hour.final BetaAnalyticsUsageMetricsusage()Token usage for this row. final JsonField<OffsetDateTime>_endingAt()Returns the raw JSON value of endingAt. final JsonField<BetaAnalyticsUsageGroup>_group()Returns the raw JSON value of group. final JsonField<OffsetDateTime>_startingAt()Returns the raw JSON value of startingAt. final JsonField<BetaAnalyticsUsageMetrics>_usage()Returns the raw JSON value of usage. final Map<String, JsonValue>_additionalProperties()final BetaAnalyticsUsageItem.BuildertoBuilder()final BetaAnalyticsUsageItemvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaAnalyticsUsageItem.Builderbuilder()Returns a mutable builder for constructing an instance of BetaAnalyticsUsageItem. -
-
Method Detail
-
endingAt
final OffsetDateTime endingAt()
End of the period this row covers (exclusive), as an RFC 3339 UTC timestamp: the end of the row's time bucket when a time-bucket width is set; otherwise the requested
ending_at(or, when omitted, the earlier of now andstarting_atplus 31 days) rounded down to the hour, because without a time bucket the report covers whole hours.
-
group
final BetaAnalyticsUsageGroup group()
The dimension values this row's usage is broken out by.
-
startingAt
final OffsetDateTime startingAt()
Start of the period this row covers (inclusive), as an RFC 3339 UTC timestamp: the start of the row's time bucket when a time-bucket width is set, otherwise the requested
starting_atrounded down to the hour.
-
usage
final BetaAnalyticsUsageMetrics usage()
Token usage for this row.
-
_endingAt
final JsonField<OffsetDateTime> _endingAt()
Returns the raw JSON value of endingAt.
Unlike endingAt, this method doesn't throw if the JSON field has an unexpected type.
-
_group
final JsonField<BetaAnalyticsUsageGroup> _group()
Returns the raw JSON value of group.
Unlike group, this method doesn't throw if the JSON field has an unexpected type.
-
_startingAt
final JsonField<OffsetDateTime> _startingAt()
Returns the raw JSON value of startingAt.
Unlike startingAt, this method doesn't throw if the JSON field has an unexpected type.
-
_usage
final JsonField<BetaAnalyticsUsageMetrics> _usage()
Returns the raw JSON value of usage.
Unlike usage, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaAnalyticsUsageItem.Builder toBuilder()
-
validate
final BetaAnalyticsUsageItem 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 BetaAnalyticsUsageItem.Builder builder()
Returns a mutable builder for constructing an instance of BetaAnalyticsUsageItem.
The following fields are required:
.endingAt() .group() .startingAt() .usage()
-
-
-
-