aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarf20 <aruizfernandez05@gmail.com>2025-11-09 18:42:50 +0100
committerarf20 <aruizfernandez05@gmail.com>2025-11-09 18:42:50 +0100
commitc766bf7134b8179401b7e05f00d5a3693e2b56f4 (patch)
tree4fe65a5c872ff7864e51c3cea88388ddda0e8963
parent1fa9b6e34e5c92aa7fe492417cda2d21ec067ff8 (diff)
downloadarfnet2-status-c766bf7134b8179401b7e05f00d5a3693e2b56f4.tar.gz
arfnet2-status-c766bf7134b8179401b7e05f00d5a3693e2b56f4.zip
Alert files
-rw-r--r--README.md4
-rw-r--r--alert.c0
-rw-r--r--alert.h0
-rw-r--r--monitor.h4
4 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 456aedf..f61a0ea 100644
--- a/README.md
+++ b/README.md
@@ -13,8 +13,8 @@ make
## Features (TODO)
[X] Current service status table
- [ ] Outage events table
- [ ] Uptime counter (total, month)
+ [X] Incident event table
+ [X] Uptime counter (total, month)
[ ] Alerts
[ ] Centralised config
diff --git a/alert.c b/alert.c
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/alert.c
diff --git a/alert.h b/alert.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/alert.h
diff --git a/monitor.h b/monitor.h
index 35844cc..f39441c 100644
--- a/monitor.h
+++ b/monitor.h
@@ -7,7 +7,7 @@ typedef enum {
TYPE_REACH,
TYPE_DNS,
TYPE_WEB
-} type_t;
+} mon_type_t;
typedef enum {
STATUS_DOWN,
@@ -20,7 +20,7 @@ typedef struct {
} event_t;
typedef struct {
- type_t type;
+ mon_type_t type;
char *name;
char *target;