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.AbnormalTimePeriod;
import com.microsoft.azure.management.appservice.AnalysisData;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.management.appservice.ProxyOnlyResource;
Class representing a diagnostic analysis done on an application.
/**
* Class representing a diagnostic analysis done on an application.
*/
@JsonFlatten
public class DiagnosticAnalysisInner 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;
List of time periods.
/**
* List of time periods.
*/
@JsonProperty(value = "properties.abnormalTimePeriods")
private List<AbnormalTimePeriod> abnormalTimePeriods;
Data by each detector.
/**
* Data by each detector.
*/
@JsonProperty(value = "properties.payload")
private List<AnalysisData> payload;
Data by each detector for detectors that did not corelate.
/**
* Data by each detector for detectors that did not corelate.
*/
@JsonProperty(value = "properties.nonCorrelatedDetectors")
private List<DetectorDefinitionInner> nonCorrelatedDetectors;
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 DiagnosticAnalysisInner object itself.
/**
* Set start time of the period.
*
* @param startTime the startTime value to set
* @return the DiagnosticAnalysisInner object itself.
*/
public DiagnosticAnalysisInner 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 DiagnosticAnalysisInner object itself.
/**
* Set end time of the period.
*
* @param endTime the endTime value to set
* @return the DiagnosticAnalysisInner object itself.
*/
public DiagnosticAnalysisInner withEndTime(DateTime endTime) {
this.endTime = endTime;
return this;
}
Get list of time periods.
Returns: the abnormalTimePeriods value
/**
* Get list of time periods.
*
* @return the abnormalTimePeriods value
*/
public List<AbnormalTimePeriod> abnormalTimePeriods() {
return this.abnormalTimePeriods;
}
Set list of time periods.
Params: - abnormalTimePeriods – the abnormalTimePeriods value to set
Returns: the DiagnosticAnalysisInner object itself.
/**
* Set list of time periods.
*
* @param abnormalTimePeriods the abnormalTimePeriods value to set
* @return the DiagnosticAnalysisInner object itself.
*/
public DiagnosticAnalysisInner withAbnormalTimePeriods(List<AbnormalTimePeriod> abnormalTimePeriods) {
this.abnormalTimePeriods = abnormalTimePeriods;
return this;
}
Get data by each detector.
Returns: the payload value
/**
* Get data by each detector.
*
* @return the payload value
*/
public List<AnalysisData> payload() {
return this.payload;
}
Set data by each detector.
Params: - payload – the payload value to set
Returns: the DiagnosticAnalysisInner object itself.
/**
* Set data by each detector.
*
* @param payload the payload value to set
* @return the DiagnosticAnalysisInner object itself.
*/
public DiagnosticAnalysisInner withPayload(List<AnalysisData> payload) {
this.payload = payload;
return this;
}
Get data by each detector for detectors that did not corelate.
Returns: the nonCorrelatedDetectors value
/**
* Get data by each detector for detectors that did not corelate.
*
* @return the nonCorrelatedDetectors value
*/
public List<DetectorDefinitionInner> nonCorrelatedDetectors() {
return this.nonCorrelatedDetectors;
}
Set data by each detector for detectors that did not corelate.
Params: - nonCorrelatedDetectors – the nonCorrelatedDetectors value to set
Returns: the DiagnosticAnalysisInner object itself.
/**
* Set data by each detector for detectors that did not corelate.
*
* @param nonCorrelatedDetectors the nonCorrelatedDetectors value to set
* @return the DiagnosticAnalysisInner object itself.
*/
public DiagnosticAnalysisInner withNonCorrelatedDetectors(List<DetectorDefinitionInner> nonCorrelatedDetectors) {
this.nonCorrelatedDetectors = nonCorrelatedDetectors;
return this;
}
}