Fix indentation
This commit is contained in:
parent
d3ae5adcf0
commit
1c92cfb3b6
|
@ -14,9 +14,9 @@ import (
|
|||
)
|
||||
|
||||
type Amon struct {
|
||||
ServerKey string
|
||||
ServerKey string
|
||||
AmonInstance string
|
||||
Timeout duration.Duration
|
||||
Timeout duration.Duration
|
||||
|
||||
client *http.Client
|
||||
}
|
||||
|
@ -43,7 +43,6 @@ type Metric struct {
|
|||
|
||||
type Point [2]float64
|
||||
|
||||
|
||||
func (a *Amon) Connect() error {
|
||||
if a.ServerKey == "" || a.AmonInstance == "" {
|
||||
return fmt.Errorf("serverkey and amoninstance are required fields for amon output")
|
||||
|
@ -107,7 +106,7 @@ func (a *Amon) Description() string {
|
|||
}
|
||||
|
||||
func (a *Amon) authenticatedUrl() string {
|
||||
|
||||
|
||||
return fmt.Sprintf("%s/api/system/%s", a.AmonInstance, a.ServerKey)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue