Class ObservabilityProfile

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

public final class ObservabilityProfile extends Object implements com.azure.json.JsonSerializable<ObservabilityProfile>
AppLinkMember observability profile.
  • Constructor Details

    • ObservabilityProfile

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

    • metrics

      public MetricsProfile metrics()
      Get the metrics property: Metrics configuration.
      Returns:
      the metrics value.
    • withMetrics

      public ObservabilityProfile withMetrics(MetricsProfile metrics)
      Set the metrics property: Metrics configuration.
      Parameters:
      metrics - the metrics value to set.
      Returns:
      the ObservabilityProfile object itself.
    • toJson

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

      public static ObservabilityProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ObservabilityProfile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ObservabilityProfile 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 ObservabilityProfile.