MCPcopy Create free account
hub / github.com/cortexproject/cortex / newNativeHistogramSchemaInvalidError

Function newNativeHistogramSchemaInvalidError

pkg/util/validation/errors.go:254–259  ·  view source on GitHub ↗
(series []cortexpb.LabelAdapter, receivedSchema int)

Source from the content-addressed store, hash-verified

252}
253
254func newNativeHistogramSchemaInvalidError(series []cortexpb.LabelAdapter, receivedSchema int) ValidationError {
255 return &nativeHistogramSchemaInvalidError{
256 series: series,
257 receivedSchema: receivedSchema,
258 }
259}
260
261func (e *nativeHistogramSchemaInvalidError) Error() string {
262 return fmt.Sprintf("invalid native histogram schema %d for metric: %.200q. supported schema from %d to %d", e.receivedSchema, formatLabelSet(e.series), histogram.ExponentialSchemaMin, histogram.ExponentialSchemaMax)

Callers 2

ValidateNativeHistogramFunction · 0.85

Calls

no outgoing calls

Tested by 1