Browse Source

fix(json 数据倒叙排序)

liujing 9 months ago
parent
commit
824a39e70f
1 changed files with 22 additions and 22 deletions
  1. 22 22
      src/views/service/InterfaceDetail/components/data.js

+ 22 - 22
src/views/service/InterfaceDetail/components/data.js

@@ -193,61 +193,61 @@ export const dataList = [
 
 export const dataList2 = [
   {
-    'Timestamp': '2024-06-04T12:06:00.000Z',
+    'Timestamp': '2024-06-04T12:25:00.000Z',
     'TraceId': '01234567890123456789012345678901',
-    'SpanId': 'span-0007',
-    'Body': "User with ID '4b51ce20-2234-11ef-b88a-060ee51c16ef' successfully logged in from IP address '192.168.0.1'.",
-    'Level': 'INFO',
+    'SpanId': 'span-0015',
+    'Body': "User '4b51ce20-2234-11ef-b88a-060ee51c16ef' attempted to access a restricted area of the application.",
+    'Level': 'WARNING',
     'LogAttributes': {
       'userId': '4b51ce20-2234-11ef-b88a-060ee51c16ef'
     }
   },
   {
-    'Timestamp': '2024-06-04T12:18:00.000Z',
+    'Timestamp': '2024-06-04T12:24:00.000Z',
     'TraceId': '01234567890123456789012345678901',
-    'SpanId': 'span-0009',
-    'Body': 'Application failed to serialize object, possible data corruption issue.',
+    'SpanId': 'span-0014',
+    'Body': 'Application encountered an exception while processing an order, check the exception logs for details.',
     'Level': 'ERROR',
     'LogAttributes': {
       'userId': '4b51ce20-2234-11ef-b88a-060ee51c16ef'
     }
   },
   {
-    'Timestamp': '2024-06-04T12:21:00.000Z',
+    'Timestamp': '2024-06-04T12:22:00.000Z',
     'TraceId': '01234567890123456789012345678901',
-    'SpanId': 'span-0022',
-    'Body': "Application received an invalid input from the user '4b51ce20-2234-11ef-b88a-060ee51c16ef'.",
-    'Level': 'WARNING',
+    'SpanId': 'span-0023',
+    'Body': 'Application successfully processed a batch job.',
+    'Level': 'INFO',
     'LogAttributes': {
       'userId': '4b51ce20-2234-11ef-b88a-060ee51c16ef'
     }
   },
   {
-    'Timestamp': '2024-06-04T12:22:00.000Z',
+    'Timestamp': '2024-06-04T12:21:00.000Z',
     'TraceId': '01234567890123456789012345678901',
-    'SpanId': 'span-0023',
-    'Body': 'Application successfully processed a batch job.',
-    'Level': 'INFO',
+    'SpanId': 'span-0022',
+    'Body': "Application received an invalid input from the user '4b51ce20-2234-11ef-b88a-060ee51c16ef'.",
+    'Level': 'WARNING',
     'LogAttributes': {
       'userId': '4b51ce20-2234-11ef-b88a-060ee51c16ef'
     }
   },
   {
-    'Timestamp': '2024-06-04T12:24:00.000Z',
+    'Timestamp': '2024-06-04T12:18:00.000Z',
     'TraceId': '01234567890123456789012345678901',
-    'SpanId': 'span-0014',
-    'Body': 'Application encountered an exception while processing an order, check the exception logs for details.',
+    'SpanId': 'span-0009',
+    'Body': 'Application failed to serialize object, possible data corruption issue.',
     'Level': 'ERROR',
     'LogAttributes': {
       'userId': '4b51ce20-2234-11ef-b88a-060ee51c16ef'
     }
   },
   {
-    'Timestamp': '2024-06-04T12:25:00.000Z',
+    'Timestamp': '2024-06-04T12:06:00.000Z',
     'TraceId': '01234567890123456789012345678901',
-    'SpanId': 'span-0015',
-    'Body': "User '4b51ce20-2234-11ef-b88a-060ee51c16ef' attempted to access a restricted area of the application.",
-    'Level': 'WARNING',
+    'SpanId': 'span-0007',
+    'Body': "User with ID '4b51ce20-2234-11ef-b88a-060ee51c16ef' successfully logged in from IP address '192.168.0.1'.",
+    'Level': 'INFO',
     'LogAttributes': {
       'userId': '4b51ce20-2234-11ef-b88a-060ee51c16ef'
     }