summaryrefslogtreecommitdiff
path: root/machine.proto
blob: 55772aa74a4e803e5e5a310db41d08c420f8b605 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
syntax = "proto3";

package gitpb;

import "package.proto";
import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp

message Machine {
  string hostname 		= 1;
  int64 memory 			= 2;
  int64 cpus			= 3;
  Packages packages		= 4;
  google.protobuf.Timestamp     laststamp      = 5;    // the last time we heard anything from this machine
}

message Machines {
	string   uuid	        = 1;    // I guess why not just have this on each file
	string   version        = 2;    // maybe can be used for protobuf schema change violations
	repeated Machine 	machines = 3;
}