Skip to content

Conversation

mastercactapus
Copy link
Member

Description:
This PR adds support for timestamps in the markdown renderer.

It adds support for ISO-formatted timestamps, with or without sub-second precision, as well as UNIX date-formatted timestamps (like those used for heartbeat timeouts).

  • 2006-01-02T15:04:05.999999999Z
  • 2006-01-02T15:04:05.99999999907:00
  • 2006-01-02T15:04:05Z
  • Mon Jan 2 15:04:05 MST 2006

Timestamps will be underlined and always converted to the users local timezone and can be clicked to copy the ISO-formatted string for use in filters, SQL queries, other systems, etc..

Which issue(s) this PR fixes:
Closes #2834

Screenshots:
image

Describe any introduced user-facing changes:
Timestamps in any markdown document, including alert details, will be automatically detected and converted to local time.

Describe any introduced API changes:
N/A

@mastercactapus mastercactapus merged commit d3c0d89 into master Dec 27, 2023
@mastercactapus mastercactapus deleted the markdown-timestamp-support branch December 27, 2023 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

alert details: detect & parse out timestamps in alert details
3 participants