Merge pull request #747 from bluewave-labs/feat/status-codes

Added status code column and values to the incident table and monitor…
This commit is contained in:
Alexander Holliday authored and GitHub committed 2024-08-28 20:14:36 -07:00
commit 9b177426c2
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>
); );
})} })}