QiangQiangshiyanshi opened a new issue, #2260:
URL: https://github.com/apache/hertzbeat/issues/2260
### Question
我找到接口文档,运行测试代码,返回400,并没有在控制台发现它。
```json
{
"monitor": {
"name": "Api-TanCloud.cn",
"app": "TanCloud",
"host": "192.167.25.11",
"intervals": 600,
"status": "string",
"description": "Availability monitoring of the SAAS website TanCloud",
"tags": [
{
"name": "app",
"tagValue": "23",
"color": "#ffff",
"description": "Used for monitoring mysql",
"type": "string"
}
]
},
"params": [
{
"monitorId": 875846754543,
"field": "port",
"paramValue": "8080",
"type": "string"
}
],
"detected": true,
"collector": "string"
}
```
```
{
"data": null,
"msg": "Cannot construct instance of
`org.apache.hertzbeat.manager.pojo.dto.MonitorDto` (although at least one
Creator exists): no String-argument constructor/factory method to deserialize
from String value ('monitor')\n at [Source:
(org.springframework.util.StreamUtils$NonClosingInputStream); line: 1, column:
3]",
"code": 1
}
```
--
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]