MonitorIssueResource.GetAlertsAsync 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.
List all alerts in the issue - this method uses pagination to return all alerts
- Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/accounts/{azureMonitorWorkspaceName}/issues/{issueName}/listAlerts.
- Operation Id. : Issue_ListAlerts.
- Default Api Version. : 2025-10-03.
- Resource. : MonitorIssueResource.
public virtual Azure.AsyncPageable<Azure.ResourceManager.Monitor.Workspaces.Models.IssueRelatedAlertInfo> GetAlertsAsync(Azure.ResourceManager.Monitor.Workspaces.Models.IssueListContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAlertsAsync : Azure.ResourceManager.Monitor.Workspaces.Models.IssueListContent * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Monitor.Workspaces.Models.IssueRelatedAlertInfo>
override this.GetAlertsAsync : Azure.ResourceManager.Monitor.Workspaces.Models.IssueListContent * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Monitor.Workspaces.Models.IssueRelatedAlertInfo>
Public Overridable Function GetAlertsAsync (content As IssueListContent, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of IssueRelatedAlertInfo)
Parameters
- content
- IssueListContent
The content of the action request.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of IssueRelatedAlertInfo that may take multiple service requests to iterate over.
Exceptions
content is null.