Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据类型为http 报警规则支持对json的遍历吗 #159

Open
yaokun123 opened this issue Jan 19, 2024 · 2 comments
Open

数据类型为http 报警规则支持对json的遍历吗 #159

yaokun123 opened this issue Jan 19, 2024 · 2 comments

Comments

@yaokun123
Copy link

具体的判断表达式改怎么写?比如我的数据为[{"value":10},{"value":20}],我想判断要value有一个大于50的就报警

@yaokun123
Copy link
Author

目前使用的是穷举。ResponseBody[0]["value"] > 50 || ResponseBody[1]["value"] > 50

@limboinf
Copy link
Contributor

responseBody.some(item => item.value > 50) 试下?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants