ResponseInner Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. fluent. models. ResponseInner
- com.
Implements
public final class ResponseInner
implements JsonSerializable<ResponseInner>
The response to a metrics query.
Constructor Summary
Constructor | Description |
---|---|
ResponseInner() |
Creates an instance of Response |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
cost()
Get the cost property: The integer value representing the relative cost of the query. |
static
Response |
fromJson(JsonReader jsonReader)
Reads an instance of Response |
Duration |
interval()
Get the interval property: The interval (window size) for which the metric data was returned in. |
String |
namespace()
Get the namespace property: The namespace of the metrics being queried. |
String |
resourceRegion()
Get the resource |
String |
timespan()
Get the timespan property: The timespan for which the data was retrieved. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
List<Metric |
value()
Get the value property: the value of the collection. |
Response |
withCost(Integer cost)
Set the cost property: The integer value representing the relative cost of the query. |
Response |
withInterval(Duration interval)
Set the interval property: The interval (window size) for which the metric data was returned in. |
Response |
withNamespace(String namespace)
Set the namespace property: The namespace of the metrics being queried. |
Response |
withResourceRegion(String resourceRegion)
Set the resource |
Response |
withTimespan(String timespan)
Set the timespan property: The timespan for which the data was retrieved. |
Response |
withValue(List<MetricInner> value)
Set the value property: the value of the collection. |
Methods inherited from java.lang.Object
Constructor Details
ResponseInner
public ResponseInner()
Creates an instance of ResponseInner class.
Method Details
cost
public Integer cost()
Get the cost property: The integer value representing the relative cost of the query.
Returns:
fromJson
public static ResponseInner fromJson(JsonReader jsonReader)
Reads an instance of ResponseInner from the JsonReader.
Parameters:
Returns:
Throws:
interval
public Duration interval()
Get the interval property: 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:
namespace
public String namespace()
Get the namespace property: The namespace of the metrics being queried.
Returns:
resourceRegion
public String resourceRegion()
Get the resourceRegion property: The region of the resource being queried for metrics.
Returns:
timespan
public String timespan()
Get the timespan property: 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:
toJson
validate
public void validate()
Validates the instance.
value
public List
Get the value property: the value of the collection.
Returns:
withCost
public ResponseInner withCost(Integer cost)
Set the cost property: The integer value representing the relative cost of the query.
Parameters:
Returns:
withInterval
public ResponseInner withInterval(Duration interval)
Set the interval property: 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.
Parameters:
Returns:
withNamespace
public ResponseInner withNamespace(String namespace)
Set the namespace property: The namespace of the metrics being queried.
Parameters:
Returns:
withResourceRegion
public ResponseInner withResourceRegion(String resourceRegion)
Set the resourceRegion property: The region of the resource being queried for metrics.
Parameters:
Returns:
withTimespan
public ResponseInner withTimespan(String timespan)
Set the timespan property: 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.
Parameters:
Returns:
withValue
public ResponseInner withValue(List
Set the value property: the value of the collection.
Parameters:
Returns:
Applies to
Azure SDK for Java