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

ReportsOperationsExtensions.ListByTime 方法

定义

按时间列出报表记录。

public static Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ApiManagement.Models.ReportRecordContract> ListByTime(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);
static member ListByTime : Microsoft.Azure.Management.ApiManagement.IReportsOperations * Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.ApiManagement.Models.ReportRecordContract> * string * string * TimeSpan -> Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.ApiManagement.Models.ReportRecordContract>
<Extension()>
Public Function ListByTime (operations As IReportsOperations, odataQuery As ODataQuery(Of ReportRecordContract), resourceGroupName As String, serviceName As String, interval As TimeSpan) As 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 (小时、分钟、秒) ) 。

返回

适用于