Share via


SubscriptionResourceGetMonitorMetricsWithPostContent Class

Definition

Query parameters can also be specified in the body, specifying the same parameter in both the body and query parameters will result in an error.

public class SubscriptionResourceGetMonitorMetricsWithPostContent : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Monitor.Models.SubscriptionResourceGetMonitorMetricsWithPostContent>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Monitor.Models.SubscriptionResourceGetMonitorMetricsWithPostContent>
type SubscriptionResourceGetMonitorMetricsWithPostContent = class
    interface IJsonModel<SubscriptionResourceGetMonitorMetricsWithPostContent>
    interface IPersistableModel<SubscriptionResourceGetMonitorMetricsWithPostContent>
Public Class SubscriptionResourceGetMonitorMetricsWithPostContent
Implements IJsonModel(Of SubscriptionResourceGetMonitorMetricsWithPostContent), IPersistableModel(Of SubscriptionResourceGetMonitorMetricsWithPostContent)
Inheritance
SubscriptionResourceGetMonitorMetricsWithPostContent
Implements

Constructors

SubscriptionResourceGetMonitorMetricsWithPostContent()

Initializes a new instance of SubscriptionResourceGetMonitorMetricsWithPostContent.

Properties

Aggregation

The list of aggregation types (comma separated) to retrieve.

AutoAdjustTimegrain

When set to true, if the timespan passed in is not supported by this metric, the API will return the result using the closest supported timespan. When set to false, an error is returned for invalid timespan parameters. Defaults to false.

Filter

The $filter is used to reduce the set of metric data returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series of C where A = a1 and B = b1 or b2<br>$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’<br>- Invalid variant:<br>$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’<br>This is invalid because the logical or operator cannot separate two different metadata names.<br>- Return all time series where A = a1, B = b1 and C = c1:<br>$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’<br>- Return all time series where A = a1<br>$filter=A eq ‘a1’ and B eq ‘’ and C eq ‘.

Interval

The interval (i.e. timegrain) of the query.

MetricNames

The names of the metrics (comma separated) to retrieve.

MetricNamespace

Metric namespace where the metrics you want reside.

OrderBy

The aggregation to use for sorting results and the direction of the sort. Only one order can be specified. Examples: sum asc.

ResultType

Reduces the set of data collected. The syntax allowed depends on the operation. See the operation's description for details.

RollUpBy

Dimension name(s) to rollup results by. For example if you only want to see metric values with a filter like 'City eq Seattle or City eq Tacoma' but don't want to see separate values for each city, you can specify 'RollUpBy=City' to see the results for Seattle and Tacoma rolled up into one timeseries.

Timespan

The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'.

Top

The maximum number of records to retrieve. Valid only if $filter is specified. Defaults to 10.

ValidateDimensions

When set to false, invalid filter parameter values will be ignored. When set to true, an error is returned for invalid filter parameters. Defaults to true.

Explicit Interface Implementations

IJsonModel<SubscriptionResourceGetMonitorMetricsWithPostContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<SubscriptionResourceGetMonitorMetricsWithPostContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<SubscriptionResourceGetMonitorMetricsWithPostContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<SubscriptionResourceGetMonitorMetricsWithPostContent>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<SubscriptionResourceGetMonitorMetricsWithPostContent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to