All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.management.monitor.implementation.BaselineResponseInner Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure Monitor SDK. This package has been deprecated. A replacement package com.azure.resourcemanager:azure-resourcemanager-monitor is available as of 31-March-2022. We strongly encourage you to upgrade to continue receiving updates. See Migration Guide https://aka.ms/java-track2-migration-guide for guidance on upgrading. Refer to our deprecation policy https://azure.github.io/azure-sdk/policies_support.html for more details.

There is a newer version: 1.41.4
Show newest version
/**
 * 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.
 */
@JsonFlatten
public class BaselineResponseInner {
    /**
     * the metric baseline Id.
     */
    @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
    private String id;

    /**
     * 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.
     */
    @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.
     */
    @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.
     */
    @JsonProperty(value = "properties.interval")
    private Period interval;

    /**
     * The aggregation type of the metric.
     */
    @JsonProperty(value = "properties.aggregation")
    private String aggregation;

    /**
     * the array of timestamps of the baselines.
     */
    @JsonProperty(value = "properties.timestamps")
    private List timestamps;

    /**
     * the baseline values for each sensitivity.
     */
    @JsonProperty(value = "properties.baseline")
    private List baseline;

    /**
     * the baseline metadata values.
     */
    @JsonProperty(value = "properties.metadata")
    private List metadata;

    /**
     * Get the metric baseline Id.
     *
     * @return the id value
     */
    public String id() {
        return this.id;
    }

    /**
     * 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.
     *
     * @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.
     *
     * @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.
     *
     * @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.
     *
     * @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.
     *
     * @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.
     *
     * @return the aggregation value
     */
    public String aggregation() {
        return this.aggregation;
    }

    /**
     * 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.
     *
     * @return the timestamps value
     */
    public List timestamps() {
        return this.timestamps;
    }

    /**
     * Set the array of timestamps of the baselines.
     *
     * @param timestamps the timestamps value to set
     * @return the BaselineResponseInner object itself.
     */
    public BaselineResponseInner withTimestamps(List timestamps) {
        this.timestamps = timestamps;
        return this;
    }

    /**
     * Get the baseline values for each sensitivity.
     *
     * @return the baseline value
     */
    public List baseline() {
        return this.baseline;
    }

    /**
     * Set the baseline values for each sensitivity.
     *
     * @param baseline the baseline value to set
     * @return the BaselineResponseInner object itself.
     */
    public BaselineResponseInner withBaseline(List baseline) {
        this.baseline = baseline;
        return this;
    }

    /**
     * Get the baseline metadata values.
     *
     * @return the metadata value
     */
    public List metadata() {
        return this.metadata;
    }

    /**
     * Set the baseline metadata values.
     *
     * @param metadata the metadata value to set
     * @return the BaselineResponseInner object itself.
     */
    public BaselineResponseInner withMetadata(List metadata) {
        this.metadata = metadata;
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy