MCPcopy Index your code
hub / github.com/cortexproject/cortex / invalidParamError

Function invalidParamError

pkg/api/queryapi/util.go:100–104  ·  view source on GitHub ↗
(err error, parameter string)

Source from the content-addressed store, hash-verified

98type apiFunc func(r *http.Request) apiFuncResult
99
100func invalidParamError(err error, parameter string) apiFuncResult {
101 return apiFuncResult{nil, &apiError{
102 errorBadData, DecorateWithParamName(err, parameter),
103 }, nil, nil}
104}
105
106func convertMsToTime(unixMs int64) time.Time {
107 return time.Unix(0, unixMs*int64(time.Millisecond))

Callers 2

RangeQueryHandlerMethod · 0.85
InstantQueryHandlerMethod · 0.85

Calls 1

DecorateWithParamNameFunction · 0.85

Tested by

no test coverage detected