ArmOperationalInsightsModelFactory.OperationalInsightsUsageMetric 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.
Initializes a new instance of OperationalInsightsUsageMetric.
public static Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsUsageMetric OperationalInsightsUsageMetric (Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsMetricName name = default, string unit = default, double? currentValue = default, double? limit = default, DateTimeOffset? nextResetOn = default, string quotaPeriod = default);
static member OperationalInsightsUsageMetric : Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsMetricName * string * Nullable<double> * Nullable<double> * Nullable<DateTimeOffset> * string -> Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsUsageMetric
Public Shared Function OperationalInsightsUsageMetric (Optional name As OperationalInsightsMetricName = Nothing, Optional unit As String = Nothing, Optional currentValue As Nullable(Of Double) = Nothing, Optional limit As Nullable(Of Double) = Nothing, Optional nextResetOn As Nullable(Of DateTimeOffset) = Nothing, Optional quotaPeriod As String = Nothing) As OperationalInsightsUsageMetric
Parameters
The name of the metric.
- unit
- String
The units used for the metric.
- nextResetOn
- Nullable<DateTimeOffset>
The time that the metric's value will reset.
- quotaPeriod
- String
The quota period that determines the length of time between value resets.
Returns
A new OperationalInsightsUsageMetric instance for mocking.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET