Customize Dashboard (Succeeded & Failed List)

Hello, I want to use Hangfire for Uptime-Mesaurement of web applications.

Actually that’s pretty out-of-the-box functionality - only “issue” I have is that the Succeeded & Failed lists on the dashboard are showing the (generic) Class.Method name - but not the URL checked.

I invove my jobs like:
RecurringJob.AddOrUpdate(“google.com”, () => new Scraper().Run(“http://google.com/”), Cron.Minutely);

and in the Succeeded & Failed lists I’d now like to see “google.com” as Job name, but not “Scraper.Run”

Does anyone know a quick easy solution?

If you are using .net core you can use the JobDisplayNameAttribute link to PR
[JobDisplayName(“Run {0}”)] // {0} is the first parameter of your method (google.com in your case)

if not on .net core, I think you can use the DisplayNameAttribute
[DisplayName(“Run {0}”)] // {0} is the first parameter of your method (google.com in your case)

Here’s another question with the same problem

1 Like

Thank u so much, that’s exactly what I was searching for!