Skip to content

Commit

Permalink
Update sentinel_analytics.py list_alert_rules API version (#592)
Browse files Browse the repository at this point in the history
* Update sentinel_analytics.py list_alert_rules API version

Suggest moving to api_version 2022-11-01-preview (counting on no breaking changes?) for listing alert rules (list_alert_rules) as the current one does not return NRT rules.

* Updating API to release version

Co-authored-by: Ian Hellen <ianhelle@microsoft.com>
Co-authored-by: Pete Bryan <peter.bryan@microsoft.com>
  • Loading branch information
3 people committed Jan 25, 2023
1 parent 5ae9c93 commit 4dd0ed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msticpy/context/azure/sentinel_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def list_alert_rules(self) -> pd.DataFrame:
"""
return self._list_items( # type: ignore
item_type="alert_rules", api_version="2021-10-01"
item_type="alert_rules", api_version="2022-11-01"
)

def _get_template_id(
Expand Down

0 comments on commit 4dd0ed7

Please sign in to comment.