Amazon Lightsail · Schema

GetBucketMetricDataRequest

CloudComputeVirtual Private ServerHostingContainersDatabaseStorageCDNNetworkingInfrastructureDevOpsAmazon Web Services

Properties

Name Type Description
bucketName object The name of the bucket for which to get metric data.
metricName object The metric for which you want to return information. Valid bucket metric names are listed below, along with the most useful statistics to include in your request, and the published unit value. These b
startTime object The timestamp indicating the earliest data to be returned.
endTime object The timestamp indicating the latest data to be returned.
period object The granularity, in seconds, of the returned data points. Bucket storage metrics are reported once per day. Therefore, you should specify a period of 86400 seconds, which is the number of seconds in a
statistics object The statistic for the metric. The following statistics are available: Minimum - The lowest value observed during the specified period. Use this value to determine low volumes of activity for your appl
unit object The unit for the metric data request. Valid units depend on the metric data being requested. For the valid units with each available metric, see the metricName parameter.
View JSON Schema on GitHub

JSON Schema

amazon-lightsail-get-bucket-metric-data-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-lightsail/json-schema/amazon-lightsail-get-bucket-metric-data-request-schema.json",
  "title": "GetBucketMetricDataRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-lightsail-buckets-api-openapi.yml#/components/schemas/GetBucketMetricDataRequest",
  "type": "object",
  "properties": {
    "bucketName": {
      "allOf": [
        {
          "$ref": "#/$defs/BucketName"
        }
      ],
      "description": "The name of the bucket for which to get metric data."
    },
    "metricName": {
      "allOf": [
        {
          "$ref": "#/$defs/BucketMetricName"
        }
      ],
      "description": "The metric for which you want to return information. Valid bucket metric names are listed below, along with the most useful statistics to include in your request, and the published unit value. These bucket metrics are reported once per day. BucketSizeBytes - The amount of data in bytes stored in a bucket. This value is calculated by summing the size of all objects in the bucket (including object versions), including the size of all parts for all incomplete multipart uploads to the bucket. Statistics: The most useful statistic is Maximum . Unit: The published unit is Bytes . NumberOfObjects - The total number of objects stored in a bucket. This value is calculated by counting all objects in the bucket (including object versions) and the total number of parts for all incomplete multipart uploads to the bucket. Statistics: The most useful statistic is Average . Unit: The published unit is Count ."
    },
    "startTime": {
      "allOf": [
        {
          "$ref": "#/$defs/IsoDate"
        }
      ],
      "description": "The timestamp indicating the earliest data to be returned."
    },
    "endTime": {
      "allOf": [
        {
          "$ref": "#/$defs/IsoDate"
        }
      ],
      "description": "The timestamp indicating the latest data to be returned."
    },
    "period": {
      "allOf": [
        {
          "$ref": "#/$defs/MetricPeriod"
        }
      ],
      "description": "The granularity, in seconds, of the returned data points. Bucket storage metrics are reported once per day. Therefore, you should specify a period of 86400 seconds, which is the number of seconds in a day."
    },
    "statistics": {
      "allOf": [
        {
          "$ref": "#/$defs/MetricStatisticList"
        }
      ],
      "description": "The statistic for the metric. The following statistics are available: Minimum - The lowest value observed during the specified period. Use this value to determine low volumes of activity for your application. Maximum - The highest value observed during the specified period. Use this value to determine high volumes of activity for your application. Sum - The sum of all values submitted for the matching metric. You can use this statistic to determine the total volume of a metric. Average - The value of Sum / SampleCount during the specified period. By comparing this statistic with the Minimum and Maximum values, you can determine the full scope of a metric and how close the average use is to the Minimum and Maximum values. This comparison helps you to know when to increase or decrease your resources. SampleCount - The count, or number, of data points used for the statistical calculation."
    },
    "unit": {
      "allOf": [
        {
          "$ref": "#/$defs/MetricUnit"
        }
      ],
      "description": "The unit for the metric data request. Valid units depend on the metric data being requested. For the valid units with each available metric, see the metricName parameter."
    }
  },
  "required": [
    "bucketName",
    "metricName",
    "startTime",
    "endTime",
    "period",
    "statistics",
    "unit"
  ],
  "$defs": {
    "BucketMetricName": {
      "type": "string",
      "enum": [
        "BucketSizeBytes",
        "NumberOfObjects"
      ]
    },
    "BucketName": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9-]{1,52}[a-z0-9]$",
      "minLength": 3,
      "maxLength": 54
    },
    "IsoDate": {
      "type": "string",
      "format": "date-time"
    },
    "MetricPeriod": {
      "type": "integer",
      "minimum": 60,
      "maximum": 86400
    },
    "MetricStatistic": {
      "type": "string",
      "enum": [
        "Minimum",
        "Maximum",
        "Sum",
        "Average",
        "SampleCount"
      ]
    },
    "MetricStatisticList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MetricStatistic"
      }
    },
    "MetricUnit": {
      "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"
      ]
    }
  }
}

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-lightsail-get-bucket-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.