{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-lightsail/json-schema/amazon-lightsail-get-alarms-result-schema.json",
  "title": "GetAlarmsResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-lightsail-alarms-api-openapi.yml#/components/schemas/GetAlarmsResult",
  "type": "object",
  "properties": {
    "alarms": {
      "allOf": [
        {
          "$ref": "#/$defs/AlarmsList"
        }
      ],
      "description": "An array of objects that describe the alarms."
    },
    "nextPageToken": {
      "allOf": [
        {
          "$ref": "#/$defs/string"
        }
      ],
      "description": "The token to advance to the next page of results from your request. A next page token is not returned if there are no more results to display. To get the next page of results, perform another GetAlarms request and specify the next page token using the pageToken parameter."
    }
  },
  "$defs": {
    "Alarm": {
      "type": "object",
      "properties": {
        "name": {
          "allOf": [
            {
              "$ref": "#/$defs/ResourceName"
            }
          ],
          "description": "The name of the alarm."
        },
        "arn": {
          "allOf": [
            {
              "$ref": "#/$defs/NonEmptyString"
            }
          ],
          "description": "The Amazon Resource Name (ARN) of the alarm."
        },
        "createdAt": {
          "allOf": [
            {
              "$ref": "#/$defs/IsoDate"
            }
          ],
          "description": "The timestamp when the alarm was created."
        },
        "location": {
          "allOf": [
            {
              "$ref": "#/$defs/ResourceLocation"
            }
          ],
          "description": "An object that lists information about the location of the alarm."
        },
        "resourceType": {
          "allOf": [
            {
              "$ref": "#/$defs/ResourceType"
            }
          ],
          "description": "The Lightsail resource type of the alarm."
        },
        "supportCode": {
          "allOf": [
            {
              "$ref": "#/$defs/string"
            }
          ],
          "description": "The support code. Include this code in your email to support when you have questions about your Lightsail alarm. This code enables our support team to look up your Lightsail information more easily."
        },
        "monitoredResourceInfo": {
          "allOf": [
            {
              "$ref": "#/$defs/MonitoredResourceInfo"
            }
          ],
          "description": "An object that lists information about the resource monitored by the alarm."
        },
        "comparisonOperator": {
          "allOf": [
            {
              "$ref": "#/$defs/ComparisonOperator"
            }
          ],
          "description": "The arithmetic operation used when comparing the specified statistic and threshold."
        },
        "evaluationPeriods": {
          "allOf": [
            {
              "$ref": "#/$defs/integer"
            }
          ],
          "description": "The number of periods over which data is compared to the specified threshold."
        },
        "period": {
          "allOf": [
            {
              "$ref": "#/$defs/MetricPeriod"
            }
          ],
          "description": "The period, in seconds, over which the statistic is applied."
        },
        "threshold": {
          "allOf": [
            {
              "$ref": "#/$defs/double"
            }
          ],
          "description": "The value against which the specified statistic is compared."
        },
        "datapointsToAlarm": {
          "allOf": [
            {
              "$ref": "#/$defs/integer"
            }
          ],
          "description": "The number of data points that must not within the specified threshold to trigger the alarm."
        },
        "treatMissingData": {
          "allOf": [
            {
              "$ref": "#/$defs/TreatMissingData"
            }
          ],
          "description": "Specifies how the alarm handles missing data points. An alarm can treat missing data in the following ways: breaching - Assume the missing data is not within the threshold. Missing data counts towards the number of times the metric is not within the threshold. notBreaching - Assume the missing data is within the threshold. Missing data does not count towards the number of times the metric is not within the threshold. ignore - Ignore the missing data. Maintains the current alarm state. missing - Missing data is treated as missing."
        },
        "statistic": {
          "allOf": [
            {
              "$ref": "#/$defs/MetricStatistic"
            }
          ],
          "description": "The statistic for the metric associated with the alarm. 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 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."
        },
        "metricName": {
          "allOf": [
            {
              "$ref": "#/$defs/MetricName"
            }
          ],
          "description": "The name of the metric associated with the alarm."
        },
        "state": {
          "allOf": [
            {
              "$ref": "#/$defs/AlarmState"
            }
          ],
          "description": "The current state of the alarm. An alarm has the following possible states: ALARM - The metric is outside of the defined threshold. INSUFFICIENT_DATA - The alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state. OK - The metric is within the defined threshold."
        },
        "unit": {
          "allOf": [
            {
              "$ref": "#/$defs/MetricUnit"
            }
          ],
          "description": "The unit of the metric associated with the alarm."
        },
        "contactProtocols": {
          "allOf": [
            {
              "$ref": "#/$defs/ContactProtocolsList"
            }
          ],
          "description": "The contact protocols for the alarm, such as Email , SMS (text messaging), or both."
        },
        "notificationTriggers": {
          "allOf": [
            {
              "$ref": "#/$defs/NotificationTriggerList"
            }
          ],
          "description": "The alarm states that trigger a notification."
        },
        "notificationEnabled": {
          "allOf": [
            {
              "$ref": "#/$defs/boolean"
            }
          ],
          "description": "Indicates whether the alarm is enabled."
        },
        "tags": {
          "allOf": [
            {
              "$ref": "#/$defs/TagList"
            }
          ],
          "description": "The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide ."
        }
      },
      "description": "Describes an alarm. An alarm is a way to monitor your Lightsail resource metrics. For more information, see Alarms in Amazon Lightsail ."
    },
    "AlarmState": {
      "type": "string",
      "enum": [
        "OK",
        "ALARM",
        "INSUFFICIENT_DATA"
      ]
    },
    "AlarmsList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Alarm"
      }
    },
    "ComparisonOperator": {
      "type": "string",
      "enum": [
        "GreaterThanOrEqualToThreshold",
        "GreaterThanThreshold",
        "LessThanThreshold",
        "LessThanOrEqualToThreshold"
      ]
    },
    "ContactProtocol": {
      "type": "string",
      "enum": [
        "Email",
        "SMS"
      ]
    },
    "ContactProtocolsList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ContactProtocol"
      }
    },
    "IsoDate": {
      "type": "string",
      "format": "date-time"
    },
    "MetricName": {
      "type": "string",
      "enum": [
        "CPUUtilization",
        "NetworkIn",
        "NetworkOut",
        "StatusCheckFailed",
        "StatusCheckFailed_Instance",
        "StatusCheckFailed_System",
        "ClientTLSNegotiationErrorCount",
        "HealthyHostCount",
        "UnhealthyHostCount",
        "HTTPCode_LB_4XX_Count",
        "HTTPCode_LB_5XX_Count",
        "HTTPCode_Instance_2XX_Count",
        "HTTPCode_Instance_3XX_Count",
        "HTTPCode_Instance_4XX_Count",
        "HTTPCode_Instance_5XX_Count",
        "InstanceResponseTime",
        "RejectedConnectionCount",
        "RequestCount",
        "DatabaseConnections",
        "DiskQueueDepth",
        "FreeStorageSpace",
        "NetworkReceiveThroughput",
        "NetworkTransmitThroughput",
        "FreeableMemory",
        "SwapUsage",
        "BurstCapacityTime",
        "BurstCapacityPercentage"
      ]
    },
    "MetricPeriod": {
      "type": "integer",
      "minimum": 60,
      "maximum": 86400
    },
    "MetricStatistic": {
      "type": "string",
      "enum": [
        "Minimum",
        "Maximum",
        "Sum",
        "Average",
        "SampleCount"
      ]
    },
    "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"
      ]
    },
    "MonitoredResourceInfo": {
      "type": "object",
      "properties": {
        "arn": {
          "allOf": [
            {
              "$ref": "#/$defs/ResourceArn"
            }
          ],
          "description": "The Amazon Resource Name (ARN) of the resource being monitored."
        },
        "name": {
          "allOf": [
            {
              "$ref": "#/$defs/ResourceName"
            }
          ],
          "description": "The name of the Lightsail resource being monitored."
        },
        "resourceType": {
          "allOf": [
            {
              "$ref": "#/$defs/ResourceType"
            }
          ],
          "description": "The Lightsail resource type of the resource being monitored. Instances, load balancers, and relational databases are the only Lightsail resources that can currently be monitored by alarms."
        }
      },
      "description": "Describes resource being monitored by an alarm. An alarm is a way to monitor your Amazon Lightsail resource metrics. For more information, see Alarms in Amazon Lightsail ."
    },
    "NonEmptyString": {
      "type": "string",
      "pattern": "\\S"
    },
    "NotificationTriggerList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AlarmState"
      }
    },
    "RegionName": {
      "type": "string",
      "enum": [
        "us-east-1",
        "us-east-2",
        "us-west-1",
        "us-west-2",
        "eu-west-1",
        "eu-west-2",
        "eu-west-3",
        "eu-central-1",
        "eu-north-1",
        "eu-south-2",
        "ca-central-1",
        "ap-east-1",
        "ap-south-1",
        "ap-southeast-1",
        "ap-southeast-2",
        "ap-northeast-1",
        "ap-northeast-2",
        "ap-southeast-3",
        "ap-southeast-5",
        "sa-east-1"
      ]
    },
    "ResourceArn": {
      "type": "string",
      "pattern": "^arn:(aws[^:]*):([a-zA-Z0-9-]+):([a-z0-9-]+):([0-9]+):([a-zA-Z]+)/([a-zA-Z0-9-]+)$"
    },
    "ResourceLocation": {
      "type": "object",
      "properties": {
        "availabilityZone": {
          "allOf": [
            {
              "$ref": "#/$defs/string"
            }
          ],
          "description": "The Availability Zone. Follows the format us-east-2a (case-sensitive)."
        },
        "regionName": {
          "allOf": [
            {
              "$ref": "#/$defs/RegionName"
            }
          ],
          "description": "The Amazon Web Services Region name."
        }
      },
      "description": "Describes the resource location."
    },
    "ResourceName": {
      "type": "string",
      "pattern": "^\\w[\\w\\-]*\\w$"
    },
    "ResourceType": {
      "type": "string",
      "enum": [
        "ContainerService",
        "Instance",
        "StaticIp",
        "KeyPair",
        "InstanceSnapshot",
        "Domain",
        "PeeredVpc",
        "LoadBalancer",
        "LoadBalancerTlsCertificate",
        "Disk",
        "DiskSnapshot",
        "RelationalDatabase",
        "RelationalDatabaseSnapshot",
        "ExportSnapshotRecord",
        "CloudFormationStackRecord",
        "Alarm",
        "ContactMethod",
        "Distribution",
        "Certificate",
        "Bucket"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "key": {
          "allOf": [
            {
              "$ref": "#/$defs/TagKey"
            }
          ],
          "description": "The key of the tag. Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @"
        },
        "value": {
          "allOf": [
            {
              "$ref": "#/$defs/TagValue"
            }
          ],
          "description": "The value of the tag. Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @"
        }
      },
      "description": "Describes a tag key and optional value assigned to an Amazon Lightsail resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide ."
    },
    "TagKey": {
      "type": "string"
    },
    "TagList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      }
    },
    "TagValue": {
      "type": "string"
    },
    "TreatMissingData": {
      "type": "string",
      "enum": [
        "breaching",
        "notBreaching",
        "ignore",
        "missing"
      ]
    },
    "boolean": {
      "type": "boolean"
    },
    "double": {
      "type": "number"
    },
    "integer": {
      "type": "integer"
    },
    "string": {
      "type": "string"
    }
  }
}