-
Notifications
You must be signed in to change notification settings - Fork 34
/
0014-ep-time-series-event.avsc
81 lines (81 loc) · 2.94 KB
/
0014-ep-time-series-event.avsc
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
{
"namespace":"org.kaaproject.ipc.tstp.gen.v1",
"name":"TimeSeriesEvent",
"type":"record",
"fields":[
{
"name":"correlationId",
"type":"string",
"doc":"Message ID primarily used to track message processing across services"
},
{
"name":"timestamp",
"type":"long",
"doc":"Message creation UNIX timestamp in milliseconds"
},
{
"name":"timeout",
"type":"long",
"default":0,
"doc":"Amount of milliseconds since the timestamp until the message expires. Value of 0 is reserved to indicate no expiration."
},
{
"name":"appVersionName",
"type":"string",
"doc":"Application version name the data is sent for"
},
{
"name":"endpointId",
"type":"string",
"doc":"Identifier of the endpoint that data points belong to"
},
{
"name":"timeSeriesName",
"type":"string",
"doc":"Name of the time series that data points belong to"
},
{
"name":"dataPoints",
"doc":"Array of endpoint time series data points",
"type":{
"type":"array",
"items":{
"namespace":"org.kaaproject.ipc.tstp.gen.v1",
"name":"DataPoint",
"type":"record",
"fields":[
{
"name":"ingestionTimestamp",
"type":"long",
"doc":"Platform provided UNIX timestamp in milliseconds",
"default":0
},
{
"name":"timestamp",
"type":"long",
"doc":"Data point UNIX timestamp in milliseconds"
},
{
"name":"values",
"doc":"Map of data point values with value names represented as map keys.",
"type":{
"type":"map",
"values":[
"boolean",
"int",
"long",
"float",
"double",
"string",
"bytes",
"null"
],
"doc":"Data point value, can be any primitive or composite type. In case of a composite type, value should be encoded into string or bytes."
}
}
]
}
}
}
]
}