MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / formatTime

Function formatTime

controller/service/iml.go:246–256  ·  view source on GitHub ↗
(start string, end string)

Source from the content-addressed store, hash-verified

244}
245
246func 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
258func (i *imlServiceController) Top10(ctx *gin.Context, serviceId string, start string, end string) ([]*monitor_dto.TopN, []*monitor_dto.TopN, error) {
259 if serviceId == "" {

Callers 5

AILogsMethod · 0.70
RestLogsMethod · 0.70
AIChartOverviewMethod · 0.70
RestChartOverviewMethod · 0.70
Top10Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected