Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.appservice.implementation; import org.joda.time.DateTime; import java.util.List; import com.microsoft.azure.management.appservice.DiagnosticMetricSet; import com.microsoft.azure.management.appservice.DetectorAbnormalTimePeriod; import com.microsoft.azure.management.appservice.NameValuePair; import com.microsoft.azure.management.appservice.ResponseMetaData; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.management.appservice.ProxyOnlyResource;
Class representing Response from Diagnostic Detectors.
/** * Class representing Response from Diagnostic Detectors. */
@JsonFlatten public class DiagnosticDetectorResponseInner extends ProxyOnlyResource {
Start time of the period.
/** * Start time of the period. */
@JsonProperty(value = "properties.startTime") private DateTime startTime;
End time of the period.
/** * End time of the period. */
@JsonProperty(value = "properties.endTime") private DateTime endTime;
Flag representing Issue was detected.
/** * Flag representing Issue was detected. */
@JsonProperty(value = "properties.issueDetected") private Boolean issueDetected;
Detector's definition.
/** * Detector's definition. */
@JsonProperty(value = "properties.detectorDefinition") private DetectorDefinitionInner detectorDefinition;
Metrics provided by the detector.
/** * Metrics provided by the detector. */
@JsonProperty(value = "properties.metrics") private List<DiagnosticMetricSet> metrics;
List of Correlated events found by the detector.
/** * List of Correlated events found by the detector. */
@JsonProperty(value = "properties.abnormalTimePeriods") private List<DetectorAbnormalTimePeriod> abnormalTimePeriods;
Additional Data that detector wants to send.
/** * Additional Data that detector wants to send. */
@JsonProperty(value = "properties.data") private List<List<NameValuePair>> data;
Meta Data.
/** * Meta Data. */
@JsonProperty(value = "properties.responseMetaData") private ResponseMetaData responseMetaData;
Get start time of the period.
Returns:the startTime value
/** * Get start time of the period. * * @return the startTime value */
public DateTime startTime() { return this.startTime; }
Set start time of the period.
Params:
  • startTime – the startTime value to set
Returns:the DiagnosticDetectorResponseInner object itself.
/** * Set start time of the period. * * @param startTime the startTime value to set * @return the DiagnosticDetectorResponseInner object itself. */
public DiagnosticDetectorResponseInner withStartTime(DateTime startTime) { this.startTime = startTime; return this; }
Get end time of the period.
Returns:the endTime value
/** * Get end time of the period. * * @return the endTime value */
public DateTime endTime() { return this.endTime; }
Set end time of the period.
Params:
  • endTime – the endTime value to set
Returns:the DiagnosticDetectorResponseInner object itself.
/** * Set end time of the period. * * @param endTime the endTime value to set * @return the DiagnosticDetectorResponseInner object itself. */
public DiagnosticDetectorResponseInner withEndTime(DateTime endTime) { this.endTime = endTime; return this; }
Get flag representing Issue was detected.
Returns:the issueDetected value
/** * Get flag representing Issue was detected. * * @return the issueDetected value */
public Boolean issueDetected() { return this.issueDetected; }
Set flag representing Issue was detected.
Params:
  • issueDetected – the issueDetected value to set
Returns:the DiagnosticDetectorResponseInner object itself.
/** * Set flag representing Issue was detected. * * @param issueDetected the issueDetected value to set * @return the DiagnosticDetectorResponseInner object itself. */
public DiagnosticDetectorResponseInner withIssueDetected(Boolean issueDetected) { this.issueDetected = issueDetected; return this; }
Get detector's definition.
Returns:the detectorDefinition value
/** * Get detector's definition. * * @return the detectorDefinition value */
public DetectorDefinitionInner detectorDefinition() { return this.detectorDefinition; }
Set detector's definition.
Params:
  • detectorDefinition – the detectorDefinition value to set
Returns:the DiagnosticDetectorResponseInner object itself.
/** * Set detector's definition. * * @param detectorDefinition the detectorDefinition value to set * @return the DiagnosticDetectorResponseInner object itself. */
public DiagnosticDetectorResponseInner withDetectorDefinition(DetectorDefinitionInner detectorDefinition) { this.detectorDefinition = detectorDefinition; return this; }
Get metrics provided by the detector.
Returns:the metrics value
/** * Get metrics provided by the detector. * * @return the metrics value */
public List<DiagnosticMetricSet> metrics() { return this.metrics; }
Set metrics provided by the detector.
Params:
  • metrics – the metrics value to set
Returns:the DiagnosticDetectorResponseInner object itself.
/** * Set metrics provided by the detector. * * @param metrics the metrics value to set * @return the DiagnosticDetectorResponseInner object itself. */
public DiagnosticDetectorResponseInner withMetrics(List<DiagnosticMetricSet> metrics) { this.metrics = metrics; return this; }
Get list of Correlated events found by the detector.
Returns:the abnormalTimePeriods value
/** * Get list of Correlated events found by the detector. * * @return the abnormalTimePeriods value */
public List<DetectorAbnormalTimePeriod> abnormalTimePeriods() { return this.abnormalTimePeriods; }
Set list of Correlated events found by the detector.
Params:
  • abnormalTimePeriods – the abnormalTimePeriods value to set
Returns:the DiagnosticDetectorResponseInner object itself.
/** * Set list of Correlated events found by the detector. * * @param abnormalTimePeriods the abnormalTimePeriods value to set * @return the DiagnosticDetectorResponseInner object itself. */
public DiagnosticDetectorResponseInner withAbnormalTimePeriods(List<DetectorAbnormalTimePeriod> abnormalTimePeriods) { this.abnormalTimePeriods = abnormalTimePeriods; return this; }
Get additional Data that detector wants to send.
Returns:the data value
/** * Get additional Data that detector wants to send. * * @return the data value */
public List<List<NameValuePair>> data() { return this.data; }
Set additional Data that detector wants to send.
Params:
  • data – the data value to set
Returns:the DiagnosticDetectorResponseInner object itself.
/** * Set additional Data that detector wants to send. * * @param data the data value to set * @return the DiagnosticDetectorResponseInner object itself. */
public DiagnosticDetectorResponseInner withData(List<List<NameValuePair>> data) { this.data = data; return this; }
Get meta Data.
Returns:the responseMetaData value
/** * Get meta Data. * * @return the responseMetaData value */
public ResponseMetaData responseMetaData() { return this.responseMetaData; }
Set meta Data.
Params:
  • responseMetaData – the responseMetaData value to set
Returns:the DiagnosticDetectorResponseInner object itself.
/** * Set meta Data. * * @param responseMetaData the responseMetaData value to set * @return the DiagnosticDetectorResponseInner object itself. */
public DiagnosticDetectorResponseInner withResponseMetaData(ResponseMetaData responseMetaData) { this.responseMetaData = responseMetaData; return this; } }