com.microsoft.azure.management.monitor.implementation.MetricInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-monitor Show documentation
Show all versions of azure-mgmt-monitor Show documentation
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.
/**
* 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 com.microsoft.azure.management.monitor.Unit;
import java.util.List;
import com.microsoft.azure.management.monitor.TimeSeriesElement;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* The result data of a query.
*/
public class MetricInner {
/**
* the metric Id.
*/
@JsonProperty(value = "id", required = true)
private String id;
/**
* the resource type of the metric resource.
*/
@JsonProperty(value = "type", required = true)
private String type;
/**
* the name and the display name of the metric, i.e. it is localizable
* string.
*/
@JsonProperty(value = "name", required = true)
private LocalizableStringInner name;
/**
* the unit of the metric. Possible values include: 'Count', 'Bytes',
* 'Seconds', 'CountPerSecond', 'BytesPerSecond', 'Percent',
* 'MilliSeconds', 'ByteSeconds', 'Unspecified', 'Cores', 'MilliCores',
* 'NanoCores', 'BitsPerSecond'.
*/
@JsonProperty(value = "unit", required = true)
private Unit unit;
/**
* the time series returned when a data query is performed.
*/
@JsonProperty(value = "timeseries", required = true)
private List timeseries;
/**
* Get the metric Id.
*
* @return the id value
*/
public String id() {
return this.id;
}
/**
* Set the metric Id.
*
* @param id the id value to set
* @return the MetricInner object itself.
*/
public MetricInner withId(String id) {
this.id = id;
return this;
}
/**
* Get the resource type of the metric resource.
*
* @return the type value
*/
public String type() {
return this.type;
}
/**
* Set the resource type of the metric resource.
*
* @param type the type value to set
* @return the MetricInner object itself.
*/
public MetricInner withType(String type) {
this.type = type;
return this;
}
/**
* 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;
}
/**
* Set the name and the display name of the metric, i.e. it is localizable string.
*
* @param name the name value to set
* @return the MetricInner object itself.
*/
public MetricInner withName(LocalizableStringInner name) {
this.name = name;
return this;
}
/**
* Get the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified', 'Cores', 'MilliCores', 'NanoCores', 'BitsPerSecond'.
*
* @return the unit value
*/
public Unit unit() {
return this.unit;
}
/**
* Set the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified', 'Cores', 'MilliCores', 'NanoCores', 'BitsPerSecond'.
*
* @param unit the unit value to set
* @return the MetricInner object itself.
*/
public MetricInner withUnit(Unit unit) {
this.unit = unit;
return this;
}
/**
* Get the time series returned when a data query is performed.
*
* @return the timeseries value
*/
public List timeseries() {
return this.timeseries;
}
/**
* Set the time series returned when a data query is performed.
*
* @param timeseries the timeseries value to set
* @return the MetricInner object itself.
*/
public MetricInner withTimeseries(List timeseries) {
this.timeseries = timeseries;
return this;
}
}