danielgoepp opened a new issue, #3485:
URL: https://github.com/apache/hertzbeat/issues/3485
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Current Behavior
I have to use the following request to create a ping test via the API. Note
that both the host in the monitor section and host in the params section is
required. However, this is redundant and the potential for confusion /
misconfiguration if set in the wrong way. I would recommend not making the
params entry required, and just use the host from the main monitor section.
```
{
"monitor": {
"name": "garage-door-car",
"app": "ping",
"host": "garage-door-car.goepp.net",
"intervals": 60
},
"params": [
{
"field": "timeout",
"paramValue": 6000
},
{
"field": "host",
"paramValue": "garage-door-car.goepp.net"
}
]
}
```
### Expected Behavior
Only require one of the new host parameters.
### Steps To Reproduce
Nothing to reproduce here, just a comment on how the API works.
### Environment
```markdown
HertzBeat version(s): 1.7.0
```
### Debug logs
N/A
### Anything else?
Nope.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail:
[email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]