AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the DescribeScalingActivities operation. 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.
Namespace: Amazon.ApplicationAutoScaling.Model
Assembly: AWSSDK.ApplicationAutoScaling.dll
Version: 3.x.y.z
public class DescribeScalingActivitiesRequest : AmazonApplicationAutoScalingRequest IAmazonWebServiceRequest
The DescribeScalingActivitiesRequest type exposes the following members
Name | Description | |
---|---|---|
DescribeScalingActivitiesRequest() |
Name | Type | Description | |
---|---|---|---|
IncludeNotScaledActivities | System.Boolean |
Gets and sets the property IncludeNotScaledActivities. Specifies whether to include activities that aren't scaled (not scaled activities) in the response. Not scaled activities are activities that aren't completed or started for various reasons, such as preventing infinite scaling loops. For help interpreting the not scaled reason details in the response, see Scaling activities for Application Auto Scaling. |
|
MaxResults | System.Int32 |
Gets and sets the property MaxResults. The maximum number of scalable targets. This value can be between 1 and 50. The default value is 50.
If this parameter is used, the operation returns up to |
|
NextToken | System.String |
Gets and sets the property NextToken. The token for the next set of results. |
|
ResourceId | System.String |
Gets and sets the property ResourceId. The identifier of the resource associated with the scaling activity. This string consists of the resource type and unique identifier.
|
|
ScalableDimension | Amazon.ApplicationAutoScaling.ScalableDimension |
Gets and sets the property ScalableDimension. The scalable dimension. This string consists of the service namespace, resource type, and scaling property. If you specify a scalable dimension, you must also specify a resource ID.
|
|
ServiceNamespace | Amazon.ApplicationAutoScaling.ServiceNamespace |
Gets and sets the property ServiceNamespace.
The namespace of the Amazon Web Services service that provides the resource. For a
resource provided by your own application or service, use |
This example describes the scaling activities for an Amazon ECS service called web-app that is running in the default cluster.
var client = new AmazonApplicationAutoScalingClient(); var response = client.DescribeScalingActivities(new DescribeScalingActivitiesRequest { ResourceId = "service/default/web-app", ScalableDimension = "ecs:service:DesiredCount", ServiceNamespace = "ecs" }); List<ScalingActivity> scalingActivities = response.ScalingActivities;
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5