Class DetectorInfo

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

public final class DetectorInfo extends Object implements com.azure.json.JsonSerializable<DetectorInfo>
Definition of Detector.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of DetectorInfo class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the analysisType property: Analysis Types for which this detector should apply to.
    Get the author property: Author of the detector.
    Get the category property: Problem category.
    Get the description property: Short description of the detector and its purpose.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of DetectorInfo from the JsonReader.
    id()
    Get the id property: Id of detector.
    Get the name property: Name of detector.
    Get the score property: Defines score of a detector to power ML based matching.
    Get the supportTopicList property: List of Support Topics for which this detector is enabled.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the type property: Whether this detector is an Analysis Detector or not.
    void
    Validates the instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • DetectorInfo

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

    • id

      public String id()
      Get the id property: Id of detector.
      Returns:
      the id value.
    • name

      public String name()
      Get the name property: Name of detector.
      Returns:
      the name value.
    • description

      public String description()
      Get the description property: Short description of the detector and its purpose.
      Returns:
      the description value.
    • author

      public String author()
      Get the author property: Author of the detector.
      Returns:
      the author value.
    • category

      public String category()
      Get the category property: Problem category. This serves for organizing group for detectors.
      Returns:
      the category value.
    • supportTopicList

      public List<SupportTopic> supportTopicList()
      Get the supportTopicList property: List of Support Topics for which this detector is enabled.
      Returns:
      the supportTopicList value.
    • analysisType

      public List<String> analysisType()
      Get the analysisType property: Analysis Types for which this detector should apply to.
      Returns:
      the analysisType value.
    • type

      public DetectorType type()
      Get the type property: Whether this detector is an Analysis Detector or not.
      Returns:
      the type value.
    • score

      public Float score()
      Get the score property: Defines score of a detector to power ML based matching.
      Returns:
      the score value.
    • 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<DetectorInfo>
      Throws:
      IOException
    • fromJson

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