共用方式為


AlertIncidentsOperations 類別

警告

請勿直接具現化此類別。

相反地,您應該透過 存取下列作業

AuthorizationManagementClient's

<xref:alert_incidents> 屬性。

繼承
builtins.object
AlertIncidentsOperations

建構函式

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}' 。 必要。

alert_id
str
必要

警示的名稱。 必要。

alert_incident_id
str
必要

要取得的警示事件名稱。 必要。

cls
callable

將傳遞直接回應的自訂類型或函式

傳回

AlertIncident 或 cls (回應的結果)

傳回類型

例外狀況

list_for_scope

取得資源範圍的警示事件。

list_for_scope(scope: str, alert_id: str, **kwargs: Any) -> Iterable[AlertIncident]

參數

scope
str
必要

警示事件的範圍。 必要。

alert_id
str
必要

警示的名稱。 必要。

cls
callable

將傳遞直接回應的自訂類型或函式

傳回

反覆運算器,例如 AlertIncident 實例或 cls 的結果, (回應)

傳回類型

例外狀況

remediate

補救警示事件。

remediate(scope: str, alert_id: str, alert_incident_id: str, **kwargs: Any) -> None

參數

scope
str
必要

警示事件的範圍。 必要。

alert_id
str
必要

警示的名稱。 必要。

alert_incident_id
str
必要

要補救的警示事件名稱。 必要。

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'>