你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Iot Hub Resource - Get Quota Metrics

获取 IoT 中心的配额指标。

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

URI 参数

名称 必需 类型 说明
resourceGroupName
path True

string

包含 IoT 中心的资源组的名称。

resourceName
path True

string

IoT 中心的名称。

subscriptionId
path True

string

订阅标识符。

api-version
query True

string

API 的版本。

响应

名称 类型 说明
200 OK

IotHubQuotaMetricInfoListResult

这是一个同步操作。 响应包含 IoT 中心的配额指标的 JSON 序列化数组。

Other Status Codes

ErrorDetails

DefaultErrorResponse

安全性

azure_auth

Azure Active Directory OAuth2 流

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

Scopes

名称 说明
user_impersonation 模拟用户帐户

示例

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=2023-06-30

Sample Response

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

定义

名称 说明
ErrorDetails

错误详细信息。

IotHubQuotaMetricInfo

配额指标属性。

IotHubQuotaMetricInfoListResult

包含下一个链接的 IotHubQuotaMetricInfo 对象的 JSON 序列化数组。

ErrorDetails

错误详细信息。

名称 类型 说明
code

string

错误代码。

details

string

错误详细信息。

httpStatusCode

string

HTTP 状态代码。

message

string

错误消息。

IotHubQuotaMetricInfo

配额指标属性。

名称 类型 说明
currentValue

integer

配额指标的当前值。

maxValue

integer

配额指标的最大值。

name

string

配额指标的名称。

IotHubQuotaMetricInfoListResult

包含下一个链接的 IotHubQuotaMetricInfo 对象的 JSON 序列化数组。

名称 类型 说明
nextLink

string

下一个链接。

value

IotHubQuotaMetricInfo[]

配额指标对象的数组。