ReportsOperationsExtensions.ListByTimeAsync 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.
Lists report records by Time.
public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ApiManagement.Models.ReportRecordContract>> ListByTimeAsync (this Microsoft.Azure.Management.ApiManagement.IReportsOperations operations, Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.ApiManagement.Models.ReportRecordContract> odataQuery, string resourceGroupName, string serviceName, TimeSpan interval, System.Threading.CancellationToken cancellationToken = default);
static member ListByTimeAsync : Microsoft.Azure.Management.ApiManagement.IReportsOperations * Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.ApiManagement.Models.ReportRecordContract> * string * string * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ApiManagement.Models.ReportRecordContract>>
<Extension()>
Public Function ListByTimeAsync (operations As IReportsOperations, odataQuery As ODataQuery(Of ReportRecordContract), resourceGroupName As String, serviceName As String, interval As TimeSpan, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of ReportRecordContract))
Parameters
- operations
- IReportsOperations
The operations group for this extension method.
- odataQuery
- ODataQuery<ReportRecordContract>
OData parameters to apply to the operation.
- resourceGroupName
- String
The name of the resource group.
- serviceName
- String
The name of the API Management service.
- interval
- TimeSpan
By time interval. Interval must be multiple of 15 minutes and may not be zero. The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to convert TimeSpan to a valid interval string: XmlConvert.ToString(new TimeSpan(hours, minutes, seconds)).
- cancellationToken
- CancellationToken
The cancellation token.