Numeric ID of the Grafana stack representing the request scope.
If the API is called with a Personal API token, the user must be a member of the specified stack.
If the API is called with a Grafana Stack API token, the value must be the ID of the corresponding stack.
header
true
integer
id
ID of the load test.
path
true
integer
200
response
OK.
Content types:
application/json
ScheduleApiModel properties:
Name
Description
Required
Type
created_by
The email of the user who created the schedule if applicable.
true
string|null
deactivated
Whether the schedule is deactivated. A deactivated schedule will not trigger new test runs, but the schedule recurrence rule and expiration is not affected.
true
boolean
id
ID of the schedule.
true
integer
load_test_id
ID of the test to run.
true
integer
next_run
The date of the next scheduled test run. The value is null if the schedule is expired and no more occurrences are expected in the future according to the recurrence rule.
true
string|null
, format: date-time
recurrence_rule
The schedule recurrence settings. If null, the test will run only once on the starts date.
true
ScheduleRecurrenceRule
|
null
starts
The date on which the schedule will start running the test.
true
string
, format: date-time
ScheduleRecurrenceRule properties:
Name
Description
Required
Type
byday
The weekdays when the ‘WEEKLY’ recurrence will be applied. Cannot be set for other frequencies.
false
array|null
count
Determines how many times the recurrence will repeat.
false
integer|null
frequency
true
Frequency
interval
The interval between each frequency iteration. An interval of 2 with ‘HOURLY’ frequency makes the test run once every 2 hours.
false
integer
until
A datetime instance specifying the upper-bound time limit of the recurrence.
This operation overwrites any existing test schedule.
Monthly schedules running on days 29-31 are adjusted to run on the last day of the month
if the target day doesn’t exist in a given month (for example, March 31 -> April 30).
Request parameters
Name
Description
In
Required
Type
X-Stack-Id
Numeric ID of the Grafana stack representing the request scope.
If the API is called with a Personal API token, the user must be a member of the specified stack.
If the API is called with a Grafana Stack API token, the value must be the ID of the corresponding stack.
header
true
integer
id
ID of the load test.
path
true
integer
Request body
Content types:
application/json
CreateScheduleRequest properties:
Name
Description
Required
Type
recurrence_rule
The schedule recurrence settings. If null, the test will run only once on the starts date.
true
ScheduleRecurrenceRule
|
null
starts
The timezone-aware date on which the schedule will start running the test.
true
string
, format: date-time
ScheduleRecurrenceRule properties:
Name
Description
Required
Type
byday
The weekdays when the ‘WEEKLY’ recurrence will be applied. Cannot be set for other frequencies.
false
array|null
count
Determines how many times the recurrence will repeat.
false
integer|null
frequency
true
Frequency
interval
The interval between each frequency iteration. An interval of 2 with ‘HOURLY’ frequency makes the test run once every 2 hours.
false
integer
until
A datetime instance specifying the upper-bound time limit of the recurrence.
The email of the user who created the schedule if applicable.
true
string|null
deactivated
Whether the schedule is deactivated. A deactivated schedule will not trigger new test runs, but the schedule recurrence rule and expiration is not affected.
true
boolean
id
ID of the schedule.
true
integer
load_test_id
ID of the test to run.
true
integer
next_run
The date of the next scheduled test run. The value is null if the schedule is expired and no more occurrences are expected in the future according to the recurrence rule.
true
string|null
, format: date-time
recurrence_rule
The schedule recurrence settings. If null, the test will run only once on the starts date.
true
ScheduleRecurrenceRule
|
null
starts
The date on which the schedule will start running the test.
true
string
, format: date-time
ScheduleRecurrenceRule properties:
Name
Description
Required
Type
byday
The weekdays when the ‘WEEKLY’ recurrence will be applied. Cannot be set for other frequencies.
false
array|null
count
Determines how many times the recurrence will repeat.
false
integer|null
frequency
true
Frequency
interval
The interval between each frequency iteration. An interval of 2 with ‘HOURLY’ frequency makes the test run once every 2 hours.
false
integer
until
A datetime instance specifying the upper-bound time limit of the recurrence.
Numeric ID of the Grafana stack representing the request scope.
If the API is called with a Personal API token, the user must be a member of the specified stack.
If the API is called with a Grafana Stack API token, the value must be the ID of the corresponding stack.
header
true
integer
$count
Include collection length in the response object as @count.
query
false
boolean
$skip
The initial index from which to return the results.
query
false
integer
$top
Number of results to return per page. Default: 1000 Maximum: 1000
query
false
integer
200
response
OK.
Content types:
application/json
ScheduleListResponse properties:
Name
Description
Required
Type
@count
Object count in the collection.
false
integer
@nextLink
A reference to the next page of results. The property is included until there are no more pages of results to retrieve.
false
string
, format: uri
value
List of the resulting values.
true
Array[ScheduleApiModel]
ScheduleApiModel properties:
Name
Description
Required
Type
created_by
The email of the user who created the schedule if applicable.
true
string|null
deactivated
Whether the schedule is deactivated. A deactivated schedule will not trigger new test runs, but the schedule recurrence rule and expiration is not affected.
true
boolean
id
ID of the schedule.
true
integer
load_test_id
ID of the test to run.
true
integer
next_run
The date of the next scheduled test run. The value is null if the schedule is expired and no more occurrences are expected in the future according to the recurrence rule.
true
string|null
, format: date-time
recurrence_rule
The schedule recurrence settings. If null, the test will run only once on the starts date.
true
ScheduleRecurrenceRule
|
null
starts
The date on which the schedule will start running the test.
true
string
, format: date-time
ScheduleRecurrenceRule properties:
Name
Description
Required
Type
byday
The weekdays when the ‘WEEKLY’ recurrence will be applied. Cannot be set for other frequencies.
false
array|null
count
Determines how many times the recurrence will repeat.
false
integer|null
frequency
true
Frequency
interval
The interval between each frequency iteration. An interval of 2 with ‘HOURLY’ frequency makes the test run once every 2 hours.
false
integer
until
A datetime instance specifying the upper-bound time limit of the recurrence.
Numeric ID of the Grafana stack representing the request scope.
If the API is called with a Personal API token, the user must be a member of the specified stack.
If the API is called with a Grafana Stack API token, the value must be the ID of the corresponding stack.
header
true
integer
id
ID of the schedule.
path
true
integer
200
response
OK.
Content types:
application/json
ScheduleApiModel properties:
Name
Description
Required
Type
created_by
The email of the user who created the schedule if applicable.
true
string|null
deactivated
Whether the schedule is deactivated. A deactivated schedule will not trigger new test runs, but the schedule recurrence rule and expiration is not affected.
true
boolean
id
ID of the schedule.
true
integer
load_test_id
ID of the test to run.
true
integer
next_run
The date of the next scheduled test run. The value is null if the schedule is expired and no more occurrences are expected in the future according to the recurrence rule.
true
string|null
, format: date-time
recurrence_rule
The schedule recurrence settings. If null, the test will run only once on the starts date.
true
ScheduleRecurrenceRule
|
null
starts
The date on which the schedule will start running the test.
true
string
, format: date-time
ScheduleRecurrenceRule properties:
Name
Description
Required
Type
byday
The weekdays when the ‘WEEKLY’ recurrence will be applied. Cannot be set for other frequencies.
false
array|null
count
Determines how many times the recurrence will repeat.
false
integer|null
frequency
true
Frequency
interval
The interval between each frequency iteration. An interval of 2 with ‘HOURLY’ frequency makes the test run once every 2 hours.
false
integer
until
A datetime instance specifying the upper-bound time limit of the recurrence.
Numeric ID of the Grafana stack representing the request scope.
If the API is called with a Personal API token, the user must be a member of the specified stack.
If the API is called with a Grafana Stack API token, the value must be the ID of the corresponding stack.
header
true
integer
id
ID of the schedule.
path
true
integer
204
response
OK.
401
response
403
response
404
response
500
response
Re-activate deactivated schedule
POST /cloud/v6/schedules/{id}/activate
Re-activate a deactivated schedule.
A deactivated schedule can be re-activated only if it still has at least one future
recurrence.
Request parameters
Name
Description
In
Required
Type
X-Stack-Id
Numeric ID of the Grafana stack representing the request scope.
If the API is called with a Personal API token, the user must be a member of the specified stack.
If the API is called with a Grafana Stack API token, the value must be the ID of the corresponding stack.
header
true
integer
id
ID of the schedule.
path
true
integer
204
response
OK.
401
response
403
response
404
response
409
response
Cannot re-activate an expired schedule.
Content types:
application/json
ErrorResponseApiModel properties:
Name
Description
Required
Type
error
true
ErrorApiModel
Details of the error.
ErrorApiModel properties:
Name
Description
Required
Type
code
Service-defined error code.
true
string
details
Array of objects with more specific error information when applicable.
false
array|null
message
Human-readable string describing the error.
true
string
target
A string indicating the target of the error. For example, the name of the property in error.
false
string|null
500
response
Deactivate a schedule
POST /cloud/v6/schedules/{id}/deactivate
Deactivate a schedule.
A deactivated schedule will not trigger new test runs. Disabling a schedule does not affect
the schedule recurrence rule and does not delay its expiration.
The operation has no effect if the schedule is expired.
Request parameters
Name
Description
In
Required
Type
X-Stack-Id
Numeric ID of the Grafana stack representing the request scope.
If the API is called with a Personal API token, the user must be a member of the specified stack.
If the API is called with a Grafana Stack API token, the value must be the ID of the corresponding stack.