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.implementation; import org.joda.time.Period; import java.util.List; import org.joda.time.DateTime; import com.microsoft.azure.management.monitor.BaselineMetadataValue; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten;
The response to a baseline query.
/** * The response to a baseline query. */
@JsonFlatten public class BaselineResponseInner {
the metric baseline Id.
/** * the metric baseline Id. */
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) private String id;
the resource type of the baseline resource.
/** * the resource type of the baseline resource. */
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) private String type;
the name and the display name of the metric, i.e. it is localizable string.
/** * the name and the display name of the metric, i.e. it is localizable * string. */
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private LocalizableStringInner name;
The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested.
/** * The timespan for which the data was retrieved. Its value consists of two * datetimes concatenated, separated by '/'. This may be adjusted in the * future and returned back from what was originally requested. */
@JsonProperty(value = "properties.timespan") private String timespan;
The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made.
/** * The interval (window size) for which the metric data was returned in. * This may be adjusted in the future and returned back from what was * originally requested. This is not present if a metadata request was * made. */
@JsonProperty(value = "properties.interval") private Period interval;
The aggregation type of the metric.
/** * The aggregation type of the metric. */
@JsonProperty(value = "properties.aggregation") private String aggregation;
the array of timestamps of the baselines.
/** * the array of timestamps of the baselines. */
@JsonProperty(value = "properties.timestamps") private List<DateTime> timestamps;
the baseline values for each sensitivity.
/** * the baseline values for each sensitivity. */
@JsonProperty(value = "properties.baseline") private List<BaselineInner> baseline;
the baseline metadata values.
/** * the baseline metadata values. */
@JsonProperty(value = "properties.metadata") private List<BaselineMetadataValue> metadata;
Get the metric baseline Id.
Returns:the id value
/** * Get the metric baseline Id. * * @return the id value */
public String id() { return this.id; }
Get the resource type of the baseline resource.
Returns:the type value
/** * Get the resource type of the baseline resource. * * @return the type value */
public String type() { return this.type; }
Get the name and the display name of the metric, i.e. it is localizable string.
Returns:the name value
/** * Get the name and the display name of the metric, i.e. it is localizable string. * * @return the name value */
public LocalizableStringInner name() { return this.name; }
Get the timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested.
Returns:the timespan value
/** * Get the timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested. * * @return the timespan value */
public String timespan() { return this.timespan; }
Set the timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested.
Params:
  • timespan – the timespan value to set
Returns:the BaselineResponseInner object itself.
/** * Set the timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested. * * @param timespan the timespan value to set * @return the BaselineResponseInner object itself. */
public BaselineResponseInner withTimespan(String timespan) { this.timespan = timespan; return this; }
Get the interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made.
Returns:the interval value
/** * Get the interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made. * * @return the interval value */
public Period interval() { return this.interval; }
Set the interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made.
Params:
  • interval – the interval value to set
Returns:the BaselineResponseInner object itself.
/** * Set the interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made. * * @param interval the interval value to set * @return the BaselineResponseInner object itself. */
public BaselineResponseInner withInterval(Period interval) { this.interval = interval; return this; }
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 BaselineResponseInner object itself.
/** * Set the aggregation type of the metric. * * @param aggregation the aggregation value to set * @return the BaselineResponseInner object itself. */
public BaselineResponseInner withAggregation(String aggregation) { this.aggregation = aggregation; return this; }
Get the array of timestamps of the baselines.
Returns:the timestamps value
/** * Get the array of timestamps of the baselines. * * @return the timestamps value */
public List<DateTime> timestamps() { return this.timestamps; }
Set the array of timestamps of the baselines.
Params:
  • timestamps – the timestamps value to set
Returns:the BaselineResponseInner object itself.
/** * Set the array of timestamps of the baselines. * * @param timestamps the timestamps value to set * @return the BaselineResponseInner object itself. */
public BaselineResponseInner withTimestamps(List<DateTime> timestamps) { this.timestamps = timestamps; return this; }
Get the baseline values for each sensitivity.
Returns:the baseline value
/** * Get the baseline values for each sensitivity. * * @return the baseline value */
public List<BaselineInner> baseline() { return this.baseline; }
Set the baseline values for each sensitivity.
Params:
  • baseline – the baseline value to set
Returns:the BaselineResponseInner object itself.
/** * Set the baseline values for each sensitivity. * * @param baseline the baseline value to set * @return the BaselineResponseInner object itself. */
public BaselineResponseInner withBaseline(List<BaselineInner> baseline) { this.baseline = baseline; return this; }
Get the baseline metadata values.
Returns:the metadata value
/** * Get the baseline metadata values. * * @return the metadata value */
public List<BaselineMetadataValue> metadata() { return this.metadata; }
Set the baseline metadata values.
Params:
  • metadata – the metadata value to set
Returns:the BaselineResponseInner object itself.
/** * Set the baseline metadata values. * * @param metadata the metadata value to set * @return the BaselineResponseInner object itself. */
public BaselineResponseInner withMetadata(List<BaselineMetadataValue> metadata) { this.metadata = metadata; return this; } }