# azhakendiran/rest-api-telemetry-suite architecture

> Architecture diagram of the GitHub repository azhakendiran/rest-api-telemetry-suite, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/azhakendiran/rest-api-telemetry-suite
- Repository: https://github.com/azhakendiran/rest-api-telemetry-suite

## Overview

This is a small FastAPI telemetry service. An HTTP client submits telemetry, whose device ID and CPU/memory percentages are validated; the service assigns an ID and timestamp and stores the record in process memory. Clients can list records, filter by device, fetch or delete a record, and check health. The source shows all runtime behavior in one file; there is no documented persistence or external integration.

Main entry points: [`app/main.py`](https://github.com/azhakendiran/rest-api-telemetry-suite/blob/main/app/main.py) (Telemetry routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_client(("HTTP client"))
node_api["Telemetry routes<br/>[main.py]"]
node_schemas["Telemetry models<br/>[main.py]"]
node_memory[("In-memory records<br/>[main.py]")]

node_client -->|"sends requests"| node_api
node_api -->|"validates and builds"| node_schemas
node_api -->|"writes records"| node_memory
node_api -->|"reads and deletes"| node_memory

click node_api "https://github.com/azhakendiran/rest-api-telemetry-suite/blob/main/app/main.py"
click node_schemas "https://github.com/azhakendiran/rest-api-telemetry-suite/blob/main/app/main.py"
click node_memory "https://github.com/azhakendiran/rest-api-telemetry-suite/blob/main/app/main.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_client toneBlue
class node_api toneMint
class node_schemas toneIndigo
class node_memory toneAmber
```

## Components

### Other components

- **HTTP client**
- [Telemetry routes](https://github.com/azhakendiran/rest-api-telemetry-suite/blob/main/app/main.py): `app/main.py`
- [Telemetry models](https://github.com/azhakendiran/rest-api-telemetry-suite/blob/main/app/main.py): `app/main.py`
- [In-memory records](https://github.com/azhakendiran/rest-api-telemetry-suite/blob/main/app/main.py): `app/main.py`

## Connections

- HTTP client → Telemetry routes: sends requests (evidence: `app/main.py`)
- Telemetry routes → Telemetry models: validates and builds (evidence: `app/main.py`)
- Telemetry routes → In-memory records: writes records (evidence: `app/main.py`)
- Telemetry routes → In-memory records: reads and deletes (evidence: `app/main.py`)
