From 5c7c9cb70fa2de6dfcd92aebdb2f48b09bbd79e1 Mon Sep 17 00:00:00 2001 From: mjkwiatkowski Date: Sat, 4 Jul 2026 10:49:21 +0200 Subject: feat: added the database schema --- sources/listing_schema.tex | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 sources/listing_schema.tex (limited to 'sources/listing_schema.tex') 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} -- cgit v1.2.3