MetricAlertResource.GetAllMetricAlertsStatusByName 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.
Retrieve an alert rule status.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}/status/{statusName}
- Operation Id: MetricAlertsStatus_ListByName
- Default Api Version: 2018-03-01
public virtual Azure.Pageable<Azure.ResourceManager.Monitor.Models.MetricAlertStatus> GetAllMetricAlertsStatusByName (string statusName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllMetricAlertsStatusByName : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Monitor.Models.MetricAlertStatus>
override this.GetAllMetricAlertsStatusByName : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Monitor.Models.MetricAlertStatus>
Public Overridable Function GetAllMetricAlertsStatusByName (statusName As String, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of MetricAlertStatus)
Parameters
- statusName
- String
The name of the status.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of MetricAlertStatus that may take multiple service requests to iterate over.
Exceptions
statusName
is an empty string, and was expected to be non-empty.
statusName
is null.
Applies to
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.
Azure SDK for .NET
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk