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.monitor;
import java.util.List;
import org.joda.time.DateTime;
import com.fasterxml.jackson.annotation.JsonProperty;
The baseline values for a single time series.
/**
* The baseline values for a single time series.
*/
public class TimeSeriesBaseline {
The aggregation type of the metric.
/**
* The aggregation type of the metric.
*/
@JsonProperty(value = "aggregation", required = true)
private String aggregation;
The dimensions of this time series.
/**
* The dimensions of this time series.
*/
@JsonProperty(value = "dimensions")
private List<MetricSingleDimension> dimensions;
The list of timestamps of the baselines.
/**
* The list of timestamps of the baselines.
*/
@JsonProperty(value = "timestamps", required = true)
private List<DateTime> timestamps;
The baseline values for each sensitivity.
/**
* The baseline values for each sensitivity.
*/
@JsonProperty(value = "data", required = true)
private List<SingleBaseline> data;
The baseline metadata values.
/**
* The baseline metadata values.
*/
@JsonProperty(value = "metadata")
private List<BaselineMetadata> metadata;
Get the aggregation type of the metric.
Returns: the aggregation value
/**
* Get the aggregation type of the metric.
*
* @return the aggregation value
*/
public String aggregation() {
return this.aggregation;
}
Set the aggregation type of the metric.
Params: - aggregation – the aggregation value to set
Returns: the TimeSeriesBaseline object itself.
/**
* Set the aggregation type of the metric.
*
* @param aggregation the aggregation value to set
* @return the TimeSeriesBaseline object itself.
*/
public TimeSeriesBaseline withAggregation(String aggregation) {
this.aggregation = aggregation;
return this;
}
Get the dimensions of this time series.
Returns: the dimensions value
/**
* Get the dimensions of this time series.
*
* @return the dimensions value
*/
public List<MetricSingleDimension> dimensions() {
return this.dimensions;
}
Set the dimensions of this time series.
Params: - dimensions – the dimensions value to set
Returns: the TimeSeriesBaseline object itself.
/**
* Set the dimensions of this time series.
*
* @param dimensions the dimensions value to set
* @return the TimeSeriesBaseline object itself.
*/
public TimeSeriesBaseline withDimensions(List<MetricSingleDimension> dimensions) {
this.dimensions = dimensions;
return this;
}
Get the list of timestamps of the baselines.
Returns: the timestamps value
/**
* Get the list of timestamps of the baselines.
*
* @return the timestamps value
*/
public List<DateTime> timestamps() {
return this.timestamps;
}
Set the list of timestamps of the baselines.
Params: - timestamps – the timestamps value to set
Returns: the TimeSeriesBaseline object itself.
/**
* Set the list of timestamps of the baselines.
*
* @param timestamps the timestamps value to set
* @return the TimeSeriesBaseline object itself.
*/
public TimeSeriesBaseline withTimestamps(List<DateTime> timestamps) {
this.timestamps = timestamps;
return this;
}
Get the baseline values for each sensitivity.
Returns: the data value
/**
* Get the baseline values for each sensitivity.
*
* @return the data value
*/
public List<SingleBaseline> data() {
return this.data;
}
Set the baseline values for each sensitivity.
Params: - data – the data value to set
Returns: the TimeSeriesBaseline object itself.
/**
* Set the baseline values for each sensitivity.
*
* @param data the data value to set
* @return the TimeSeriesBaseline object itself.
*/
public TimeSeriesBaseline withData(List<SingleBaseline> data) {
this.data = data;
return this;
}
Get the baseline metadata values.
Returns: the metadata value
/**
* Get the baseline metadata values.
*
* @return the metadata value
*/
public List<BaselineMetadata> metadata() {
return this.metadata;
}
Set the baseline metadata values.
Params: - metadata – the metadata value to set
Returns: the TimeSeriesBaseline object itself.
/**
* Set the baseline metadata values.
*
* @param metadata the metadata value to set
* @return the TimeSeriesBaseline object itself.
*/
public TimeSeriesBaseline withMetadata(List<BaselineMetadata> metadata) {
this.metadata = metadata;
return this;
}
}