firehol/netdata

View on GitHub
src/go/plugin/go.d/modules/ceph/collect_health.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method Ceph.collectHealth has 70 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (c *Ceph) collectHealth(mx map[string]int64) error {
    req, err := web.NewHTTPRequestWithPath(c.RequestConfig, urlPathApiHealthMinimal)
    if err != nil {
        return err
    }
Severity: Minor
Found in src/go/plugin/go.d/modules/ceph/collect_health.go - About 1 hr to fix

    Function pgStatusCategory has 51 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func pgStatusCategory(status string) string {
        // 'status' is formated as 'status1+status2+...+statusN'
    
        states := strings.Split(status, "+")
    
    
    Severity: Minor
    Found in src/go/plugin/go.d/modules/ceph/collect_health.go - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status