adguard-exporter/internal/adguard/model.go

17 lines
343 B
Go
Raw Normal View History

2020-11-01 22:09:36 +00:00
package adguard
import "fmt"
const (
enabledStatus = "enabled"
)
type Stats struct {
AvgProcessingTime float64 `json:"avg_processing_time"`
}
// ToString method returns a string of the current statistics struct.
func (s *Stats) ToString() string {
return fmt.Sprintf("Average Processing Time %d s", s.AvgProcessingTime)
}