list-scaling-activities

subtitle

Lists Scaling activities for a cluster.

version

0.9.111

Description

Lists Scaling activities for a cluster.

list-scaling-activities is a paginated operation. Multiple API calls may be issued in order to retrieve the entire data set of results. You can disable pagination by providing the --no-paginate argument.

Synopsis

  list-scaling-activities
--cluster <value>
[--duration <value>]
[--start-time <value>]
[--end-time <value>]
[--only-failed-scaling-activities | --no-only-failed-scaling-activities]
[--max-items <value>]
[--starting-token <value>]
[--page-size <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton]

Options

--cluster (string)

The name or CRN of the cluster.

--duration (integer)

Duration in minutes for which we want all the scaling activities for the cluster. Either duration or start and end time needs to be provided.

--start-time (integer)

Start time value in epoch millisecond from which we want to get all the scaling activities. Need to specify end time with it.

--end-time (integer)

End time value in epoch millisecond until which we want to get all the scaling activities. Need to specify start time with it.

--only-failed-scaling-activities | --no-only-failed-scaling-activities (boolean)

Flag that decides whether to return only failed scaling activities or return all scaling activities in a given duration or a specific time interval.

--max-items (integer)

The total number of items to return. If the total number of items available is more than the value specified in max-items then a nextToken will be provided in the output that you can use to resume pagination. This nextToken response element should not be used directly outside of the CDP CLI. This option cannnot be combined with the no-paginate CLI option. If no max-items value is specified, then a default value of 100 is used.

--starting-token (string)

A token to specify where to start paginating. This is the nextToken from a previously truncated response.

--page-size (integer)

The size of each page. Generally this does not need to be set and the default page size used is appropriate.

--cli-input-json (string)

Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values.

--generate-cli-skeleton (boolean)

Prints a sample input JSON to standard output. Note the specified operation is not run if this argument is specified. The sample input can be used as an argument for --cli-input-json.

Output

scalingActivity -> (array)

The list of scaling activities.

item -> (object)

Information about a Scaling activity.

operationId -> (string)

The operation ID of the scaling activity.

startTime -> (datetime)

The start time of the scaling activity.

endTime -> (datetime)

The end time of the scaling activity.

scalingActivityReason -> (string)

The reason of the scaling activity.

activityStatus -> (string)

The status of the scaling activity. Supported values- ACTIVITY_PENDING - If scaling activity is in pending state, METRICS_COLLECTION_SUCCESS/FAILED - for success/failure of metrics collection, UPSCALE_TRIGGER_SUCCESS/FAILED - for success/failure at the time of upscaling, DOWNSCALE_TRIGGER_SUCCESS/FAILED for success/failure at the time of downscaling, SCHEDULE_BASED_UPSCALE/DOWNSCALE - if schedule based scaling is used, SCALING_FLOW_IN_PROGRESS/SUCCESS/FAILED - State at which the scaling has reached, POLICY_ADJUSTMENT - if policy adjustment is taking place, UNKNOWN - if the state is not known.

nextToken -> (string)

The token to use when requesting the next set of results. If not present, there are no additional results.

Form Factors

public