DetectorAbnormalTimePeriod Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.DetectorAbnormalTimePeriod

Implements

public final class DetectorAbnormalTimePeriod
implements JsonSerializable<DetectorAbnormalTimePeriod>

Class representing Abnormal Time Period detected.

Constructor Summary

Constructor Description
DetectorAbnormalTimePeriod()

Creates an instance of DetectorAbnormalTimePeriod class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime endTime()

Get the endTime property: End time of the correlated event.

static DetectorAbnormalTimePeriod fromJson(JsonReader jsonReader)

Reads an instance of DetectorAbnormalTimePeriod from the JsonReader.

String message()

Get the message property: Message describing the event.

List<List<NameValuePair>> metadata()

Get the metadata property: Downtime metadata.

Double priority()

Get the priority property: Represents the rank of the Detector.

List<Solution> solutions()

Get the solutions property: List of proposed solutions.

String source()

Get the source property: Represents the name of the Detector.

OffsetDateTime startTime()

Get the startTime property: Start time of the correlated event.

JsonWriter toJson(JsonWriter jsonWriter)
IssueType type()

Get the type property: Represents the type of the Detector.

void validate()

Validates the instance.

DetectorAbnormalTimePeriod withEndTime(OffsetDateTime endTime)

Set the endTime property: End time of the correlated event.

DetectorAbnormalTimePeriod withMessage(String message)

Set the message property: Message describing the event.

DetectorAbnormalTimePeriod withMetadata(List<List<NameValuePair>> metadata)

Set the metadata property: Downtime metadata.

DetectorAbnormalTimePeriod withPriority(Double priority)

Set the priority property: Represents the rank of the Detector.

DetectorAbnormalTimePeriod withSolutions(List<Solution> solutions)

Set the solutions property: List of proposed solutions.

DetectorAbnormalTimePeriod withSource(String source)

Set the source property: Represents the name of the Detector.

DetectorAbnormalTimePeriod withStartTime(OffsetDateTime startTime)

Set the startTime property: Start time of the correlated event.

DetectorAbnormalTimePeriod withType(IssueType type)

Set the type property: Represents the type of the Detector.

Methods inherited from java.lang.Object

Constructor Details

DetectorAbnormalTimePeriod

public DetectorAbnormalTimePeriod()

Creates an instance of DetectorAbnormalTimePeriod class.

Method Details

endTime

public OffsetDateTime endTime()

Get the endTime property: End time of the correlated event.

Returns:

the endTime value.

fromJson

public static DetectorAbnormalTimePeriod fromJson(JsonReader jsonReader)

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.

message

public String message()

Get the message property: Message describing the event.

Returns:

the message value.

metadata

public List> metadata()

Get the metadata property: Downtime metadata.

Returns:

the metadata value.

priority

public Double priority()

Get the priority property: Represents the rank of the Detector.

Returns:

the priority value.

solutions

public List solutions()

Get the solutions property: List of proposed solutions.

Returns:

the solutions value.

source

public String source()

Get the source property: Represents the name of the Detector.

Returns:

the source value.

startTime

public OffsetDateTime startTime()

Get the startTime property: Start time of the correlated event.

Returns:

the startTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public IssueType type()

Get the type property: Represents the type of the Detector.

Returns:

the type value.

validate

public void validate()

Validates the instance.

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.

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.

withMetadata

public DetectorAbnormalTimePeriod withMetadata(List> metadata)

Set the metadata property: Downtime metadata.

Parameters:

metadata - the metadata value to set.

Returns:

the DetectorAbnormalTimePeriod object itself.

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.

withSolutions

public DetectorAbnormalTimePeriod withSolutions(List solutions)

Set the solutions property: List of proposed solutions.

Parameters:

solutions - the solutions value to set.

Returns:

the DetectorAbnormalTimePeriod object itself.

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.

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.

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.

Applies to