fix: alarm code 10000 issue
This commit is contained in:
@@ -121,7 +121,7 @@ func (s *BarProcessor) Execute(data any) (any, error) {
|
|||||||
}
|
}
|
||||||
if len(*neState) == 0 {
|
if len(*neState) == 0 {
|
||||||
log.Warn("Not found record in ne_state:")
|
log.Warn("Not found record in ne_state:")
|
||||||
continue
|
//continue
|
||||||
}
|
}
|
||||||
//log.Debug("neState:", *neState)
|
//log.Debug("neState:", *neState)
|
||||||
|
|
||||||
@@ -150,7 +150,7 @@ func (s *BarProcessor) Execute(data any) (any, error) {
|
|||||||
var timestamp string
|
var timestamp string
|
||||||
if len(*neState) == 0 {
|
if len(*neState) == 0 {
|
||||||
log.Infof("Not found ne_state neType:%s, neId:%s", ne.NeType, ne.NeId)
|
log.Infof("Not found ne_state neType:%s, neId:%s", ne.NeType, ne.NeId)
|
||||||
timestamp = ne.UpdateTime
|
timestamp = ne.UpdateTime.Format(time.DateTime)
|
||||||
} else {
|
} else {
|
||||||
timestamp = (*neState)[0]["timestamp"]
|
timestamp = (*neState)[0]["timestamp"]
|
||||||
}
|
}
|
||||||
@@ -208,6 +208,7 @@ func (s *BarProcessor) Execute(data any) (any, error) {
|
|||||||
log.Debug("requestURL: POST ", requestURL)
|
log.Debug("requestURL: POST ", requestURL)
|
||||||
response, err = client.R().
|
response, err = client.R().
|
||||||
EnableTrace().
|
EnableTrace().
|
||||||
|
//SetHeaders(map[string]string{tokenConst.HEADER_KEY: r.Header.Get(tokenConst.HEADER_KEY)}).
|
||||||
SetHeaders(map[string]string{"User-Agent": config.GetDefaultUserAgent()}).
|
SetHeaders(map[string]string{"User-Agent": config.GetDefaultUserAgent()}).
|
||||||
SetHeaders(map[string]string{"Content-Type": "application/json;charset=UTF-8"}).
|
SetHeaders(map[string]string{"Content-Type": "application/json;charset=UTF-8"}).
|
||||||
SetBody(body).
|
SetBody(body).
|
||||||
|
|||||||
Reference in New Issue
Block a user