Skip to content

Commit 3c7f306

Browse files
author
Tom Reitz
committed
update readme for structured log to current format
1 parent f340c55 commit 3c7f306

1 file changed

Lines changed: 29 additions & 34 deletions

File tree

README.md

Lines changed: 29 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -302,53 +302,48 @@ A sample results file could be:
302302
```json
303303
{
304304
"started_at": "2023-06-08T17:18:25.053207",
305-
"working_dir": "/home/someuser/code/sandbox/testing_lightbeam",
306-
"config_file": "lightbeam.yml",
307-
"data_dir": "./",
305+
"working_dir": "/home/someuser/",
306+
"config_file": "/home/someuser/lightbeam.yml",
307+
"data_dir": "/home/someuser/data/",
308308
"api_url": "https://some-ed-fi-api.edu/api",
309309
"namespace": "ed-fi",
310310
"resources": {
311311
"studentSchoolAssociations": {
312-
"failed_statuses": {
313-
"400": {
314-
"400: { \"message\": \"The request is invalid.\", \"modelState\": { \"request.schoolReference.schoolId\": [ \"JSON integer 1234567899999 is too large or small for an Int32. Path 'schoolReference.schoolId', line 1, position 328.\" ] } }": {
315-
"files": {
316-
"./studentSchoolAssociations.jsonl": {
317-
"line_numbers": "6,4,5,7,8",
318-
"count": 5
319-
}
320-
}
321-
},
322-
"400: { \"message\": \"Validation of 'StudentSchoolAssociation' failed.\\n\\tStudent reference could not be resolved.\\n\" }": {
323-
"files": {
324-
"./studentSchoolAssociations.jsonl": {
325-
"line_numbers": "1,3,2",
326-
"count": 3
327-
}
328-
}
329-
},
330-
"count": 8
312+
"records_processed": 50,
313+
"records_skipped": 0,
314+
"records_failed": 22,
315+
"failures": [
316+
{
317+
"status_code": 400,
318+
"message": "The request is invalid. \"request.schoolReference.schoolId\": [ \"JSON integer 1234567899999 is too large or small for an Int32. Path 'schoolReference.schoolId', line 1, position 328.\" ]",
319+
"file": "/home/someuser/data/studentSchoolAssociations.jsonl",
320+
"line_numbers": "6,4,5,7,8",
321+
"count": 5
322+
},
323+
{
324+
"status_code": 400,
325+
"message": "Validation of 'StudentSchoolAssociation' failed. Student reference could not be resolved.",
326+
"file": "/home/someuser/data/studentSchoolAssociations.jsonl",
327+
"line_numbers": "1,3,2",
328+
"count": 3
329+
331330
},
332-
"409": {
333-
"409: { \"message\": \"The value supplied for the related 'studentschoolassociation' resource does not exist.\" }": {
334-
"files": {
335-
"./studentSchoolAssociations.jsonl": {
336-
"line_numbers": "9,10,12,14,16,13,11,15,17,18,19,21,22,20",
337-
"count": 14
338-
}
339-
}
340-
},
331+
{
332+
"status_code": 409,
333+
"message": "The value supplied for the related 'studentschoolassociation' resource does not exist."
334+
"file": "/home/someuser/data/studentSchoolAssociations.jsonl",
335+
"line_numbers": "9,10,12,14,16,13,11,15,17,18,19,21,22,20",
341336
"count": 14
342337
}
343-
},
344-
"records_processed": 22,
338+
],
339+
"records_processed": 50,
345340
"records_skipped": 0,
346341
"records_failed": 22
347342
}
348343
},
349344
"completed_at": "2023-06-08T17:18:26.724699",
350345
"runtime_sec": 1.671492,
351-
"total_records_processed": 22,
346+
"total_records_processed": 50,
352347
"total_records_skipped": 0,
353348
"total_records_failed": 22
354349
}

0 commit comments

Comments
 (0)