MetricInner Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. fluent. models. MetricInner
- com.
Implements
public final class MetricInner
implements JsonSerializable<MetricInner>
The result data of a query.
Constructor Summary
Constructor | Description |
---|---|
MetricInner() |
Creates an instance of Metric |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
displayDescription()
Get the display |
String |
errorCode()
Get the error |
String |
errorMessage()
Get the error |
static
Metric |
fromJson(JsonReader jsonReader)
Reads an instance of Metric |
String |
id()
Get the id property: the metric Id. |
Localizable |
name()
Get the name property: the name and the display name of the metric, i. |
List<Time |
timeseries()
Get the timeseries property: the time series returned when a data query is performed. |
Json |
toJson(JsonWriter jsonWriter) |
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. |
Metric |
withDisplayDescription(String displayDescription)
Set the display |
Metric |
withErrorCode(String errorCode)
Set the error |
Metric |
withErrorMessage(String errorMessage)
Set the error |
Metric |
withId(String id)
Set the id property: the metric Id. |
Metric |
withName(LocalizableStringInner name)
Set the name property: the name and the display name of the metric, i. |
Metric |
withTimeseries(List<TimeSeriesElement> timeseries)
Set the timeseries property: the time series returned when a data query is performed. |
Metric |
withType(String type)
Set the type property: the resource type of the metric resource. |
Metric |
withUnit(Unit unit)
Set the unit property: The unit of the metric. |
Methods inherited from java.lang.Object
Constructor Details
MetricInner
public MetricInner()
Creates an instance of MetricInner class.
Method Details
displayDescription
public String displayDescription()
Get the displayDescription property: Detailed description of this metric.
Returns:
errorCode
public String errorCode()
Get the errorCode property: 'Success' or the error details on query failures for this metric.
Returns:
errorMessage
public String errorMessage()
Get the errorMessage property: Error message encountered querying this specific metric.
Returns:
fromJson
public static MetricInner fromJson(JsonReader jsonReader)
Reads an instance of MetricInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: the metric Id.
Returns:
name
public LocalizableStringInner name()
Get the name property: the name and the display name of the metric, i.e. it is localizable string.
Returns:
timeseries
public List
Get the timeseries property: the time series returned when a data query is performed.
Returns:
toJson
type
public String type()
Get the type property: the resource type of the metric resource.
Returns:
unit
public Unit unit()
Get the unit property: The unit of the metric.
Returns:
validate
public void validate()
Validates the instance.
withDisplayDescription
public MetricInner withDisplayDescription(String displayDescription)
Set the displayDescription property: Detailed description of this metric.
Parameters:
Returns:
withErrorCode
public MetricInner withErrorCode(String errorCode)
Set the errorCode property: 'Success' or the error details on query failures for this metric.
Parameters:
Returns:
withErrorMessage
public MetricInner withErrorMessage(String errorMessage)
Set the errorMessage property: Error message encountered querying this specific metric.
Parameters:
Returns:
withId
public MetricInner withId(String id)
Set the id property: the metric Id.
Parameters:
Returns:
withName
public MetricInner withName(LocalizableStringInner name)
Set the name property: the name and the display name of the metric, i.e. it is localizable string.
Parameters:
Returns:
withTimeseries
public MetricInner withTimeseries(List
Set the timeseries property: the time series returned when a data query is performed.
Parameters:
Returns:
withType
public MetricInner withType(String type)
Set the type property: the resource type of the metric resource.
Parameters:
Returns:
withUnit
public MetricInner withUnit(Unit unit)
Set the unit property: The unit of the metric.
Parameters:
Returns:
Applies to
Azure SDK for Java