MetricsAdvisorClient.GetAlerts 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.
Gets a collection of items describing the alerts triggered by a given AnomalyAlertConfiguration.
public virtual Azure.Pageable<Azure.AI.MetricsAdvisor.Models.AnomalyAlert> GetAlerts (string alertConfigurationId, Azure.AI.MetricsAdvisor.GetAlertsOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAlerts : string * Azure.AI.MetricsAdvisor.GetAlertsOptions * System.Threading.CancellationToken -> Azure.Pageable<Azure.AI.MetricsAdvisor.Models.AnomalyAlert>
override this.GetAlerts : string * Azure.AI.MetricsAdvisor.GetAlertsOptions * System.Threading.CancellationToken -> Azure.Pageable<Azure.AI.MetricsAdvisor.Models.AnomalyAlert>
Public Overridable Function GetAlerts (alertConfigurationId As String, options As GetAlertsOptions, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of AnomalyAlert)
Parameters
- alertConfigurationId
- String
The unique identifier of the AnomalyAlertConfiguration.
- options
- GetAlertsOptions
The set of options used to configure the request's behavior.
- cancellationToken
- CancellationToken
A CancellationToken controlling the request lifetime.
Returns
A Pageable<T> containing the collection of AnomalyAlerts.
Exceptions
alertConfigurationId
or options
is null.
alertConfigurationId
is empty or not a valid GUID.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for .NET