louislam / uptime-kuma

A fancy self-hosted monitoring tool

Home Page:https://uptime.kuma.pet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Regex for JSON query's expected value (and in general for anything value search-like)

iGerman00 opened this issue Β· comments

πŸ“‘ I have found these related issues/pull requests

🏷️ Feature Request Type

Change to existing monitor

πŸ”– Feature description

Sometimes, for example when the response is a string and can vary, you would want to regex it, maybe something returns a big error, but it starts with the word error.

βœ”οΈ Solution

A regex option alongside the current expected value would be swell.

❓ Alternatives

Can't think of any

πŸ“ Additional Context

No response

FYI:
jsonata already includes the regex expression https://docs.jsonata.org/regex
But yea, likely not as discoverable for devs.

The PR that would add further operators would be #4617