mirror of
https://github.com/Kori1c/ecs-controller.git
synced 2026-09-11 10:27:37 +08:00
13 lines
403 B
Go
13 lines
403 B
Go
package cloud
|
|
|
|
import "errors"
|
|
|
|
// ErrMetricNoData marks a successful CMS response that contains no usable
|
|
// metric samples. It is different from authentication, throttling, and API
|
|
// failures, which should keep their original error details.
|
|
var ErrMetricNoData = errors.New("CMS metric data is not available yet")
|
|
|
|
func IsMetricNoDataError(err error) bool {
|
|
return errors.Is(err, ErrMetricNoData)
|
|
}
|