К содержимому

AccountLimitItem ​

Тип: object additionalProperties: false

ПолеОбязательноеТипОписание и ограничения
account_idДаstring
profilesДаarray<string>
stateДаstringenum: ["unknown","unavailable","stale","fresh"]
observed_atДаstring / nullformat: "date-time"
last_attempt_atДаstring / nullformat: "date-time"
error_codeДаstring / null
bucketsДаarray<AccountLimitBucket>
reset_credits_availableДаinteger / nullКоличество накопленных сбросов лимита, доступных аккаунту. null означает отсутствие данных. Время наблюдения и состояние актуальности совпадают с окнами квот.

JSON Schema ​

json
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "account_id",
    "profiles",
    "state",
    "observed_at",
    "last_attempt_at",
    "error_code",
    "buckets",
    "reset_credits_available"
  ],
  "properties": {
    "account_id": {
      "type": "string"
    },
    "profiles": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "state": {
      "type": "string",
      "enum": [
        "unknown",
        "unavailable",
        "stale",
        "fresh"
      ]
    },
    "observed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "last_attempt_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "error_code": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "unsupported",
            "temporarily_unavailable",
            "invalid_response",
            "no_data",
            "authentication_unavailable"
          ],
          "x-enum-varnames": [
            "AccountLimitItemErrorCodeUnsupported",
            "AccountLimitItemErrorCodeTemporarilyUnavailable",
            "AccountLimitItemErrorCodeInvalidResponse",
            "AccountLimitItemErrorCodeNoData",
            "AccountLimitItemErrorCodeAuthenticationUnavailable"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "buckets": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AccountLimitBucket"
      }
    },
    "reset_credits_available": {
      "description": "Available earned rate-limit resets for the account; null when unknown. Uses the same observation time and freshness state as the quota windows.",
      "anyOf": [
        {
          "type": "integer",
          "format": "int64",
          "minimum": 0
        },
        {
          "type": "null"
        }
      ]
    }
  }
}

Все схемы · HTTP API