共用方式為


ArmSqlModelFactory.SqlAdvisorData Method

Definition

Initializes a new instance of SqlAdvisorData.

public static Azure.ResourceManager.Sql.SqlAdvisorData SqlAdvisorData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string kind = default, Azure.Core.AzureLocation? location = default, Azure.ResourceManager.Sql.Models.SqlAdvisorStatus? advisorStatus = default, Azure.ResourceManager.Sql.Models.AutoExecuteStatus? autoExecuteStatus = default, Azure.ResourceManager.Sql.Models.AutoExecuteStatusInheritedFrom? autoExecuteStatusInheritedFrom = default, string recommendationsStatus = default, DateTimeOffset? lastCheckedOn = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Sql.RecommendedActionData> recommendedActions = default);
static member SqlAdvisorData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * Nullable<Azure.Core.AzureLocation> * Nullable<Azure.ResourceManager.Sql.Models.SqlAdvisorStatus> * Nullable<Azure.ResourceManager.Sql.Models.AutoExecuteStatus> * Nullable<Azure.ResourceManager.Sql.Models.AutoExecuteStatusInheritedFrom> * string * Nullable<DateTimeOffset> * seq<Azure.ResourceManager.Sql.RecommendedActionData> -> Azure.ResourceManager.Sql.SqlAdvisorData
Public Shared Function SqlAdvisorData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional kind As String = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing, Optional advisorStatus As Nullable(Of SqlAdvisorStatus) = Nothing, Optional autoExecuteStatus As Nullable(Of AutoExecuteStatus) = Nothing, Optional autoExecuteStatusInheritedFrom As Nullable(Of AutoExecuteStatusInheritedFrom) = Nothing, Optional recommendationsStatus As String = Nothing, Optional lastCheckedOn As Nullable(Of DateTimeOffset) = Nothing, Optional recommendedActions As IEnumerable(Of RecommendedActionData) = Nothing) As SqlAdvisorData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

kind
String

Resource kind.

location
Nullable<AzureLocation>

Resource location.

advisorStatus
Nullable<SqlAdvisorStatus>

Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.

autoExecuteStatus
Nullable<AutoExecuteStatus>

Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'.

autoExecuteStatusInheritedFrom
Nullable<AutoExecuteStatusInheritedFrom>

Gets the resource from which current value of auto-execute status is inherited. Auto-execute status can be set on (and inherited from) different levels in the resource hierarchy. Possible values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is not explicitly set on any level).

recommendationsStatus
String

Gets that status of recommendations for this advisor and reason for not having any recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations available),LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing well), etc.

lastCheckedOn
Nullable<DateTimeOffset>

Gets the time when the current resource was analyzed for recommendations by this advisor.

recommendedActions
IEnumerable<RecommendedActionData>

Gets the recommended actions for this advisor.

Returns

A new SqlAdvisorData instance for mocking.

Applies to