HealthMonitorsOperationsExtensions.ListStateChangesAsync 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.
Get the health state changes of a monitor of a virtual machine within the provided time window (default is the last 24 hours). Optional parameters: $expand (retrieve the monitor's evidence and configuration) and $filter (filter by heartbeat condition).
public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.WorkloadMonitor.Models.HealthMonitorStateChange>> ListStateChangesAsync (this Microsoft.Azure.Management.WorkloadMonitor.IHealthMonitorsOperations operations, string subscriptionId, string resourceGroupName, string providerName, string resourceCollectionName, string resourceName, string monitorId, string filter = default, string expand = default, DateTime? startTimestampUtc = default, DateTime? endTimestampUtc = default, System.Threading.CancellationToken cancellationToken = default);
static member ListStateChangesAsync : Microsoft.Azure.Management.WorkloadMonitor.IHealthMonitorsOperations * string * string * string * string * string * string * string * string * Nullable<DateTime> * Nullable<DateTime> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.WorkloadMonitor.Models.HealthMonitorStateChange>>
<Extension()>
Public Function ListStateChangesAsync (operations As IHealthMonitorsOperations, subscriptionId As String, resourceGroupName As String, providerName As String, resourceCollectionName As String, resourceName As String, monitorId As String, Optional filter As String = Nothing, Optional expand As String = Nothing, Optional startTimestampUtc As Nullable(Of DateTime) = Nothing, Optional endTimestampUtc As Nullable(Of DateTime) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of HealthMonitorStateChange))
Parameters
- operations
- IHealthMonitorsOperations
The operations group for this extension method.
- subscriptionId
- String
The subscription Id of the virtual machine.
- resourceGroupName
- String
The resource group of the virtual machine.
- providerName
- String
The provider name (ex: Microsoft.Compute for virtual machines).
- resourceCollectionName
- String
The resource collection name (ex: virtualMachines for virtual machines).
- resourceName
- String
The name of the virtual machine.
- monitorId
- String
The monitor Id of the virtual machine.
- filter
- String
Optionally filter by heartbeat condition. Example: $filter=isHeartbeat eq false.
- expand
- String
Optionally expand the monitor’s evidence and/or configuration. Example: $expand=evidence,configuration.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Applies to
Azure SDK for .NET