argos/docs/developer/models.md
Luc Didry 4880c65681
💥 — Rename argos to argos-monitoring to fit the package name (fix #53)
Uninstall argos with `pip uninstall argos-monitoring` before installing this release!
2024-07-04 09:44:07 +02:00

38 lines
602 B
Markdown

# The data model
```{mermaid}
classDiagram
direction RL
class Task {
- url
- domain
- check
- expected
- frequency
- selected_by
- selected_at
- completed_at
- next_run
- severity
- last_severity_update
}
class Result{
- task : Task
- task_id
- agent_id
- submitted_at
- status
- severity
- context
}
Result "*" o-- "1" Task : has many
```
The `severity` attribute in `Task` is the severity of the last `Result` submitted by an agent.
```{literalinclude} ../../argos_monitoring/server/models.py
---
caption: models.py
---
```