mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 07:13:29 +00:00
197 lines
4.1 KiB
Plaintext
197 lines
4.1 KiB
Plaintext
{
|
|
"status": 200,
|
|
"body": {
|
|
"data": {
|
|
"inserted": 0,
|
|
"updated": 2,
|
|
"skipped": 6,
|
|
"total": 8,
|
|
"dryRun": false,
|
|
"rows": [
|
|
{
|
|
"line": 2,
|
|
"status": "skipped",
|
|
"reason": "duplicate"
|
|
},
|
|
{
|
|
"line": 3,
|
|
"status": "updated"
|
|
},
|
|
{
|
|
"line": 4,
|
|
"status": "updated"
|
|
},
|
|
{
|
|
"line": 5,
|
|
"status": "skipped",
|
|
"reason": "duplicate"
|
|
},
|
|
{
|
|
"line": 6,
|
|
"status": "skipped",
|
|
"reason": "duplicate"
|
|
},
|
|
{
|
|
"line": 7,
|
|
"status": "skipped",
|
|
"reason": "duplicate"
|
|
},
|
|
{
|
|
"line": 8,
|
|
"status": "skipped",
|
|
"reason": "duplicate"
|
|
},
|
|
{
|
|
"line": 9,
|
|
"status": "skipped",
|
|
"reason": "invalid_value"
|
|
}
|
|
]
|
|
},
|
|
"error": null
|
|
},
|
|
"events": [
|
|
{
|
|
"status": 200,
|
|
"action": {
|
|
"name": "import.csv.upload"
|
|
},
|
|
"meta": {
|
|
"import_csv_inserted": 0,
|
|
"import_csv_updated": 2,
|
|
"import_csv_skipped": 6,
|
|
"import_csv_dry_run": false
|
|
},
|
|
"warnings": null,
|
|
"error": null
|
|
}
|
|
],
|
|
"effects": [
|
|
{
|
|
"effect": "maybeEnqueueMorningRefresh",
|
|
"args": [
|
|
"<id:1>",
|
|
[]
|
|
]
|
|
},
|
|
{
|
|
"effect": "invalidateStatusInsightsForTypes",
|
|
"args": [
|
|
"<id:1>",
|
|
[
|
|
"WEIGHT"
|
|
],
|
|
{
|
|
"source": "manual"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"stored": {
|
|
"measurements": [
|
|
{
|
|
"type": "WEIGHT",
|
|
"value": 81.4,
|
|
"unit": "kg",
|
|
"source": "IMPORT",
|
|
"externalId": "exp-w-1",
|
|
"measuredAt": "2026-10-10T06:30:00.000Z",
|
|
"notes": null,
|
|
"notesEncrypted": "<bytes:59>",
|
|
"glucoseContext": null,
|
|
"deletedAt": null
|
|
},
|
|
{
|
|
"type": "WEIGHT",
|
|
"value": 82,
|
|
"unit": "kg",
|
|
"source": "IMPORT",
|
|
"externalId": "exp-w-2",
|
|
"measuredAt": "2026-10-11T06:30:00.000Z",
|
|
"notes": null,
|
|
"notesEncrypted": null,
|
|
"glucoseContext": null,
|
|
"deletedAt": null
|
|
},
|
|
{
|
|
"type": "PULSE",
|
|
"value": 64,
|
|
"unit": "bpm",
|
|
"source": "IMPORT",
|
|
"externalId": null,
|
|
"measuredAt": "2026-10-12T07:00:00.000Z",
|
|
"notes": null,
|
|
"notesEncrypted": null,
|
|
"glucoseContext": null,
|
|
"deletedAt": null
|
|
},
|
|
{
|
|
"type": "SLEEP_DURATION",
|
|
"value": 412,
|
|
"unit": "minutes",
|
|
"source": "IMPORT",
|
|
"externalId": "exp-s-1",
|
|
"measuredAt": "2026-10-12T06:00:00.000Z",
|
|
"notes": null,
|
|
"notesEncrypted": null,
|
|
"glucoseContext": null,
|
|
"deletedAt": null
|
|
},
|
|
{
|
|
"type": "BLOOD_GLUCOSE",
|
|
"value": 104,
|
|
"unit": "mg/dL",
|
|
"source": "IMPORT",
|
|
"externalId": null,
|
|
"measuredAt": "2026-10-11T08:00:00.000Z",
|
|
"notes": null,
|
|
"notesEncrypted": null,
|
|
"glucoseContext": "FASTING",
|
|
"deletedAt": null
|
|
}
|
|
],
|
|
"rollups": [
|
|
{
|
|
"type": "WEIGHT",
|
|
"bucketStart": "2026-10-10T00:00:00.000Z",
|
|
"count": 1,
|
|
"mean": 81.4
|
|
},
|
|
{
|
|
"type": "WEIGHT",
|
|
"bucketStart": "2026-10-11T00:00:00.000Z",
|
|
"count": 1,
|
|
"mean": 82
|
|
},
|
|
{
|
|
"type": "PULSE",
|
|
"bucketStart": "2026-10-12T00:00:00.000Z",
|
|
"count": 1,
|
|
"mean": 64
|
|
},
|
|
{
|
|
"type": "SLEEP_DURATION",
|
|
"bucketStart": "2026-10-12T00:00:00.000Z",
|
|
"count": 1,
|
|
"mean": 412
|
|
},
|
|
{
|
|
"type": "BLOOD_GLUCOSE",
|
|
"bucketStart": "2026-10-11T00:00:00.000Z",
|
|
"count": 1,
|
|
"mean": 104
|
|
}
|
|
],
|
|
"audit": [
|
|
{
|
|
"action": "import.csv.upload",
|
|
"details": "{\"inserted\":5,\"updated\":1,\"skipped\":2}"
|
|
},
|
|
{
|
|
"action": "import.csv.upload",
|
|
"details": "{\"inserted\":0,\"updated\":2,\"skipped\":6}"
|
|
}
|
|
]
|
|
}
|
|
}
|