Amazon IoT Core Fleet Metric API

The Fleet Metric API from Amazon IoT Core — 1 operation(s) for fleet metric.

GitHub OpenAPI

Operations 5

PUT /fleet-metric/{metricName} Create Fleet Metric #
DELETE /fleet-metric/{metricName} Delete Fleet Metric #
GET /fleet-metric/{metricName} Describe Fleet Metric #
PATCH /fleet-metric/{metricName} Update Fleet Metric #
GET /fleet-metrics List Fleet Metrics #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/amazon-iot-core:amazon-iot-core-fleet-metric-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

amazon-iot-core-fleet-metric-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS IoT Fleet Metric API
  version: '2015-05-28'
  description: Generated from AWS's published Smithy model for AWS IoT. 5 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://iot.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /fleet-metric/{metricName}:
    put:
      operationId: CreateFleetMetric
      summary: Create Fleet Metric
      description: Creates a fleet metric. Requires permission to access the CreateFleetMetric action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateFleetMetricResponse'
        '400':
          description: IndexNotReadyException; InvalidAggregationException; InvalidQueryException; InvalidRequestException;
            ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IndexNotReadyException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '410':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '409':
          description: ResourceAlreadyExistsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceAlreadyExistsException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '503':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: metricName
        in: path
        required: true
        schema:
          type: string
        description: The name of the fleet metric to create.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                queryString:
                  type: string
                  description: The search query string.
                aggregationType:
                  $ref: '#/components/schemas/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: '#/components/schemas/Tag'
                  description: Metadata, which can be used to manage the fleet metric.
              required:
              - queryString
              - aggregationType
              - period
              - aggregationField
      tags:
      - Fleet Metric
    delete:
      operationId: DeleteFleetMetric
      summary: Delete Fleet Metric
      description: Deletes the specified fleet metric. Returns successfully with no error if the deletion is successful or
        you specify a fleet metric that doesn't exist. Requires permission to access the DeleteFleetMetric action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: string
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '400':
          description: InvalidRequestException; ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
        '503':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
        '409':
          description: VersionConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VersionConflictException'
      parameters:
      - name: metricName
        in: path
        required: true
        schema:
          type: string
        description: The name of the fleet metric to delete.
      - name: expectedVersion
        in: query
        schema:
          type: integer
        description: The expected version of the fleet metric to delete.
      tags:
      - Fleet Metric
    get:
      operationId: DescribeFleetMetric
      summary: Describe Fleet Metric
      description: Gets information about the specified fleet metric. Requires permission to access the DescribeFleetMetric
        action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DescribeFleetMetricResponse'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '400':
          description: InvalidRequestException; ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '503':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: metricName
        in: path
        required: true
        schema:
          type: string
        description: The name of the fleet metric to describe.
      tags:
      - Fleet Metric
    patch:
      operationId: UpdateFleetMetric
      summary: Update Fleet Metric
      description: Updates the data for a fleet metric. Requires permission to access the UpdateFleetMetric action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: string
        '400':
          description: IndexNotReadyException; InvalidAggregationException; InvalidQueryException; InvalidRequestException;
            ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IndexNotReadyException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '503':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
        '409':
          description: VersionConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VersionConflictException'
      parameters:
      - name: metricName
        in: path
        required: true
        schema:
          type: string
        description: The name of the fleet metric to update.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                queryString:
                  type: string
                  description: The search query string.
                aggregationType:
                  $ref: '#/components/schemas/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 description of the fleet metric.
                queryVersion:
                  type: string
                  description: The version of the query.
                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.
                expectedVersion:
                  type: integer
                  description: The expected version of the fleet metric record in the registry.
              required:
              - indexName
      tags:
      - Fleet Metric
  /fleet-metrics:
    get:
      operationId: ListFleetMetrics
      summary: List Fleet Metrics
      description: Lists all your fleet metrics. Requires permission to access the ListFleetMetrics action.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListFleetMetricsResponse'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '400':
          description: InvalidRequestException; ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestException'
        '503':
          description: ServiceUnavailableException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: nextToken
        in: query
        schema:
          type: string
        description: To retrieve the next set of results, the nextToken value from a previous response; otherwise null to
          receive the first set of results.
      - name: maxResults
        in: query
        schema:
          type: integer
        description: The maximum number of results to return in this operation.
      tags:
      - Fleet Metric
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: iot
  schemas:
    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
    CreateFleetMetricResponse:
      type: object
      properties:
        metricName:
          type: string
          description: The name of the fleet metric to create.
        metricArn:
          type: string
          description: The Amazon Resource Name (ARN) of the new fleet metric.
    DescribeFleetMetricResponse:
      type: object
      properties:
        metricName:
          type: string
          description: The name of the fleet metric to describe.
        queryString:
          type: string
          description: The search query string.
        aggregationType:
          $ref: '#/components/schemas/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.
        creationDate:
          type: string
          format: date-time
          description: The date when the fleet metric is created.
        lastModifiedDate:
          type: string
          format: date-time
          description: The date when the fleet metric is last modified.
        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.
        version:
          type: integer
          description: The version of the fleet metric.
        metricArn:
          type: string
          description: The ARN of the fleet metric to describe.
    FleetMetricNameAndArn:
      type: object
      properties:
        metricName:
          type: string
          description: The fleet metric name.
        metricArn:
          type: string
          description: The fleet metric ARN.
    IndexNotReadyException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    InternalFailureException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    InvalidRequestException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    LimitExceededException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    ListFleetMetricsResponse:
      type: object
      properties:
        fleetMetrics:
          type: array
          items:
            $ref: '#/components/schemas/FleetMetricNameAndArn'
          description: The list of fleet metrics objects.
        nextToken:
          type: string
          description: The token for the next set of results. Will not be returned if the operation has returned all results.
    ResourceAlreadyExistsException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
        resourceId:
          type: string
          description: The ID of the resource that caused the exception.
        resourceArn:
          type: string
          description: The ARN of the resource that caused the exception.
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    ServiceUnavailableException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    Tag:
      type: object
      properties:
        Key:
          type: string
          description: The tag's key.
        Value:
          type: string
          description: The tag's value.
      required:
      - Key
    UnauthorizedException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
    VersionConflictException:
      type: object
      properties:
        message:
          type: string
          description: The message for the exception.
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/iot/service/2015-05-28/iot-2015-05-28.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)