Skip to content

Commit

Permalink
some typo fix and comment cleanup (#738) (#753)
Browse files Browse the repository at this point in the history
  • Loading branch information
sre-bot authored and weekface committed Aug 14, 2019
1 parent ceaf890 commit 62ce9de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/pkg/metrics/annotation_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type AnnotationOptions struct {
TimeEnd int64 `json:"timeEnd,omitempty"`
}

//NewClient creats a new grafanaClient. This client performs rest functions
//NewClient creates a new grafanaClient. This client performs rest functions
//such as Get, Post on specified paths.
func NewClient(grafanaURL string, userName string, password string) (*Client, error) {
u, err := url.Parse(grafanaURL)
Expand Down Expand Up @@ -92,8 +92,7 @@ func initErrorMetric() prometheus.Counter {
})
}

//IncreErrorCountWithAnno increments the errorcount by 1,
//and add the annotation to grafanan.
//AddAnnotation adds an annotation to grafana.
func (cli *Client) AddAnnotation(annotation Annotation) error {
body, err := annotation.getBody()
if err != nil {
Expand All @@ -120,6 +119,7 @@ func (cli *Client) AddAnnotation(annotation Annotation) error {
return err
}

//IncrErrorCount increments the errorcount by 1.
func (cli *Client) IncrErrorCount() {
counterMetric.Inc()
}
Expand Down

0 comments on commit 62ce9de

Please sign in to comment.