experimentexecutions

package
v0.20250211.1133646 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2025 License: MPL-2.0 Imports: 13 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2025-01-01/experimentexecutions Documentation

The experimentexecutions SDK allows for interaction with Azure Resource Manager chaosstudio (API Version 2025-01-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/chaosstudio/2025-01-01/experimentexecutions"

Client Initialization

client := experimentexecutions.NewExperimentExecutionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ExperimentExecutionsClient.ExperimentsExecutionDetails

ctx := context.TODO()
id := experimentexecutions.NewExecutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentName", "executionId")

read, err := client.ExperimentsExecutionDetails(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ExperimentExecutionsClient.ExperimentsGetExecution

ctx := context.TODO()
id := experimentexecutions.NewExecutionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentName", "executionId")

read, err := client.ExperimentsGetExecution(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ExperimentExecutionsClient.ExperimentsListAllExecutions

ctx := context.TODO()
id := experimentexecutions.NewExperimentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "experimentName")

// alternatively `client.ExperimentsListAllExecutions(ctx, id)` can be used to do batched pagination
items, err := client.ExperimentsListAllExecutionsComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateExecutionID

func ValidateExecutionID(input interface{}, key string) (warnings []string, errors []error)

ValidateExecutionID checks that 'input' can be parsed as a Execution ID

func ValidateExperimentID

func ValidateExperimentID(input interface{}, key string) (warnings []string, errors []error)

ValidateExperimentID checks that 'input' can be parsed as a Experiment ID

Types

type ActionStatus

type ActionStatus struct {
	ActionId   *string                                             `json:"actionId,omitempty"`
	ActionName *string                                             `json:"actionName,omitempty"`
	EndTime    *string                                             `json:"endTime,omitempty"`
	StartTime  *string                                             `json:"startTime,omitempty"`
	Status     *string                                             `json:"status,omitempty"`
	Targets    *[]ExperimentExecutionActionTargetDetailsProperties `json:"targets,omitempty"`
}

func (*ActionStatus) GetEndTimeAsTime

func (o *ActionStatus) GetEndTimeAsTime() (*time.Time, error)

func (*ActionStatus) GetStartTimeAsTime

func (o *ActionStatus) GetStartTimeAsTime() (*time.Time, error)

func (*ActionStatus) SetEndTimeAsTime

func (o *ActionStatus) SetEndTimeAsTime(input time.Time)

func (*ActionStatus) SetStartTimeAsTime

func (o *ActionStatus) SetStartTimeAsTime(input time.Time)

type BranchStatus

type BranchStatus struct {
	Actions    *[]ActionStatus `json:"actions,omitempty"`
	BranchId   *string         `json:"branchId,omitempty"`
	BranchName *string         `json:"branchName,omitempty"`
	Status     *string         `json:"status,omitempty"`
}

type ExecutionId

type ExecutionId struct {
	SubscriptionId    string
	ResourceGroupName string
	ExperimentName    string
	ExecutionId       string
}

ExecutionId is a struct representing the Resource ID for a Execution

func NewExecutionID

func NewExecutionID(subscriptionId string, resourceGroupName string, experimentName string, executionId string) ExecutionId

NewExecutionID returns a new ExecutionId struct

func ParseExecutionID

func ParseExecutionID(input string) (*ExecutionId, error)

ParseExecutionID parses 'input' into a ExecutionId

func ParseExecutionIDInsensitively

func ParseExecutionIDInsensitively(input string) (*ExecutionId, error)

ParseExecutionIDInsensitively parses 'input' case-insensitively into a ExecutionId note: this method should only be used for API response data and not user input

func (*ExecutionId) FromParseResult

func (id *ExecutionId) FromParseResult(input resourceids.ParseResult) error

func (ExecutionId) ID

func (id ExecutionId) ID() string

ID returns the formatted Execution ID

func (ExecutionId) Segments

func (id ExecutionId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Execution ID

func (ExecutionId) String

func (id ExecutionId) String() string

String returns a human-readable description of this Execution ID

type ExperimentExecution

type ExperimentExecution struct {
	Id         *string                        `json:"id,omitempty"`
	Name       *string                        `json:"name,omitempty"`
	Properties *ExperimentExecutionProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData         `json:"systemData,omitempty"`
	Type       *string                        `json:"type,omitempty"`
}

type ExperimentExecutionActionTargetDetailsError

type ExperimentExecutionActionTargetDetailsError struct {
	Code    *string `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
}

type ExperimentExecutionActionTargetDetailsProperties

type ExperimentExecutionActionTargetDetailsProperties struct {
	Error               *ExperimentExecutionActionTargetDetailsError `json:"error,omitempty"`
	Status              *string                                      `json:"status,omitempty"`
	Target              *string                                      `json:"target,omitempty"`
	TargetCompletedTime *string                                      `json:"targetCompletedTime,omitempty"`
	TargetFailedTime    *string                                      `json:"targetFailedTime,omitempty"`
}

func (*ExperimentExecutionActionTargetDetailsProperties) GetTargetCompletedTimeAsTime

func (o *ExperimentExecutionActionTargetDetailsProperties) GetTargetCompletedTimeAsTime() (*time.Time, error)

func (*ExperimentExecutionActionTargetDetailsProperties) GetTargetFailedTimeAsTime

func (o *ExperimentExecutionActionTargetDetailsProperties) GetTargetFailedTimeAsTime() (*time.Time, error)

func (*ExperimentExecutionActionTargetDetailsProperties) SetTargetCompletedTimeAsTime

func (o *ExperimentExecutionActionTargetDetailsProperties) SetTargetCompletedTimeAsTime(input time.Time)

func (*ExperimentExecutionActionTargetDetailsProperties) SetTargetFailedTimeAsTime

func (o *ExperimentExecutionActionTargetDetailsProperties) SetTargetFailedTimeAsTime(input time.Time)

type ExperimentExecutionDetails

type ExperimentExecutionDetails struct {
	Id         *string                               `json:"id,omitempty"`
	Name       *string                               `json:"name,omitempty"`
	Properties *ExperimentExecutionDetailsProperties `json:"properties,omitempty"`
	Type       *string                               `json:"type,omitempty"`
}

type ExperimentExecutionDetailsProperties

type ExperimentExecutionDetailsProperties struct {
	FailureReason  *string                                             `json:"failureReason,omitempty"`
	LastActionAt   *string                                             `json:"lastActionAt,omitempty"`
	RunInformation *ExperimentExecutionDetailsPropertiesRunInformation `json:"runInformation,omitempty"`
	StartedAt      *string                                             `json:"startedAt,omitempty"`
	Status         *string                                             `json:"status,omitempty"`
	StoppedAt      *string                                             `json:"stoppedAt,omitempty"`
}

func (*ExperimentExecutionDetailsProperties) GetLastActionAtAsTime

func (o *ExperimentExecutionDetailsProperties) GetLastActionAtAsTime() (*time.Time, error)

func (*ExperimentExecutionDetailsProperties) GetStartedAtAsTime

func (o *ExperimentExecutionDetailsProperties) GetStartedAtAsTime() (*time.Time, error)

func (*ExperimentExecutionDetailsProperties) GetStoppedAtAsTime

func (o *ExperimentExecutionDetailsProperties) GetStoppedAtAsTime() (*time.Time, error)

func (*ExperimentExecutionDetailsProperties) SetLastActionAtAsTime

func (o *ExperimentExecutionDetailsProperties) SetLastActionAtAsTime(input time.Time)

func (*ExperimentExecutionDetailsProperties) SetStartedAtAsTime

func (o *ExperimentExecutionDetailsProperties) SetStartedAtAsTime(input time.Time)

func (*ExperimentExecutionDetailsProperties) SetStoppedAtAsTime

func (o *ExperimentExecutionDetailsProperties) SetStoppedAtAsTime(input time.Time)

type ExperimentExecutionDetailsPropertiesRunInformation

type ExperimentExecutionDetailsPropertiesRunInformation struct {
	Steps *[]StepStatus `json:"steps,omitempty"`
}

type ExperimentExecutionOperationPredicate

type ExperimentExecutionOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (ExperimentExecutionOperationPredicate) Matches

type ExperimentExecutionProperties

type ExperimentExecutionProperties struct {
	StartedAt *string `json:"startedAt,omitempty"`
	Status    *string `json:"status,omitempty"`
	StoppedAt *string `json:"stoppedAt,omitempty"`
}

func (*ExperimentExecutionProperties) GetStartedAtAsTime

func (o *ExperimentExecutionProperties) GetStartedAtAsTime() (*time.Time, error)

func (*ExperimentExecutionProperties) GetStoppedAtAsTime

func (o *ExperimentExecutionProperties) GetStoppedAtAsTime() (*time.Time, error)

func (*ExperimentExecutionProperties) SetStartedAtAsTime

func (o *ExperimentExecutionProperties) SetStartedAtAsTime(input time.Time)

func (*ExperimentExecutionProperties) SetStoppedAtAsTime

func (o *ExperimentExecutionProperties) SetStoppedAtAsTime(input time.Time)

type ExperimentExecutionsClient

type ExperimentExecutionsClient struct {
	Client *resourcemanager.Client
}

func NewExperimentExecutionsClientWithBaseURI

func NewExperimentExecutionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ExperimentExecutionsClient, error)

func (ExperimentExecutionsClient) ExperimentsExecutionDetails

func (c ExperimentExecutionsClient) ExperimentsExecutionDetails(ctx context.Context, id ExecutionId) (result ExperimentsExecutionDetailsOperationResponse, err error)

ExperimentsExecutionDetails ...

func (ExperimentExecutionsClient) ExperimentsGetExecution

ExperimentsGetExecution ...

func (ExperimentExecutionsClient) ExperimentsListAllExecutions

func (c ExperimentExecutionsClient) ExperimentsListAllExecutions(ctx context.Context, id ExperimentId) (result ExperimentsListAllExecutionsOperationResponse, err error)

ExperimentsListAllExecutions ...

func (ExperimentExecutionsClient) ExperimentsListAllExecutionsComplete

ExperimentsListAllExecutionsComplete retrieves all the results into a single object

func (ExperimentExecutionsClient) ExperimentsListAllExecutionsCompleteMatchingPredicate

func (c ExperimentExecutionsClient) ExperimentsListAllExecutionsCompleteMatchingPredicate(ctx context.Context, id ExperimentId, predicate ExperimentExecutionOperationPredicate) (result ExperimentsListAllExecutionsCompleteResult, err error)

ExperimentsListAllExecutionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type ExperimentId

type ExperimentId struct {
	SubscriptionId    string
	ResourceGroupName string
	ExperimentName    string
}

ExperimentId is a struct representing the Resource ID for a Experiment

func NewExperimentID

func NewExperimentID(subscriptionId string, resourceGroupName string, experimentName string) ExperimentId

NewExperimentID returns a new ExperimentId struct

func ParseExperimentID

func ParseExperimentID(input string) (*ExperimentId, error)

ParseExperimentID parses 'input' into a ExperimentId

func ParseExperimentIDInsensitively

func ParseExperimentIDInsensitively(input string) (*ExperimentId, error)

ParseExperimentIDInsensitively parses 'input' case-insensitively into a ExperimentId note: this method should only be used for API response data and not user input

func (*ExperimentId) FromParseResult

func (id *ExperimentId) FromParseResult(input resourceids.ParseResult) error

func (ExperimentId) ID

func (id ExperimentId) ID() string

ID returns the formatted Experiment ID

func (ExperimentId) Segments

func (id ExperimentId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Experiment ID

func (ExperimentId) String

func (id ExperimentId) String() string

String returns a human-readable description of this Experiment ID

type ExperimentsExecutionDetailsOperationResponse

type ExperimentsExecutionDetailsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ExperimentExecutionDetails
}

type ExperimentsGetExecutionOperationResponse

type ExperimentsGetExecutionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ExperimentExecution
}

type ExperimentsListAllExecutionsCompleteResult

type ExperimentsListAllExecutionsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []ExperimentExecution
}

type ExperimentsListAllExecutionsCustomPager

type ExperimentsListAllExecutionsCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type ExperimentsListAllExecutionsOperationResponse

type ExperimentsListAllExecutionsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ExperimentExecution
}

type StepStatus

type StepStatus struct {
	Branches *[]BranchStatus `json:"branches,omitempty"`
	Status   *string         `json:"status,omitempty"`
	StepId   *string         `json:"stepId,omitempty"`
	StepName *string         `json:"stepName,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL