Documentation ¶
Index ¶
- Constants
- func DefaultCron() *cron.Cron
- type AutumnLocalMetric
- type AutumnMetricsCollector
- type AutumnRedisMetric
- func (arm *AutumnRedisMetric) Add(value float64, labelValues ...string) error
- func (arm *AutumnRedisMetric) GetLabelValues() []*pure.LabelValue
- func (arm *AutumnRedisMetric) GetLabels() []string
- func (arm *AutumnRedisMetric) GetMetricValueKey() string
- func (arm *AutumnRedisMetric) GetName() string
- func (arm *AutumnRedisMetric) GetRedisKey() string
- func (arm *AutumnRedisMetric) GetValue(label ...string) float64
- func (arm *AutumnRedisMetric) Incr(labelValues ...string) error
- func (arm *AutumnRedisMetric) ResetByCron(spec string) error
- func (arm *AutumnRedisMetric) ResetMetricRedisKey(redisKey string) *AutumnRedisMetric
- func (arm *AutumnRedisMetric) ResetMetricValueRedisKey(valueKey string) *AutumnRedisMetric
- func (arm *AutumnRedisMetric) Set(value float64, labelValues ...string) error
Constants ¶
View Source
const ( DefaultMetricRedisKey = "a:p:rm:%s:%s:%s" DefaultMetricsValueKey = "m_value" )
Variables ¶
This section is empty.
Functions ¶
func DefaultCron ¶
func DefaultCron() *cron.Cron
Types ¶
type AutumnLocalMetric ¶
type AutumnLocalMetric struct { *pure.LocalPureMetric // contains filtered or unexported fields }
func (*AutumnLocalMetric) ResetByCron ¶
func (arm *AutumnLocalMetric) ResetByCron(spec string) error
type AutumnMetricsCollector ¶
type AutumnMetricsCollector struct { *pure.CollectorPure // contains filtered or unexported fields }
func NewAutumnCollector ¶
func NewAutumnCollector(subsystem string, path ...string) *AutumnMetricsCollector
func (*AutumnMetricsCollector) NewAutumnLocalMetric ¶
func (ac *AutumnMetricsCollector) NewAutumnLocalMetric(name string, labels ...string) *AutumnLocalMetric
func (*AutumnMetricsCollector) NewAutumnRedisMetric ¶
func (ac *AutumnMetricsCollector) NewAutumnRedisMetric(client *redis.Client, name string, labels ...string) *AutumnRedisMetric
type AutumnRedisMetric ¶
type AutumnRedisMetric struct { Name string Type pure.MetricType Labels []string // contains filtered or unexported fields }
func (*AutumnRedisMetric) Add ¶
func (arm *AutumnRedisMetric) Add(value float64, labelValues ...string) error
func (*AutumnRedisMetric) GetLabelValues ¶
func (arm *AutumnRedisMetric) GetLabelValues() []*pure.LabelValue
func (*AutumnRedisMetric) GetLabels ¶
func (arm *AutumnRedisMetric) GetLabels() []string
func (*AutumnRedisMetric) GetMetricValueKey ¶
func (arm *AutumnRedisMetric) GetMetricValueKey() string
func (*AutumnRedisMetric) GetName ¶
func (arm *AutumnRedisMetric) GetName() string
func (*AutumnRedisMetric) GetRedisKey ¶
func (arm *AutumnRedisMetric) GetRedisKey() string
func (*AutumnRedisMetric) GetValue ¶
func (arm *AutumnRedisMetric) GetValue(label ...string) float64
func (*AutumnRedisMetric) Incr ¶
func (arm *AutumnRedisMetric) Incr(labelValues ...string) error
func (*AutumnRedisMetric) ResetByCron ¶
func (arm *AutumnRedisMetric) ResetByCron(spec string) error
func (*AutumnRedisMetric) ResetMetricRedisKey ¶
func (arm *AutumnRedisMetric) ResetMetricRedisKey(redisKey string) *AutumnRedisMetric
func (*AutumnRedisMetric) ResetMetricValueRedisKey ¶
func (arm *AutumnRedisMetric) ResetMetricValueRedisKey(valueKey string) *AutumnRedisMetric
Click to show internal directories.
Click to hide internal directories.