diff options
| author | mjkwiatkowski <mati.rewa@gmail.com> | 2026-07-04 10:49:21 +0200 |
|---|---|---|
| committer | mjkwiatkowski <mati.rewa@gmail.com> | 2026-07-04 10:49:21 +0200 |
| commit | 5c7c9cb70fa2de6dfcd92aebdb2f48b09bbd79e1 (patch) | |
| tree | a1a4ab3312063d2b9d5a82dfcc0ac20dbc817be6 /sources | |
| parent | 2cd079ce2ac68061b53848f87fa95bf46d717e3a (diff) | |
feat: added the database schema
Diffstat (limited to 'sources')
| -rw-r--r-- | sources/listing_schema.tex | 17 | ||||
| -rw-r--r-- | sources/listing_sinks.tex (renamed from sources/listings.tex) | 0 |
2 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} diff --git a/sources/listings.tex b/sources/listing_sinks.tex index 89cf05a..89cf05a 100644 --- a/sources/listings.tex +++ b/sources/listing_sinks.tex |
