resource_stats
Creates, updates, deletes, gets or lists a resource_stats
resource.
Overview
Name | resource_stats |
Type | Resource |
Id | azure.iot_hub.resource_stats |
Fields
Name | Datatype | Description |
---|---|---|
disabledDeviceCount | integer | The count of disabled devices in the identity registry. |
enabledDeviceCount | integer | The count of enabled devices in the identity registry. |
totalDeviceCount | integer | The total count of devices in the identity registry. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, resourceName, subscriptionId | Get the statistics from an IoT hub. |
SELECT
examples
Get the statistics from an IoT hub.
SELECT
disabledDeviceCount,
enabledDeviceCount,
totalDeviceCount
FROM azure.iot_hub.resource_stats
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';