func GetAccountingClassInfo() map[string]ClassInfo {
	info := make(map[string]ClassInfo, len(activeSeriesByCheckType))
	for class, as := range activeSeriesByCheckType {
		info[class] = ClassInfo{
			CheckType: getTypeFromClass(class),
			Series:    as,
		}
	}
	return info
}
GetAccountingClassInfo returns all the known accounting classes and
their corresponding information
package accounting
import (
	"errors"
	"strings"
	"github.com/grafana/synthetic-monitoring-agent/pkg/pb/synthetic_monitoring"
)
var ErrUnhandledCheck = errors.New("cannot compute the number of active series for check")
func GetActiveSeriesForCheck(check synthetic_monitoring.Check) (int, error) {
	accountingClass, err := GetCheckAccountingClass(check)
	if err != nil {
		return 0, err
	}
	as, found := activeSeriesByCheckType[accountingClass]
	if !found {
		return 0, ErrUnhandledCheck
	}
	return as, nil
}
func GetCheckAccountingClass(check synthetic_monitoring.Check) (string, error) {
	checkType := check.Type()
	key := checkType.String()
	switch checkType {
	case synthetic_monitoring.CheckTypeDns:
	case synthetic_monitoring.CheckTypeHttp:
		if strings.HasPrefix(check.Target, "https://") {
			key += "_ssl"
		}
	case synthetic_monitoring.CheckTypePing:
	case synthetic_monitoring.CheckTypeTcp:
		if check.Settings.Tcp.Tls {
			key += "_ssl"
		}
	case synthetic_monitoring.CheckTypeTraceroute:
	default:
		return "", ErrUnhandledCheck
	}
	if check.BasicMetricsOnly {
		key += "_basic"
	}
	return key, nil
}
type ClassInfo struct {
	CheckType synthetic_monitoring.CheckType  
	Series    int                             
}