describeScalingActivities
abstract suspend fun describeScalingActivities(input: DescribeScalingActivitiesRequest): DescribeScalingActivitiesResponse
Provides descriptive information about the scaling activities in the specified namespace from the previous six weeks.
You can filter the results using ResourceId
and ScalableDimension
.
For information about viewing scaling activities using the Amazon Web Services CLI, see Scaling activities for Application Auto Scaling.
Samples
fun main() {
//sampleStart
// This example describes the scaling activities for an Amazon ECS service called web app that is
// running in the default cluster.
val resp = applicationAutoScalingClient.describeScalingActivities {
serviceNamespace = ServiceNamespace.fromValue("ecs")
resourceId = "service/default/web-app"
scalableDimension = ScalableDimension.fromValue("ecs:service:DesiredCount")
}
//sampleEnd
}