Get-​Service​Fabric​Chaos​Report

Gets a report of Chaos results.

Syntax

Get-ServiceFabricChaosReport
   [-ContinuationToken <String>]
   [-EndTimeUtc <DateTime>]
   [-StartTimeUtc <DateTime>]
   [-TimeoutSec <Int32>]
   [<CommonParameters>]

Description

The Get-ServiceFabricChaosReport cmdlet gets a report of a Chaos run which includes the current status and history of Chaos events. You can specify a time range and only Chaos events within this range is reported. If Chaos was never started, the result will report that.

If there are a large number of Chaos events, the data is reported in batches. Each batch contains a maximum of 100 events. In such a case, a continuation token is returned as part of ChaosReport object. To get data from subsequent batches, this continuation token will need to be supplied.

For more information about Chaos, see the article Inducing Chaos.

Examples

Example 1: View Chaos report

PS C:\> $Now = Get-Date
$EndTime = $Now.ToUniversalTime()
$StartTime = $EndTime.AddMinutes(-2)
Get-ServiceFabricChaosReport -StartTimeUtc $StartTime -EndTimeUtc $EndTime -Verbose

This command returns the Chaos events from the previous two minutes.

Optional Parameters

-ContinuationToken

Specifies a continuation token that this cmdlet passes for the next Get-ServiceFabricChaosReport call. If there are large number of Chaos events, the data is reported in batches. Each batch contains a maximum of 100 events. In such a case, a continuation token is returned as part of ChaosReport object. To get data from subsequent batches, this continuation token will need to be supplied.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-EndTimeUtc

Specifies the end of the time range in Coordinated Universal Time (UTC).

Type:DateTime
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StartTimeUtc

Specifies the start of the time range in UTC.

Type:DateTime
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TimeoutSec

Specifies the timeout period, in seconds for the operation.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

This cmdlet returns a ChaosReport object that represents the report for the Chaos runs.