ChaosScenarioAction Class

Definition

Model that represents a scenario action.

public class ChaosScenarioAction : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Chaos.Models.ChaosScenarioAction>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Chaos.Models.ChaosScenarioAction>
type ChaosScenarioAction = class
    interface IJsonModel<ChaosScenarioAction>
    interface IPersistableModel<ChaosScenarioAction>
Public Class ChaosScenarioAction
Implements IJsonModel(Of ChaosScenarioAction), IPersistableModel(Of ChaosScenarioAction)
Inheritance
ChaosScenarioAction
Implements

Constructors

Name Description
ChaosScenarioAction(String, String, String)

Initializes a new instance of ChaosScenarioAction.

Properties

Name Description
ActionId

Identifier of the action and version (e.g., "microsoft-compute-shutdown/1.0").

Description

Human-readable description of what this action does.

Duration

ISO 8601 duration for how long the action runs (e.g., PT30M for 30 minutes). Supports template macro syntax (%%{parameters.&lt;name&gt;}%%).

Name

Unique name for the action.

Parameters

Action-specific parameter values.

ResourceId

The resource ID of the external resource.

RunAfter

Action dependencies that control when this action starts.

Timeout

ISO 8601 duration for maximum action execution time. Supports template macro syntax.

WaitBefore

ISO 8601 duration to wait before action starts (e.g., PT30S for 30 seconds). Supports template macro syntax.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<ChaosScenarioAction>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<ChaosScenarioAction>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<ChaosScenarioAction>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<ChaosScenarioAction>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<ChaosScenarioAction>.Write(ModelReaderWriterOptions)

Applies to