Class DetectorAbnormalTimePeriod
java.lang.Object
com.azure.resourcemanager.appservice.models.DetectorAbnormalTimePeriod
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DetectorAbnormalTimePeriod>
public final class DetectorAbnormalTimePeriod
extends Object
implements com.azure.json.JsonSerializable<DetectorAbnormalTimePeriod>
Class representing Abnormal Time Period detected.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DetectorAbnormalTimePeriod class. -
Method Summary
Modifier and TypeMethodDescriptionendTime()Get the endTime property: End time of the correlated event.static DetectorAbnormalTimePeriodfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DetectorAbnormalTimePeriod from the JsonReader.message()Get the message property: Message describing the event.metadata()Get the metadata property: Downtime metadata.priority()Get the priority property: Represents the rank of the Detector.Get the solutions property: List of proposed solutions.source()Get the source property: Represents the name of the Detector.Get the startTime property: Start time of the correlated event.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Represents the type of the Detector.voidvalidate()Validates the instance.withEndTime(OffsetDateTime endTime) Set the endTime property: End time of the correlated event.withMessage(String message) Set the message property: Message describing the event.withMetadata(List<List<NameValuePair>> metadata) Set the metadata property: Downtime metadata.withPriority(Double priority) Set the priority property: Represents the rank of the Detector.withSolutions(List<Solution> solutions) Set the solutions property: List of proposed solutions.withSource(String source) Set the source property: Represents the name of the Detector.withStartTime(OffsetDateTime startTime) Set the startTime property: Start time of the correlated event.Set the type property: Represents the type of the Detector.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DetectorAbnormalTimePeriod
public DetectorAbnormalTimePeriod()Creates an instance of DetectorAbnormalTimePeriod class.
-
-
Method Details
-
startTime
Get the startTime property: Start time of the correlated event.- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: Start time of the correlated event.- Parameters:
startTime- the startTime value to set.- Returns:
- the DetectorAbnormalTimePeriod object itself.
-
endTime
Get the endTime property: End time of the correlated event.- Returns:
- the endTime value.
-
withEndTime
Set the endTime property: End time of the correlated event.- Parameters:
endTime- the endTime value to set.- Returns:
- the DetectorAbnormalTimePeriod object itself.
-
message
Get the message property: Message describing the event.- Returns:
- the message value.
-
withMessage
Set the message property: Message describing the event.- Parameters:
message- the message value to set.- Returns:
- the DetectorAbnormalTimePeriod object itself.
-
source
Get the source property: Represents the name of the Detector.- Returns:
- the source value.
-
withSource
Set the source property: Represents the name of the Detector.- Parameters:
source- the source value to set.- Returns:
- the DetectorAbnormalTimePeriod object itself.
-
priority
Get the priority property: Represents the rank of the Detector.- Returns:
- the priority value.
-
withPriority
Set the priority property: Represents the rank of the Detector.- Parameters:
priority- the priority value to set.- Returns:
- the DetectorAbnormalTimePeriod object itself.
-
metadata
Get the metadata property: Downtime metadata.- Returns:
- the metadata value.
-
withMetadata
Set the metadata property: Downtime metadata.- Parameters:
metadata- the metadata value to set.- Returns:
- the DetectorAbnormalTimePeriod object itself.
-
type
Get the type property: Represents the type of the Detector.- Returns:
- the type value.
-
withType
Set the type property: Represents the type of the Detector.- Parameters:
type- the type value to set.- Returns:
- the DetectorAbnormalTimePeriod object itself.
-
solutions
Get the solutions property: List of proposed solutions.- Returns:
- the solutions value.
-
withSolutions
Set the solutions property: List of proposed solutions.- Parameters:
solutions- the solutions value to set.- Returns:
- the DetectorAbnormalTimePeriod object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DetectorAbnormalTimePeriod>- Throws:
IOException
-
fromJson
public static DetectorAbnormalTimePeriod fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DetectorAbnormalTimePeriod from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DetectorAbnormalTimePeriod 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 DetectorAbnormalTimePeriod.
-