Share via


MonitorQueryModelFactory.MetricsQueryResult Method

Definition

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

cost
Nullable<Int32>

The integer value representing the relative cost of the query.

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.

granularity
Nullable<TimeSpan>

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