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
The following fields are returned by SELECT
queries:
- get
This is a synchronous operation. The body contains JSON-serialized statistics from the identity registry in the IoT hub.
Name | Datatype | Description |
---|---|---|
disabledDeviceCount | integer (int64) | The count of disabled devices in the identity registry. |
enabledDeviceCount | integer (int64) | The count of enabled devices in the identity registry. |
totalDeviceCount | integer (int64) | The total count of devices in the identity registry. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | subscriptionId , resourceGroupName , resourceName | api-version | Get the statistics from an IoT hub. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
resourceGroupName | string | The name of the resource group that contains the IoT hub. |
resourceName | string | The name of the IoT hub. |
subscriptionId | string | The subscription identifier. |
api-version | string | The version of the API. |
SELECT
examples
- get
Get the statistics from an IoT hub.
SELECT
disabledDeviceCount,
enabledDeviceCount,
totalDeviceCount
FROM azure.iot_hub.resource_stats
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND resourceName = '{{ resourceName }}' -- required
AND api-version = '{{ api-version }}'
;