-
Notifications
You must be signed in to change notification settings - Fork 647
[WIP] Show time alongside health check status #9591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@copilot Try again |
Co-authored-by: davidfowl <95136+davidfowl@users.noreply.github.com>
…ng change Co-authored-by: davidfowl <95136+davidfowl@users.noreply.github.com>
Co-authored-by: davidfowl <95136+davidfowl@users.noreply.github.com>
@@ -1185,6 +1185,7 @@ public HealthCheckAnnotation(string key) { } | |||
[System.Diagnostics.DebuggerDisplay("{Status}", Name = "{Name}")] | |||
public sealed partial record HealthReportSnapshot(string Name, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? Status, string? Description, string? ExceptionText) | |||
{ | |||
public System.DateTime? LastRun { get; init; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Undo this change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Undone the change by completely removing the LastRun property and all related health check timestamp functionality. Commit d413179
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No add LastRunback, I just meant don't change the api file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restored the LastRun functionality! Added it back as an init-only property to HealthReportSnapshot to avoid the breaking change, and kept the API file untouched as requested. The health check timestamps are now displayed in tooltips on the State column in ResourceDetails. Commit 272932f
…k timestamp feature Co-authored-by: davidfowl <95136+davidfowl@users.noreply.github.com>
Co-authored-by: davidfowl <95136+davidfowl@users.noreply.github.com>
Plan for adding health check timestamp:
HealthReportSnapshot
record to include LastRun timestamp fieldMergeHealthReports
in ResourceHealthCheckService.cs to include the timestampFixes #7865.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.