Skip to content

Commit

Permalink
Maintaining consistency in receiver type
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusbds committed Oct 19, 2019
1 parent 4b0e1a8 commit 761cb5e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions slo/slo.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ type Objectives struct {
Latency []methods.LatencyTarget `yaml:"latency"`
}

func (slo SLO) GenerateAlertRules() []rulefmt.Rule {
func (slo *SLO) GenerateAlertRules() []rulefmt.Rule {
alertRules := []rulefmt.Rule{}

errorMethod := methods.Get(slo.ErrorRateRecord.AlertMethod)
Expand Down Expand Up @@ -98,7 +98,7 @@ func (slo *SLO) fillMetadata(rule *rulefmt.Rule) {
}
}

func (slo SLO) GenerateGroupRules() []rulefmt.RuleGroup {
func (slo *SLO) GenerateGroupRules() []rulefmt.RuleGroup {
rules := []rulefmt.RuleGroup{}

for _, sample := range defaultSamples {
Expand All @@ -124,7 +124,7 @@ func (slo SLO) GenerateGroupRules() []rulefmt.RuleGroup {
return rules
}

func (slo SLO) labels() map[string]string {
func (slo *SLO) labels() map[string]string {
labels := map[string]string{}
if !slo.HonorLabels {
labels["service"] = slo.Name
Expand All @@ -135,7 +135,7 @@ func (slo SLO) labels() map[string]string {
return labels
}

func (slo SLO) generateRules(bucket string) []rulefmt.Rule {
func (slo *SLO) generateRules(bucket string) []rulefmt.Rule {
rules := []rulefmt.Rule{}
if slo.TrafficRateRecord.Expr != "" {
trafficRateRecord := rulefmt.Rule{
Expand Down

0 comments on commit 761cb5e

Please sign in to comment.