Class BetaManagedAgentsSessionUsageEvent
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSessionUsageEventPeriodic snapshot of the session's cumulative usage and tracked list cost.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsSessionUsageEvent.BuilderA builder for BetaManagedAgentsSessionUsageEvent.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for this event. final OffsetDateTimeprocessedAt()Timestamp when the snapshot was taken. final BetaManagedAgentsSessionUsageSnapshotusage()The session's cumulative usage at the snapshot time. final Optional<BetaManagedAgentsBudgetLimit>budget()The session's configured budget at the snapshot time, or null when the session has no budget. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("session.usage")final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<OffsetDateTime>_processedAt()Returns the raw JSON value of processedAt. final JsonField<BetaManagedAgentsSessionUsageSnapshot>_usage()Returns the raw JSON value of usage. final JsonField<BetaManagedAgentsBudgetLimit>_budget()Returns the raw JSON value of budget. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsSessionUsageEvent.BuildertoBuilder()final BetaManagedAgentsSessionUsageEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsSessionUsageEvent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsSessionUsageEvent. -
-
Method Detail
-
processedAt
final OffsetDateTime processedAt()
Timestamp when the snapshot was taken.
-
usage
final BetaManagedAgentsSessionUsageSnapshot usage()
The session's cumulative usage at the snapshot time.
-
budget
final Optional<BetaManagedAgentsBudgetLimit> budget()
The session's configured budget at the snapshot time, or null when the session has no budget.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("session.usage")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_processedAt
final JsonField<OffsetDateTime> _processedAt()
Returns the raw JSON value of processedAt.
Unlike processedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_usage
final JsonField<BetaManagedAgentsSessionUsageSnapshot> _usage()
Returns the raw JSON value of usage.
Unlike usage, this method doesn't throw if the JSON field has an unexpected type.
-
_budget
final JsonField<BetaManagedAgentsBudgetLimit> _budget()
Returns the raw JSON value of budget.
Unlike budget, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsSessionUsageEvent.Builder toBuilder()
-
validate
final BetaManagedAgentsSessionUsageEvent 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 BetaManagedAgentsSessionUsageEvent.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsSessionUsageEvent.
The following fields are required:
.id() .processedAt() .usage()
-
-
-
-