func GetAlertCard(tenant string) (AlertCard, error) {
	tenantStr := func() string {
		if len(tenant) == 0 {
			return ""
		}
		return "-tenant=" + tenant
	}()
	output, err := RunCmd(fmt.Sprintf("%s api -fetch-alert-card %s", ActlPath, tenantStr))
	alertCard := AlertCard{}
	if err != nil {
		return alertCard, err
	}
	yaml.Unmarshal([]byte(output), &alertCard)
	return alertCard, err
}
// GetAlertCard - get AlertCard for tenant.
get AlertCard for tenant.
// GetAlertCard - get AlertCard for tenant .
func GetAlertCard(tenant string) (AlertCard, error) {
	tenantStr := func() string {
		if len(tenant) == 0 {
			return ""
		}
		return "-tenant=" + tenant
	}()
	output, err := RunCmd(fmt.Sprintf("%s api -fetch-alert-card %s", ActlPath, tenantStr))
	alertCard := AlertCard{}
	if err != nil {
		return alertCard, err
	}
	yaml.Unmarshal([]byte(output), &alertCard)
	return alertCard, err
}
func GetAlertCard ( tenant string ) ( AlertCard , error ) { tenantStr := func ( ) string { if len ( tenant ) == 0 { return " " } return " " + tenant } ( ) output , err := RunCmd ( fmt . Sprintf ( " " , ActlPath , tenantStr ) ) alertCard := AlertCard { } if err != nil { return alertCard , err } yaml . Unmarshal ( [ ] byte ( output ) , & alertCard ) return alertCard , err }
get AlertCard for tenant.
get AlertCard for tenant .