/// <summary> /// Get history of a monitor of a resource (with optional filter). /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// The subscriptionId of the resource /// </param> /// <param name='resourceGroupName'> /// The resourceGroupName of the resource /// </param> /// <param name='resourceNamespace'> /// The resourceNamespace of the resource /// </param> /// <param name='resourceType'> /// The resourceType of the resource /// </param> /// <param name='resourceName'> /// The resourceType of the resource /// </param> /// <param name='monitorId'> /// The monitorId of the resource (url encoded) /// </param> /// <param name='filter'> /// list example: $filter=monitorName eq 'logical-disks|C:|disk-free-space-mb'; /// history example: $filter=isHeartbeat eq false /// </param> /// <param name='expand'> /// ex: $expand=evidence,configuration /// </param> /// <param name='startTimestampUtc'> /// The start Timestamp for the desired history /// </param> /// <param name='endTimestampUtc'> /// The end Timestamp for the desired history /// </param> public static IPage <MonitorStateChange> ListStateChanges(this IMonitorsOperations operations, string subscriptionId, string resourceGroupName, string resourceNamespace, string resourceType, string resourceName, string monitorId, string filter = default(string), string expand = default(string), System.DateTime?startTimestampUtc = default(System.DateTime?), System.DateTime?endTimestampUtc = default(System.DateTime?)) { return(operations.ListStateChangesAsync(subscriptionId, resourceGroupName, resourceNamespace, resourceType, resourceName, monitorId, filter, expand, startTimestampUtc, endTimestampUtc).GetAwaiter().GetResult()); }