func (pc *PrometheusCheck) initAD() error {
	if pc.AD == nil {
		pc.AD = &ADConfig{}
	}

	pc.AD.defaultAD()
	return pc.AD.setContainersRegex()
}
// initAD defaults the AD field in PrometheusCheck
// It also prepares the regex to match the containers by name
initAD defaults the AD field in PrometheusCheck
It also prepares the regex to match the containers by name
// initAD defaults the AD field in PrometheusCheck // It also prepares the regex to match the containers by name
func (pc *PrometheusCheck) initAD() error {
	if pc.AD == nil {
		pc.AD = &ADConfig{}
	}
	pc.AD.defaultAD()
	return pc.AD.setContainersRegex()
}
func ( pc * PrometheusCheck ) initAD ( ) error { if pc . AD == nil { pc . AD = & ADConfig { } } pc . AD . defaultAD ( ) return pc . AD . setContainersRegex ( ) }
initAD defaults the AD field in PrometheusCheck
It also prepares the regex to match the containers by name
initAD defaults the AD field in PrometheusCheck It also prepares the regex to match the containers by name