Iot Hub Resource - Get Quota Metrics

IoT hub'ı için kota ölçümlerini alın.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/quotaMetrics?api-version=2018-04-01

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 sürümü.

Yanıtlar

Name Tür Description
200 OK

IotHubQuotaMetricInfoListResult

Bu zaman uyumlu bir işlemdir. Yanıt, IoT hub'ı için kota ölçümlerinin JSON serileştirilmiş bir dizisini 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_GetQuotaMetrics

Sample Request

GET https://management.azure.com/subscriptions/91d12660-3dec-467a-be2a-213b5544ddc0/resourceGroups/myResourceGroup/providers/Microsoft.Devices/IotHubs/testHub/quotaMetrics?api-version=2018-04-01

Sample Response

{
  "value": [
    {
      "name": "TotalMessages",
      "currentValue": 0,
      "maxValue": 400000
    },
    {
      "name": "TotalDeviceCount",
      "currentValue": 0,
      "maxValue": 500000
    }
  ]
}

Tanımlar

Name Description
ErrorDetails

Hata ayrıntıları.

IotHubQuotaMetricInfo

Kota ölçümleri özellikleri.

IotHubQuotaMetricInfoListResult

Sonraki bağlantıya sahip IotHubQuotaMetricInfo nesnelerinin JSON serileştirilmiş dizisi.

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.

IotHubQuotaMetricInfo

Kota ölçümleri özellikleri.

Name Tür Description
currentValue

integer

Kota ölçümü için geçerli değer.

maxValue

integer

Kota ölçümünün en büyük değeri.

name

string

Kota ölçümünün adı.

IotHubQuotaMetricInfoListResult

Sonraki bağlantıya sahip IotHubQuotaMetricInfo nesnelerinin JSON serileştirilmiş dizisi.

Name Tür Description
nextLink

string

Sonraki bağlantı.

value

IotHubQuotaMetricInfo[]

Kota ölçümleri nesneleri dizisi.