DiagnosticDetectorResponseInner Class

public final class DiagnosticDetectorResponseInner
extends ProxyOnlyResource

Class representing Response from Diagnostic Detectors.

Constructor Summary

Constructor Description
DiagnosticDetectorResponseInner()

Creates an instance of DiagnosticDetectorResponseInner class.

Method Summary

Modifier and Type Method and Description
List<DetectorAbnormalTimePeriod> abnormalTimePeriods()

Get the abnormalTimePeriods property: List of Correlated events found by the detector.

List<List<NameValuePair>> data()

Get the data property: Additional Data that detector wants to send.

DetectorDefinition detectorDefinition()

Get the detectorDefinition property: Detector's definition.

OffsetDateTime endTime()

Get the endTime property: End time of the period.

static DiagnosticDetectorResponseInner fromJson(JsonReader jsonReader)

Reads an instance of DiagnosticDetectorResponseInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

Boolean issueDetected()

Get the issueDetected property: Flag representing Issue was detected.

List<DiagnosticMetricSet> metrics()

Get the metrics property: Metrics provided by the detector.

String name()

Get the name property: The name of the resource.

ResponseMetadata responseMetadata()

Get the responseMetadata property: Meta Data.

OffsetDateTime startTime()

Get the startTime property: Start time of the period.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

DiagnosticDetectorResponseInner withAbnormalTimePeriods(List<DetectorAbnormalTimePeriod> abnormalTimePeriods)

Set the abnormalTimePeriods property: List of Correlated events found by the detector.

DiagnosticDetectorResponseInner withData(List<List<NameValuePair>> data)

Set the data property: Additional Data that detector wants to send.

DiagnosticDetectorResponseInner withDetectorDefinition(DetectorDefinition detectorDefinition)

Set the detectorDefinition property: Detector's definition.

DiagnosticDetectorResponseInner withEndTime(OffsetDateTime endTime)

Set the endTime property: End time of the period.

DiagnosticDetectorResponseInner withIssueDetected(Boolean issueDetected)

Set the issueDetected property: Flag representing Issue was detected.

DiagnosticDetectorResponseInner withKind(String kind)

Set the kind property: Kind of resource.

DiagnosticDetectorResponseInner withMetrics(List<DiagnosticMetricSet> metrics)

Set the metrics property: Metrics provided by the detector.

DiagnosticDetectorResponseInner withResponseMetadata(ResponseMetadata responseMetadata)

Set the responseMetadata property: Meta Data.

DiagnosticDetectorResponseInner withStartTime(OffsetDateTime startTime)

Set the startTime property: Start time of the period.

Methods inherited from ProxyOnlyResource

Methods inherited from java.lang.Object

Constructor Details

DiagnosticDetectorResponseInner

public DiagnosticDetectorResponseInner()

Creates an instance of DiagnosticDetectorResponseInner class.

Method Details

abnormalTimePeriods

public List abnormalTimePeriods()

Get the abnormalTimePeriods property: List of Correlated events found by the detector.

Returns:

the abnormalTimePeriods value.

data

public List> data()

Get the data property: Additional Data that detector wants to send.

Returns:

the data value.

detectorDefinition

public DetectorDefinition detectorDefinition()

Get the detectorDefinition property: Detector's definition.

Returns:

the detectorDefinition value.

endTime

public OffsetDateTime endTime()

Get the endTime property: End time of the period.

Returns:

the endTime value.

fromJson

public static DiagnosticDetectorResponseInner fromJson(JsonReader jsonReader)

Reads an instance of DiagnosticDetectorResponseInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DiagnosticDetectorResponseInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

DiagnosticDetectorResponseInner.id()

Returns:

the id value.

issueDetected

public Boolean issueDetected()

Get the issueDetected property: Flag representing Issue was detected.

Returns:

the issueDetected value.

metrics

public List metrics()

Get the metrics property: Metrics provided by the detector.

Returns:

the metrics value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DiagnosticDetectorResponseInner.name()

Returns:

the name value.

responseMetadata

public ResponseMetadata responseMetadata()

Get the responseMetadata property: Meta Data.

Returns:

the responseMetadata value.

startTime

public OffsetDateTime startTime()

Get the startTime property: Start time of the period.

Returns:

the startTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DiagnosticDetectorResponseInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DiagnosticDetectorResponseInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

DiagnosticDetectorResponseInner.validate()

withAbnormalTimePeriods

public DiagnosticDetectorResponseInner withAbnormalTimePeriods(List abnormalTimePeriods)

Set the abnormalTimePeriods property: List of Correlated events found by the detector.

Parameters:

abnormalTimePeriods - the abnormalTimePeriods value to set.

Returns:

the DiagnosticDetectorResponseInner object itself.

withData

public DiagnosticDetectorResponseInner withData(List> data)

Set the data property: Additional Data that detector wants to send.

Parameters:

data - the data value to set.

Returns:

the DiagnosticDetectorResponseInner object itself.

withDetectorDefinition

public DiagnosticDetectorResponseInner withDetectorDefinition(DetectorDefinition detectorDefinition)

Set the detectorDefinition property: Detector's definition.

Parameters:

detectorDefinition - the detectorDefinition value to set.

Returns:

the DiagnosticDetectorResponseInner object itself.

withEndTime

public DiagnosticDetectorResponseInner withEndTime(OffsetDateTime endTime)

Set the endTime property: End time of the period.

Parameters:

endTime - the endTime value to set.

Returns:

the DiagnosticDetectorResponseInner object itself.

withIssueDetected

public DiagnosticDetectorResponseInner withIssueDetected(Boolean issueDetected)

Set the issueDetected property: Flag representing Issue was detected.

Parameters:

issueDetected - the issueDetected value to set.

Returns:

the DiagnosticDetectorResponseInner object itself.

withKind

public DiagnosticDetectorResponseInner withKind(String kind)

Set the kind property: Kind of resource.

Overrides:

DiagnosticDetectorResponseInner.withKind(String kind)

Parameters:

kind

withMetrics

public DiagnosticDetectorResponseInner withMetrics(List metrics)

Set the metrics property: Metrics provided by the detector.

Parameters:

metrics - the metrics value to set.

Returns:

the DiagnosticDetectorResponseInner object itself.

withResponseMetadata

public DiagnosticDetectorResponseInner withResponseMetadata(ResponseMetadata responseMetadata)

Set the responseMetadata property: Meta Data.

Parameters:

responseMetadata - the responseMetadata value to set.

Returns:

the DiagnosticDetectorResponseInner object itself.

withStartTime

public DiagnosticDetectorResponseInner withStartTime(OffsetDateTime startTime)

Set the startTime property: Start time of the period.

Parameters:

startTime - the startTime value to set.

Returns:

the DiagnosticDetectorResponseInner object itself.

Applies to