ArmSqlModelFactory.SqlAdvisorData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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, 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, string kind = default, Azure.Core.AzureLocation? location = default);
static member SqlAdvisorData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * 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> * string * Nullable<Azure.Core.AzureLocation> -> 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 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, Optional kind As String = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing) As SqlAdvisorData
Parameters
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
- name
- String
The name of the resource.
- resourceType
- ResourceType
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
- systemData
- SystemData
Azure Resource Manager metadata containing createdBy and modifiedBy information.
- 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.
- kind
- String
Resource kind.
- location
- Nullable<AzureLocation>
Resource location.
Returns
A new SqlAdvisorData instance for mocking.