sample data missing
Browse files
script.js
CHANGED
|
@@ -33,6 +33,83 @@ const sampleLogs = [
|
|
| 33 |
errorCode: 'VALIDATION_ERROR',
|
| 34 |
errorType: 'Validation',
|
| 35 |
resolution: 'Check API documentation for required fields.'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
}
|
| 37 |
];
|
| 38 |
// DOM elements
|
|
|
|
| 33 |
errorCode: 'VALIDATION_ERROR',
|
| 34 |
errorType: 'Validation',
|
| 35 |
resolution: 'Check API documentation for required fields.'
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
id: 4,
|
| 39 |
+
status: 429,
|
| 40 |
+
method: 'GET',
|
| 41 |
+
time: new Date(Date.now() - 10800000).toISOString().replace('T', ' ').substring(0, 19),
|
| 42 |
+
url: '/api/analytics',
|
| 43 |
+
errorMessage: 'Rate limit exceeded: 100 requests per minute',
|
| 44 |
+
errorCode: 'RATE_LIMIT_EXCEEDED',
|
| 45 |
+
errorType: 'Rate Limit',
|
| 46 |
+
resolution: 'Implement exponential backoff or reduce request frequency.'
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
id: 5,
|
| 50 |
+
status: 401,
|
| 51 |
+
method: 'PUT',
|
| 52 |
+
time: new Date(Date.now() - 14400000).toISOString().replace('T', ' ').substring(0, 19),
|
| 53 |
+
url: '/api/settings',
|
| 54 |
+
errorMessage: 'Unauthorized: Invalid API key',
|
| 55 |
+
errorCode: 'AUTH_FAILED',
|
| 56 |
+
errorType: 'Authentication',
|
| 57 |
+
resolution: 'Verify API key is correct and has proper permissions.'
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
id: 6,
|
| 61 |
+
status: 403,
|
| 62 |
+
method: 'DELETE',
|
| 63 |
+
time: new Date(Date.now() - 18000000).toISOString().replace('T', ' ').substring(0, 19),
|
| 64 |
+
url: '/api/users/42',
|
| 65 |
+
errorMessage: 'Forbidden: User does not have permission to delete this resource',
|
| 66 |
+
errorCode: 'PERMISSION_DENIED',
|
| 67 |
+
errorType: 'Authorization',
|
| 68 |
+
resolution: 'Check user permissions and roles.'
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
id: 7,
|
| 72 |
+
status: 502,
|
| 73 |
+
method: 'GET',
|
| 74 |
+
time: new Date(Date.now() - 21600000).toISOString().replace('T', ' ').substring(0, 19),
|
| 75 |
+
url: '/api/inventory',
|
| 76 |
+
errorMessage: 'Bad Gateway: Upstream service unavailable',
|
| 77 |
+
errorCode: 'UPSTREAM_ERROR',
|
| 78 |
+
errorType: 'Infrastructure',
|
| 79 |
+
resolution: 'Check health of dependent services and retry with exponential backoff.'
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
id: 8,
|
| 83 |
+
status: 503,
|
| 84 |
+
method: 'POST',
|
| 85 |
+
time: new Date(Date.now() - 25200000).toISOString().replace('T', ' ').substring(0, 19),
|
| 86 |
+
url: '/api/notifications',
|
| 87 |
+
errorMessage: 'Service Unavailable: Maintenance in progress',
|
| 88 |
+
errorCode: 'MAINTENANCE_MODE',
|
| 89 |
+
errorType: 'Infrastructure',
|
| 90 |
+
resolution: 'Retry after maintenance window completes. Check status page for updates.'
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
id: 9,
|
| 94 |
+
status: 504,
|
| 95 |
+
method: 'GET',
|
| 96 |
+
time: new Date(Date.now() - 28800000).toISOString().replace('T', ' ').substring(0, 19),
|
| 97 |
+
url: '/api/reports',
|
| 98 |
+
errorMessage: 'Gateway Timeout: Upstream service took too long to respond',
|
| 99 |
+
errorCode: 'TIMEOUT_ERROR',
|
| 100 |
+
errorType: 'Performance',
|
| 101 |
+
resolution: 'Increase timeout thresholds or optimize slow queries.'
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
id: 10,
|
| 105 |
+
status: 422,
|
| 106 |
+
method: 'PATCH',
|
| 107 |
+
time: new Date(Date.now() - 32400000).toISOString().replace('T', ' ').substring(0, 19),
|
| 108 |
+
url: '/api/profiles/89',
|
| 109 |
+
errorMessage: 'Unprocessable Entity: Invalid email format',
|
| 110 |
+
errorCode: 'VALIDATION_ERROR',
|
| 111 |
+
errorType: 'Validation',
|
| 112 |
+
resolution: 'Validate input data before submission.'
|
| 113 |
}
|
| 114 |
];
|
| 115 |
// DOM elements
|