Class BetaManagedAgentsWorkflowRunStatusEndedEvent
-
- All Implemented Interfaces:
public final class BetaManagedAgentsWorkflowRunStatusEndedEventA workflow run ended. Emitted once per run, as the last of the run's
workflow_run.*events.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsWorkflowRunStatusEndedEvent.BuilderA builder for BetaManagedAgentsWorkflowRunStatusEndedEvent.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for this event. final OffsetDateTimeprocessedAt()Timestamp when this event was processed. final BetaManagedAgentsWorkflowRunResultresult()How the run ended. final StringworkflowRunId()Identifier of the run. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("workflow_run.status_ended")final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<OffsetDateTime>_processedAt()Returns the raw JSON value of processedAt. final JsonField<BetaManagedAgentsWorkflowRunResult>_result()Returns the raw JSON value of result. final JsonField<String>_workflowRunId()Returns the raw JSON value of workflowRunId. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsWorkflowRunStatusEndedEvent.BuildertoBuilder()final BetaManagedAgentsWorkflowRunStatusEndedEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsWorkflowRunStatusEndedEvent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsWorkflowRunStatusEndedEvent. -
-
Method Detail
-
processedAt
final OffsetDateTime processedAt()
Timestamp when this event was processed.
-
result
final BetaManagedAgentsWorkflowRunResult result()
How the run ended.
-
workflowRunId
final String workflowRunId()
Identifier of the run. The same value is on all of the run's
workflow_run.*events.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("workflow_run.status_ended")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.
-
_result
final JsonField<BetaManagedAgentsWorkflowRunResult> _result()
Returns the raw JSON value of result.
Unlike result, this method doesn't throw if the JSON field has an unexpected type.
-
_workflowRunId
final JsonField<String> _workflowRunId()
Returns the raw JSON value of workflowRunId.
Unlike workflowRunId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder toBuilder()
-
validate
final BetaManagedAgentsWorkflowRunStatusEndedEvent 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 BetaManagedAgentsWorkflowRunStatusEndedEvent.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsWorkflowRunStatusEndedEvent.
The following fields are required:
.id() .processedAt() .result() .workflowRunId()
-
-
-
-