PredictiveMetricOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

MonitorManagementClient's

<xref:predictive_metric> attribute.

Constructor

PredictiveMetricOperations(*args, **kwargs)

Methods

get

get predictive autoscale metric future data.

get

get predictive autoscale metric future data.

get(resource_group_name: str, autoscale_setting_name: str, timespan: str, interval: timedelta, metric_namespace: str, metric_name: str, aggregation: str, **kwargs: Any) -> PredictiveResponse

Parameters

Name Description
resource_group_name
Required
str

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

autoscale_setting_name
Required
str

The autoscale setting name. Required.

timespan
Required
str

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

interval
Required

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

metric_namespace
Required
str

Metric namespace to query metric definitions for. Required.

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

aggregation
Required
str

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

Returns

Type Description

PredictiveResponse or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.monitor.models' from 'C:\\ToolCache\\Python\\3.12.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv181\\Lib\\site-packages\\azure\\mgmt\\monitor\\models\\__init__.py'>