Amazon CloudTrail · Schema

ListInsightsMetricDataRequest

Amazon Web ServicesCloud TrailAuditComplianceGovernanceSecurity

Properties

Name Type Description
TrailName string The Amazon Resource Name(ARN) or name of the trail for which you want to retrieve Insights metrics data. This parameter should only be provided to fetch Insights metrics data generated on trails loggi
EventSource string The Amazon Web Services service to which the request was made, such as iam.amazonaws.com or s3.amazonaws.com.
EventName string The name of the event, typically the Amazon Web Services API on which unusual levels of activity were recorded.
InsightType string The type of CloudTrail Insights event, which is either ApiCallRateInsight or ApiErrorRateInsight. The ApiCallRateInsight Insights type analyzes write-only management API calls that are aggregated per
ErrorCode string Conditionally required if the InsightType parameter is set to ApiErrorRateInsight. If returning metrics for the ApiErrorRateInsight Insights type, this is the error to retrieve data for. For example,
StartTime string Specifies, in UTC, the start time for time-series data. The value specified is inclusive; results include data points with the specified time stamp. The default is 90 days before the time of request.
EndTime string Specifies, in UTC, the end time for time-series data. The value specified is exclusive; results include data points up to the specified time stamp. The default is the time of request.
Period integer Granularity of data to retrieve, in seconds. Valid values are 60, 300, and 3600. If you specify any other value, you will get an error. The default is 3600 seconds.
DataType string Type of data points to return. Valid values are NonZeroData and FillWithZeros. The default is NonZeroData.
MaxResults integer The maximum number of data points to return. Valid values are integers from 1 to 21600. The default value is 21600.
NextToken string Returned if all datapoints can't be returned in a single call. For example, due to reaching MaxResults. Add this parameter to the request to continue retrieving results starting from the last evaluate
View JSON Schema on GitHub

JSON Schema

amazon-cloudtrail-list-insights-metric-data-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudtrail/json-schema/amazon-cloudtrail-list-insights-metric-data-request-schema.json",
  "title": "ListInsightsMetricDataRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudtrail-operations-api-openapi.yml#/components/schemas/ListInsightsMetricDataRequest",
  "type": "object",
  "properties": {
    "TrailName": {
      "type": "string",
      "description": "The Amazon Resource Name(ARN) or name of the trail for which you want to retrieve Insights metrics data. This parameter should only be provided to fetch Insights metrics data generated on trails logging data events. This parameter is not required for Insights metric data generated on trails logging management events."
    },
    "EventSource": {
      "type": "string",
      "description": "The Amazon Web Services service to which the request was made, such as iam.amazonaws.com or s3.amazonaws.com."
    },
    "EventName": {
      "type": "string",
      "description": "The name of the event, typically the Amazon Web Services API on which unusual levels of activity were recorded."
    },
    "InsightType": {
      "type": "string",
      "enum": [
        "ApiCallRateInsight",
        "ApiErrorRateInsight"
      ],
      "description": "The type of CloudTrail Insights event, which is either ApiCallRateInsight or ApiErrorRateInsight. The ApiCallRateInsight Insights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume. The ApiErrorRateInsight Insights type analyzes management API calls that result in error codes."
    },
    "ErrorCode": {
      "type": "string",
      "description": "Conditionally required if the InsightType parameter is set to ApiErrorRateInsight. If returning metrics for the ApiErrorRateInsight Insights type, this is the error to retrieve data for. For example, AccessDenied."
    },
    "StartTime": {
      "type": "string",
      "format": "date-time",
      "description": "Specifies, in UTC, the start time for time-series data. The value specified is inclusive; results include data points with the specified time stamp. The default is 90 days before the time of request."
    },
    "EndTime": {
      "type": "string",
      "format": "date-time",
      "description": "Specifies, in UTC, the end time for time-series data. The value specified is exclusive; results include data points up to the specified time stamp. The default is the time of request."
    },
    "Period": {
      "type": "integer",
      "description": "Granularity of data to retrieve, in seconds. Valid values are 60, 300, and 3600. If you specify any other value, you will get an error. The default is 3600 seconds."
    },
    "DataType": {
      "type": "string",
      "enum": [
        "FillWithZeros",
        "NonZeroData"
      ],
      "description": "Type of data points to return. Valid values are NonZeroData and FillWithZeros. The default is NonZeroData."
    },
    "MaxResults": {
      "type": "integer",
      "description": "The maximum number of data points to return. Valid values are integers from 1 to 21600. The default value is 21600."
    },
    "NextToken": {
      "type": "string",
      "description": "Returned if all datapoints can't be returned in a single call. For example, due to reaching MaxResults. Add this parameter to the request to continue retrieving results starting from the last evaluated point."
    }
  },
  "required": [
    "EventSource",
    "EventName",
    "InsightType"
  ]
}

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-cloudtrail-list-insights-metric-data-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.