Skip to content

Commit

Permalink
some typo fix (#738)
Browse files Browse the repository at this point in the history
Signed-off-by: yeya24 <yb532204897@gmail.com>
  • Loading branch information
yeya24 authored and weekface committed Aug 12, 2019
1 parent 84e4c71 commit 9f377e8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 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,8 @@ 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 +120,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 9f377e8

Please sign in to comment.