This repository has been archived by the owner on Aug 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsignalfx_metrics.proto
149 lines (131 loc) · 3.38 KB
/
signalfx_metrics.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
syntax = "proto2";
package com.signalfx.metrics.model;
import "gogoproto/gogo.proto";
option go_package = "model";
// Enable gogoprotobuf extensions (https://github.com/gogo/protobuf/blob/master/extensions.md).
// Enable custom Marshal method.
option (gogoproto.marshaler_all) = true;
// Enable custom Unmarshal method.
option (gogoproto.unmarshaler_all) = true;
// Enable custom Size method (Required by Marshal and Unmarshal).
option (gogoproto.sizer_all) = true;
// Enable registration with golang/protobuf for the grpc-gateway.
option (gogoproto.goproto_registration) = true;
enum MetricType {
// Periodic, instantaneous numerical measurement of some state.
GAUGE = 0;
// Counts of occurrences since last report. Generally non-negative integers.
COUNTER = 1;
// Used for non-continuous quantities (that is, measurements where there is a fixed
// set of meaningful values). This is essentially a special case of gauge that reports a string value.
ENUM = 2;
// Tracks a value that increases over time, where only the difference is important.
//
// Counts of occurrences since since a fixed start time. This means that the current value
// depends on all previous measurements since the start time.
CUMULATIVE_COUNTER = 3;
}
message Datum {
optional string strValue = 1;
optional double doubleValue = 2;
optional int64 intValue = 3;
}
message Dimension {
optional string key = 1 [
(gogoproto.nullable) = false
];
optional string value = 2 [
(gogoproto.nullable) = false
];
}
message DataPoint {
optional string source = 1 [
(gogoproto.nullable) = false
];
optional string metric = 2 [
(gogoproto.nullable) = false
];
optional int64 timestamp = 3 [
(gogoproto.nullable) = false
];
optional Datum value = 4 [
(gogoproto.nullable) = false
];
optional MetricType metricType = 5;
repeated Dimension dimensions = 6;
}
message DataPointUploadMessage {
repeated DataPoint datapoints = 1;
}
message PointValue {
optional int64 timestamp = 3 [
(gogoproto.nullable) = false
];
optional Datum value = 4 [
(gogoproto.nullable) = false
];
}
/**
* Different categories of events supported
*/
enum EventCategory {
/**
* Created by user via UI or API, e.g. a deployment event
*/
USER_DEFINED = 1000000;
/**
* Output by anomaly detectors
*/
ALERT = 100000;
/**
* Audit trail events
*/
AUDIT = 200000;
/**
* Generated by analytics server
*/
JOB = 300000;
/**
* @deprecated
* Event originated within collectd (deprecated in favor of AGENT)
*/
COLLECTD = 400000;
/**
* Service discovery event
*/
SERVICE_DISCOVERY = 500000;
/**
* Created by exception appenders to denote exceptional events
*/
EXCEPTION = 700000;
/**
* Event originated from an agent
*/
AGENT = 2000000;
}
message Property {
optional string key = 1 [
(gogoproto.nullable) = false
];
optional PropertyValue value = 2;
}
message PropertyValue {
optional string strValue = 1;
optional double doubleValue = 2;
optional int64 intValue = 3;
optional bool boolValue = 4;
}
message Event {
required string eventType = 1 [
(gogoproto.nullable) = false
];
repeated Dimension dimensions = 2;
repeated Property properties = 3;
optional EventCategory category = 4;
optional int64 timestamp = 5 [
(gogoproto.nullable) = false
];
}
message EventUploadMessage {
repeated Event events = 1;
}