fixing mocked data

pull/228/head
Jason Kulatunga 3 years ago
parent bd19230cbf
commit a60edfff26

File diff suppressed because it is too large Load Diff

@ -23,6 +23,203 @@ export const sdc = {
"device_status": 1
},
"smart_results": [{
"date": "2020-07-08T13:48:23Z",
"device_wwn": "0x5000cca264ec3183",
"device_protocol": "ATA",
"temp": 25,
"power_on_hours": 65592,
"power_cycle_count": 86,
"attrs": {
"1": {
"attribute_id": 1,
"name": "Read Error Rate",
"value": 100,
"thresh": 16,
"worst": 100,
"raw_value": 0,
"raw_string": "0",
"when_failed": "",
"transformed_value": 0
},
"10": {
"attribute_id": 10,
"name": "Spin Retry Count",
"value": 100,
"thresh": 60,
"worst": 100,
"raw_value": 0,
"raw_string": "0",
"when_failed": "",
"transformed_value": 0,
"status": "passed"
},
"12": {
"attribute_id": 12,
"name": "Power Cycle Count",
"value": 100,
"thresh": 0,
"worst": 100,
"raw_value": 86,
"raw_string": "86",
"when_failed": "",
"transformed_value": 0
},
"192": {
"attribute_id": 192,
"name": "Power-off Retract Count",
"value": 95,
"thresh": 0,
"worst": 95,
"raw_value": 6244,
"raw_string": "6244",
"when_failed": "",
"transformed_value": 0
},
"193": {
"attribute_id": 193,
"name": "Load Cycle Count",
"value": 95,
"thresh": 0,
"worst": 95,
"raw_value": 6244,
"raw_string": "6244",
"when_failed": "",
"transformed_value": 0
},
"194": {
"attribute_id": 194,
"name": "Temperature",
"value": 240,
"thresh": 0,
"worst": 240,
"raw_value": 167504969753,
"raw_string": "25 (Min/Max 19/39)",
"when_failed": "",
"transformed_value": 0
},
"196": {
"attribute_id": 196,
"name": "Reallocation Event Count",
"value": 1,
"thresh": 0,
"worst": 1,
"raw_value": 3831,
"raw_string": "3831",
"when_failed": "",
"transformed_value": 0
},
"197": {
"attribute_id": 197,
"name": "Current Pending Sector Count",
"value": 100,
"thresh": 0,
"worst": 100,
"raw_value": 8,
"raw_string": "8",
"when_failed": "",
"transformed_value": 0
},
"198": {
"attribute_id": 198,
"name": "(Offline) Uncorrectable Sector Count",
"value": 100,
"thresh": 0,
"worst": 100,
"raw_value": 0,
"raw_string": "0",
"when_failed": "",
"transformed_value": 0
},
"199": {
"attribute_id": 199,
"name": "UltraDMA CRC Error Count",
"value": 200,
"thresh": 0,
"worst": 200,
"raw_value": 0,
"raw_string": "0",
"when_failed": "",
"transformed_value": 0
},
"2": {
"attribute_id": 2,
"name": "Throughput Performance",
"value": 136,
"thresh": 54,
"worst": 136,
"raw_value": 91,
"raw_string": "91",
"when_failed": "",
"transformed_value": 0
},
"3": {
"attribute_id": 3,
"name": "Spin-Up Time",
"value": 125,
"thresh": 24,
"worst": 125,
"raw_value": 17192124596,
"raw_string": "180 (Average 187)",
"when_failed": "",
"transformed_value": 0
},
"4": {
"attribute_id": 4,
"name": "Start/Stop Count",
"value": 100,
"thresh": 0,
"worst": 100,
"raw_value": 86,
"raw_string": "86",
"when_failed": "",
"transformed_value": 0
},
"5": {
"attribute_id": 5,
"name": "Reallocated Sectors Count",
"value": 1,
"thresh": 5,
"worst": 1,
"raw_value": 1975,
"raw_string": "1975",
"when_failed": "now",
"transformed_value": 0
},
"7": {
"attribute_id": 7,
"name": "Seek Error Rate",
"value": 100,
"thresh": 67,
"worst": 100,
"raw_value": 0,
"raw_string": "0",
"when_failed": "",
"transformed_value": 0
},
"8": {
"attribute_id": 8,
"name": "Seek Time Performance",
"value": 118,
"thresh": 20,
"worst": 118,
"raw_value": 33,
"raw_string": "33",
"when_failed": "",
"transformed_value": 0
},
"9": {
"attribute_id": 9,
"name": "Power-On Hours",
"value": 91,
"thresh": 0,
"worst": 91,
"raw_value": 65592,
"raw_string": "65592",
"when_failed": "",
"transformed_value": 0
}
}
}, {
"date": "2020-07-08T13:48:23Z",
"device_wwn": "0x5000cca264ec3183",
"device_protocol": "ATA",

@ -122,6 +122,106 @@ export const sdd = {
"transformed_value": 0
}
}
},{
"date": "2020-08-21T22:27:02Z",
"device_wwn": "0x5000cca252c859cc",
"device_protocol": "SCSI",
"temp": 34,
"power_on_hours": 43549,
"power_cycle_count": 0,
"attrs": {
"read_correction_algorithm_invocations": {
"attribute_id": "read_correction_algorithm_invocations",
"name": "Read Correction Algorithm Invocations",
"value": 0,
"thresh": -1,
"transformed_value": 0
},
"read_errors_corrected_by_eccdelayed": {
"attribute_id": "read_errors_corrected_by_eccdelayed",
"name": "Read Errors Corrected by ECC Delayed",
"value": 0,
"thresh": -1,
"transformed_value": 0
},
"read_errors_corrected_by_eccfast": {
"attribute_id": "read_errors_corrected_by_eccfast",
"name": "Read Errors Corrected by ECC Fast",
"value": 300357663,
"thresh": -1,
"transformed_value": 0
},
"read_errors_corrected_by_rereads_rewrites": {
"attribute_id": "read_errors_corrected_by_rereads_rewrites",
"name": "Read Errors Corrected by ReReads/ReWrites",
"value": 0,
"thresh": 0,
"transformed_value": 0
},
"read_total_errors_corrected": {
"attribute_id": "read_total_errors_corrected",
"name": "Read Total Errors Corrected",
"value": 300357663,
"thresh": -1,
"transformed_value": 0
},
"read_total_uncorrected_errors": {
"attribute_id": "read_total_uncorrected_errors",
"name": "Read Total Uncorrected Errors",
"value": 0,
"thresh": 0,
"transformed_value": 0
},
"scsi_grown_defect_list": {
"attribute_id": "scsi_grown_defect_list",
"name": "Grown Defect List",
"value": 56,
"thresh": 0,
"transformed_value": 0
},
"write_correction_algorithm_invocations": {
"attribute_id": "write_correction_algorithm_invocations",
"name": "Write Correction Algorithm Invocations",
"value": 0,
"thresh": -1,
"transformed_value": 0
},
"write_errors_corrected_by_eccdelayed": {
"attribute_id": "write_errors_corrected_by_eccdelayed",
"name": "Write Errors Corrected by ECC Delayed",
"value": 0,
"thresh": -1,
"transformed_value": 0
},
"write_errors_corrected_by_eccfast": {
"attribute_id": "write_errors_corrected_by_eccfast",
"name": "Write Errors Corrected by ECC Fast",
"value": 0,
"thresh": -1,
"transformed_value": 0
},
"write_errors_corrected_by_rereads_rewrites": {
"attribute_id": "write_errors_corrected_by_rereads_rewrites",
"name": "Write Errors Corrected by ReReads/ReWrites",
"value": 0,
"thresh": 0,
"transformed_value": 0
},
"write_total_errors_corrected": {
"attribute_id": "write_total_errors_corrected",
"name": "Write Total Errors Corrected",
"value": 0,
"thresh": -1,
"transformed_value": 0
},
"write_total_uncorrected_errors": {
"attribute_id": "write_total_uncorrected_errors",
"name": "Write Total Uncorrected Errors",
"value": 0,
"thresh": 0,
"transformed_value": 0
}
}
}]
},
"metadata": {

@ -1,5 +1,6 @@
export const sde = {
"data": {
"device": {
"CreatedAt": "2020-08-28T07:55:27.768220079Z",
"UpdatedAt": "2020-09-08T21:39:26.578973-07:00",
"DeletedAt": null,
@ -17,6 +18,7 @@ export const sde = {
"smart_support": false,
"device_protocol": "SCSI",
"device_type": "scsi",
},
"smart_results": [{
"ID": 48,
"CreatedAt": "2020-09-08T21:39:26.579623-07:00",

@ -1,5 +1,6 @@
export const sdf = {
"data": {
"device": {
"CreatedAt": "2020-09-29T03:17:30.813487336Z",
"UpdatedAt": "2020-09-29T03:17:31.04293448Z",
"DeletedAt": null,
@ -17,6 +18,8 @@ export const sdf = {
"smart_support": false,
"device_protocol": "ATA",
"device_type": "scsi",
"device_status": 2,
},
"smart_results": [{
"ID": 1,
"CreatedAt": "2020-09-29T03:17:31.063859162Z",
@ -394,6 +397,383 @@ export const sdf = {
}],
"nvme_attributes": [],
"scsi_attributes": []
}, {
"ID": 1,
"CreatedAt": "2020-09-29T03:17:31.063859162Z",
"UpdatedAt": "2020-09-29T03:17:31.063859162Z",
"DeletedAt": null,
"device_wwn": "0x5000c500c0558f02",
"date": "2020-09-29T03:17:30Z",
"smart_status": "passed",
"temp": 39,
"power_on_hours": 9499,
"power_cycle_count": 22,
"ata_attributes": [{
"ID": 1,
"CreatedAt": "2020-09-29T03:17:31.064174997Z",
"UpdatedAt": "2020-09-29T03:17:31.064174997Z",
"DeletedAt": null,
"smart_id": 1,
"attribute_id": 1,
"name": "Read Error Rate",
"value": 79,
"worst": 64,
"thresh": 44,
"raw_value": 78022392,
"raw_string": "78022392",
"when_failed": "",
"transformed_value": 0,
"status": "passed"
}, {
"ID": 2,
"CreatedAt": "2020-09-29T03:17:31.064379412Z",
"UpdatedAt": "2020-09-29T03:17:31.064379412Z",
"DeletedAt": null,
"smart_id": 1,
"attribute_id": 3,
"name": "Spin-Up Time",
"value": 95,
"worst": 86,
"thresh": 0,
"raw_value": 0,
"raw_string": "0",
"when_failed": "",
"transformed_value": 0,
"status": "warn",
"status_reason": "Observed Failure Rate for Attribute is greater than 10%",
"failure_rate": 0.11452195377351217
}, {
"ID": 3,
"CreatedAt": "2020-09-29T03:17:31.064506775Z",
"UpdatedAt": "2020-09-29T03:17:31.064506775Z",
"DeletedAt": null,
"smart_id": 1,
"attribute_id": 4,
"name": "Start/Stop Count",
"value": 100,
"worst": 100,
"thresh": 20,
"raw_value": 220,
"raw_string": "220",
"when_failed": "",
"transformed_value": 0,
"status": "passed"
}, {
"ID": 4,
"CreatedAt": "2020-09-29T03:17:31.064621265Z",
"UpdatedAt": "2020-09-29T03:17:31.064621265Z",
"DeletedAt": null,
"smart_id": 1,
"attribute_id": 5,
"name": "Reallocated Sectors Count",
"value": 100,
"worst": 100,
"thresh": 10,
"raw_value": 0,
"raw_string": "0",
"when_failed": "",
"transformed_value": 0,
"status": "passed",
"failure_rate": 0.025169175350572493
}, {
"ID": 5,
"CreatedAt": "2020-09-29T03:17:31.064742769Z",
"UpdatedAt": "2020-09-29T03:17:31.064742769Z",
"DeletedAt": null,
"smart_id": 1,
"attribute_id": 7,
"name": "Seek Error Rate",
"value": 86,
"worst": 60,
"thresh": 45,
"raw_value": 4679507461,
"raw_string": "4679507461",
"when_failed": "",
"transformed_value": 0,
"status": "passed",
"failure_rate": 0.08725919610118257
}, {
"ID": 6,
"CreatedAt": "2020-09-29T03:17:31.064850152Z",
"UpdatedAt": "2020-09-29T03:17:31.064850152Z",
"DeletedAt": null,
"smart_id": 1,
"attribute_id": 9,
"name": "Power-On Hours",
"value": 90,
"worst": 90,
"thresh": 0,
"raw_value": 9499,
"raw_string": "9499",
"when_failed": "",
"transformed_value": 0,
"status": "passed"
}, {
"ID": 7,
"CreatedAt": "2020-09-29T03:17:31.064970318Z",
"UpdatedAt": "2020-09-29T03:17:31.064970318Z",
"DeletedAt": null,
"smart_id": 1,
"attribute_id": 10,
"name": "Spin Retry Count",
"value": 100,
"worst": 100,
"thresh": 97,
"raw_value": 0,
"raw_string": "0",
"when_failed": "",
"transformed_value": 0,
"status": "passed",
"failure_rate": 0.05459827163896099
}, {
"ID": 8,
"CreatedAt": "2020-09-29T03:17:31.065072898Z",
"UpdatedAt": "2020-09-29T03:17:31.065072898Z",
"DeletedAt": null,
"smart_id": 1,
"attribute_id": 12,
"name": "Power Cycle Count",
"value": 100,
"worst": 100,
"thresh": 20,
"raw_value": 22,
"raw_string": "22",
"when_failed": "",
"transformed_value": 0,
"status": "passed",
"failure_rate": 0.038210930067894826
}, {
"ID": 9,
"CreatedAt": "2020-09-29T03:17:31.065366547Z",
"UpdatedAt": "2020-09-29T03:17:31.065366547Z",
"DeletedAt": null,
"smart_id": 1,
"attribute_id": 18,
"name": "Unknown_Attribute",
"value": 100,
"worst": 100,
"thresh": 50,
"raw_value": 0,
"raw_string": "0",
"when_failed": "",
"transformed_value": 0,
"status": "passed"
}, {
"ID": 10,
"CreatedAt": "2020-09-29T03:17:31.065539403Z",
"UpdatedAt": "2020-09-29T03:17:31.065539403Z",
"DeletedAt": null,
"smart_id": 1,
"attribute_id": 187,
"name": "Reported Uncorrectable Errors",
"value": 100,
"worst": 100,
"thresh": 0,
"raw_value": 0,
"raw_string": "0",
"when_failed": "",
"transformed_value": 0,
"status": "passed",
"failure_rate": 0.028130798308190524
}, {
"ID": 11,
"CreatedAt": "2020-09-29T03:17:31.065665808Z",
"UpdatedAt": "2020-09-29T03:17:31.065665808Z",
"DeletedAt": null,
"smart_id": 1,
"attribute_id": 188,
"name": "Command Timeout",
"value": 100,
"worst": 100,
"thresh": 0,
"raw_value": 0,
"raw_string": "0",
"when_failed": "",
"transformed_value": 0,
"status": "passed",
"failure_rate": 0.024893587674442153
}, {
"ID": 12,
"CreatedAt": "2020-09-29T03:17:31.065780779Z",
"UpdatedAt": "2020-09-29T03:17:31.065780779Z",
"DeletedAt": null,
"smart_id": 1,
"attribute_id": 190,
"name": "Temperature Difference",
"value": 61,
"worst": 46,
"thresh": 40,
"raw_value": 740294695,
"raw_string": "39 (Min/Max 32/44)",
"when_failed": "",
"transformed_value": 0,
"status": "passed"
}, {
"ID": 13,
"CreatedAt": "2020-09-29T03:17:31.065931499Z",
"UpdatedAt": "2020-09-29T03:17:31.065931499Z",
"DeletedAt": null,
"smart_id": 1,
"attribute_id": 192,
"name": "Power-off Retract Count",
"value": 100,
"worst": 100,
"thresh": 0,
"raw_value": 4,
"raw_string": "4",
"when_failed": "",
"transformed_value": 0,
"status": "passed",
"failure_rate": 0.0738571777154862
}, {
"ID": 14,
"CreatedAt": "2020-09-29T03:17:31.066043189Z",
"UpdatedAt": "2020-09-29T03:17:31.066043189Z",
"DeletedAt": null,
"smart_id": 1,
"attribute_id": 193,
"name": "Load Cycle Count",
"value": 100,
"worst": 100,
"thresh": 0,
"raw_value": 1680,
"raw_string": "1680",
"when_failed": "",
"transformed_value": 0,
"status": "passed"
}, {
"ID": 15,
"CreatedAt": "2020-09-29T03:17:31.066162028Z",
"UpdatedAt": "2020-09-29T03:17:31.066162028Z",
"DeletedAt": null,
"smart_id": 1,
"attribute_id": 194,
"name": "Temperature",
"value": 39,
"worst": 54,
"thresh": 0,
"raw_value": 81604378663,
"raw_string": "39 (0 19 0 0 0)",
"when_failed": "",
"transformed_value": 39,
"status": "passed"
}, {
"ID": 16,
"CreatedAt": "2020-09-29T03:17:31.066270283Z",
"UpdatedAt": "2020-09-29T03:17:31.066270283Z",
"DeletedAt": null,
"smart_id": 1,
"attribute_id": 195,
"name": "Hardware ECC Recovered",
"value": 79,
"worst": 64,
"thresh": 0,
"raw_value": 78022392,
"raw_string": "78022392",
"when_failed": "",
"transformed_value": 0,
"status": "passed"
}, {
"ID": 17,
"CreatedAt": "2020-09-29T03:17:31.066381938Z",
"UpdatedAt": "2020-09-29T03:17:31.066381938Z",
"DeletedAt": null,
"smart_id": 1,
"attribute_id": 197,
"name": "Current Pending Sector Count",
"value": 100,
"worst": 100,
"thresh": 0,
"raw_value": 0,
"raw_string": "0",
"when_failed": "",
"transformed_value": 0,
"status": "passed",
"failure_rate": 0.025540791394761345
}, {
"ID": 18,
"CreatedAt": "2020-09-29T03:17:31.066497143Z",
"UpdatedAt": "2020-09-29T03:17:31.066497143Z",
"DeletedAt": null,
"smart_id": 1,
"attribute_id": 198,
"name": "(Offline) Uncorrectable Sector Count",
"value": 100,
"worst": 100,
"thresh": 0,
"raw_value": 0,
"raw_string": "0",
"when_failed": "",
"transformed_value": 0,
"status": "passed",
"failure_rate": 0.028675322159886437
}, {
"ID": 19,
"CreatedAt": "2020-09-29T03:17:31.066632808Z",
"UpdatedAt": "2020-09-29T03:17:31.066632808Z",
"DeletedAt": null,
"smart_id": 1,
"attribute_id": 199,
"name": "UltraDMA CRC Error Count",
"value": 200,
"worst": 200,
"thresh": 0,
"raw_value": 0,
"raw_string": "0",
"when_failed": "",
"transformed_value": 0,
"status": "passed"
}, {
"ID": 20,
"CreatedAt": "2020-09-29T03:17:31.066757646Z",
"UpdatedAt": "2020-09-29T03:17:31.066757646Z",
"DeletedAt": null,
"smart_id": 1,
"attribute_id": 240,
"name": "Head Flying Hours",
"value": 100,
"worst": 253,
"thresh": 0,
"raw_value": 21887153349770,
"raw_string": "9354 (19 232 0)",
"when_failed": "",
"transformed_value": 0,
"status": "passed"
}, {
"ID": 21,
"CreatedAt": "2020-09-29T03:17:31.06687199Z",
"UpdatedAt": "2020-09-29T03:17:31.06687199Z",
"DeletedAt": null,
"smart_id": 1,
"attribute_id": 241,
"name": "Total LBAs Written",
"value": 100,
"worst": 253,
"thresh": 0,
"raw_value": 78115437520,
"raw_string": "78115437520",
"when_failed": "",
"transformed_value": 0,
"status": "passed"
}, {
"ID": 22,
"CreatedAt": "2020-09-29T03:17:31.066984948Z",
"UpdatedAt": "2020-09-29T03:17:31.066984948Z",
"DeletedAt": null,
"smart_id": 1,
"attribute_id": 242,
"name": "Total LBAs Read",
"value": 100,
"worst": 253,
"thresh": 0,
"raw_value": 226428055205,
"raw_string": "226428055205",
"when_failed": "",
"transformed_value": 0,
"status": "passed"
}],
"nvme_attributes": [],
"scsi_attributes": []
}]
}, "metadata": {
"1": {

Loading…
Cancel
Save