mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-07 10:17:51 +00:00
Updating Errors, and adding license
This commit is contained in:
parent
8ef8c8a291
commit
980bc01d67
3 changed files with 27 additions and 15 deletions
|
|
@ -3,19 +3,19 @@ package provider
|
|||
import "errors"
|
||||
|
||||
var (
|
||||
// ErrNewOperatorNotSupportedByPrometheus creates an error that represents the fact that we were requested to service a query that
|
||||
// ErrUnsupportedOperator creates an error that represents the fact that we were requested to service a query that
|
||||
// Prometheus would be unable to support.
|
||||
ErrNewOperatorNotSupportedByPrometheus = errors.New("operator not supported by prometheus")
|
||||
ErrUnsupportedOperator = errors.New("operator not supported by prometheus")
|
||||
|
||||
// ErrNewOperatorRequiresValues creates an error that represents the fact that we were requested to service a query
|
||||
// ErrMalformedQuery creates an error that represents the fact that we were requested to service a query
|
||||
// that was malformed in its operator/value combination.
|
||||
ErrNewOperatorRequiresValues = errors.New("operator requires values")
|
||||
ErrMalformedQuery = errors.New("operator requires values")
|
||||
|
||||
// ErrNewOperatorDoesNotSupportValues creates an error that represents the fact that we were requested to service a query
|
||||
// that was malformed in its operator/value combination.
|
||||
ErrNewOperatorDoesNotSupportValues = errors.New("operator does not support values")
|
||||
// ErrQueryUnsupportedValues creates an error that represents an unsupported return value from the
|
||||
// specified query.
|
||||
ErrQueryUnsupportedValues = errors.New("operator does not support values")
|
||||
|
||||
// ErrNewLabelNotSpecified creates an error that represents the fact that we were requested to service a query
|
||||
// ErrLabelNotSpecified creates an error that represents the fact that we were requested to service a query
|
||||
// that was malformed in its label specification.
|
||||
ErrNewLabelNotSpecified = errors.New("label not specified")
|
||||
ErrLabelNotSpecified = errors.New("label not specified")
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue