共用方式為


ArmMediaModelFactory.EdgeUsageDataCollectionPolicy Method

Definition

Initializes a new instance of EdgeUsageDataCollectionPolicy.

public static Azure.ResourceManager.Media.Models.EdgeUsageDataCollectionPolicy EdgeUsageDataCollectionPolicy (string dataCollectionFrequency = default, string dataReportingFrequency = default, TimeSpan? maxAllowedUnreportedUsageDuration = default, Azure.ResourceManager.Media.Models.EdgeUsageDataEventHub eventHubDetails = default);
static member EdgeUsageDataCollectionPolicy : string * string * Nullable<TimeSpan> * Azure.ResourceManager.Media.Models.EdgeUsageDataEventHub -> Azure.ResourceManager.Media.Models.EdgeUsageDataCollectionPolicy
Public Shared Function EdgeUsageDataCollectionPolicy (Optional dataCollectionFrequency As String = Nothing, Optional dataReportingFrequency As String = Nothing, Optional maxAllowedUnreportedUsageDuration As Nullable(Of TimeSpan) = Nothing, Optional eventHubDetails As EdgeUsageDataEventHub = Nothing) As EdgeUsageDataCollectionPolicy

Parameters

dataCollectionFrequency
String

Usage data collection frequency in ISO 8601 duration format e.g. PT10M , PT5H.

dataReportingFrequency
String

Usage data reporting frequency in ISO 8601 duration format e.g. PT10M , PT5H.

maxAllowedUnreportedUsageDuration
Nullable<TimeSpan>

Maximum time for which the functionality of the device will not be hampered for not reporting the usage data.

eventHubDetails
EdgeUsageDataEventHub

Details of Event Hub where the usage will be reported.

Returns

A new EdgeUsageDataCollectionPolicy instance for mocking.

Applies to