具有时间粒度的存储帐户实体的指标返回null [英] Metrics for Storage Account entities with time granularity returns null

查看:91
本文介绍了具有时间粒度的存储帐户实体的指标返回null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Azure指标API  来检索存储帐户实体的指标.每当我尝试获取指标时 存储帐户实体,时间粒度设置为15分钟(PT15M),仅检索第一季度的指标.

I am using Azure metrics API to retrieve the metrics for Storage account entities. Whenever I try to get the metrics for storage account entities, with time granularity set to 15 minutes(PT15M), metrics are retrieved only for the first quarter.

例如:

当我点击时间范围为09:00到09:15且间隔为15分钟的API时,可以正确检索指标.对于剩下的四分之三,当我按时间跨度(09:15到09:30、09:30到09:45、09:45到10:00)访问API时, 间隔15分钟,返回null.然后在10:00到10:15的时间间隔和15分钟的时间间隔内,检索正确的指标.

When I hit the API with time span 09:00 to 09:15 and interval 15 minutes, metrics are retrieved correctly. For the remaining three quarters when I hit the API with time span (09:15 to 09:30, 09:30 to 09:45, 09:45 to 10:00) and interval 15 minutes null is returned. Then for time span 10:00 to 10:15 and interval 15 minutes, correct metrics are retrieved.

当我使用Azure门户执行相同操作时,将时间粒度设置为15分钟(PT15M),则将检索指标1小时(PT1H).

When I use Azure portal to do the same, setting time granularity to 15 minutes(PT15M), metrics are retrieved for 1 hour(PT1H).

推荐答案

您要检索哪个特定指标?容量事务(出口,入口等?)
另外,您是要每15分钟生成一次指标还是按需仅生成15分钟的指标?您是否尝试过Powershell测试ex: 

Which specific metrics are you retrieving ? Capacity Transactions (egress , Ingress etc ?) 
Also, Are you trying to generate the metrics every 15 minutes, or on demand to only get 15mins worth of metrics ? Have you given Powershell a try for testing ex: 

Set-AzureStorageServiceMetricsProperty -MetricsType Minute   
-ServiceType Blob -MetricsLevel ServiceAndApi  -RetentionDays 5


您还可以分享您正在使用的代码吗?


Could you also share the code you are using? 


这篇关于具有时间粒度的存储帐户实体的指标返回null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆