Partilhar via


Alerts interface

Interface que representa um Alertas.

Métodos

beginRefresh(string, string, AlertsRefreshOptionalParams)

Atualize um alerta.

beginRefreshAll(string, AlertsRefreshAllOptionalParams)

Atualize todos os alertas para um escopo de recurso.

beginRefreshAllAndWait(string, AlertsRefreshAllOptionalParams)

Atualize todos os alertas para um escopo de recurso.

beginRefreshAndWait(string, string, AlertsRefreshOptionalParams)

Atualize um alerta.

get(string, string, AlertsGetOptionalParams)

Obtenha o alerta especificado.

listForScope(string, AlertsListForScopeOptionalParams)

Obtém alertas para um escopo de recurso.

update(string, string, Alert, AlertsUpdateOptionalParams)

Atualize um alerta.

Detalhes de Método

beginRefresh(string, string, AlertsRefreshOptionalParams)

Atualize um alerta.

function beginRefresh(scope: string, alertId: string, options?: AlertsRefreshOptionalParams): Promise<SimplePollerLike<OperationState<AlertsRefreshResponse>, AlertsRefreshResponse>>

Parâmetros

scope

string

O âmbito do alerta.

alertId

string

O nome do alerta a ser atualizado.

options
AlertsRefreshOptionalParams

Os parâmetros de opções.

Devoluções

Promise<@azure/core-lro.SimplePollerLike<OperationState<AlertsRefreshResponse>, AlertsRefreshResponse>>

beginRefreshAll(string, AlertsRefreshAllOptionalParams)

Atualize todos os alertas para um escopo de recurso.

function beginRefreshAll(scope: string, options?: AlertsRefreshAllOptionalParams): Promise<SimplePollerLike<OperationState<AlertsRefreshAllResponse>, AlertsRefreshAllResponse>>

Parâmetros

scope

string

O âmbito do alerta.

options
AlertsRefreshAllOptionalParams

Os parâmetros de opções.

Devoluções

Promise<@azure/core-lro.SimplePollerLike<OperationState<AlertsRefreshAllResponse>, AlertsRefreshAllResponse>>

beginRefreshAllAndWait(string, AlertsRefreshAllOptionalParams)

Atualize todos os alertas para um escopo de recurso.

function beginRefreshAllAndWait(scope: string, options?: AlertsRefreshAllOptionalParams): Promise<AlertsRefreshAllResponse>

Parâmetros

scope

string

O âmbito do alerta.

options
AlertsRefreshAllOptionalParams

Os parâmetros de opções.

Devoluções

beginRefreshAndWait(string, string, AlertsRefreshOptionalParams)

Atualize um alerta.

function beginRefreshAndWait(scope: string, alertId: string, options?: AlertsRefreshOptionalParams): Promise<AlertsRefreshResponse>

Parâmetros

scope

string

O âmbito do alerta.

alertId

string

O nome do alerta a ser atualizado.

options
AlertsRefreshOptionalParams

Os parâmetros de opções.

Devoluções

get(string, string, AlertsGetOptionalParams)

Obtenha o alerta especificado.

function get(scope: string, alertId: string, options?: AlertsGetOptionalParams): Promise<Alert>

Parâmetros

scope

string

O âmbito do alerta. O escopo pode ser qualquer instância de recurso REST. Por exemplo, use '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' para uma assinatura, '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' para um grupo de recursos e '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' para um recurso.

alertId

string

O nome do alerta a ser obtido.

options
AlertsGetOptionalParams

Os parâmetros de opções.

Devoluções

Promise<Alert>

listForScope(string, AlertsListForScopeOptionalParams)

Obtém alertas para um escopo de recurso.

function listForScope(scope: string, options?: AlertsListForScopeOptionalParams): PagedAsyncIterableIterator<Alert, Alert[], PageSettings>

Parâmetros

scope

string

O âmbito do alerta.

options
AlertsListForScopeOptionalParams

Os parâmetros de opções.

Devoluções

update(string, string, Alert, AlertsUpdateOptionalParams)

Atualize um alerta.

function update(scope: string, alertId: string, parameters: Alert, options?: AlertsUpdateOptionalParams): Promise<void>

Parâmetros

scope

string

O âmbito do alerta.

alertId

string

O nome do alerta a ser descartado.

parameters
Alert

Parâmetros para o alerta.

options
AlertsUpdateOptionalParams

Os parâmetros de opções.

Devoluções

Promise<void>