This repository has been archived by the owner on Aug 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
api.proto
74 lines (65 loc) · 1.51 KB
/
api.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// Copyright © 2017 The Things Network
// Use of this source code is governed by the MIT license that can be found in the LICENSE file.
syntax = "proto3";
package api;
option csharp_namespace = "TheThingsNetwork.API";
option go_package = "github.com/TheThingsNetwork/api";
option java_package = "org.thethingsnetwork.api";
option java_outer_classname = "APIProto";
option java_multiple_files = true;
message Percentiles {
float percentile1 = 1;
float percentile5 = 2;
float percentile10 = 3;
float percentile25 = 4;
float percentile50 = 5;
float percentile75 = 6;
float percentile90 = 7;
float percentile95 = 8;
float percentile99 = 9;
}
message Rates {
float rate1 = 1;
float rate5 = 2;
float rate15 = 3;
}
message SystemStats {
message Loadstats {
float load1 = 1;
float load5 = 2;
float load15 = 3;
}
Loadstats load = 1;
message CPUStats {
float user = 1;
float system = 2;
float idle = 3;
float percentage = 4;
}
CPUStats cpu = 2;
message MemoryStats {
uint64 total = 1;
uint64 available = 2;
uint64 used = 3;
}
MemoryStats memory = 3;
}
message ComponentStats {
uint64 uptime = 1;
message CPUStats {
float user = 1;
float system = 2;
float idle = 3;
float percentage = 4;
}
CPUStats cpu = 2;
message MemoryStats {
uint64 memory = 1;
uint64 swap = 2;
uint64 heap = 10;
uint64 stack = 11;
}
MemoryStats memory = 3;
uint64 goroutines = 4;
float gc_cpu_fraction = 5;
}