BaselinesOperations Class

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

Constructor

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

list

Lists the metric baseline values for a resource.

list

Lists the metric baseline values for a resource.

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

Parameters

resource_uri
str
Required

The identifier of the resource.

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

metricnamespace
str
Required

Metric namespace to query metric definitions for.

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 list of aggregation types (comma separated) to retrieve.

sensitivities
str
Required

The list of sensitivities (comma separated) to retrieve.

filter
str
Required

The $filter is used to reduce the set of metric data returned. Example: Metric contains metadata A, B and C. - Return all time series of C where A = a1 and B = b1 or b2 $filter=A eq 'a1' and B eq 'b1' or B eq 'b2' and C eq '*' - Invalid variant: $filter=A eq 'a1' and B eq 'b1' and C eq '*' or B = 'b2' This is invalid because the logical or operator cannot separate two different metadata names. - Return all time series where A = a1, B = b1 and C = c1: $filter=A eq 'a1' and B eq 'b1' and C eq 'c1' - Return all time series where A = a1 $filter=A eq 'a1' and B eq '' and C eq ''. Special case: When dimension name or dimension value uses round brackets. Eg: When dimension name is dim (test) 1 Instead of using $filter= "dim (test) 1 eq '' " use $filter= "dim %2528test%2529 1 eq ' ' " When dimension name is dim (test) 3 and dimension value is **dim3 (test) val ** Instead of using $filter= "dim (test) 3 eq 'dim3 (test) val' " use $filter= "dim %2528test%2529 3 eq 'dim3 %2528test%2529 val' ".

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.

cls
callable

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

Returns

An iterator like instance of either MetricBaselinesResponse or the result of cls(response)

Return type

AsyncItemPaged[<xref:$>(<xref:python-base-namespace>)MetricBaselinesResponse]

Exceptions

Attributes

models

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