AlertIncidentsOperations 類別
- 繼承
-
builtins.objectAlertIncidentsOperations
建構函式
AlertIncidentsOperations(*args, **kwargs)
方法
get |
取得指定的警示事件。 |
list_for_scope |
取得資源範圍的警示事件。 |
remediate |
補救警示事件。 |
get
取得指定的警示事件。
get(scope: str, alert_id: str, alert_incident_id: str, **kwargs: Any) -> AlertIncident
參數
- scope
- str
必要
警示事件的範圍。 範圍可以是任何 REST 資源實例。 例如,針對訂用帳戶使用 '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' 資源群組的 '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}',以及資源群組的 '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-type}/{resource-type}/{resource-name}' 。 必要。
- cls
- callable
將傳遞直接回應的自訂類型或函式
傳回
AlertIncident 或 cls (回應的結果)
傳回類型
例外狀況
list_for_scope
取得資源範圍的警示事件。
list_for_scope(scope: str, alert_id: str, **kwargs: Any) -> Iterable[AlertIncident]
參數
- cls
- callable
將傳遞直接回應的自訂類型或函式
傳回
反覆運算器,例如 AlertIncident 實例或 cls 的結果, (回應)
傳回類型
例外狀況
remediate
補救警示事件。
remediate(scope: str, alert_id: str, alert_incident_id: str, **kwargs: Any) -> None
參數
- cls
- callable
將傳遞直接回應的自訂類型或函式
傳回
無或 cls (回應的結果)
傳回類型
例外狀況
屬性
models
models = <module 'azure.mgmt.authorization.v2022_08_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.7\\x64\\Lib\\site-packages\\azure\\mgmt\\authorization\\v2022_08_01_preview\\models\\__init__.py'>
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應