ManagedClusterMetricsProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.ManagedClusterMetricsProfile

Implements

public final class ManagedClusterMetricsProfile
implements JsonSerializable<ManagedClusterMetricsProfile>

The metrics profile for the ManagedCluster.

Constructor Summary

Constructor Description
ManagedClusterMetricsProfile()

Creates an instance of ManagedClusterMetricsProfile class.

Method Summary

Modifier and Type Method and Description
ManagedClusterCostAnalysis costAnalysis()

Get the costAnalysis property: The cost analysis configuration for the cluster.

static ManagedClusterMetricsProfile fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterMetricsProfile from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedClusterMetricsProfile withCostAnalysis(ManagedClusterCostAnalysis costAnalysis)

Set the costAnalysis property: The cost analysis configuration for the cluster.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterMetricsProfile

public ManagedClusterMetricsProfile()

Creates an instance of ManagedClusterMetricsProfile class.

Method Details

costAnalysis

public ManagedClusterCostAnalysis costAnalysis()

Get the costAnalysis property: The cost analysis configuration for the cluster.

Returns:

the costAnalysis value.

fromJson

public static ManagedClusterMetricsProfile fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterMetricsProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedClusterMetricsProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ManagedClusterMetricsProfile.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCostAnalysis

public ManagedClusterMetricsProfile withCostAnalysis(ManagedClusterCostAnalysis costAnalysis)

Set the costAnalysis property: The cost analysis configuration for the cluster.

Parameters:

costAnalysis - the costAnalysis value to set.

Returns:

the ManagedClusterMetricsProfile object itself.

Applies to