Sdílet prostřednictvím


FabricClient.TestManagementClient.StartChaosAsync Method

Definition

Overloads

StartChaosAsync(ChaosParameters)

This API will start Chaos with the supplied parameter values.

StartChaosAsync(ChaosParameters, TimeSpan, CancellationToken)

This API will start Chaos with the supplied parameter values.

StartChaosAsync(ChaosParameters)

This API will start Chaos with the supplied parameter values.

public System.Threading.Tasks.Task StartChaosAsync (System.Fabric.Chaos.DataStructures.ChaosParameters chaosParameters);
member this.StartChaosAsync : System.Fabric.Chaos.DataStructures.ChaosParameters -> System.Threading.Tasks.Task
Public Function StartChaosAsync (chaosParameters As ChaosParameters) As Task

Parameters

chaosParameters
ChaosParameters

ChaosParameters contains various parameters for controlling Chaos; e.g., time to run, maximum number of concurrent fautls, etc.

Returns

A task.

Exceptions

Action took more than its allocated time.

Any of the required arguments are null.

This exception is thrown when StartChaos API is invoked while Chaos is already running in the cluster.

Applies to

StartChaosAsync(ChaosParameters, TimeSpan, CancellationToken)

This API will start Chaos with the supplied parameter values.

public System.Threading.Tasks.Task StartChaosAsync (System.Fabric.Chaos.DataStructures.ChaosParameters chaosParameters, TimeSpan operationTimeout, System.Threading.CancellationToken cancellationToken);
member this.StartChaosAsync : System.Fabric.Chaos.DataStructures.ChaosParameters * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function StartChaosAsync (chaosParameters As ChaosParameters, operationTimeout As TimeSpan, cancellationToken As CancellationToken) As Task

Parameters

chaosParameters
ChaosParameters

Contains various parameters for controlling Chaos; e.g., time to run, maximum number of concurrent faults, etc.

operationTimeout
TimeSpan

The overall timeout for the operation.

cancellationToken
CancellationToken

Cancellation token.

Returns

A description of the state of Chaos.

Exceptions

Action took more than its allocated time.

Any of the required arguments are null.

This exception is thrown when StartChaos API is invoked while Chaos is already running in the cluster.

Remarks

The FaultAnalysisService must be enabled to use this API.

Applies to