你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Metrics Class
Metrics include aggregated transaction statistics and capacity data about requests to a storage service. Transactions are reported at both the API operation level as well as at the storage service level, and capacity is reported at the storage service level. Metrics data can be used to analyze storage service usage, diagnose issues with requests made against the storage service, and to improve the performance of applications that use a service.
For more information, see https://msdn.microsoft.com/en-us/library/azure/hh343258.aspx
- Inheritance
-
builtins.objectMetrics
Constructor
Metrics(enabled=False, include_apis=None, retention_policy=None)
Parameters
Name | Description |
---|---|
enabled
|
Indicates whether metrics are enabled for the service. Default value: False
|
include_apis
|
Required if enabled is True. Indicates whether metrics should generate summary statistics for called API operations. Default value: None
|
retention_policy
|
The retention policy for the metrics. Default value: None
|