Iot Hub Resource - Get Stats

IoT hub'ından istatistikleri alın.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/IotHubStats?api-version=2023-06-30

URI Parametreleri

Name İçinde Gerekli Tür Description
resourceGroupName
path True

string

IoT hub'ını içeren kaynak grubunun adı.

resourceName
path True

string

IoT hub'ının adı.

subscriptionId
path True

string

Abonelik tanımlayıcısı.

api-version
query True

string

API'nin sürümü.

Yanıtlar

Name Tür Description
200 OK

RegistryStatistics

Bu zaman uyumlu bir işlemdir. Gövde, IoT hub'ında kimlik kayıt defterinden JSON serileştirilmiş istatistikleri içerir.

Other Status Codes

ErrorDetails

DefaultErrorResponse

Güvenlik

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation kullanıcı hesabınızın kimliğine bürünme

Örnekler

IotHubResource_GetStats

Sample Request

GET https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub/IotHubStats?api-version=2023-06-30

Sample Response

{
  "totalDeviceCount": 0,
  "enabledDeviceCount": 0,
  "disabledDeviceCount": 0
}

Tanımlar

Name Description
ErrorDetails

Hata ayrıntıları.

RegistryStatistics

Kimlik kayıt defteri istatistikleri.

ErrorDetails

Hata ayrıntıları.

Name Tür Description
code

string

Hata kodu.

details

string

Hata ayrıntıları.

httpStatusCode

string

HTTP durum kodu.

message

string

Hata iletisi.

RegistryStatistics

Kimlik kayıt defteri istatistikleri.

Name Tür Description
disabledDeviceCount

integer

Kimlik kayıt defterindeki devre dışı bırakılan cihazların sayısı.

enabledDeviceCount

integer

Kimlik kayıt defterindeki etkin cihazların sayısı.

totalDeviceCount

integer

Kimlik kayıt defterindeki cihazların toplam sayısı.