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 -
Method Summary
Modifier and TypeMethodDescriptionGet the analysisType property: Analysis Types for which this detector should apply to.author()
Get the author property: Author of the detector.category()
Get the category property: Problem category.Get the description property: Short description of the detector and its purpose.static DetectorInfo
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of DetectorInfo from the JsonReader.id()
Get the id property: Id of detector.name()
Get the name property: Name of detector.score()
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) type()
Get the type property: Whether this detector is an Analysis Detector or not.void
validate()
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
Get the id property: Id of detector.- Returns:
- the id value.
-
name
Get the name property: Name of detector.- Returns:
- the name value.
-
description
Get the description property: Short description of the detector and its purpose.- Returns:
- the description value.
-
author
Get the author property: Author of the detector.- Returns:
- the author value.
-
category
Get the category property: Problem category. This serves for organizing group for detectors.- Returns:
- the category value.
-
supportTopicList
Get the supportTopicList property: List of Support Topics for which this detector is enabled.- Returns:
- the supportTopicList value.
-
analysisType
Get the analysisType property: Analysis Types for which this detector should apply to.- Returns:
- the analysisType value.
-
type
Get the type property: Whether this detector is an Analysis Detector or not.- Returns:
- the type value.
-
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<DetectorInfo>
- Throws:
IOException
-
fromJson
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.
-