Build a backend service to handle sensor data
POST /ingest?url=string (url encoded)url: URL of the CSV file containing sensor dataGET /median?filter=json (url encoded)
Query Parameter
filter: JSON (optional)
id: string[] (optional)type: string[] (optional)subtype: string[] (optional)location: string[] (optional)Response
reading column{ "count": number, "median": number }
| Column | Data Type | Summary | Metadata |
|---|---|---|---|
| id | UUID | Sensor Brand ID | cardinality=1M |
| type | UUID | Sensor Type | cardinality=1K |
| subtype | UUID | Sensor Subtype | cardinality=1K |
| reading | Integer32 | Sensor Reading | range=[1, 1B] |
| location | UUID | Sensor Location | cardinality=100K |
| timestamp | Timestamp | Log Timestamp | range=[2001, 2005] |
https://hack.levels.fyi/data.csv
| id | type | subtype | reading | location | timestamp |
|---|---|---|---|---|---|
fea1b70d-56c5-5271-6a1f-3ecc431d5aa4 |
8f764c71-277f-5f26-bed1-46a864e4a083 |
e479a9b0-7d20-067b-1586-4ee7f8ed8807 |
844194744 | 4228288a-04f7-f69d-78cf-273d08c772c1 |
2001-02-12 13:23:23 |
cfdf490f-c3dd-3127-9018-df193c931acd |
66dcaf70-75ce-4f2c-ab3c-a24bcd5200ad |
27357408-549e-1f23-cd0d-7fca05aafa6f |
424842533 | c4b57658-f253-1a4e-e706-c35f4090a928 |
2002-03-18 22:45:38 |
f2914d40-1c7f-c026-3f39-68cea0cd3a6f |
4568db01-04db-ee6e-94d8-b89fa5bb60f6 |
ab41a415-4212-3e37-78c7-abba1487040a |
655336984 | c9e88ff7-459b-9311-e981-257c1123d1e5 |
2004-04-23 01:20:09 |
docker compose up to start your services