GetServiceLevelObjective
Returns information about one SLO created in the account.
Request Syntax
GET /slo/Id
HTTP/1.1
URI Request Parameters
The request uses the following URI parameters.
- Id
-
The ARN or name of the SLO that you want to retrieve information about. You can find the ARNs of SLOs by using the ListServiceLevelObjectives operation.
Pattern:
[0-9A-Za-z][-._0-9A-Za-z ]{0,126}[0-9A-Za-z]$|^arn:aws:application-signals:[^:]*:[^:]*:slo/[0-9A-Za-z][-._0-9A-Za-z ]{0,126}[0-9A-Za-z]
Required: Yes
Request Body
The request does not have a request body.
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"Slo": {
"Arn": "string",
"BurnRateConfigurations": [
{
"LookBackWindowMinutes": number
}
],
"CreatedTime": number,
"Description": "string",
"EvaluationType": "string",
"Goal": {
"AttainmentGoal": number,
"Interval": { ... },
"WarningThreshold": number
},
"LastUpdatedTime": number,
"Name": "string",
"RequestBasedSli": {
"ComparisonOperator": "string",
"MetricThreshold": number,
"RequestBasedSliMetric": {
"KeyAttributes": {
"string" : "string"
},
"MetricType": "string",
"MonitoredRequestCountMetric": { ... },
"OperationName": "string",
"TotalRequestCountMetric": [
{
"AccountId": "string",
"Expression": "string",
"Id": "string",
"Label": "string",
"MetricStat": {
"Metric": {
"Dimensions": [
{
"Name": "string",
"Value": "string"
}
],
"MetricName": "string",
"Namespace": "string"
},
"Period": number,
"Stat": "string",
"Unit": "string"
},
"Period": number,
"ReturnData": boolean
}
]
}
},
"Sli": {
"ComparisonOperator": "string",
"MetricThreshold": number,
"SliMetric": {
"KeyAttributes": {
"string" : "string"
},
"MetricDataQueries": [
{
"AccountId": "string",
"Expression": "string",
"Id": "string",
"Label": "string",
"MetricStat": {
"Metric": {
"Dimensions": [
{
"Name": "string",
"Value": "string"
}
],
"MetricName": "string",
"Namespace": "string"
},
"Period": number,
"Stat": "string",
"Unit": "string"
},
"Period": number,
"ReturnData": boolean
}
],
"MetricType": "string",
"OperationName": "string"
}
}
}
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- Slo
-
A structure containing the information about the SLO.
Type: ServiceLevelObjective object
Errors
For information about the errors that are common to all actions, see Common Errors.
- ResourceNotFoundException
-
Resource not found.
HTTP Status Code: 404
- ThrottlingException
-
The request was throttled because of quota limits.
HTTP Status Code: 429
- ValidationException
-
The resource is not valid.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: