ArmCosmosDBModelFactory.CosmosDBPercentileMetric 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 CosmosDBPercentileMetric.
public static Azure.ResourceManager.CosmosDB.Models.CosmosDBPercentileMetric CosmosDBPercentileMetric (DateTimeOffset? startOn = default, DateTimeOffset? endOn = default, string timeGrain = default, Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricUnitType? unit = default, Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricName name = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.CosmosDB.Models.PercentileMetricValue> metricValues = default);
static member CosmosDBPercentileMetric : Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * Nullable<Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricUnitType> * Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricName * seq<Azure.ResourceManager.CosmosDB.Models.PercentileMetricValue> -> Azure.ResourceManager.CosmosDB.Models.CosmosDBPercentileMetric
Public Shared Function CosmosDBPercentileMetric (Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional endOn As Nullable(Of DateTimeOffset) = Nothing, Optional timeGrain As String = Nothing, Optional unit As Nullable(Of CosmosDBMetricUnitType) = Nothing, Optional name As CosmosDBMetricName = Nothing, Optional metricValues As IEnumerable(Of PercentileMetricValue) = Nothing) As CosmosDBPercentileMetric
Parameters
- startOn
- Nullable<DateTimeOffset>
The start time for the metric (ISO-8601 format).
- endOn
- Nullable<DateTimeOffset>
The end time for the metric (ISO-8601 format).
- timeGrain
- String
The time grain to be used to summarize the metric values.
The unit of the metric.
- name
- CosmosDBMetricName
The name information for the metric.
- metricValues
- IEnumerable<PercentileMetricValue>
The percentile metric values for the specified time window and timestep.
Returns
A new CosmosDBPercentileMetric instance for mocking.
Applies to
Azure SDK for .NET