func (f *File) GetRule(rulename string) *rulefmt.Rule {
	for _, rule := range f.RuleGroups[0].Rules {
		if rule.Alert == rulename {
			return &rule
		}
	}
	return nil
}
// GetRule returns the specific rule by name. Nil if it isn't found
GetRule returns the specific rule by name. Nil if it isn't found
// GetRule returns the specific rule by name . Nil if it isn ' t found
func (f *File) GetRule(rulename string) *rulefmt.Rule {
	for _, rule := range f.RuleGroups[0].Rules {
		if rule.Alert == rulename {
			return &rule
		}
	}
	return nil
}
func ( f * File ) GetRule ( rulename string ) * rulefmt . Rule { for _ , rule := range f . RuleGroups [ 0 ] . Rules { if rule . Alert == rulename { return & rule } } return nil }
GetRule returns the specific rule by name.
GetRule returns the specific rule by name .