-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathagent_payload.proto
187 lines (176 loc) · 3.85 KB
/
agent_payload.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
syntax = "proto3";
package datadog.agentpayload;
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
option go_package = "github.com/DataDog/agent-payload/gogen";
message CommonMetadata {
string agent_version = 1;
string timezone = 2;
double current_epoch = 3;
string internal_ip = 4;
string public_ip = 5;
string api_key = 6;
}
message MetricsPayload {
message Sample {
message Point {
int64 ts = 1;
double value = 2;
}
string metric = 1;
string type = 2;
string host = 3;
repeated Point points = 4;
repeated string tags = 5;
string source_type_name = 6;
}
repeated Sample samples = 1;
CommonMetadata metadata = 2;
}
message ServiceChecksPayload {
message ServiceCheck {
string name = 1;
string host = 2;
int64 ts = 3;
int32 status = 4;
string message = 5;
repeated string tags = 6;
}
repeated ServiceCheck service_checks = 1;
CommonMetadata metadata = 2;
}
message EventsPayload {
message Event {
string title = 1;
string text = 2;
int64 ts = 3;
string priority = 4;
string host = 5;
repeated string tags = 6;
string alert_type = 7;
string aggregation_key = 8;
string source_type_name = 9;
}
repeated Event events = 1;
CommonMetadata metadata = 2;
}
message SketchPayload {
message Sketch {
message Distribution {
int64 ts = 1;
int64 cnt = 2;
double min = 3;
double max = 4;
double avg = 5;
double sum = 6;
repeated double v = 7;
repeated uint32 g = 8;
repeated uint32 delta = 9;
repeated double buf = 10;
}
message Dogsketch {
int64 ts = 1;
int64 cnt = 2;
double min = 3;
double max = 4;
double avg = 5;
double sum = 6;
repeated sint32 k = 7;
repeated uint32 n = 8;
}
string metric = 1;
string host = 2;
repeated Distribution distributions = 3 [(gogoproto.nullable) = false];
repeated string tags = 4;
reserved 5, 6;
reserved "distributionsK", "distributionsC";
repeated Dogsketch dogsketches = 7 [(gogoproto.nullable) = false];
}
repeated Sketch sketches = 1 [(gogoproto.nullable) = false];
CommonMetadata metadata = 2 [(gogoproto.nullable) = false];
}
message HostMetadataPayload {
message TagSet {
string type = 1;
repeated string tags = 2;
}
message HostMetadata {
string hostname = 1;
repeated TagSet tags = 2;
repeated string aliases = 3;
}
repeated HostMetadata hosts_metadata = 1;
CommonMetadata metadata = 2;
}
message KubeMetadataPayload {
message Deployment {
string uid = 1;
string name = 2;
string namespace = 3;
}
message ReplicaSet {
string uid = 1;
string name = 2;
string namespace = 3;
string deployment = 4;
}
message DaemonSet {
string uid = 1;
string name = 2;
string namespace = 3;
}
message Service {
string uid = 1;
string name = 2;
string namespace = 3;
map<string,string> selector = 4;
string type = 5;
}
message Job {
string uid = 1;
string name = 2;
string namespace = 3;
}
message Pod {
string uid = 1;
string name = 2;
string namespace = 3;
string host_ip = 4;
string pod_ip = 5;
map<string, string> labels = 6;
repeated string service_uids = 7;
repeated string container_ids = 8;
string daemon_set = 9;
string replica_set = 10;
string replication_controller = 11;
string job = 12;
}
message Container {
string id = 1;
string name = 2;
string image = 3;
string image_id = 4;
}
repeated Deployment deployments = 1;
repeated ReplicaSet replica_sets = 2;
repeated DaemonSet daemon_sets = 3;
repeated Service services = 4;
repeated Job jobs = 5;
repeated Pod pods = 6;
repeated Container containers = 7;
}
message ECSMetadataPayload {
message Task {
string arn = 1;
string desired_status = 2;
string known_status = 3;
string family = 4;
string version = 5;
repeated Container containers = 6;
}
message Container {
string docker_id = 1;
string docker_name = 2;
string name = 3;
}
repeated Task tasks = 1;
}