你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
MetricDefinitionsOperations 类
- 继承
-
builtins.objectMetricDefinitionsOperations
构造函数
MetricDefinitionsOperations(*args, **kwargs)
方法
list |
列出资源的指标定义。 |
list
列出资源的指标定义。
list(resource_uri: str, filter: str | None = None, **kwargs: Any) -> Iterable[MetricDefinition]
参数
- filter
- str
必需
通过从所有可用于 resource.:code 的定义中检索特定指标定义来减少收集的数据集:For example, to get just the definition for the 'CPU percentage' counter: $filter=name.value eq 'Processor(_Total)% Processor Time'.:code:
Multiple metrics can be retrieved by joining together *'name eq :code:
用 或 逻辑运算符分隔的 '* 子句。:code:*
*注意:不允许使用其他语法。 默认值为 None。
- cls
- callable
将传递直接响应的自定义类型或函数
返回
迭代器,例如 MetricDefinition 的实例或 cls 的结果 (响应)
返回类型
例外
属性
models
models = <module 'azure.mgmt.monitor.v2015_07_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.7\\x64\\Lib\\site-packages\\azure\\mgmt\\monitor\\v2015_07_01\\models\\__init__.py'>
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈