func (js *JobScheduler) Labels() map[string]string {
	output := map[string]string{
		"name":      stringutil.Slugify(js.Name()),
		"scheduler": string(js.State()),
		"active":    fmt.Sprint(!js.IsIdle()),
		"enabled":   fmt.Sprint(!js.Disabled()),
	}
	if js.Last() != nil {
		output["last"] = stringutil.Slugify(string(js.Last().Status))
	}
	for key, value := range js.Config().Labels {
		output[key] = value
	}
	return output
}
// Labels returns the job labels, including
// automatically added ones like `name`.
Labels returns the job labels, including
automatically added ones like `name`.
// Labels returns the job labels including // automatically added ones like ` name ` .
func (js *JobScheduler) Labels() map[string]string {
	output := map[string]string{
		"name":      stringutil.Slugify(js.Name()),
		"scheduler": string(js.State()),
		"active":    fmt.Sprint(!js.IsIdle()),
		"enabled":   fmt.Sprint(!js.Disabled()),
	}
	if js.Last() != nil {
		output["last"] = stringutil.Slugify(string(js.Last().Status))
	}
	for key, value := range js.Config().Labels {
		output[key] = value
	}
	return output
}
func ( js * JobScheduler ) Labels ( ) map [ string ] string { output := map [ string ] string { " " : stringutil . Slugify ( js . Name ( ) ) , " " : string ( js . State ( ) ) , " " : fmt . Sprint ( ! js . IsIdle ( ) ) , " " : fmt . Sprint ( ! js . Disabled ( ) ) , } if js . Last ( ) != nil { output [ " " ] = stringutil . Slugify ( string ( js . Last ( ) . Status ) ) } for key , value := range js . Config ( ) . Labels { output [ key ] = value } return output }
Labels returns the job labels, including
automatically added ones like `name`.
Labels returns the job labels including automatically added ones like ` name ` .