MetricsAdvisorClient.GetIncidentsForAlertAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Given an alert, gets the incidents associated with the anomalies that triggered it. The associated AnomalyAlertConfiguration must also be specified.
public virtual Azure.AsyncPageable<Azure.AI.MetricsAdvisor.Models.AnomalyIncident> GetIncidentsForAlertAsync (string alertConfigurationId, string alertId, Azure.AI.MetricsAdvisor.GetIncidentsForAlertOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIncidentsForAlertAsync : string * string * Azure.AI.MetricsAdvisor.GetIncidentsForAlertOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.AI.MetricsAdvisor.Models.AnomalyIncident>
override this.GetIncidentsForAlertAsync : string * string * Azure.AI.MetricsAdvisor.GetIncidentsForAlertOptions * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.AI.MetricsAdvisor.Models.AnomalyIncident>
Public Overridable Function GetIncidentsForAlertAsync (alertConfigurationId As String, alertId As String, Optional options As GetIncidentsForAlertOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of AnomalyIncident)
Parameters
- alertConfigurationId
- String
The unique identifier of the AnomalyAlertConfiguration.
- alertId
- String
The unique identifier of the alert.
- options
- GetIncidentsForAlertOptions
An optional set of options used to configure the request's behavior.
- cancellationToken
- CancellationToken
A CancellationToken controlling the request lifetime.
Returns
An AsyncPageable<T> containing the collection of AnomalyIncidents.
Exceptions
alertConfigurationId
or alertId
is null.
alertConfigurationId
or alertId
is empty; or alertConfigurationId
is not a valid GUID.