Is there a way to enable the continuous analysis feature of the dashboard through an API?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 有没有办法通过API的方式去开启dashboard的持续分析功能

| username: Daniel-W

Is there a way to enable or disable the continuous analysis feature of the dashboard on a scheduled basis through an API?

| username: Daniel-W | Original post link

Enable

curl 'http://127.0.0.1:2379/dashboard/api/continuous_profiling/config' \
-H 'Authorization: xxx{token}' \
--data '{"continuous_profiling":{"enable":true,"data_retention_seconds":259200}}'

Disable

curl 'http://127.0.0.1:2379/dashboard/api/continuous_profiling/config' \
-H 'Authorization: Bearer xxx{token}' \
--data '{"continuous_profiling":{"enable":false,"data_retention_seconds":259200}}'
| username: zhh_912 | Original post link

This should be possible.