Interruption scores for specific Spot instances.
GET/insights/interruption-score
Returns the Spot interruption score for a specific EC2 instance type in a given availability zone. The score ranges from 0 to 1 with 0 being the lowest risk and 1 being the highest risk of interruption in the next hour.
Request
Query Parameters
instance_type Instance Typerequired
The EC2 instance type to get the interruption score for.
Example: m5.large
availability_zone_id Availability Zone Idrequired
The ID of the availability zone to get the interruption score for.
Example: afs1-az1
Responses
- 200
- 404
The Spot interruption score for the specified EC2 instance type.
- application/json
- Schema
- Example (from schema)
- Example
Schema
last_updated Last Updated (string)required
instance_type Instance Type (string)required
availability_zone_id Availability Zone Id (string)required
interruption_score Interruption Score (number)required
{
"last_updated": "string",
"instance_type": "string",
"availability_zone_id": "string",
"interruption_score": 0
}
{
"last_updated": "2023-08-12T00:00:00",
"instance_type": "m5.large",
"availability_zone": "afs1-az1",
"score": 0.05
}
The specified EC2 instance type or availability zone was not found.
- application/json
- Schema
- Example (from schema)
- Example
Schema
any
{
"message": "Not found"
}
{
"message": "Not found"
}
Loading...