public final class MetricInner extends Object
| Constructor and Description |
|---|
MetricInner() |
| Modifier and Type | Method and Description |
|---|---|
String |
id()
Get the id property: the metric Id.
|
LocalizableStringInner |
name()
Get the name property: the name and the display name of the metric, i.e.
|
List<TimeSeriesElement> |
timeseries()
Get the timeseries property: the time series returned when a data query is performed.
|
String |
type()
Get the type property: the resource type of the metric resource.
|
Unit |
unit()
Get the unit property: the unit of the metric.
|
void |
validate()
Validates the instance.
|
MetricInner |
withId(String id)
Set the id property: the metric Id.
|
MetricInner |
withName(LocalizableStringInner name)
Set the name property: the name and the display name of the metric, i.e.
|
MetricInner |
withTimeseries(List<TimeSeriesElement> timeseries)
Set the timeseries property: the time series returned when a data query is performed.
|
MetricInner |
withType(String type)
Set the type property: the resource type of the metric resource.
|
MetricInner |
withUnit(Unit unit)
Set the unit property: the unit of the metric.
|
public String id()
public MetricInner withId(String id)
id - the id value to set.public String type()
public MetricInner withType(String type)
type - the type value to set.public LocalizableStringInner name()
public MetricInner withName(LocalizableStringInner name)
name - the name value to set.public Unit unit()
public MetricInner withUnit(Unit unit)
unit - the unit value to set.public List<TimeSeriesElement> timeseries()
public MetricInner withTimeseries(List<TimeSeriesElement> timeseries)
timeseries - the timeseries value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.