BaselineOperations Class

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

Constructor

BaselineOperations(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

Gets the baseline values for a resource.

get

Gets the baseline values for a resource.

async get(resource_uri: str, metricnames: Optional[str] = None, timespan: Optional[str] = None, interval: Optional[datetime.timedelta] = None, aggregation: Optional[str] = None, sensitivities: Optional[str] = None, result_type: Optional[Union[str, azure.mgmt.monitor.v2018_09_01.models._monitor_management_client_enums.ResultType]] = None, metricnamespace: Optional[str] = None, filter: Optional[str] = None, **kwargs: Any) -> azure.mgmt.monitor.v2018_09_01.models._models_py3.BaselineResponse

Parameters

resource_uri
str
Required

The identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1.

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

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.

aggregation
str
Required

The aggregation type of the metric to retrieve the baseline for.

sensitivities
str
Required

The list of sensitivities (comma separated) to retrieve.

result_type
str or <xref:$>(<xref:python-base-namespace>)ResultType
Required

Allows retrieving only metadata of the baseline. On data request all information is retrieved.

metricnamespace
str
Required

Metric namespace to query metric definitions for.

filter
str
Required

The $filter is used to describe a set of dimensions with their concrete values which produce a specific metric's time series, in which a baseline is requested for.

cls
callable

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

Returns

BaselineResponse, or the result of cls(response)

Return type

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

Exceptions

Attributes

models

models = <module 'azure.mgmt.monitor.v2018_09_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\monitor\\v2018_09_01\\models\\__init__.py'>