Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit023fbf4

Browse files
docs: add docs
1 parent2d358fe commit023fbf4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

‎docs/data-sources/workspace_preset.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,27 @@ Required:
5555
Optional:
5656

5757
-`expiration_policy` (Block Set, Max: 1) Configuration block that defines TTL (time-to-live) behavior for prebuilds. Use this to automatically invalidate and delete prebuilds after a certain period, ensuring they stay up-to-date. (see[below for nested schema](#nestedblock--prebuilds--expiration_policy))
58+
-`autoscaling` (Block Set, Max: 1) Configuration block that defines autoscaling behavior for prebuilds. Use this to automatically adjust the number of prebuild instances based on a schedule. (see[below for nested schema](#nestedblock--prebuilds--autoscaling))
5859

5960
<aid="nestedblock--prebuilds--expiration_policy"></a>
6061
###Nested Schema for`prebuilds.expiration_policy`
6162

6263
Required:
6364

6465
-`ttl` (Number) Time in seconds after which an unclaimed prebuild is considered expired and eligible for cleanup.
66+
67+
<aid="nestedblock--prebuilds--autoscaling"></a>
68+
###Nested Schema for`prebuilds.autoscaling`
69+
70+
Required:
71+
72+
-`timezone` (String) The timezone to use for the autoscaling schedule (e.g., "UTC", "America/New_York").
73+
-`schedule` (Block Set, Min: 1) One or more schedule blocks that define when to scale the number of prebuild instances. (see[below for nested schema](#nestedblock--prebuilds--autoscaling--schedule))
74+
75+
<aid="nestedblock--prebuilds--autoscaling--schedule"></a>
76+
###Nested Schema for`prebuilds.autoscaling.schedule`
77+
78+
Required:
79+
80+
-`cron` (String) A cron expression that defines when this schedule should be active. The cron expression must be in the format "* HOUR * * DAY-OF-WEEK" where HOUR is 0-23 and DAY-OF-WEEK is 0-6 (Sunday-Saturday) or 1-7 (Monday-Sunday). The minute, day-of-month, and month fields must be "*".
81+
-`instances` (Number) The number of prebuild instances to maintain during this schedule period.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp