apache / apache/hertzbeat

[Question] < PING connectivity>

Open
#2,260 3 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Java
Stars
7.4k
Forks
1.3k
Avg merge
1d 20h
Merged PRs (30d)
32

Description

### Question

I found the interface documentation, ran the test code, and did not find it on the console.
```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
}
```

Contributor guide

Open the contributing guide

Research direction

Start with the interface documentation and the test request shown in the issue, then reproduce the PING connectivity call using the supplied JSON. Trace the MonitorDto deserialization error and confirm the expected request shape; done means the request is accepted or the required correction is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.