update_benchmark_settings
imerit_ango.sdk.SDK.
update_benchmark_settings(project_id, benchmark_enabled, benchmark_ratio, benchmark_cutoff)
Enables or disables benchmarking and updates benchmark allocation settings for a project.
Parameters
project_id: string
The unique identifier for the project. You can find the project ID in the user interface or retrieve it using the
list_projectsfunction.
benchmark_enabled: bool
Enables or disables benchmarking for the project.
benchmark_ratio: int, Optional, default None
The percentage probability, from 0 to 100, that the next task allocated to a user will be a benchmark task.
If omitted, the project's existing benchmark ratio is unchanged.
benchmark_cutoff: bool, Optional, default None
When
True, Ango Hub stops allocating benchmark tasks to users once the regular task queue is complete.If omitted, the project's existing cutoff setting is unchanged.
Disabling benchmarking after benchmark tests have taken place deletes the project's existing benchmarking information. To pause benchmark allocation without disabling the feature, set benchmark_ratio to 0.
Returns:
output: dict
A dictionary containing the result of the operation.
Includes a
statusfield indicating whether the request was successful and adatafield containing the updated project.
Example
Enable benchmarking with a 10% allocation probability, and stop allocating benchmark tasks when the regular queue is complete:
Last updated