From 15eece3cf8b40ae2a695a333b67fc77e32246444 Mon Sep 17 00:00:00 2001 From: glightfoot Date: Mon, 22 Jun 2020 14:53:52 -0400 Subject: [PATCH] rename events for consistency Signed-off-by: glightfoot --- pkg/event/event.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/event/event.go b/pkg/event/event.go index 9234db9..d5e65ce 100644 --- a/pkg/event/event.go +++ b/pkg/event/event.go @@ -49,8 +49,8 @@ type GaugeEvent struct { func (g *GaugeEvent) MetricName() string { return g.GMetricName } func (g *GaugeEvent) Value() float64 { return g.GValue } -func (c *GaugeEvent) Labels() map[string]string { return c.GLabels } -func (c *GaugeEvent) MetricType() mapper.MetricType { return mapper.MetricTypeGauge } +func (g *GaugeEvent) Labels() map[string]string { return g.GLabels } +func (g *GaugeEvent) MetricType() mapper.MetricType { return mapper.MetricTypeGauge } type ObserverEvent struct { OMetricName string @@ -58,10 +58,10 @@ type ObserverEvent struct { OLabels map[string]string } -func (t *ObserverEvent) MetricName() string { return t.OMetricName } -func (t *ObserverEvent) Value() float64 { return t.OValue } -func (c *ObserverEvent) Labels() map[string]string { return c.OLabels } -func (c *ObserverEvent) MetricType() mapper.MetricType { return mapper.MetricTypeObserver } +func (o *ObserverEvent) MetricName() string { return o.OMetricName } +func (o *ObserverEvent) Value() float64 { return o.OValue } +func (o *ObserverEvent) Labels() map[string]string { return o.OLabels } +func (o *ObserverEvent) MetricType() mapper.MetricType { return mapper.MetricTypeObserver } type Events []Event