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

Function newInvalidMetricNameError

pkg/util/validation/errors.go:151–155  ·  view source on GitHub ↗
(metricName string)

Source from the content-addressed store, hash-verified

149}
150
151func newInvalidMetricNameError(metricName string) ValidationError {
152 return &invalidMetricNameError{
153 metricName: metricName,
154 }
155}
156
157func (e *invalidMetricNameError) Error() string {
158 return fmt.Sprintf("sample invalid metric name: %.200q", e.metricName)

Callers 2

ValidateMetricNameFunction · 0.85
TestValidateMetricNameFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestValidateMetricNameFunction · 0.68