MCPcopy Index your code
hub / github.com/prometheus/prometheus / invalidParamError

Function invalidParamError

web/api/v1/api.go:509–513  ·  view source on GitHub ↗
(err error, parameter string)

Source from the content-addressed store, hash-verified

507}
508
509func invalidParamError(err error, parameter string) apiFuncResult {
510 return apiFuncResult{nil, &apiError{
511 errorBadData, fmt.Errorf("invalid parameter %q: %w", parameter, err),
512 }, nil, nil}
513}
514
515func (*API) options(*http.Request) apiFuncResult {
516 return apiFuncResult{nil, nil, nil, nil}

Callers 13

queryMethod · 0.85
formatQueryMethod · 0.85
parseQueryMethod · 0.85
queryRangeMethod · 0.85
queryExemplarsMethod · 0.85
labelNamesMethod · 0.85
labelValuesMethod · 0.85
seriesMethod · 0.85
targetMetadataMethod · 0.85
rulesMethod · 0.85
deleteSeriesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…