src/go/plugin/go.d/modules/ceph/collect_health.go
Method Ceph.collectHealth
has 70 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (c *Ceph) collectHealth(mx map[string]int64) error {
req, err := web.NewHTTPRequestWithPath(c.RequestConfig, urlPathApiHealthMinimal)
if err != nil {
return err
}
Function pgStatusCategory
has 51 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func pgStatusCategory(status string) string {
// 'status' is formated as 'status1+status2+...+statusN'
states := strings.Split(status, "+")