Sdílet prostřednictvím


MonitorQueryModelFactory.MetricResultsResponseValuesItem Method

Definition

Initializes a new instance of MetricResultsResponseValuesItem.

public static Azure.Monitor.Query.Models.MetricResultsResponseValuesItem MetricResultsResponseValuesItem (DateTimeOffset startTime = default, DateTimeOffset endTime = default, TimeSpan? interval = default, string namespace = default, string resourceRegion = default, Azure.Core.ResourceIdentifier resourceId = default, System.Collections.Generic.IEnumerable<Azure.Monitor.Query.Models.MetricResult> value = default);
static member MetricResultsResponseValuesItem : DateTimeOffset * DateTimeOffset * Nullable<TimeSpan> * string * string * Azure.Core.ResourceIdentifier * seq<Azure.Monitor.Query.Models.MetricResult> -> Azure.Monitor.Query.Models.MetricResultsResponseValuesItem
Public Shared Function MetricResultsResponseValuesItem (Optional startTime As DateTimeOffset = Nothing, Optional endTime As DateTimeOffset = Nothing, Optional interval As Nullable(Of TimeSpan) = Nothing, Optional namespace As String = Nothing, Optional resourceRegion As String = Nothing, Optional resourceId As ResourceIdentifier = Nothing, Optional value As IEnumerable(Of MetricResult) = Nothing) As MetricResultsResponseValuesItem

Parameters

startTime
DateTimeOffset

The start time, in datetime format, for which the data was retrieved.

endTime
DateTimeOffset

The end time, in datetime format, for which the data was retrieved.

interval
Nullable<TimeSpan>

The interval (window size) for which the metric data was returned in. Follows the IS8601/RFC3339 duration format (e.g. 'P1D' for 1 day). 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 been queried.

resourceRegion
String

The region of the resource been queried for metrics.

resourceId
ResourceIdentifier

The resource that has been queried for metrics.

value
IEnumerable<MetricResult>

The value of the collection.

Returns

A new MetricResultsResponseValuesItem instance for mocking.

Applies to