PredictiveResponseInner Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. fluent. models. PredictiveResponseInner
- com.
Implements
public final class PredictiveResponseInner
implements JsonSerializable<PredictiveResponseInner>
The response to a metrics query.
Constructor Summary
Constructor | Description |
---|---|
PredictiveResponseInner() |
Creates an instance of Predictive |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Predictive |
data()
Get the data property: the value of the collection. |
static
Predictive |
fromJson(JsonReader jsonReader)
Reads an instance of Predictive |
Duration |
interval()
Get the interval property: The interval (window size) for which the metric data was returned in. |
String |
metricName()
Get the metric |
String |
targetResourceId()
Get the target |
String |
timespan()
Get the timespan property: The timespan for which the data was retrieved. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Predictive |
withData(List<PredictiveValue> data)
Set the data property: the value of the collection. |
Predictive |
withInterval(Duration interval)
Set the interval property: The interval (window size) for which the metric data was returned in. |
Predictive |
withMetricName(String metricName)
Set the metric |
Predictive |
withTargetResourceId(String targetResourceId)
Set the target |
Predictive |
withTimespan(String timespan)
Set the timespan property: The timespan for which the data was retrieved. |
Methods inherited from java.lang.Object
Constructor Details
PredictiveResponseInner
public PredictiveResponseInner()
Creates an instance of PredictiveResponseInner class.
Method Details
data
public List
Get the data property: the value of the collection.
Returns:
fromJson
public static PredictiveResponseInner fromJson(JsonReader jsonReader)
Reads an instance of PredictiveResponseInner 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:
metricName
public String metricName()
Get the metricName property: The metrics being queried.
Returns:
targetResourceId
public String targetResourceId()
Get the targetResourceId property: resource of the predictive metric.
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.
withData
public PredictiveResponseInner withData(List
Set the data property: the value of the collection.
Parameters:
Returns:
withInterval
public PredictiveResponseInner 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:
withMetricName
public PredictiveResponseInner withMetricName(String metricName)
Set the metricName property: The metrics being queried.
Parameters:
Returns:
withTargetResourceId
public PredictiveResponseInner withTargetResourceId(String targetResourceId)
Set the targetResourceId property: resource of the predictive metric.
Parameters:
Returns:
withTimespan
public PredictiveResponseInner 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:
Applies to
Azure SDK for Java