Share via


DiagnosticMetricSample Class

Definition

Class representing Diagnostic Metric

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticMetricSampleTypeConverter))]
public class DiagnosticMetricSample : Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IDiagnosticMetricSample
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.DiagnosticMetricSampleTypeConverter))>]
type DiagnosticMetricSample = class
    interface IDiagnosticMetricSample
    interface IJsonSerializable
Public Class DiagnosticMetricSample
Implements IDiagnosticMetricSample
Inheritance
DiagnosticMetricSample
Attributes
Implements

Constructors

DiagnosticMetricSample()

Creates an new DiagnosticMetricSample instance.

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

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of DiagnosticMetricSample.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of DiagnosticMetricSample.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IDiagnosticMetricSample.

FromJsonString(String)

Creates a new instance of DiagnosticMetricSample, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of DiagnosticMetricSample into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to