Class ManagedClusterMetricsProfile

java.lang.Object
com.azure.resourcemanager.containerservice.models.ManagedClusterMetricsProfile
All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedClusterMetricsProfile>

public final class ManagedClusterMetricsProfile extends Object implements com.azure.json.JsonSerializable<ManagedClusterMetricsProfile>
The metrics profile for the ManagedCluster.
  • Constructor Details

    • ManagedClusterMetricsProfile

      public ManagedClusterMetricsProfile()
      Creates an instance of ManagedClusterMetricsProfile class.
  • Method Details

    • costAnalysis

      public ManagedClusterCostAnalysis costAnalysis()
      Get the costAnalysis property: The configuration for detailed per-Kubernetes resource cost analysis.
      Returns:
      the costAnalysis value.
    • withCostAnalysis

      public ManagedClusterMetricsProfile withCostAnalysis(ManagedClusterCostAnalysis costAnalysis)
      Set the costAnalysis property: The configuration for detailed per-Kubernetes resource cost analysis.
      Parameters:
      costAnalysis - the costAnalysis value to set.
      Returns:
      the ManagedClusterMetricsProfile object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ManagedClusterMetricsProfile>
      Throws:
      IOException
    • fromJson

      public static ManagedClusterMetricsProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.