你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
DataCollectionRuleAssociationsOperations 类
警告
请勿直接实例化此类。
相反,应通过以下方式访问以下操作:
<xref:data_collection_rule_associations> 属性。
- 继承
-
builtins.objectDataCollectionRuleAssociationsOperations
构造函数
DataCollectionRuleAssociationsOperations(*args, **kwargs)
方法
create |
创建或更新关联。 创建或更新关联。 |
delete |
删除关联。 删除关联。 |
get |
返回指定的关联。 返回指定的关联。 |
list_by_data_collection_endpoint |
列出指定数据收集终结点的关联。 列出指定数据收集终结点的关联。 |
list_by_resource |
列出指定资源的关联。 列出指定资源的关联。 |
list_by_rule |
列出指定数据收集规则的关联。 列出指定数据收集规则的关联。 |
create
创建或更新关联。
创建或更新关联。
create(resource_uri: str, association_name: str, body: _models.DataCollectionRuleAssociationProxyOnlyResource | None = None, *, content_type: str = 'application/json', **kwargs: Any) -> _models.DataCollectionRuleAssociationProxyOnlyResource
参数
负载。 是 DataCollectionRuleAssociationProxyOnlyResource 类型或 IO 类型。 默认值为 None。
- content_type
- str
正文参数内容类型。 已知值为:“application/json”。 默认值为 None。
- cls
- callable
将传递直接响应的自定义类型或函数
返回
DataCollectionRuleAssociationProxyOnlyResource 或 cls 的结果 (响应)
返回类型
例外
delete
删除关联。
删除关联。
delete(resource_uri: str, association_name: str, **kwargs: Any) -> None
参数
- cls
- callable
将传递直接响应的自定义类型或函数
返回
无响应或 cls 的结果 (响应)
返回类型
例外
get
返回指定的关联。
返回指定的关联。
get(resource_uri: str, association_name: str, **kwargs: Any) -> DataCollectionRuleAssociationProxyOnlyResource
参数
- cls
- callable
将传递直接响应的自定义类型或函数
返回
DataCollectionRuleAssociationProxyOnlyResource 或 cls 的结果 (响应)
返回类型
例外
list_by_data_collection_endpoint
列出指定数据收集终结点的关联。
列出指定数据收集终结点的关联。
list_by_data_collection_endpoint(resource_group_name: str, data_collection_endpoint_name: str, **kwargs: Any) -> Iterable[DataCollectionRuleAssociationProxyOnlyResource]
参数
- cls
- callable
将传递直接响应的自定义类型或函数
返回
一个迭代器,例如 DataCollectionRuleAssociationProxyOnlyResource 的实例或 cls 的结果 (响应)
返回类型
例外
list_by_resource
列出指定资源的关联。
列出指定资源的关联。
list_by_resource(resource_uri: str, **kwargs: Any) -> Iterable[DataCollectionRuleAssociationProxyOnlyResource]
参数
- cls
- callable
将传递直接响应的自定义类型或函数
返回
一个迭代器,例如 DataCollectionRuleAssociationProxyOnlyResource 的实例或 cls 的结果 (响应)
返回类型
例外
list_by_rule
列出指定数据收集规则的关联。
列出指定数据收集规则的关联。
list_by_rule(resource_group_name: str, data_collection_rule_name: str, **kwargs: Any) -> Iterable[DataCollectionRuleAssociationProxyOnlyResource]
参数
- cls
- callable
将传递直接响应的自定义类型或函数
返回
一个迭代器,例如 DataCollectionRuleAssociationProxyOnlyResource 的实例或 cls 的结果 (响应)
返回类型
例外
属性
models
models = <module 'azure.mgmt.monitor.v2022_02_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.7\\x64\\Lib\\site-packages\\azure\\mgmt\\monitor\\v2022_02_01_preview\\models\\__init__.py'>
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈