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.objectBaselineOperations
Constructor
BaselineOperations(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 |
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
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
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
The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'.
- result_type
- str or <xref:$>(<xref:python-base-namespace>)ResultType
Allows retrieving only metadata of the baseline. On data request all information is retrieved.
- filter
- str
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
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'>
Feedback
Submit and view feedback for