ArmSqlModelFactory.RecommendedActionData 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.
Initializes a new instance of RecommendedActionData.
public static Azure.ResourceManager.Sql.RecommendedActionData RecommendedActionData (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, string recommendationReason = default, DateTimeOffset? validSince = default, DateTimeOffset? lastRefresh = default, Azure.ResourceManager.Sql.Models.RecommendedActionStateInfo state = default, bool? isExecutableAction = default, bool? isRevertableAction = default, bool? isArchivedAction = default, DateTimeOffset? executeActionStartOn = default, TimeSpan? executeActionDuration = default, DateTimeOffset? revertActionStartOn = default, TimeSpan? revertActionDuration = default, Azure.ResourceManager.Sql.Models.RecommendedActionInitiatedBy? executeActionInitiatedBy = default, DateTimeOffset? executeActionInitiatedOn = default, Azure.ResourceManager.Sql.Models.RecommendedActionInitiatedBy? revertActionInitiatedBy = default, DateTimeOffset? revertActionInitiatedOn = default, int? score = default, Azure.ResourceManager.Sql.Models.RecommendedActionImplementationInfo implementationDetails = default, Azure.ResourceManager.Sql.Models.RecommendedActionErrorInfo errorDetails = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Sql.Models.RecommendedActionImpactRecord> estimatedImpact = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Sql.Models.RecommendedActionImpactRecord> observedImpact = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Sql.Models.RecommendedActionMetricInfo> timeSeries = default, System.Collections.Generic.IEnumerable<string> linkedObjects = default, System.Collections.Generic.IReadOnlyDictionary<string,BinaryData> details = default);
static member RecommendedActionData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * Nullable<Azure.Core.AzureLocation> * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Azure.ResourceManager.Sql.Models.RecommendedActionStateInfo * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<DateTimeOffset> * Nullable<TimeSpan> * Nullable<DateTimeOffset> * Nullable<TimeSpan> * Nullable<Azure.ResourceManager.Sql.Models.RecommendedActionInitiatedBy> * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.Sql.Models.RecommendedActionInitiatedBy> * Nullable<DateTimeOffset> * Nullable<int> * Azure.ResourceManager.Sql.Models.RecommendedActionImplementationInfo * Azure.ResourceManager.Sql.Models.RecommendedActionErrorInfo * seq<Azure.ResourceManager.Sql.Models.RecommendedActionImpactRecord> * seq<Azure.ResourceManager.Sql.Models.RecommendedActionImpactRecord> * seq<Azure.ResourceManager.Sql.Models.RecommendedActionMetricInfo> * seq<string> * System.Collections.Generic.IReadOnlyDictionary<string, BinaryData> -> Azure.ResourceManager.Sql.RecommendedActionData
Public Shared Function RecommendedActionData (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 recommendationReason As String = Nothing, Optional validSince As Nullable(Of DateTimeOffset) = Nothing, Optional lastRefresh As Nullable(Of DateTimeOffset) = Nothing, Optional state As RecommendedActionStateInfo = Nothing, Optional isExecutableAction As Nullable(Of Boolean) = Nothing, Optional isRevertableAction As Nullable(Of Boolean) = Nothing, Optional isArchivedAction As Nullable(Of Boolean) = Nothing, Optional executeActionStartOn As Nullable(Of DateTimeOffset) = Nothing, Optional executeActionDuration As Nullable(Of TimeSpan) = Nothing, Optional revertActionStartOn As Nullable(Of DateTimeOffset) = Nothing, Optional revertActionDuration As Nullable(Of TimeSpan) = Nothing, Optional executeActionInitiatedBy As Nullable(Of RecommendedActionInitiatedBy) = Nothing, Optional executeActionInitiatedOn As Nullable(Of DateTimeOffset) = Nothing, Optional revertActionInitiatedBy As Nullable(Of RecommendedActionInitiatedBy) = Nothing, Optional revertActionInitiatedOn As Nullable(Of DateTimeOffset) = Nothing, Optional score As Nullable(Of Integer) = Nothing, Optional implementationDetails As RecommendedActionImplementationInfo = Nothing, Optional errorDetails As RecommendedActionErrorInfo = Nothing, Optional estimatedImpact As IEnumerable(Of RecommendedActionImpactRecord) = Nothing, Optional observedImpact As IEnumerable(Of RecommendedActionImpactRecord) = Nothing, Optional timeSeries As IEnumerable(Of RecommendedActionMetricInfo) = Nothing, Optional linkedObjects As IEnumerable(Of String) = Nothing, Optional details As IReadOnlyDictionary(Of String, BinaryData) = Nothing) As RecommendedActionData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- kind
- String
Resource kind.
- location
- Nullable<AzureLocation>
Resource location.
- recommendationReason
- String
Gets the reason for recommending this action. e.g., DuplicateIndex.
- validSince
- Nullable<DateTimeOffset>
Gets the time since when this recommended action is valid.
- lastRefresh
- Nullable<DateTimeOffset>
Gets time when this recommended action was last refreshed.
Gets the info of the current state the recommended action is in.
Gets if changes applied by this recommended action can be reverted by user.
Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again.
- executeActionStartOn
- Nullable<DateTimeOffset>
Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time.
Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation.
- revertActionStartOn
- Nullable<DateTimeOffset>
Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed.
Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index.
- executeActionInitiatedBy
- Nullable<RecommendedActionInitiatedBy>
Gets if approval for applying this recommended action was given by user/system.
- executeActionInitiatedOn
- Nullable<DateTimeOffset>
Gets the time when this recommended action was approved for execution.
- revertActionInitiatedBy
- Nullable<RecommendedActionInitiatedBy>
Gets if approval for reverting this recommended action was given by user/system.
- revertActionInitiatedOn
- Nullable<DateTimeOffset>
Gets the time when this recommended action was approved for revert.
Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact.
- implementationDetails
- RecommendedActionImplementationInfo
Gets the implementation details of this recommended action for user to apply it manually.
- errorDetails
- RecommendedActionErrorInfo
Gets the error details if and why this recommended action is put to error state.
- estimatedImpact
- IEnumerable<RecommendedActionImpactRecord>
Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change.
- observedImpact
- IEnumerable<RecommendedActionImpactRecord>
Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change.
- timeSeries
- IEnumerable<RecommendedActionMetricInfo>
Gets the time series info of metrics for this recommended action e.g., CPU consumption time series.
- linkedObjects
- IEnumerable<String>
Gets the linked objects, if any.
- details
- IReadOnlyDictionary<String,BinaryData>
Gets additional details specific to this recommended action.
Returns
A new RecommendedActionData instance for mocking.
Applies to
Azure SDK for .NET