Reputation: 11304
I have below code which give me a nice exception about IoT quota exceeded while I am ingesting data to IOT hub, but does C# sdk has any method which gives me a way to find out that quota is out for a day WITH OUT data ingestion?
Upvotes: 0
Views: 150
Reputation: 8235
you can use the Iot Hub Resource - Get Quota Metrics
the following is the result of the F1-Free tier:
{
"value":[
{
"name":"TotalMessages",
"currentValue":101,
"maxValue":8000
},
{
"name":"TotalDeviceCount",
"currentValue":17,
"maxValue":500
}
]
}
Upvotes: 1