Versions in this module Expand all Collapse all v0 v0.20241126.2320 Nov 26, 2024 v0.20241126.1723 Nov 26, 2024 Changes in this version + func PossibleValuesForAdvisorStatus() []string + func PossibleValuesForAutoExecuteStatus() []string + func PossibleValuesForAutoExecuteStatusInheritedFrom() []string + func PossibleValuesForImplementationMethod() []string + func PossibleValuesForIsRetryable() []string + func PossibleValuesForRecommendedActionCurrentState() []string + func PossibleValuesForRecommendedActionInitiatedBy() []string + func ValidateDatabaseAdvisorID(input interface{}, key string) (warnings []string, errors []error) + type Advisor struct + Id *string + Kind *string + Location *string + Name *string + Properties *AdvisorProperties + Type *string + type AdvisorProperties struct + AdvisorStatus *AdvisorStatus + AutoExecuteStatus AutoExecuteStatus + AutoExecuteStatusInheritedFrom *AutoExecuteStatusInheritedFrom + LastChecked *string + RecommendationsStatus *string + RecommendedActions *[]RecommendedAction + func (o *AdvisorProperties) GetLastCheckedAsTime() (*time.Time, error) + func (o *AdvisorProperties) SetLastCheckedAsTime(input time.Time) + type AdvisorStatus string + const AdvisorStatusGA + const AdvisorStatusLimitedPublicPreview + const AdvisorStatusPrivatePreview + const AdvisorStatusPublicPreview + func (s *AdvisorStatus) UnmarshalJSON(bytes []byte) error + type AutoExecuteStatus string + const AutoExecuteStatusDefault + const AutoExecuteStatusDisabled + const AutoExecuteStatusEnabled + func (s *AutoExecuteStatus) UnmarshalJSON(bytes []byte) error + type AutoExecuteStatusInheritedFrom string + const AutoExecuteStatusInheritedFromDatabase + const AutoExecuteStatusInheritedFromDefault + const AutoExecuteStatusInheritedFromElasticPool + const AutoExecuteStatusInheritedFromServer + const AutoExecuteStatusInheritedFromSubscription + func (s *AutoExecuteStatusInheritedFrom) UnmarshalJSON(bytes []byte) error + type DatabaseAdvisorId struct + AdvisorName string + DatabaseName string + ResourceGroupName string + ServerName string + SubscriptionId string + func NewDatabaseAdvisorID(subscriptionId string, resourceGroupName string, serverName string, ...) DatabaseAdvisorId + func ParseDatabaseAdvisorID(input string) (*DatabaseAdvisorId, error) + func ParseDatabaseAdvisorIDInsensitively(input string) (*DatabaseAdvisorId, error) + func (id *DatabaseAdvisorId) FromParseResult(input resourceids.ParseResult) error + func (id DatabaseAdvisorId) ID() string + func (id DatabaseAdvisorId) Segments() []resourceids.Segment + func (id DatabaseAdvisorId) String() string + type DatabaseAdvisorsClient struct + Client *resourcemanager.Client + func NewDatabaseAdvisorsClientWithBaseURI(sdkApi sdkEnv.Api) (*DatabaseAdvisorsClient, error) + func (c DatabaseAdvisorsClient) Get(ctx context.Context, id DatabaseAdvisorId) (result GetOperationResponse, err error) + func (c DatabaseAdvisorsClient) ListByDatabase(ctx context.Context, id commonids.SqlDatabaseId, ...) (result ListByDatabaseOperationResponse, err error) + func (c DatabaseAdvisorsClient) Update(ctx context.Context, id DatabaseAdvisorId, input Advisor) (result UpdateOperationResponse, err error) + type GetOperationResponse struct + HttpResponse *http.Response + Model *Advisor + OData *odata.OData + type ImplementationMethod string + const ImplementationMethodAzurePowerShell + const ImplementationMethodTSql + func (s *ImplementationMethod) UnmarshalJSON(bytes []byte) error + type IsRetryable string + const IsRetryableNo + const IsRetryableYes + func (s *IsRetryable) UnmarshalJSON(bytes []byte) error + type ListByDatabaseOperationOptions struct + Expand *string + func DefaultListByDatabaseOperationOptions() ListByDatabaseOperationOptions + func (o ListByDatabaseOperationOptions) ToHeaders() *client.Headers + func (o ListByDatabaseOperationOptions) ToOData() *odata.Query + func (o ListByDatabaseOperationOptions) ToQuery() *client.QueryParams + type ListByDatabaseOperationResponse struct + HttpResponse *http.Response + Model *[]Advisor + OData *odata.OData + type RecommendedAction struct + Id *string + Kind *string + Location *string + Name *string + Properties *RecommendedActionProperties + Type *string + type RecommendedActionCurrentState string + const RecommendedActionCurrentStateActive + const RecommendedActionCurrentStateError + const RecommendedActionCurrentStateExecuting + const RecommendedActionCurrentStateExpired + const RecommendedActionCurrentStateIgnored + const RecommendedActionCurrentStateMonitoring + const RecommendedActionCurrentStatePending + const RecommendedActionCurrentStatePendingRevert + const RecommendedActionCurrentStateResolved + const RecommendedActionCurrentStateRevertCancelled + const RecommendedActionCurrentStateReverted + const RecommendedActionCurrentStateReverting + const RecommendedActionCurrentStateSuccess + const RecommendedActionCurrentStateVerifying + func (s *RecommendedActionCurrentState) UnmarshalJSON(bytes []byte) error + type RecommendedActionErrorInfo struct + ErrorCode *string + IsRetryable *IsRetryable + type RecommendedActionImpactRecord struct + AbsoluteValue *float64 + ChangeValueAbsolute *float64 + ChangeValueRelative *float64 + DimensionName *string + Unit *string + type RecommendedActionImplementationInfo struct + Method *ImplementationMethod + Script *string + type RecommendedActionInitiatedBy string + const RecommendedActionInitiatedBySystem + const RecommendedActionInitiatedByUser + func (s *RecommendedActionInitiatedBy) UnmarshalJSON(bytes []byte) error + type RecommendedActionMetricInfo struct + MetricName *string + StartTime *string + TimeGrain *string + Unit *string + Value *float64 + func (o *RecommendedActionMetricInfo) GetStartTimeAsTime() (*time.Time, error) + func (o *RecommendedActionMetricInfo) SetStartTimeAsTime(input time.Time) + type RecommendedActionProperties struct + Details *map[string]interface{} + ErrorDetails *RecommendedActionErrorInfo + EstimatedImpact *[]RecommendedActionImpactRecord + ExecuteActionDuration *string + ExecuteActionInitiatedBy *RecommendedActionInitiatedBy + ExecuteActionInitiatedTime *string + ExecuteActionStartTime *string + ImplementationDetails *RecommendedActionImplementationInfo + IsArchivedAction *bool + IsExecutableAction *bool + IsRevertableAction *bool + LastRefresh *string + LinkedObjects *[]string + ObservedImpact *[]RecommendedActionImpactRecord + RecommendationReason *string + RevertActionDuration *string + RevertActionInitiatedBy *RecommendedActionInitiatedBy + RevertActionInitiatedTime *string + RevertActionStartTime *string + Score *int64 + State RecommendedActionStateInfo + TimeSeries *[]RecommendedActionMetricInfo + ValidSince *string + func (o *RecommendedActionProperties) GetExecuteActionInitiatedTimeAsTime() (*time.Time, error) + func (o *RecommendedActionProperties) GetExecuteActionStartTimeAsTime() (*time.Time, error) + func (o *RecommendedActionProperties) GetLastRefreshAsTime() (*time.Time, error) + func (o *RecommendedActionProperties) GetRevertActionInitiatedTimeAsTime() (*time.Time, error) + func (o *RecommendedActionProperties) GetRevertActionStartTimeAsTime() (*time.Time, error) + func (o *RecommendedActionProperties) GetValidSinceAsTime() (*time.Time, error) + func (o *RecommendedActionProperties) SetExecuteActionInitiatedTimeAsTime(input time.Time) + func (o *RecommendedActionProperties) SetExecuteActionStartTimeAsTime(input time.Time) + func (o *RecommendedActionProperties) SetLastRefreshAsTime(input time.Time) + func (o *RecommendedActionProperties) SetRevertActionInitiatedTimeAsTime(input time.Time) + func (o *RecommendedActionProperties) SetRevertActionStartTimeAsTime(input time.Time) + func (o *RecommendedActionProperties) SetValidSinceAsTime(input time.Time) + type RecommendedActionStateInfo struct + ActionInitiatedBy *RecommendedActionInitiatedBy + CurrentValue RecommendedActionCurrentState + LastModified *string + func (o *RecommendedActionStateInfo) GetLastModifiedAsTime() (*time.Time, error) + func (o *RecommendedActionStateInfo) SetLastModifiedAsTime(input time.Time) + type UpdateOperationResponse struct + HttpResponse *http.Response + Model *Advisor + OData *odata.OData