Added status code column and values to the incident table and monitor details table

This commit is contained in:
Alex Holliday committed 2024-08-28 12:20:43 -07:00
1 parent 6a5b72416c
commit 8e87da3a20
2 files changed
+10 -2

No files matched your search

@@ -139,6 +139,7 @@ const IncidentTable = ({ monitors, selectedMonitor, filter }) => {
<TableCell>Monitor Name</TableCell> <TableCell>Monitor Name</TableCell>
<TableCell>Status</TableCell> <TableCell>Status</TableCell>
<TableCell>Date & Time</TableCell> <TableCell>Date & Time</TableCell>
<TableCell>Status Code</TableCell>
<TableCell>Message</TableCell> <TableCell>Message</TableCell>
</TableRow> </TableRow>
</TableHead> </TableHead>
@@ -159,7 +160,10 @@ const IncidentTable = ({ monitors, selectedMonitor, filter }) => {
<TableCell> <TableCell>
{new Date(check.createdAt).toLocaleString()} {new Date(check.createdAt).toLocaleString()}
</TableCell> </TableCell>
<TableCell>{check.statusCode}</TableCell> <TableCell>
{check.statusCode ? check.statusCode : "N/A"}
</TableCell>
<TableCell>{check.message}</TableCell>
</TableRow> </TableRow>
); );
})} })}
@@ -108,6 +108,7 @@ const PaginationTable = ({ monitorId, dateRange }) => {
<TableRow> <TableRow>
<TableCell>Status</TableCell> <TableCell>Status</TableCell>
<TableCell>Date & Time</TableCell> <TableCell>Date & Time</TableCell>
<TableCell>Status Code</TableCell>
<TableCell>Message</TableCell> <TableCell>Message</TableCell>
</TableRow> </TableRow>
</TableHead> </TableHead>
@@ -127,7 +128,10 @@ const PaginationTable = ({ monitorId, dateRange }) => {
<TableCell> <TableCell>
{new Date(check.createdAt).toLocaleString()} {new Date(check.createdAt).toLocaleString()}
</TableCell> </TableCell>
<TableCell>{check.statusCode}</TableCell> <TableCell>
{check.statusCode ? check.statusCode : "N/A"}
</TableCell>
<TableCell>{check.message}</TableCell>
</TableRow> </TableRow>
); );
})} })}