你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Alerts interface
表示警报的接口。
方法
方法详细信息
getResourceGroupLevel(string, string, string, AlertsGetResourceGroupLevelOptionalParams)
获取与资源组或资源组中的资源关联的警报
function getResourceGroupLevel(ascLocation: string, alertName: string, resourceGroupName: string, options?: AlertsGetResourceGroupLevelOptionalParams): Promise<Alert>
参数
- ascLocation
-
string
ASC 存储订阅数据的位置。 可以从 Get 位置检索
- alertName
-
string
警报对象的名称
- resourceGroupName
-
string
用户订阅中的资源组的名称。 名称不区分大小写。
选项参数。
返回
Promise<Alert>
getSubscriptionLevel(string, string, AlertsGetSubscriptionLevelOptionalParams)
获取与订阅关联的警报
function getSubscriptionLevel(ascLocation: string, alertName: string, options?: AlertsGetSubscriptionLevelOptionalParams): Promise<Alert>
参数
- ascLocation
-
string
ASC 存储订阅数据的位置。 可以从 Get 位置检索
- alertName
-
string
警报对象的名称
选项参数。
返回
Promise<Alert>
list(AlertsListOptionalParams)
列出与订阅关联的所有警报
function list(options?: AlertsListOptionalParams): PagedAsyncIterableIterator<Alert, Alert[], PageSettings>
参数
- options
- AlertsListOptionalParams
选项参数。
返回
listByResourceGroup(string, AlertsListByResourceGroupOptionalParams)
列出与资源组关联的所有警报
function listByResourceGroup(resourceGroupName: string, options?: AlertsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Alert, Alert[], PageSettings>
参数
- resourceGroupName
-
string
用户订阅中的资源组的名称。 名称不区分大小写。
选项参数。
返回
listResourceGroupLevelByRegion(string, string, AlertsListResourceGroupLevelByRegionOptionalParams)
列出与存储在特定位置的资源组关联的所有警报
function listResourceGroupLevelByRegion(ascLocation: string, resourceGroupName: string, options?: AlertsListResourceGroupLevelByRegionOptionalParams): PagedAsyncIterableIterator<Alert, Alert[], PageSettings>
参数
- ascLocation
-
string
ASC 存储订阅数据的位置。 可以从 Get 位置检索
- resourceGroupName
-
string
用户订阅中的资源组的名称。 名称不区分大小写。
选项参数。
返回
listSubscriptionLevelByRegion(string, AlertsListSubscriptionLevelByRegionOptionalParams)
列出与存储在特定位置的订阅关联的所有警报
function listSubscriptionLevelByRegion(ascLocation: string, options?: AlertsListSubscriptionLevelByRegionOptionalParams): PagedAsyncIterableIterator<Alert, Alert[], PageSettings>
参数
- ascLocation
-
string
ASC 存储订阅数据的位置。 可以从 Get 位置检索
选项参数。
返回
simulate(string, AlertSimulatorRequestBody, AlertsSimulateOptionalParams)
模拟安全警报
function simulate(ascLocation: string, alertSimulatorRequestBody: AlertSimulatorRequestBody, options?: AlertsSimulateOptionalParams): Promise<void>
参数
- ascLocation
-
string
ASC 存储订阅数据的位置。 可以从 Get 位置检索
- alertSimulatorRequestBody
- AlertSimulatorRequestBody
警报模拟器请求属性
- options
- AlertsSimulateOptionalParams
选项参数。
返回
Promise<void>
updateResourceGroupLevelStateToActivate(string, string, string, AlertsUpdateResourceGroupLevelStateToActivateOptionalParams)
更新警报的状态
function updateResourceGroupLevelStateToActivate(ascLocation: string, alertName: string, resourceGroupName: string, options?: AlertsUpdateResourceGroupLevelStateToActivateOptionalParams): Promise<void>
参数
- ascLocation
-
string
ASC 存储订阅数据的位置。 可以从 Get 位置检索
- alertName
-
string
警报对象的名称
- resourceGroupName
-
string
用户订阅中的资源组的名称。 名称不区分大小写。
返回
Promise<void>
updateResourceGroupLevelStateToDismiss(string, string, string, AlertsUpdateResourceGroupLevelStateToDismissOptionalParams)
更新警报的状态
function updateResourceGroupLevelStateToDismiss(ascLocation: string, alertName: string, resourceGroupName: string, options?: AlertsUpdateResourceGroupLevelStateToDismissOptionalParams): Promise<void>
参数
- ascLocation
-
string
ASC 存储订阅数据的位置。 可以从 Get 位置检索
- alertName
-
string
警报对象的名称
- resourceGroupName
-
string
用户订阅中的资源组的名称。 名称不区分大小写。
返回
Promise<void>
updateResourceGroupLevelStateToResolve(string, string, string, AlertsUpdateResourceGroupLevelStateToResolveOptionalParams)
更新警报的状态
function updateResourceGroupLevelStateToResolve(ascLocation: string, alertName: string, resourceGroupName: string, options?: AlertsUpdateResourceGroupLevelStateToResolveOptionalParams): Promise<void>
参数
- ascLocation
-
string
ASC 存储订阅数据的位置。 可以从 Get 位置检索
- alertName
-
string
警报对象的名称
- resourceGroupName
-
string
用户订阅中的资源组的名称。 名称不区分大小写。
返回
Promise<void>
updateSubscriptionLevelStateToActivate(string, string, AlertsUpdateSubscriptionLevelStateToActivateOptionalParams)
更新警报的状态
function updateSubscriptionLevelStateToActivate(ascLocation: string, alertName: string, options?: AlertsUpdateSubscriptionLevelStateToActivateOptionalParams): Promise<void>
参数
- ascLocation
-
string
ASC 存储订阅数据的位置。 可以从 Get 位置检索
- alertName
-
string
警报对象的名称
返回
Promise<void>
updateSubscriptionLevelStateToDismiss(string, string, AlertsUpdateSubscriptionLevelStateToDismissOptionalParams)
更新警报的状态
function updateSubscriptionLevelStateToDismiss(ascLocation: string, alertName: string, options?: AlertsUpdateSubscriptionLevelStateToDismissOptionalParams): Promise<void>
参数
- ascLocation
-
string
ASC 存储订阅数据的位置。 可以从 Get 位置检索
- alertName
-
string
警报对象的名称
返回
Promise<void>
updateSubscriptionLevelStateToResolve(string, string, AlertsUpdateSubscriptionLevelStateToResolveOptionalParams)
更新警报的状态
function updateSubscriptionLevelStateToResolve(ascLocation: string, alertName: string, options?: AlertsUpdateSubscriptionLevelStateToResolveOptionalParams): Promise<void>
参数
- ascLocation
-
string
ASC 存储订阅数据的位置。 可以从 Get 位置检索
- alertName
-
string
警报对象的名称
返回
Promise<void>