MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / GetCronJobType

Function GetCronJobType

agent/utils/alert/alert.go:186–193  ·  view source on GitHub ↗
(alertType string)

Source from the content-addressed store, hash-verified

184}
185
186func GetCronJobType(alertType string) string {
187 for _, at := range cronJobAlertTypes {
188 if at == alertType {
189 return "cronJob"
190 }
191 }
192 return alertType
193}
194
195func GetCronJobTypeName(cronJobType string) string {
196 module := cronJobType

Callers 2

ProcessAlertDetailFunction · 0.85
GetSendContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected