Skip to content

Commit

Permalink
Add optional extra keys
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Nov 22, 2023
1 parent 8ba7f83 commit 5dd30c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions oonidata/fastapi/routers/aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ class AggregationEntry(BaseModel):
# loni_ok_map: Dict[str, float]
loni_ok_value: float

domain: Optional[str] = None
probe_cc: Optional[str] = None
probe_asn: Optional[int] = None
test_name: Optional[str] = None


class AggregationResponse(BaseModel):
# TODO(arturo): these keys are inconsistent with the other APIs
Expand Down

0 comments on commit 5dd30c4

Please sign in to comment.