(start string, end string)
| 244 | } |
| 245 | |
| 246 | func formatTime(start string, end string) (int64, int64, error) { |
| 247 | s, err := strconv.ParseInt(start, 10, 64) |
| 248 | if err != nil { |
| 249 | return 0, 0, fmt.Errorf("parse start time %s error: %w", start, err) |
| 250 | } |
| 251 | e, err := strconv.ParseInt(end, 10, 64) |
| 252 | if err != nil { |
| 253 | return 0, 0, fmt.Errorf("parse end time %s error: %w", end, err) |
| 254 | } |
| 255 | return s, e, nil |
| 256 | } |
| 257 | |
| 258 | func (i *imlServiceController) Top10(ctx *gin.Context, serviceId string, start string, end string) ([]*monitor_dto.TopN, []*monitor_dto.TopN, error) { |
| 259 | if serviceId == "" { |
no outgoing calls
no test coverage detected