user584018
user584018

Reputation: 11304

Is there a way to know if IoT hub quota exceed WITHOUT data ingestion?

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?

enter image description here

Upvotes: 0

Views: 150

Answers (1)

Roman Kiss
Roman Kiss

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

Related Questions