hertzbeat icon indicating copy to clipboard operation
hertzbeat copied to clipboard

[Question] <Can the Request Body in HTTP API obtain the current timestamp? >

Open Kylin-Guo opened this issue 2 years ago • 4 comments

Question

因某些接口的请求需要传递当前时间,或者每次请求的内容需要有所不同 请问Request Body的内容能否获取当前时间戳?以及是否支持变量设置?

Kylin-Guo avatar Dec 20 '23 08:12 Kylin-Guo

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Question

Because some interface requests need to pass the current time, or the content of each request needs to be different. Can the current timestamp be obtained from the content of the Request Body? And does it support variable setting?

hertzbeat avatar Dec 20 '23 08:12 hertzbeat

暂不支持环境变量,这个需求可以后面支持下

tomsun28 avatar Dec 20 '23 08:12 tomsun28

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Environment variables are not supported yet. This requirement can be supported later.

hertzbeat avatar Dec 20 '23 08:12 hertzbeat

Please assign to me

hudongdong129 avatar Mar 15 '24 06:03 hudongdong129