Class DiagnosticDetectorResponseInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.appservice.models.ProxyOnlyResource
com.azure.resourcemanager.appservice.fluent.models.DiagnosticDetectorResponseInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
Class representing Response from Diagnostic Detectors.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DiagnosticDetectorResponseInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the abnormalTimePeriods property: List of Correlated events found by the detector.data()Get the data property: Additional Data that detector wants to send.Get the detectorDefinition property: Detector's definition.endTime()Get the endTime property: End time of the period.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DiagnosticDetectorResponseInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.Get the issueDetected property: Flag representing Issue was detected.metrics()Get the metrics property: Metrics provided by the detector.name()Get the name property: The name of the resource.Get the responseMetadata property: Meta Data.Get the startTime property: Start time of the period.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withAbnormalTimePeriods(List<DetectorAbnormalTimePeriod> abnormalTimePeriods) Set the abnormalTimePeriods property: List of Correlated events found by the detector.withData(List<List<NameValuePair>> data) Set the data property: Additional Data that detector wants to send.withDetectorDefinition(DetectorDefinition detectorDefinition) Set the detectorDefinition property: Detector's definition.withEndTime(OffsetDateTime endTime) Set the endTime property: End time of the period.withIssueDetected(Boolean issueDetected) Set the issueDetected property: Flag representing Issue was detected.Set the kind property: Kind of resource.withMetrics(List<DiagnosticMetricSet> metrics) Set the metrics property: Metrics provided by the detector.withResponseMetadata(ResponseMetadata responseMetadata) Set the responseMetadata property: Meta Data.withStartTime(OffsetDateTime startTime) Set the startTime property: Start time of the period.Methods inherited from class com.azure.resourcemanager.appservice.models.ProxyOnlyResource
kindMethods 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
-
DiagnosticDetectorResponseInner
public DiagnosticDetectorResponseInner()Creates an instance of DiagnosticDetectorResponseInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classProxyOnlyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classProxyOnlyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classProxyOnlyResource- Returns:
- the id value.
-
withKind
Set the kind property: Kind of resource.- Overrides:
withKindin classProxyOnlyResource- Parameters:
kind- the kind value to set.- Returns:
- the ProxyOnlyResource object itself.
-
startTime
Get the startTime property: Start time of the period.- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: Start time of the period.- Parameters:
startTime- the startTime value to set.- Returns:
- the DiagnosticDetectorResponseInner object itself.
-
endTime
Get the endTime property: End time of the period.- Returns:
- the endTime value.
-
withEndTime
Set the endTime property: End time of the period.- Parameters:
endTime- the endTime value to set.- Returns:
- the DiagnosticDetectorResponseInner object itself.
-
issueDetected
Get the issueDetected property: Flag representing Issue was detected.- Returns:
- the issueDetected value.
-
withIssueDetected
Set the issueDetected property: Flag representing Issue was detected.- Parameters:
issueDetected- the issueDetected value to set.- Returns:
- the DiagnosticDetectorResponseInner object itself.
-
detectorDefinition
Get the detectorDefinition property: Detector's definition.- Returns:
- the detectorDefinition value.
-
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.
-
metrics
Get the metrics property: Metrics provided by the detector.- Returns:
- the metrics value.
-
withMetrics
Set the metrics property: Metrics provided by the detector.- Parameters:
metrics- the metrics value to set.- Returns:
- the DiagnosticDetectorResponseInner object itself.
-
abnormalTimePeriods
Get the abnormalTimePeriods property: List of Correlated events found by the detector.- Returns:
- the abnormalTimePeriods value.
-
withAbnormalTimePeriods
public DiagnosticDetectorResponseInner withAbnormalTimePeriods(List<DetectorAbnormalTimePeriod> 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.
-
data
Get the data property: Additional Data that detector wants to send.- Returns:
- the data value.
-
withData
Set the data property: Additional Data that detector wants to send.- Parameters:
data- the data value to set.- Returns:
- the DiagnosticDetectorResponseInner object itself.
-
responseMetadata
Get the responseMetadata property: Meta Data.- Returns:
- the responseMetadata value.
-
withResponseMetadata
Set the responseMetadata property: Meta Data.- Parameters:
responseMetadata- the responseMetadata value to set.- Returns:
- the DiagnosticDetectorResponseInner object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classProxyOnlyResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classProxyOnlyResource- Throws:
IOException
-
fromJson
public static DiagnosticDetectorResponseInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the DiagnosticDetectorResponseInner.
-