Class Trigger
java.lang.Object
com.google.genai.gaos.models.triggers.Trigger
Trigger
A trigger configuration that is scheduled to run an agent.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTrigger(Integer consecutiveFailureCount, OffsetDateTime createTime, String displayName, String environmentId, Integer executionTimeoutSeconds, String id, Interaction interaction, OffsetDateTime lastPauseTime, OffsetDateTime lastResumeTime, OffsetDateTime lastRunTime, Integer maxConsecutiveFailures, OffsetDateTime nextRunTime, String previousInteractionId, String schedule, TriggerStatus status, String timeZone, OffsetDateTime updateTime) Trigger(String id, Interaction interaction, String schedule, String timeZone) -
Method Summary
Modifier and TypeMethodDescriptionstatic Trigger.Builderbuilder()Output only.Output only.Optional.Optional.booleanOptional.inthashCode()id()Required.The Interaction resource.Output only.Output only.Output only.Optional.Output only.Output only.schedule()Required.status()Output only.timeZone()Required.toString()Output only.withConsecutiveFailureCount(Integer consecutiveFailureCount) Output only.withCreateTime(OffsetDateTime createTime) Output only.withDisplayName(String displayName) Optional.withEnvironmentId(String environmentId) Optional.withExecutionTimeoutSeconds(Integer executionTimeoutSeconds) Optional.Required.withInteraction(Interaction interaction) The Interaction resource.withLastPauseTime(OffsetDateTime lastPauseTime) Output only.withLastResumeTime(OffsetDateTime lastResumeTime) Output only.withLastRunTime(OffsetDateTime lastRunTime) Output only.withMaxConsecutiveFailures(Integer maxConsecutiveFailures) Optional.withNextRunTime(OffsetDateTime nextRunTime) Output only.withPreviousInteractionId(String previousInteractionId) Output only.withSchedule(String schedule) Required.withStatus(TriggerStatus status) Output only.withTimeZone(String timeZone) Required.withUpdateTime(OffsetDateTime updateTime) Output only.
-
Constructor Details
-
Trigger
public Trigger(@Nullable Integer consecutiveFailureCount, @Nullable OffsetDateTime createTime, @Nullable String displayName, @Nullable String environmentId, @Nullable Integer executionTimeoutSeconds, @Nonnull String id, @Nonnull Interaction interaction, @Nullable OffsetDateTime lastPauseTime, @Nullable OffsetDateTime lastResumeTime, @Nullable OffsetDateTime lastRunTime, @Nullable Integer maxConsecutiveFailures, @Nullable OffsetDateTime nextRunTime, @Nullable String previousInteractionId, @Nonnull String schedule, @Nullable TriggerStatus status, @Nonnull String timeZone, @Nullable OffsetDateTime updateTime) -
Trigger
public Trigger(@Nonnull String id, @Nonnull Interaction interaction, @Nonnull String schedule, @Nonnull String timeZone)
-
-
Method Details
-
consecutiveFailureCount
Output only. The number of consecutive failures that have occurred since the last successful execution. -
createTime
Output only. The time when the trigger was created. -
displayName
Optional. The display name of the trigger. -
environmentId
Optional. The environment ID for the trigger execution. -
executionTimeoutSeconds
Optional. The execution timeout for the triggered interaction. -
id
Required. Output only. Identifier.The ID of the trigger.
-
interaction
The Interaction resource. -
lastPauseTime
Output only. The time when the trigger was last paused. -
lastResumeTime
Output only. The time when the trigger was last resumed. -
lastRunTime
Output only. The time when the trigger was last run. -
maxConsecutiveFailures
Optional. The maximum number of consecutive failures allowed before the trigger is automatically paused (status becomes ERROR). -
nextRunTime
Output only. The time when the trigger is scheduled to run next. -
previousInteractionId
Output only. The ID of the last interaction created by this trigger. -
schedule
Required. The cron schedule on which the trigger should run. Standard cron format. -
status
Output only. The current status of the trigger. -
timeZone
Required. Time zone in which the schedule should be interpreted. -
updateTime
Output only. The time when the trigger was last updated. -
builder
-
withConsecutiveFailureCount
Output only. The number of consecutive failures that have occurred since the last successful execution. -
withCreateTime
Output only. The time when the trigger was created. -
withDisplayName
Optional. The display name of the trigger. -
withEnvironmentId
Optional. The environment ID for the trigger execution. -
withExecutionTimeoutSeconds
Optional. The execution timeout for the triggered interaction. -
withId
Required. Output only. Identifier.The ID of the trigger.
-
withInteraction
The Interaction resource. -
withLastPauseTime
Output only. The time when the trigger was last paused. -
withLastResumeTime
Output only. The time when the trigger was last resumed. -
withLastRunTime
Output only. The time when the trigger was last run. -
withMaxConsecutiveFailures
Optional. The maximum number of consecutive failures allowed before the trigger is automatically paused (status becomes ERROR). -
withNextRunTime
Output only. The time when the trigger is scheduled to run next. -
withPreviousInteractionId
Output only. The ID of the last interaction created by this trigger. -
withSchedule
Required. The cron schedule on which the trigger should run. Standard cron format. -
withStatus
Output only. The current status of the trigger. -
withTimeZone
Required. Time zone in which the schedule should be interpreted. -
withUpdateTime
Output only. The time when the trigger was last updated. -
equals
-
hashCode
public int hashCode() -
toString
-