PredictiveMetricOperations Class
PredictiveMetricOperations async operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectPredictiveMetricOperations
Constructor
PredictiveMetricOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| get |
get predictive autoscale metric future data. |
get
get predictive autoscale metric future data.
async get(resource_group_name: str, autoscale_setting_name: str, timespan: str, interval: datetime.timedelta, metric_namespace: str, metric_name: str, aggregation: str, **kwargs: Any) -> azure.mgmt.monitor.v2021_05_01_preview.models._models_py3.PredictiveResponse
Parameters
- timespan
- str
The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'.
- metric_name
- str
The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be 'Metric%2Name1'.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
PredictiveResponse, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.monitor.v2021_05_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\monitor\\v2021_05_01_preview\\models\\__init__.py'>
Feedback
Submit and view feedback for