Class BetaManagedAgentsCronSchedule

    • Constructor Detail

    • Method Detail

      • expression

         final String expression()

        5-field POSIX cron expression: minute hour day-of-month month day-of-week (e.g., "0 9 * * 1-5" for weekdays at 9am). Day-of-week is 0-7 where 0 and 7 both mean Sunday. Extended cron syntax - seconds or year fields, and the special characters L, W, #, and ? - is not supported, nor are predefined shortcuts (@daily).

      • timezone

         final String timezone()

        IANA timezone identifier (e.g., "America/Los_Angeles", "UTC").

      • lastRunAt

         final Optional<OffsetDateTime> lastRunAt()

        Time the most recent scheduled run actually started. Null until one completes; preserved after the deployment is archived. Manual runs do not update this.

      • upcomingRunsAt

         final Optional<List<OffsetDateTime>> upcomingRunsAt()

        Up to 5 timestamps of upcoming cron occurrences. Non-empty for active and paused deployments (reflects what the schedule would do if unpaused); empty once the deployment is archived (archived_at set). Each fire is offset by a small per-schedule jitter, so a run will actually start at or shortly after its listed time.

      • _type

         final JsonValue _type()

        Expected to always return the following:

        JsonValue.from("cron")

        However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).

      • _expression

         final JsonField<String> _expression()

        Returns the raw JSON value of expression.

        Unlike expression, this method doesn't throw if the JSON field has an unexpected type.

      • _timezone

         final JsonField<String> _timezone()

        Returns the raw JSON value of timezone.

        Unlike timezone, this method doesn't throw if the JSON field has an unexpected type.

      • _lastRunAt

         final JsonField<OffsetDateTime> _lastRunAt()

        Returns the raw JSON value of lastRunAt.

        Unlike lastRunAt, this method doesn't throw if the JSON field has an unexpected type.

      • validate

         final BetaManagedAgentsCronSchedule 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.