你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ReportsOperationsExtensions.ListByTimeAsync 方法

定义

按时间列出报表记录。

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))

参数

operations
IReportsOperations

此扩展方法的操作组。

odataQuery
ODataQuery<ReportRecordContract>

要应用于操作的 OData 参数。

resourceGroupName
String

资源组的名称。

serviceName
String

API 管理服务的名称。

interval
TimeSpan

按时间间隔。 间隔必须是 15 分钟的倍数,不能为零。 该值应采用 ISO 8601 格式 (http://en.wikipedia.org/wiki/ISO_8601#Durations) 。此代码可用于将 TimeSpan 转换为有效的间隔字符串:XmlConvert.ToString (新的 TimeSpan (小时、分钟、秒) ) 。

cancellationToken
CancellationToken

取消标记。

返回

适用于