Documentation
¶
Index ¶
Constants ¶
View Source
const CosmosDbFailoverActionId = "com.steadybit.extension_azure.cosmosdb.account.failover"
View Source
const (
TargetIDCosmosDbAccount = "com.steadybit.extension_azure.cosmosdb.account"
)
Variables ¶
This section is empty.
Functions ¶
func NewAccountDiscovery ¶
func NewAccountDiscovery() discovery_kit_sdk.TargetDiscovery
func NewCosmosDbFailoverAction ¶
func NewCosmosDbFailoverAction() action_kit_sdk.Action[CosmosDbFailoverState]
Types ¶
type CosmosDbFailoverState ¶
type CosmosDbFailoverState struct {
SubscriptionId string
ResourceGroupName string
AccountName string
// PromotedRegion is the region we will promote to priority 0. Captured for log messaging.
PromotedRegion string
// NewPolicies is the full priority order to submit at Start (computed from the current order
// at Prepare, with PromotedRegion swapped to priority 0).
NewPolicies []failoverPolicy
}
CosmosDbFailoverState carries the computed new failover priorities from Prepare to Start. This attack is one-shot (no Stop / no rollback): Azure's FailoverPriorityChange is async and takes 5-15 min per call, so a transient experiment-style "set & restore" semantics is misleading. Users who want to switch back can run the experiment again against the (now-secondary) region.
Click to show internal directories.
Click to hide internal directories.