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.object
PredictiveMetricOperations

Constructor

PredictiveMetricOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

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

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

autoscale_setting_name
str
Required

The autoscale setting name.

timespan
str
Required

The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'.

interval
timedelta
Required

The interval (i.e. timegrain) of the query.

metric_namespace
str
Required

Metric namespace to query metric definitions for.

metric_name
str
Required

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'.

aggregation
str
Required

The list of aggregation types (comma separated) to retrieve.

cls
callable

A custom type or function that will be passed the direct response

Returns

PredictiveResponse, or the result of cls(response)

Return type

<xref:$>(<xref:python-base-namespace>)PredictiveResponse

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'>