summaryrefslogtreecommitdiff
path: root/sources/listing_schema.tex
diff options
context:
space:
mode:
authormjkwiatkowski <mati.rewa@gmail.com>2026-07-04 10:49:21 +0200
committermjkwiatkowski <mati.rewa@gmail.com>2026-07-04 10:49:21 +0200
commit5c7c9cb70fa2de6dfcd92aebdb2f48b09bbd79e1 (patch)
treea1a4ab3312063d2b9d5a82dfcc0ac20dbc817be6 /sources/listing_schema.tex
parent2cd079ce2ac68061b53848f87fa95bf46d717e3a (diff)
feat: added the database schema
Diffstat (limited to 'sources/listing_schema.tex')
-rw-r--r--sources/listing_schema.tex17
1 files changed, 17 insertions, 0 deletions
diff --git a/sources/listing_schema.tex b/sources/listing_schema.tex
new file mode 100644
index 0000000..c3130d6
--- /dev/null
+++ b/sources/listing_schema.tex
@@ -0,0 +1,17 @@
+\begin{lstlisting}[caption=The Redis and PostgreSQL schema (\texttt{schema.proto} file)., label={lst:protobuf-schema}]
+syntax = "proto3";
+
+package proto;
+
+option java_package = "org.opendc.common";
+option java_outer_classname = "ProtobufMetrics";
+
+message ProtoExport {
+ string timestamp = 1;
+ string host_id = 2;
+ int32 tasksactive = 3;
+ double cpuutilization = 4;
+ double energyusage = 5;
+ double uptime = 6;
+ double downtime = 7;
+}\end{lstlisting}