|
68 | 68 | } |
69 | 69 | } |
70 | 70 | }, |
| 71 | + "edgeIdentity": { |
| 72 | + "type": "object", |
| 73 | + "properties": { |
| 74 | + "protocol": { "type": "string" }, |
| 75 | + "operation": { "type": "string" }, |
| 76 | + "route": { "type": "string" }, |
| 77 | + "topic": { "type": "string" }, |
| 78 | + "span_kind": { "type": "string" } |
| 79 | + } |
| 80 | + }, |
| 81 | + "reliabilityEvidence": { |
| 82 | + "type": "object", |
| 83 | + "required": ["live_probability"], |
| 84 | + "properties": { |
| 85 | + "live_probability": { "type": "number", "minimum": 0, "maximum": 1 }, |
| 86 | + "source": { "type": "string" }, |
| 87 | + "confidence": { "type": "number", "minimum": 0, "maximum": 1 } |
| 88 | + } |
| 89 | + }, |
71 | 90 | "placement": { |
72 | 91 | "type": "object", |
73 | 92 | "required": ["replicas"], |
|
76 | 95 | "labels": { |
77 | 96 | "type": "object", |
78 | 97 | "additionalProperties": { "type": "string" } |
79 | | - } |
| 98 | + }, |
| 99 | + "reliability": { "$ref": "#/$defs/reliabilityEvidence" } |
80 | 100 | } |
81 | 101 | }, |
82 | 102 | "serviceMetadata": { |
|
85 | 105 | { |
86 | 106 | "type": "object", |
87 | 107 | "properties": { |
| 108 | + "reliability": { "$ref": "#/$defs/reliabilityEvidence" }, |
88 | 109 | "failure_eligible": { "type": "boolean" }, |
89 | 110 | "placements": { |
90 | 111 | "type": "array", |
|
104 | 125 | { |
105 | 126 | "type": "object", |
106 | 127 | "properties": { |
107 | | - "weight": { "type": "number", "minimum": 0 } |
| 128 | + "weight": { "type": "number", "minimum": 0 }, |
| 129 | + "reliability": { "$ref": "#/$defs/reliabilityEvidence" } |
108 | 130 | } |
109 | 131 | } |
110 | 132 | ] |
111 | 133 | }, |
| 134 | + "endpointSemantics": { |
| 135 | + "type": "object", |
| 136 | + "properties": { |
| 137 | + "predicate_mode": { |
| 138 | + "type": "string", |
| 139 | + "enum": ["immediate_response", "eventual_completion", "external_predicate"] |
| 140 | + }, |
| 141 | + "mandatory_targets": { |
| 142 | + "type": "array", |
| 143 | + "items": { "type": "string" }, |
| 144 | + "uniqueItems": true |
| 145 | + }, |
| 146 | + "dependency_modes": { |
| 147 | + "type": "array", |
| 148 | + "items": { |
| 149 | + "type": "string", |
| 150 | + "enum": ["sync", "async"] |
| 151 | + }, |
| 152 | + "uniqueItems": true |
| 153 | + }, |
| 154 | + "source": { "type": "string" }, |
| 155 | + "confidence": { "type": "number", "minimum": 0, "maximum": 1 } |
| 156 | + } |
| 157 | + }, |
112 | 158 | "endpointMetadata": { |
113 | 159 | "allOf": [ |
114 | 160 | { "$ref": "#/$defs/commonMetadata" }, |
115 | 161 | { |
116 | 162 | "type": "object", |
117 | 163 | "properties": { |
118 | | - "weight": { "type": "number", "minimum": 0 } |
| 164 | + "weight": { "type": "number", "minimum": 0 }, |
| 165 | + "semantics": { "$ref": "#/$defs/endpointSemantics" } |
119 | 166 | } |
120 | 167 | } |
121 | 168 | ] |
|
209 | 256 | "enum": ["sync", "async"] |
210 | 257 | }, |
211 | 258 | "blocking": { "type": "boolean" }, |
| 259 | + "identity": { "$ref": "#/$defs/edgeIdentity" }, |
212 | 260 | "metadata": { "$ref": "#/$defs/edgeMetadata" }, |
213 | 261 | "resilience": { "$ref": "#/$defs/resiliencePolicy" }, |
214 | 262 | "observed": { "$ref": "#/$defs/observedEdge" }, |
|
0 commit comments