MonitorQueryModelFactory.MetricsQueryResult 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.
Creates an instance of MetricsQueryResult(Nullable<Int32>, String, Nullable<TimeSpan>, String, String, IReadOnlyList<MetricResult>) to support mocking.
public static Azure.Monitor.Query.Models.MetricsQueryResult MetricsQueryResult (int? cost, string timespan, TimeSpan? granularity, string namespace, string resourceRegion, System.Collections.Generic.IReadOnlyList<Azure.Monitor.Query.Models.MetricResult> metrics);
static member MetricsQueryResult : Nullable<int> * string * Nullable<TimeSpan> * string * string * System.Collections.Generic.IReadOnlyList<Azure.Monitor.Query.Models.MetricResult> -> Azure.Monitor.Query.Models.MetricsQueryResult
Public Shared Function MetricsQueryResult (cost As Nullable(Of Integer), timespan As String, granularity As Nullable(Of TimeSpan), namespace As String, resourceRegion As String, metrics As IReadOnlyList(Of MetricResult)) As MetricsQueryResult
Parameters
- timespan
- String
The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested.
The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made.
- namespace
- String
The namespace of the metrics being queried.
- resourceRegion
- String
The region of the resource being queried for metrics.
- metrics
- IReadOnlyList<MetricResult>
The value of the collection.
Returns
Applies to
Azure SDK for .NET