Skip to content

Commit 59dd5b5

Browse files
committed
feat(rrm): add optional AP MAC address parameter to getSiteChannelScores
1 parent 984322d commit 59dd5b5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • src/mistapi/api/v1/sites

‎src/mistapi/api/v1/sites/rrm.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def getSiteChannelScores(
1818
mist_session: _APISession,
1919
site_id: str,
2020
band: str,
21+
ap: str | None = None,
2122
start: str | None = None,
2223
end: str | None = None,
2324
) -> _APIResponse:
@@ -37,6 +38,8 @@ def getSiteChannelScores(
3738
3839
QUERY PARAMS
3940
------------
41+
ap : str
42+
AP MAC address. When supplied, returns per-AP channel scores instead of site-wide scores.
4043
start : str
4144
Lower bound of the time range, as an epoch timestamp in seconds or a relative value such as `-1d` or `-1w`
4245
end : str
@@ -50,6 +53,8 @@ def getSiteChannelScores(
5053

5154
uri = f"/api/v1/sites/{site_id}/rrm/channel_scores/band/{band}"
5255
query_params: dict[str, str] = {}
56+
if ap:
57+
query_params["ap"] = str(ap)
5358
if start:
5459
query_params["start"] = str(start)
5560
if end:

0 commit comments

Comments
 (0)