You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`created_by` (String) The email of the user who created the schedule.
81
+
-`cron` (Block, Read-only) The cron schedule to trigger the test periodically. If null, the test will run only once on the 'starts' date. (see [below for nested schema](#nestedblock--cron))
80
82
-`deactivated` (Boolean) Whether the schedule is deactivated.
81
83
-`id` (String) Numeric identifier of the schedule.
82
84
-`next_run` (String) The next scheduled execution time.
83
85
-`recurrence_rule` (Block, Read-only) The schedule recurrence settings. If null, the test will run only once on the starts date. (see [below for nested schema](#nestedblock--recurrence_rule))
84
86
-`starts` (String) The start time for the schedule (RFC3339 format).
85
87
88
+
<aid="nestedblock--cron"></a>
89
+
### Nested Schema for `cron`
90
+
91
+
Read-Only:
92
+
93
+
-`schedule` (String) A cron expression with exactly 5 entries, or an alias. The allowed aliases are: @yearly, @annually, @monthly, @weekly, @daily, @hourly.
94
+
-`timezone` (String) The timezone of the cron expression. For example, 'UTC' or 'Europe/London'.
-`recurrence_rule` (Block, Optional) The schedule recurrence settings. If not specified, the test will run only once on the 'starts' date. (see [below for nested schema](#nestedblock--recurrence_rule))
92
+
-`cron` (Block, Optional) The cron schedule to trigger the test periodically. If not specified, the test will run only once on the 'starts' date. Only one of `recurrence_rule` and `cron` can be set. (see [below for nested schema](#nestedblock--cron))
93
+
-`recurrence_rule` (Block, Optional) The schedule recurrence settings. If not specified, the test will run only once on the 'starts' date. Only one of `recurrence_rule` and `cron` can be set. (see [below for nested schema](#nestedblock--recurrence_rule))
-`id` (String) Numeric identifier of the schedule.
89
100
-`next_run` (String) The next scheduled execution time.
90
101
102
+
<aid="nestedblock--cron"></a>
103
+
### Nested Schema for `cron`
104
+
105
+
Optional:
106
+
107
+
-`schedule` (String) A cron expression with exactly 5 entries, or an alias. The allowed aliases are: @yearly, @annually, @monthly, @weekly, @daily, @hourly.
108
+
-`timezone` (String) The timezone of the cron expression. For example, 'UTC' or 'Europe/London'.
Description: "The cron schedule to trigger the test periodically. If null, the test will run only once on the 'starts' date.",
114
+
Attributes: map[string]schema.Attribute{
115
+
"schedule": schema.StringAttribute{
116
+
Description: "A cron expression with exactly 5 entries, or an alias. The allowed aliases are: @yearly, @annually, @monthly, @weekly, @daily, @hourly.",
117
+
Computed: true,
118
+
},
119
+
"timezone": schema.StringAttribute{
120
+
Description: "The timezone of the cron expression. For example, 'UTC' or 'Europe/London'.",
121
+
Computed: true,
122
+
},
123
+
},
124
+
},
111
125
},
112
126
}
113
127
}
@@ -172,7 +186,7 @@ func populateScheduleDataSourceModel(schedule *k6.ScheduleApiModel, model *sched
172
186
}
173
187
174
188
// Extract recurrence rule details
175
-
ifrecurrenceRule, ok:=schedule.GetRecurrenceRuleOk(); ok {
0 commit comments