Documentation ¶
Overview ¶
Package validators contains settings validators.
Index ¶
Constants ¶
View Source
const ( // MetricsResolutionMin is the smallest value metric resolution can accept. MetricsResolutionMin = time.Second // MetricsResolutionMultipleOf is value metrics resolution should be multiple of. MetricsResolutionMultipleOf = time.Second // DataRetentionMin is the smallest value data retention can accept. DataRetentionMin = 24 * time.Hour // DataRetentionMultipleOf is a value of data retention should be multiple of. DataRetentionMultipleOf = 24 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
func ValidateAWSPartitions ¶
ValidateAWSPartitions validates AWS partitions list.
func ValidateDataRetention ¶
ValidateDataRetention validate metric resolution.
Types ¶
type DurationNotAllowedError ¶
type DurationNotAllowedError struct {
Msg string
}
DurationNotAllowedError duration not allowed error.
func (DurationNotAllowedError) Error ¶
func (e DurationNotAllowedError) Error() string
type MinDurationError ¶
MinDurationError minimum allowed duration error.
func (MinDurationError) Error ¶
func (e MinDurationError) Error() string
Click to show internal directories.
Click to hide internal directories.