Skip to main content

Interface: HistoryTabProperties

Defined in: src/components/SiteDetails/tabs/HistoryTab.tsx:55

Props for the HistoryTab component.

Remarksโ€‹

Defines the required properties for rendering the history tab, including formatting functions for consistent display and the monitor whose history should be displayed.

Propertiesโ€‹

formatFullTimestamp()โ€‹

readonly formatFullTimestamp: (timestamp: number) => string

Defined in: src/components/SiteDetails/tabs/HistoryTab.tsx:57

Function to format timestamps for display

Parametersโ€‹

timestampโ€‹

number

Returnsโ€‹

string


formatResponseTime()โ€‹

readonly formatResponseTime: (time: number) => string

Defined in: src/components/SiteDetails/tabs/HistoryTab.tsx:59

Function to format response times for display

Parametersโ€‹

timeโ€‹

number

Returnsโ€‹

string


formatStatusWithIcon()โ€‹

readonly formatStatusWithIcon: (status: string) => string

Defined in: src/components/SiteDetails/tabs/HistoryTab.tsx:61

Function to format status with appropriate icons

Parametersโ€‹

statusโ€‹

string

Returnsโ€‹

string


selectedMonitorโ€‹

readonly selectedMonitor: Monitor

Defined in: src/components/SiteDetails/tabs/HistoryTab.tsx:63

Currently selected monitor to display history for