Delen via


Iot Hub Resource - Get Quota Metrics

Haal de metrische quotumgegevens voor een IoT-hub op.

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

URI-parameters

Name In Vereist Type Description
resourceGroupName
path True

string

De naam van de resourcegroep die de IoT-hub bevat.

resourceName
path True

string

De naam van de IoT-hub.

subscriptionId
path True

string

De abonnements-id.

api-version
query True

string

De versie van de API.

Antwoorden

Name Type Description
200 OK

IotHubQuotaMetricInfoListResult

Dit is een synchrone bewerking. Het antwoord bevat een JSON-geserialiseerde matrix van de metrische quotumgegevens voor de IoT-hub.

Other Status Codes

ErrorDetails

DefaultErrorResponse

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

Type: oauth2
Stroom: implicit
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiken

Name Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

IotHubResource_GetQuotaMetrics

Voorbeeldaanvraag

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

Voorbeeldrespons

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

Definities

Name Description
ErrorDetails

Foutdetails.

IotHubQuotaMetricInfo

Eigenschappen van metrische gegevens quotum.

IotHubQuotaMetricInfoListResult

De JSON-geserialiseerde matrix van IotHubQuotaMetricInfo-objecten met een volgende koppeling.

ErrorDetails

Foutdetails.

Name Type Description
code

string

De foutcode.

details

string

De foutdetails.

httpStatusCode

string

De HTTP-statuscode.

message

string

Het foutbericht.

IotHubQuotaMetricInfo

Eigenschappen van metrische gegevens quotum.

Name Type Description
currentValue

integer

De huidige waarde voor de metrische quotumwaarde.

maxValue

integer

De maximale waarde van de metrische quotumwaarde.

name

string

De naam van de metrische quotumwaarde.

IotHubQuotaMetricInfoListResult

De JSON-geserialiseerde matrix van IotHubQuotaMetricInfo-objecten met een volgende koppeling.

Name Type Description
nextLink

string

De volgende koppeling.

value

IotHubQuotaMetricInfo[]

De matrix met metrische quotumobjecten.