PredictiveResponse Class
The response to a metrics query.
Constructor
PredictiveResponse(*, timespan: str | None = None, interval: timedelta | None = None, metric_name: str | None = None, target_resource_id: str | None = None, data: List[_models.PredictiveValue] | None = None, **kwargs: Any)
Keyword-Only Parameters
| Name | Description |
|---|---|
|
timespan
|
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. Default value: None
|
|
interval
|
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. Default value: None
|
|
metric_name
|
The metrics being queried. Default value: None
|
|
target_resource_id
|
resource of the predictive metric. Default value: None
|
|
data
|
the value of the collection. Default value: None
|
Variables
| Name | Description |
|---|---|
|
timespan
|
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. |
|
interval
|
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. |
|
metric_name
|
The metrics being queried. |
|
target_resource_id
|
resource of the predictive metric. |
|
data
|
the value of the collection. |