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.ErrorPopulated on creation failure. Null on success. Exactly one of
session_idorerroris non-null.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for this run ( drun_...).final BetaManagedAgentsAgentReferenceagent()Snapshot of the agent at fire time. final OffsetDateTimecreatedAt()Time this run record was persisted. final StringdeploymentId()ID of the deployment that produced this run. final Optional<BetaManagedAgentsDeploymentRun.Error>error()Populated on creation failure. final Optional<String>sessionId()Populated on success. final BetaManagedAgentsTriggerContexttriggerContext()What triggered this run and trigger-specific metadata. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("deployment_run")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 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()
Snapshot of the agent at fire time. Always fully resolved — deployments pin agent + version.
-
createdAt
final OffsetDateTime createdAt()
Time this run record was persisted.
-
deploymentId
final String deploymentId()
ID of the deployment that produced this run.
-
error
final Optional<BetaManagedAgentsDeploymentRun.Error> error()
Populated on creation failure. Null on success. Exactly one of
session_idorerroris non-null.
-
sessionId
final Optional<String> sessionId()
Populated on success. Null on creation failure. Exactly one of
session_idorerroris non-null.
-
triggerContext
final BetaManagedAgentsTriggerContext triggerContext()
What triggered this run and trigger-specific metadata.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("deployment_run")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.
-
_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.
-
_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()
-
-
-
-