apache / hertzbeat

Apache HertzBeat(incubating) is a real-time monitoring system with agentless, performance cluster, prometheus-compatible, custom monitoring and status page building capabilities.
https://hertzbeat.apache.org/
Apache License 2.0
5.14k stars 901 forks source link

[BUG] <api alerts summary response error> #2085

Closed tomsun28 closed 4 days ago

tomsun28 commented 2 weeks ago

Is there an existing issue for this?

Current Behavior

api api/alerts/summary response data here, priorityWarningNum priorityCriticalNum priorityEmergencyNum is always 0, maybe cause by jpa ecliseLink replace

    "data": {
        "total": 883,
        "dealNum": 883,
        "rate": 100.0,
        "priorityWarningNum": 0,
        "priorityCriticalNum": 0,
        "priorityEmergencyNum": 0
    }

Expected Behavior

No response

Steps To Reproduce

request: http://localhost:4200/api/alerts/summary

response:

{
    "data": {
        "total": 883,
        "dealNum": 883,
        "rate": 100.0,
        "priorityWarningNum": 0,
        "priorityCriticalNum": 0,
        "priorityEmergencyNum": 0
    },
    "msg": null,
    "code": 0
}

Environment

HertzBeat version(s): 1.6.0

Debug logs

No response

Anything else?

No response

Ceilzcx commented 2 weeks ago

assign to me