Amazon IoT Core · Schema

CreateFleetMetricRequest

Amazon Web ServicesDevice ManagementIoTMQTTMessage Routing

Properties

Name Type Description
metricName string The name of the fleet metric to create.
queryString string The search query string.
aggregationType object
period integer The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple of 60.
aggregationField string The field to aggregate.
description string The fleet metric description.
queryVersion string The query version.
indexName string The name of the index to search.
unit string Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW metric. Default to null.
tags array Metadata, which can be used to manage the fleet metric.
View JSON Schema on GitHub

JSON Schema

amazon-iot-core-create-fleet-metric-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-core/json-schema/amazon-iot-core-create-fleet-metric-request-schema.json",
  "title": "CreateFleetMetricRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-core-fleet-metric-api-openapi.yml#/components/schemas/CreateFleetMetricRequest",
  "type": "object",
  "properties": {
    "metricName": {
      "type": "string",
      "description": "The name of the fleet metric to create."
    },
    "queryString": {
      "type": "string",
      "description": "The search query string."
    },
    "aggregationType": {
      "$ref": "#/$defs/AggregationType"
    },
    "period": {
      "type": "integer",
      "description": "The time in seconds between fleet metric emissions. Range [60(1 min), 86400(1 day)] and must be multiple of 60."
    },
    "aggregationField": {
      "type": "string",
      "description": "The field to aggregate."
    },
    "description": {
      "type": "string",
      "description": "The fleet metric description."
    },
    "queryVersion": {
      "type": "string",
      "description": "The query version."
    },
    "indexName": {
      "type": "string",
      "description": "The name of the index to search."
    },
    "unit": {
      "type": "string",
      "enum": [
        "Seconds",
        "Microseconds",
        "Milliseconds",
        "Bytes",
        "Kilobytes",
        "Megabytes",
        "Gigabytes",
        "Terabytes",
        "Bits",
        "Kilobits",
        "Megabits",
        "Gigabits",
        "Terabits",
        "Percent",
        "Count",
        "Bytes/Second",
        "Kilobytes/Second",
        "Megabytes/Second",
        "Gigabytes/Second",
        "Terabytes/Second",
        "Bits/Second",
        "Kilobits/Second",
        "Megabits/Second",
        "Gigabits/Second",
        "Terabits/Second",
        "Count/Second",
        "None"
      ],
      "description": "Used to support unit transformation such as milliseconds to seconds. The unit must be supported by CW metric. Default to null."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Metadata, which can be used to manage the fleet metric."
    }
  },
  "required": [
    "metricName",
    "queryString",
    "aggregationType",
    "period",
    "aggregationField"
  ],
  "$defs": {
    "AggregationType": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "enum": [
            "Statistics",
            "Percentiles",
            "Cardinality"
          ],
          "description": "The name of the aggregation type."
        },
        "values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of the values of aggregation types."
        }
      },
      "required": [
        "name"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The tag's key."
        },
        "Value": {
          "type": "string",
          "description": "The tag's value."
        }
      },
      "required": [
        "Key"
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/amazon-iot-core-create-fleet-metric-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.