다음을 통해 공유


DiagnosticMetricSample Class

Definition

Class representing Diagnostic Metric.

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

Constructors

DiagnosticMetricSample()

Initializes a new instance of DiagnosticMetricSample.

Properties

IsAggregated

Whether the values are aggregates across all workers or not.

Maximum

Maximum of the metric sampled during the time period.

Minimum

Minimum of the metric sampled during the time period.

RoleInstance

Role Instance. Null if this counter is not per instance This is returned and should be whichever instance name we desire to be returned i.e. CPU and Memory return RDWORKERNAME (LargeDed..._IN_0) where RDWORKERNAME is Machine name below and RoleInstance name in parenthesis

Timestamp

Time at which metric is measured.

Total

Total value of the metric. If multiple measurements are made this will have sum of all.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<DiagnosticMetricSample>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<DiagnosticMetricSample>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DiagnosticMetricSample>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DiagnosticMetricSample>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<DiagnosticMetricSample>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to