Skip to content

Commit

Permalink
NET0460 query the details endpoint to collect perf stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Shastick committed Aug 18, 2023
1 parent 2c3a704 commit d7861a9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion monitoring/uss_qualifier/resources/netrid/observers.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def observe_flight_details(
self, flight_id: str
) -> Tuple[Optional[observation_api.GetDetailsResponse], fetch.Query]:
query = fetch.query_and_describe(
self.session, "GET", f"/display_data/{flight_id}"
self.session, "GET", f"/display_data/{flight_id}", scope=self.rid_version.read_scope
)
try:
result = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,14 @@ def evaluate_system_instantaneously(
query,
verified_sps,
)
# We also issue queries to the flight details endpoint in order to collect
# performance statistics on the entirety of the tests
if query.status_code == 200:
for flight in observation.flights:
(details, detailQuery) = observer.observe_flight_details(
flight.id
)
self._test_scenario.record_query(detailQuery)

# TODO: If bounding rect is smaller than cluster threshold, expand slightly above cluster threshold and re-observe
# TODO: If bounding rect is smaller than area-too-large threshold, expand slightly above area-too-large threshold and re-observe
Expand Down

0 comments on commit d7861a9

Please sign in to comment.