(ctx Context)
| 43 | } |
| 44 | |
| 45 | func showIntervalDataJson(ctx Context) error { |
| 46 | type data struct { |
| 47 | Time string |
| 48 | RequestCount uint64 |
| 49 | ErrorCount uint64 |
| 50 | } |
| 51 | queryKey := ctx.QueryString("querykey") |
| 52 | |
| 53 | d := new(data) |
| 54 | d.Time = queryKey |
| 55 | d.RequestCount = ctx.HttpServer().StateInfo().QueryIntervalRequestData(queryKey) |
| 56 | d.ErrorCount = ctx.HttpServer().StateInfo().QueryIntervalErrorData(queryKey) |
| 57 | return ctx.WriteJson(d) |
| 58 | } |
| 59 | |
| 60 | func showIntervalDataPretty(ctx Context) error { |
| 61 | type data struct { |
no test coverage detected