Documentation ¶
Index ¶
- Variables
- type TenantLimits
- func (tl *TenantLimits) LogLabels(ctx context.Context, tenantID model.GlobalID) (int, error)
- func (tl *TenantLimits) MetricLabels(ctx context.Context, tenantID model.GlobalID) (int, error)
- func (tl *TenantLimits) ValidateLogLabels(ctx context.Context, tenantID model.GlobalID, n int) error
- func (tl *TenantLimits) ValidateMetricLabels(ctx context.Context, tenantID model.GlobalID, n int) error
- type TenantProvider
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTooManyMetricLabels = errors.New("too many metric labels") ErrTooManyLogLabels = errors.New("too many log labels") )
Functions ¶
This section is empty.
Types ¶
type TenantLimits ¶
type TenantLimits struct {
// contains filtered or unexported fields
}
TenantLimits provides functionalities to query and validate metrics and log labels limits for a particular tenant.
func NewTenantLimits ¶
func NewTenantLimits(tp TenantProvider) *TenantLimits
func (*TenantLimits) MetricLabels ¶
MetricLabels returns the metric labels limit for the specified tenant.
func (*TenantLimits) ValidateLogLabels ¶
func (tl *TenantLimits) ValidateLogLabels(ctx context.Context, tenantID model.GlobalID, n int) error
ValidateLogLabels validates the given number of log labels against the specific tenant limits.
func (*TenantLimits) ValidateMetricLabels ¶
func (tl *TenantLimits) ValidateMetricLabels(ctx context.Context, tenantID model.GlobalID, n int) error
ValidateMetricLabels validates the given number of metric labels against the specific tenant limits.
type TenantProvider ¶
Click to show internal directories.
Click to hide internal directories.