Skip to content

Commit

Permalink
#830 custom template bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjiawei committed Oct 22, 2024
1 parent 3b12807 commit e10659c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions monitor-server/services/db/log_metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -1739,6 +1739,9 @@ func getCreateLogMetricCustomGroupActions(param *models.LogMetricGroupObj, opera
}
nowTime := time.Now()
result = &models.CreateLogMetricGroupDto{AlarmList: []string{}}
if param.LogMonitorTemplateGuid == "" && param.LogMonitorTemplate != "" {
param.LogMonitorTemplateGuid = param.LogMonitorTemplate
}
if strings.TrimSpace(param.LogMonitorTemplateGuid) != "" {
if logMonitorTemplate, err = GetLogMonitorTemplate(param.LogMonitorTemplateGuid); err != nil {
return
Expand Down

0 comments on commit e10659c

Please sign in to comment.