Class BetaManagedAgentsDeploymentRun
-
- All Implemented Interfaces:
public final class BetaManagedAgentsDeploymentRunA persistent, append-only record of a single deployment execution. Records session creation success or failure — no session lifecycle tracking.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsDeploymentRun.BuilderA builder for BetaManagedAgentsDeploymentRun.
public final classBetaManagedAgentsDeploymentRun.ErrorWhy the run failed to create a session. The type identifies the failure; message is human-readable detail.
public final classBetaManagedAgentsDeploymentRun.Type
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for this run ( drun_...).final BetaManagedAgentsAgentReferenceagent()A resolved agent reference with a concrete version. final OffsetDateTimecreatedAt()A timestamp in RFC 3339 format final StringdeploymentId()ID of the deployment that produced this run. final Optional<BetaManagedAgentsDeploymentRun.Error>error()Why the run failed to create a session. final Optional<String>sessionId()Populated on success. final BetaManagedAgentsTriggerContexttriggerContext()Describes what triggered a deployment run, with trigger-specific metadata. final BetaManagedAgentsDeploymentRun.Typetype()final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaManagedAgentsAgentReference>_agent()Returns the raw JSON value of agent. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. final JsonField<String>_deploymentId()Returns the raw JSON value of deploymentId. final JsonField<BetaManagedAgentsDeploymentRun.Error>_error()Returns the raw JSON value of error. final JsonField<String>_sessionId()Returns the raw JSON value of sessionId. final JsonField<BetaManagedAgentsTriggerContext>_triggerContext()Returns the raw JSON value of triggerContext. final JsonField<BetaManagedAgentsDeploymentRun.Type>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsDeploymentRun.BuildertoBuilder()final BetaManagedAgentsDeploymentRunvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsDeploymentRun.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsDeploymentRun. -
-
Method Detail
-
agent
final BetaManagedAgentsAgentReference agent()
A resolved agent reference with a concrete version.
-
createdAt
final OffsetDateTime createdAt()
A timestamp in RFC 3339 format
-
deploymentId
final String deploymentId()
ID of the deployment that produced this run.
-
error
final Optional<BetaManagedAgentsDeploymentRun.Error> error()
Why the run failed to create a session. The type identifies the failure; message is human-readable detail.
-
sessionId
final Optional<String> sessionId()
Populated on success. Null on creation failure. Exactly one of session_id or error is non-null.
-
triggerContext
final BetaManagedAgentsTriggerContext triggerContext()
Describes what triggered a deployment run, with trigger-specific metadata.
-
type
final BetaManagedAgentsDeploymentRun.Type type()
-
_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.
-
_agent
final JsonField<BetaManagedAgentsAgentReference> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<OffsetDateTime> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_deploymentId
final JsonField<String> _deploymentId()
Returns the raw JSON value of deploymentId.
Unlike deploymentId, this method doesn't throw if the JSON field has an unexpected type.
-
_error
final JsonField<BetaManagedAgentsDeploymentRun.Error> _error()
Returns the raw JSON value of error.
Unlike error, this method doesn't throw if the JSON field has an unexpected type.
-
_sessionId
final JsonField<String> _sessionId()
Returns the raw JSON value of sessionId.
Unlike sessionId, this method doesn't throw if the JSON field has an unexpected type.
-
_triggerContext
final JsonField<BetaManagedAgentsTriggerContext> _triggerContext()
Returns the raw JSON value of triggerContext.
Unlike triggerContext, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<BetaManagedAgentsDeploymentRun.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsDeploymentRun.Builder toBuilder()
-
validate
final BetaManagedAgentsDeploymentRun 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 BetaManagedAgentsDeploymentRun.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsDeploymentRun.
The following fields are required:
.id() .agent() .createdAt() .deploymentId() .error() .sessionId() .triggerContext() .type()
-
-
-
-