forked from mirrors/statsd_exporter
rename events for consistency
Signed-off-by: glightfoot <glightfoot@rsglab.com>
This commit is contained in:
parent
f1de97dbdd
commit
15eece3cf8
1 changed files with 6 additions and 6 deletions
|
@ -49,8 +49,8 @@ type GaugeEvent struct {
|
||||||
|
|
||||||
func (g *GaugeEvent) MetricName() string { return g.GMetricName }
|
func (g *GaugeEvent) MetricName() string { return g.GMetricName }
|
||||||
func (g *GaugeEvent) Value() float64 { return g.GValue }
|
func (g *GaugeEvent) Value() float64 { return g.GValue }
|
||||||
func (c *GaugeEvent) Labels() map[string]string { return c.GLabels }
|
func (g *GaugeEvent) Labels() map[string]string { return g.GLabels }
|
||||||
func (c *GaugeEvent) MetricType() mapper.MetricType { return mapper.MetricTypeGauge }
|
func (g *GaugeEvent) MetricType() mapper.MetricType { return mapper.MetricTypeGauge }
|
||||||
|
|
||||||
type ObserverEvent struct {
|
type ObserverEvent struct {
|
||||||
OMetricName string
|
OMetricName string
|
||||||
|
@ -58,10 +58,10 @@ type ObserverEvent struct {
|
||||||
OLabels map[string]string
|
OLabels map[string]string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *ObserverEvent) MetricName() string { return t.OMetricName }
|
func (o *ObserverEvent) MetricName() string { return o.OMetricName }
|
||||||
func (t *ObserverEvent) Value() float64 { return t.OValue }
|
func (o *ObserverEvent) Value() float64 { return o.OValue }
|
||||||
func (c *ObserverEvent) Labels() map[string]string { return c.OLabels }
|
func (o *ObserverEvent) Labels() map[string]string { return o.OLabels }
|
||||||
func (c *ObserverEvent) MetricType() mapper.MetricType { return mapper.MetricTypeObserver }
|
func (o *ObserverEvent) MetricType() mapper.MetricType { return mapper.MetricTypeObserver }
|
||||||
|
|
||||||
type Events []Event
|
type Events []Event
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue