Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some typo fix and comment cleanup #738

Merged
merged 1 commit into from
Aug 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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