Class DetectorAbnormalTimePeriod
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.DetectorAbnormalTimePeriod
-
public final class DetectorAbnormalTimePeriod extends Object
Class representing Abnormal Time Period detected.
-
-
Constructor Summary
Constructors Constructor Description DetectorAbnormalTimePeriod()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTimeendTime()Get the endTime property: End time of the correlated event.Stringmessage()Get the message property: Message describing the event.List<List<NameValuePair>>metadata()Get the metadata property: Downtime metadata.Doublepriority()Get the priority property: Represents the rank of the Detector.List<Solution>solutions()Get the solutions property: List of proposed solutions.Stringsource()Get the source property: Represents the name of the Detector.OffsetDateTimestartTime()Get the startTime property: Start time of the correlated event.IssueTypetype()Get the type property: Represents the type of the Detector.voidvalidate()Validates the instance.DetectorAbnormalTimePeriodwithEndTime(OffsetDateTime endTime)Set the endTime property: End time of the correlated event.DetectorAbnormalTimePeriodwithMessage(String message)Set the message property: Message describing the event.DetectorAbnormalTimePeriodwithMetadata(List<List<NameValuePair>> metadata)Set the metadata property: Downtime metadata.DetectorAbnormalTimePeriodwithPriority(Double priority)Set the priority property: Represents the rank of the Detector.DetectorAbnormalTimePeriodwithSolutions(List<Solution> solutions)Set the solutions property: List of proposed solutions.DetectorAbnormalTimePeriodwithSource(String source)Set the source property: Represents the name of the Detector.DetectorAbnormalTimePeriodwithStartTime(OffsetDateTime startTime)Set the startTime property: Start time of the correlated event.DetectorAbnormalTimePeriodwithType(IssueType type)Set the type property: Represents the type of the Detector.
-
-
-
Method Detail
-
startTime
public OffsetDateTime startTime()
Get the startTime property: Start time of the correlated event.- Returns:
- the startTime value.
-
withStartTime
public DetectorAbnormalTimePeriod withStartTime(OffsetDateTime startTime)
Set the startTime property: Start time of the correlated event.- Parameters:
startTime- the startTime value to set.- Returns:
- the DetectorAbnormalTimePeriod object itself.
-
endTime
public OffsetDateTime endTime()
Get the endTime property: End time of the correlated event.- Returns:
- the endTime value.
-
withEndTime
public DetectorAbnormalTimePeriod withEndTime(OffsetDateTime endTime)
Set the endTime property: End time of the correlated event.- Parameters:
endTime- the endTime value to set.- Returns:
- the DetectorAbnormalTimePeriod object itself.
-
message
public String message()
Get the message property: Message describing the event.- Returns:
- the message value.
-
withMessage
public DetectorAbnormalTimePeriod withMessage(String message)
Set the message property: Message describing the event.- Parameters:
message- the message value to set.- Returns:
- the DetectorAbnormalTimePeriod object itself.
-
source
public String source()
Get the source property: Represents the name of the Detector.- Returns:
- the source value.
-
withSource
public DetectorAbnormalTimePeriod withSource(String source)
Set the source property: Represents the name of the Detector.- Parameters:
source- the source value to set.- Returns:
- the DetectorAbnormalTimePeriod object itself.
-
priority
public Double priority()
Get the priority property: Represents the rank of the Detector.- Returns:
- the priority value.
-
withPriority
public DetectorAbnormalTimePeriod withPriority(Double priority)
Set the priority property: Represents the rank of the Detector.- Parameters:
priority- the priority value to set.- Returns:
- the DetectorAbnormalTimePeriod object itself.
-
metadata
public List<List<NameValuePair>> metadata()
Get the metadata property: Downtime metadata.- Returns:
- the metadata value.
-
withMetadata
public DetectorAbnormalTimePeriod withMetadata(List<List<NameValuePair>> metadata)
Set the metadata property: Downtime metadata.- Parameters:
metadata- the metadata value to set.- Returns:
- the DetectorAbnormalTimePeriod object itself.
-
type
public IssueType type()
Get the type property: Represents the type of the Detector.- Returns:
- the type value.
-
withType
public DetectorAbnormalTimePeriod withType(IssueType type)
Set the type property: Represents the type of the Detector.- Parameters:
type- the type value to set.- Returns:
- the DetectorAbnormalTimePeriod object itself.
-
solutions
public List<Solution> solutions()
Get the solutions property: List of proposed solutions.- Returns:
- the solutions value.
-
withSolutions
public DetectorAbnormalTimePeriod withSolutions(List<Solution> solutions)
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.
-
-