summaryrefslogtreecommitdiff
path: root/sources/listing_schema.tex
diff options
context:
space:
mode:
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}