You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: openapi/ereporter.json
+75-23Lines changed: 75 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@
42
42
"content": {
43
43
"application/json": {
44
44
"schema": {
45
-
"$ref": "#/components/schemas/EreportResultsPage"
45
+
"$ref": "#/components/schemas/EntryResultsPage"
46
46
}
47
47
}
48
48
}
@@ -90,21 +90,10 @@
90
90
},
91
91
"components": {
92
92
"schemas": {
93
-
"Ereport": {
94
-
"description": "An error report.",
93
+
"Entry": {
94
+
"description": "An entry in the ereport batch returned by a reporter.",
95
95
"type": "object",
96
96
"properties": {
97
-
"class": {
98
-
"description": "A string indicating the kind of ereport.\n\nThis may be used by diagnosis engines as an indication of what `facts` to expect.",
99
-
"type": "string"
100
-
},
101
-
"facts": {
102
-
"description": "The set of facts (key-value pairs) associated with this ereport.",
103
-
"type": "object",
104
-
"additionalProperties": {
105
-
"type": "string"
106
-
}
107
-
},
108
97
"reporter_id": {
109
98
"description": "UUID of the entity that generated this ereport.",
110
99
"type": "string",
@@ -118,29 +107,65 @@
118
107
}
119
108
]
120
109
},
121
-
"time_created": {
122
-
"description": "The UTC timestamp when this ereport was observed, as determined by the reporter.",
123
-
"type": "string",
124
-
"format": "date-time"
110
+
"value": {
111
+
"$ref": "#/components/schemas/EntryKind"
125
112
}
126
113
},
127
114
"required": [
128
-
"class",
129
-
"facts",
130
115
"reporter_id",
131
116
"seq",
132
-
"time_created"
117
+
"value"
118
+
]
119
+
},
120
+
"EntryKind": {
121
+
"description": "Kinds of entry in a batch.",
122
+
"oneOf": [
123
+
{
124
+
"description": "An ereport.",
125
+
"type": "object",
126
+
"properties": {
127
+
"ereport": {
128
+
"$ref": "#/components/schemas/Ereport"
129
+
}
130
+
},
131
+
"required": [
132
+
"ereport"
133
+
],
134
+
"additionalProperties": false
135
+
},
136
+
{
137
+
"description": "Ereports may have been lost.",
138
+
"type": "object",
139
+
"properties": {
140
+
"data_loss": {
141
+
"type": "object",
142
+
"properties": {
143
+
"dropped": {
144
+
"nullable": true,
145
+
"description": "The number of ereports that were discarded, if it is known.\n\nIf ereports are dropped because a buffer has reached its capacity, the reporter is strongly encouraged to attempt to count the number of ereports lost. In other cases, such as a reporter crashing and restarting, the reporter may not be capable of determining the number of ereports that were lost, or even *if* data loss actually occurred. Therefore, a `None` here indicates *possible* data loss, while a `Some(u32)` indicates *known* data loss.",
146
+
"type": "integer",
147
+
"format": "uint32",
148
+
"minimum": 0
149
+
}
150
+
}
151
+
}
152
+
},
153
+
"required": [
154
+
"data_loss"
155
+
],
156
+
"additionalProperties": false
157
+
}
133
158
]
134
159
},
135
-
"EreportResultsPage": {
160
+
"EntryResultsPage": {
136
161
"description": "A single page of results",
137
162
"type": "object",
138
163
"properties": {
139
164
"items": {
140
165
"description": "list of items on this page of results",
141
166
"type": "array",
142
167
"items": {
143
-
"$ref": "#/components/schemas/Ereport"
168
+
"$ref": "#/components/schemas/Entry"
144
169
}
145
170
},
146
171
"next_page": {
@@ -153,6 +178,33 @@
153
178
"items"
154
179
]
155
180
},
181
+
"Ereport": {
182
+
"description": "An error report.",
183
+
"type": "object",
184
+
"properties": {
185
+
"class": {
186
+
"description": "A string indicating the kind of ereport.\n\nThis may be used by diagnosis engines as an indication of what `facts` to expect.",
187
+
"type": "string"
188
+
},
189
+
"facts": {
190
+
"description": "The set of facts (key-value pairs) associated with this ereport.",
191
+
"type": "object",
192
+
"additionalProperties": {
193
+
"type": "string"
194
+
}
195
+
},
196
+
"time_created": {
197
+
"description": "The UTC timestamp when this ereport was observed, as determined by the reporter.",
198
+
"type": "string",
199
+
"format": "date-time"
200
+
}
201
+
},
202
+
"required": [
203
+
"class",
204
+
"facts",
205
+
"time_created"
206
+
]
207
+
},
156
208
"Error": {
157
209
"description": "Error information from a response.",
0 commit comments