MDK Logo

Monitoring

System monitoring and status display components

Components for system monitoring and status displays.

Prerequisites

  • Complete the installation

  • Add the dependency to your app's package.json
{
  "dependencies": {
    "@tetherto/mdk-react-devkit": "*",
    "@tetherto/mdk-react-adapter": "*",
    "@tetherto/mdk-ui-foundation": "*"
  }
}

Run npm install from the mdk/ui workspace root after your app is under apps/ so npm links workspace packages.

  • Import styles: import '@tetherto/mdk-react-devkit/styles.css'

Components

@tetherto/mdk-react-devkit

Import the public APIs on this page from @tetherto/mdk-react-devkit.

LogActivityIcon

Status icon used inside <LogRow> to indicate event severity (info / warning / error / success)

agent-ready

Source

https://github.com/tetherto/mdk/blob/main/ui/packages/react-devkit/src/primitives/components/logs/activity-log-icon.tsx

Props

PropStatusType / OptionsDefaultDescription
statusRequiredstring--

LogDot

Coloured dot used to mark a log event's severity or category inline with the row

agent-ready

Source

https://github.com/tetherto/mdk/blob/main/ui/packages/react-devkit/src/primitives/components/logs/log-dot.tsx

Props

PropStatusType / OptionsDefaultDescription
statusRequiredstring-Severity string for color mapping
typeRequiredstring-'Incidents' renders a colored circle; 'Activity' renders an activity icon

LogItem

Compact log-line element rendering a single event with optional icon, timestamp, and message

agent-ready

Source

https://github.com/tetherto/mdk/blob/main/ui/packages/react-devkit/src/primitives/components/logs/log-item.tsx

Props

PropStatusType / OptionsDefaultDescription
dataRequiredLogData--
onLogClickedOptional((uuid: string) => void)--

LogRow

Single row of a logs feed — composes the dot/icon, timestamp, and message into one entry

agent-ready

Source

https://github.com/tetherto/mdk/blob/main/ui/packages/react-devkit/src/primitives/components/logs/log-row.tsx

Props

PropStatusType / OptionsDefaultDescription
logRequiredLogData-Log entry data
typeRequiredstring-Log type (controls dot appearance)
onLogClickedOptional((uuid: string) => void)-Click handler
styleOptionalReact.CSSProperties-Inline style for the row container

LogsCard

Card wrapper for a vertically scrolling logs feed with a sticky header

agent-ready

Source

https://github.com/tetherto/mdk/blob/main/ui/packages/react-devkit/src/primitives/components/logs/logs-card.tsx

Props

PropStatusType / OptionsDefaultDescription
emptyMessageOptionalstring"No active incidents"Message shown when logsData is empty
isDarkOptionalbooleanfalseApplies dark card theme
isLoadingOptionalbooleanfalseShows skeleton rows while loading
labelOptionalstring-Card header label
logsDataOptionalLogData[][]Array of log entries to display
onLogClickedOptional(uuid: string) => void-Fired with the log UUID when a row is clicked
paginationOptionalLogPagination-Pagination config; hides pagination when on page 1 or data is empty
skeletonRowsOptionalnumber4Number of skeleton rows shown during loading
typeOptionalstring-Log type ('Incidents' or 'Activity'); controls the LogDot appearance

On this page