|
211 | 211 | } |
212 | 212 | } |
213 | 213 | }, |
| 214 | + "edgeIdentity": { |
| 215 | + "type": "object", |
| 216 | + "properties": { |
| 217 | + "protocol": { "type": "string" }, |
| 218 | + "operation": { "type": "string" }, |
| 219 | + "route": { "type": "string" }, |
| 220 | + "topic": { "type": "string" }, |
| 221 | + "span_kind": { "type": "string" } |
| 222 | + } |
| 223 | + }, |
| 224 | + "reliabilityEvidence": { |
| 225 | + "type": "object", |
| 226 | + "required": ["live_probability"], |
| 227 | + "properties": { |
| 228 | + "live_probability": { "type": "number", "minimum": 0, "maximum": 1 }, |
| 229 | + "source": { "type": "string" }, |
| 230 | + "confidence": { "type": "number", "minimum": 0, "maximum": 1 } |
| 231 | + } |
| 232 | + }, |
214 | 233 | "discoveryCommonMetadata": { |
215 | 234 | "allOf": [ |
216 | 235 | { "$ref": "#/$defs/commonMetadata" }, |
|
233 | 252 | "labels": { |
234 | 253 | "type": "object", |
235 | 254 | "additionalProperties": { "type": "string" } |
236 | | - } |
| 255 | + }, |
| 256 | + "reliability": { "$ref": "#/$defs/reliabilityEvidence" } |
237 | 257 | } |
238 | 258 | }, |
239 | 259 | "serviceMetadata": { |
|
242 | 262 | { |
243 | 263 | "type": "object", |
244 | 264 | "properties": { |
| 265 | + "reliability": { "$ref": "#/$defs/reliabilityEvidence" }, |
245 | 266 | "failure_eligible": { "type": "boolean" }, |
246 | 267 | "placements": { |
247 | 268 | "type": "array", |
|
261 | 282 | { |
262 | 283 | "type": "object", |
263 | 284 | "properties": { |
| 285 | + "reliability": { "$ref": "#/$defs/reliabilityEvidence" }, |
264 | 286 | "failure_eligible": { "type": "boolean" }, |
265 | 287 | "replicas_override": { "type": "integer", "minimum": 0 }, |
266 | 288 | "placements": { |
|
281 | 303 | { |
282 | 304 | "type": "object", |
283 | 305 | "properties": { |
284 | | - "weight": { "type": "number", "minimum": 0 } |
| 306 | + "weight": { "type": "number", "minimum": 0 }, |
| 307 | + "reliability": { "$ref": "#/$defs/reliabilityEvidence" } |
285 | 308 | } |
286 | 309 | } |
287 | 310 | ] |
|
292 | 315 | { |
293 | 316 | "type": "object", |
294 | 317 | "properties": { |
295 | | - "weight": { "type": "number", "minimum": 0 } |
| 318 | + "weight": { "type": "number", "minimum": 0 }, |
| 319 | + "reliability": { "$ref": "#/$defs/reliabilityEvidence" } |
296 | 320 | } |
297 | 321 | } |
298 | 322 | ] |
299 | 323 | }, |
| 324 | + "endpointSemantics": { |
| 325 | + "type": "object", |
| 326 | + "properties": { |
| 327 | + "predicate_mode": { |
| 328 | + "type": "string", |
| 329 | + "enum": ["immediate_response", "eventual_completion", "external_predicate"] |
| 330 | + }, |
| 331 | + "mandatory_targets": { |
| 332 | + "type": "array", |
| 333 | + "items": { "type": "string" }, |
| 334 | + "uniqueItems": true |
| 335 | + }, |
| 336 | + "dependency_modes": { |
| 337 | + "type": "array", |
| 338 | + "items": { |
| 339 | + "type": "string", |
| 340 | + "enum": ["sync", "async"] |
| 341 | + }, |
| 342 | + "uniqueItems": true |
| 343 | + }, |
| 344 | + "source": { "type": "string" }, |
| 345 | + "confidence": { "type": "number", "minimum": 0, "maximum": 1 } |
| 346 | + } |
| 347 | + }, |
300 | 348 | "endpointMetadata": { |
301 | 349 | "allOf": [ |
302 | 350 | { "$ref": "#/$defs/commonMetadata" }, |
303 | 351 | { |
304 | 352 | "type": "object", |
305 | 353 | "properties": { |
306 | | - "weight": { "type": "number", "minimum": 0 } |
| 354 | + "weight": { "type": "number", "minimum": 0 }, |
| 355 | + "semantics": { "$ref": "#/$defs/endpointSemantics" } |
307 | 356 | } |
308 | 357 | } |
309 | 358 | ] |
|
315 | 364 | "type": "object", |
316 | 365 | "properties": { |
317 | 366 | "weight": { "type": "number", "minimum": 0 }, |
| 367 | + "semantics": { "$ref": "#/$defs/endpointSemantics" }, |
318 | 368 | "predicate_ref": { "type": "string" } |
319 | 369 | } |
320 | 370 | } |
|
413 | 463 | "to": { "type": "string" }, |
414 | 464 | "kind": { "type": "string", "enum": ["sync", "async"] }, |
415 | 465 | "blocking": { "type": "boolean" }, |
| 466 | + "identity": { "$ref": "#/$defs/edgeIdentity" }, |
416 | 467 | "support": { "$ref": "#/$defs/support" }, |
417 | 468 | "first_seen": { "type": "string", "format": "date-time" }, |
418 | 469 | "last_seen": { "type": "string", "format": "date-time" }, |
|
463 | 514 | "to": { "type": "string" }, |
464 | 515 | "kind": { "type": "string", "enum": ["sync", "async"] }, |
465 | 516 | "blocking": { "type": "boolean" }, |
| 517 | + "identity": { "$ref": "#/$defs/edgeIdentity" }, |
466 | 518 | "metadata": { "$ref": "#/$defs/edgeMetadata" }, |
467 | 519 | "resilience": { "$ref": "#/$defs/resiliencePolicy" }, |
468 | 520 | "observed": { "$ref": "#/$defs/observedEdge" }, |
|
0 commit comments