FabricClient.TestManagementClient.GetChaosEventsAsync Method

Definition

Overloads

GetChaosEventsAsync(ChaosEventsSegmentFilter, Int64, TimeSpan, CancellationToken)

Retrieves a history of Chaos events. The events to be returned can be filtered based on time of occurrence. When no filter is defined, all events will be returned.

GetChaosEventsAsync(String, Int64, TimeSpan, CancellationToken)

Retrieves a segment of the history of Chaos events.

GetChaosEventsAsync(ChaosEventsSegmentFilter, Int64, TimeSpan, CancellationToken)

Retrieves a history of Chaos events. The events to be returned can be filtered based on time of occurrence. When no filter is defined, all events will be returned.

public System.Threading.Tasks.Task<System.Fabric.Chaos.DataStructures.ChaosEventsSegment> GetChaosEventsAsync (System.Fabric.Chaos.DataStructures.ChaosEventsSegmentFilter filter, long maxResults, TimeSpan operationTimeout, System.Threading.CancellationToken cancellationToken);
member this.GetChaosEventsAsync : System.Fabric.Chaos.DataStructures.ChaosEventsSegmentFilter * int64 * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Chaos.DataStructures.ChaosEventsSegment>
Public Function GetChaosEventsAsync (filter As ChaosEventsSegmentFilter, maxResults As Long, operationTimeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of ChaosEventsSegment)

Parameters

filter
ChaosEventsSegmentFilter

Filter for the lsit of ChaosEvent to be included in the ChaosEventsSegment.

maxResults
Int64

Maximum number of ChaosEvents in the history to be returned.

operationTimeout
TimeSpan

The overall timeout for the operation.

cancellationToken
CancellationToken

This token can be signalled to abort this operation before it finishes.

Returns

A segment of the history of Chaos events.

Exceptions

Action took more than its allocated time.

Any of the required arguments are null.

These are Service Fabric exceptions and the following error codes should be inspected. FabricErrorCode.NotReady - if this API is called before starting Chaos.

Applies to

GetChaosEventsAsync(String, Int64, TimeSpan, CancellationToken)

Retrieves a segment of the history of Chaos events.

public System.Threading.Tasks.Task<System.Fabric.Chaos.DataStructures.ChaosEventsSegment> GetChaosEventsAsync (string continuationToken, long maxResults, TimeSpan operationTimeout, System.Threading.CancellationToken cancellationToken);
member this.GetChaosEventsAsync : string * int64 * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.Chaos.DataStructures.ChaosEventsSegment>
Public Function GetChaosEventsAsync (continuationToken As String, maxResults As Long, operationTimeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of ChaosEventsSegment)

Parameters

continuationToken
String

Continuation token for the list of ChaosEvents in the ChaosEventsSegment.

maxResults
Int64

Maximum number of ChaosEvents in the history to be returned.

operationTimeout
TimeSpan

The overall timeout for the operation.

cancellationToken
CancellationToken

This token can be signalled to abort this operation before it finishes.

Returns

A segment of the history of Chaos events.

Exceptions

These are Service Fabric exceptions and the following error codes should be inspected. FabricErrorCode.NotReady - if this API is called before starting Chaos.

Applies to