{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-lightsail/json-schema/amazon-lightsail-get-relational-database-metric-data-request-schema.json",
  "title": "GetRelationalDatabaseMetricDataRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-lightsail-relational-databases-api-openapi.yml#/components/schemas/GetRelationalDatabaseMetricDataRequest",
  "type": "object",
  "properties": {
    "relationalDatabaseName": {
      "type": "string",
      "description": "The name of your database from which to get metric data."
    },
    "metricName": {
      "type": "string",
      "enum": [
        "CPUUtilization",
        "DatabaseConnections",
        "DiskQueueDepth",
        "FreeStorageSpace",
        "NetworkReceiveThroughput",
        "NetworkTransmitThroughput",
        "FreeableMemory",
        "SwapUsage"
      ],
      "description": "The metric for which you want to return information. Valid relational database metric names are listed below, along with the most useful statistics to include in your request, and the published unit value. All relational database metric data is available in 1-minute (60 seconds) granularity. CPUUtilization - The percentage of CPU utilization currently in use on the database. Statistics: The most useful statistics are Maximum and Average. Unit: The published unit is Percent. DatabaseConnections - The number of database connections in use. Statistics: The most useful statistics are Maximum and S"
    },
    "period": {
      "type": "integer",
      "description": "The granularity, in seconds, of the returned data points. All relational database metric data is available in 1-minute (60 seconds) granularity."
    },
    "startTime": {
      "type": "string",
      "format": "date-time",
      "description": "The start of the time interval from which to get metric data. Constraints: Specified in Coordinated Universal Time (UTC). Specified in the Unix time format. For example, if you wish to use a start time of October 1, 2018, at 8 PM UTC, then you input 1538424000 as the start time."
    },
    "endTime": {
      "type": "string",
      "format": "date-time",
      "description": "The end of the time interval from which to get metric data. Constraints: Specified in Coordinated Universal Time (UTC). Specified in the Unix time format. For example, if you wish to use an end time of October 1, 2018, at 8 PM UTC, then you input 1538424000 as the end time."
    },
    "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": "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."
    },
    "statistics": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "Minimum",
          "Maximum",
          "Sum",
          "Average",
          "SampleCount"
        ]
      },
      "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 - All values submitted for the matching metric added together. 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 Minimu"
    }
  },
  "required": [
    "relationalDatabaseName",
    "metricName",
    "period",
    "startTime",
    "endTime",
    "unit",
    "statistics"
  ]
}