Dynamic request bodys via jsonata templating #3042

Open
opened 2026-02-28 03:15:51 -05:00 by deekerman · 4 comments
Owner

Originally created by @Natgho on GitHub (Jan 17, 2024).

⚠️ Please verify that this feature request has NOT been suggested before.

  • I checked and didn't find similar feature request

🏷️ Feature Request Type

New Monitor

🔖 Feature description

There is no way to random these values for every request;
image

It is also not possibe to add $now() or other time functions.

✔️ Solution

imagine an environment where every request is cached. In this case, we would need to send new values every time to see if the system is still up and running. Can we add a feature like {{random.int(1,50)}} or {{random.text(min=10,max=100)}} ?

Alternatives

No way :/

📝 Additional Context

No response

Originally created by @Natgho on GitHub (Jan 17, 2024). ### ⚠️ Please verify that this feature request has NOT been suggested before. - [X] I checked and didn't find similar feature request ### 🏷️ Feature Request Type New Monitor ### 🔖 Feature description There is no way to random these values for every request; ![image](https://github.com/louislam/uptime-kuma/assets/6623948/06e99836-96e9-4b87-bd19-70ffb4b8a8ca) It is also not possibe to add `$now()` or other time functions. ### ✔️ Solution imagine an environment where every request is cached. In this case, we would need to send new values every time to see if the system is still up and running. Can we add a feature like {{random.int(1,50)}} or {{random.text(min=10,max=100)}} ? ### ❓ Alternatives No way :/ ### 📝 Additional Context _No response_
Author
Owner

@CommanderStorm commented on GitHub (Jan 17, 2024):

Related https://github.com/louislam/uptime-kuma/pull/3525

@CommanderStorm commented on GitHub (Jan 17, 2024): Related https://github.com/louislam/uptime-kuma/pull/3525
Author
Owner

@louislam commented on GitHub (Jan 23, 2024):

Duplicate of #575

@louislam commented on GitHub (Jan 23, 2024): Duplicate of #575
Author
Owner

@CommanderStorm commented on GitHub (Jan 23, 2024):

Disagree:
@Natgho is requesting cachebusting via the body instead of the path as in https://github.com/louislam/uptime-kuma/issues/575

@CommanderStorm commented on GitHub (Jan 23, 2024): Disagree: @Natgho is requesting cachebusting via the body instead of the path as in https://github.com/louislam/uptime-kuma/issues/575
Author
Owner

@Natgho commented on GitHub (Jan 23, 2024):

Yes absolutely. Thank you for the supporting me @commanderStorm

@Natgho commented on GitHub (Jan 23, 2024): Yes absolutely. Thank you for the supporting me @commanderStorm
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/uptime-kuma#3042
No description provided.