Langue

ArmSqlModelFactory.RecommendedActionData Method

Definition

public static Azure.ResourceManager.Sql.RecommendedActionData RecommendedActionData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, string recommendationReason, DateTimeOffset? validSince, DateTimeOffset? lastRefresh, Azure.ResourceManager.Sql.Models.RecommendedActionStateInfo state, bool? isExecutableAction, bool? isRevertableAction, bool? isArchivedAction, DateTimeOffset? executeActionStartOn, TimeSpan? executeActionDuration, DateTimeOffset? revertActionStartOn, TimeSpan? revertActionDuration, Azure.ResourceManager.Sql.Models.RecommendedActionInitiatedBy? executeActionInitiatedBy, DateTimeOffset? executeActionInitiatedOn, Azure.ResourceManager.Sql.Models.RecommendedActionInitiatedBy? revertActionInitiatedBy, DateTimeOffset? revertActionInitiatedOn, int? score, Azure.ResourceManager.Sql.Models.RecommendedActionImplementationInfo implementationDetails, Azure.ResourceManager.Sql.Models.RecommendedActionErrorInfo errorDetails, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Sql.Models.RecommendedActionImpactRecord> estimatedImpact, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Sql.Models.RecommendedActionImpactRecord> observedImpact, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Sql.Models.RecommendedActionMetricInfo> timeSeries, System.Collections.Generic.IEnumerable<string> linkedObjects, System.Collections.Generic.IReadOnlyDictionary<string,string> actionDetails, string kind, Azure.Core.AzureLocation? location);
static member RecommendedActionData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * 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, string> * string * Nullable<Azure.Core.AzureLocation> -> Azure.ResourceManager.Sql.RecommendedActionData
Public Shared Function RecommendedActionData (id As ResourceIdentifier, name As String, resourceType As ResourceType, systemData As SystemData, recommendationReason As String, validSince As Nullable(Of DateTimeOffset), lastRefresh As Nullable(Of DateTimeOffset), state As RecommendedActionStateInfo, isExecutableAction As Nullable(Of Boolean), isRevertableAction As Nullable(Of Boolean), isArchivedAction As Nullable(Of Boolean), executeActionStartOn As Nullable(Of DateTimeOffset), executeActionDuration As Nullable(Of TimeSpan), revertActionStartOn As Nullable(Of DateTimeOffset), revertActionDuration As Nullable(Of TimeSpan), executeActionInitiatedBy As Nullable(Of RecommendedActionInitiatedBy), executeActionInitiatedOn As Nullable(Of DateTimeOffset), revertActionInitiatedBy As Nullable(Of RecommendedActionInitiatedBy), revertActionInitiatedOn As Nullable(Of DateTimeOffset), score As Nullable(Of Integer), implementationDetails As RecommendedActionImplementationInfo, errorDetails As RecommendedActionErrorInfo, estimatedImpact As IEnumerable(Of RecommendedActionImpactRecord), observedImpact As IEnumerable(Of RecommendedActionImpactRecord), timeSeries As IEnumerable(Of RecommendedActionMetricInfo), linkedObjects As IEnumerable(Of String), actionDetails As IReadOnlyDictionary(Of String, String), kind As String, location As Nullable(Of AzureLocation)) As RecommendedActionData

Parameters

id
ResourceIdentifier

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.

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.

state
RecommendedActionStateInfo

Gets the info of the current state the recommended action is in.

isExecutableAction
Nullable<Boolean>

Gets if this recommended action is actionable by user.

isRevertableAction
Nullable<Boolean>

Gets if changes applied by this recommended action can be reverted by user.

isArchivedAction
Nullable<Boolean>

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.

executeActionDuration
Nullable<TimeSpan>

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.

revertActionDuration
Nullable<TimeSpan>

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.

score
Nullable<Int32>

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.

actionDetails
IReadOnlyDictionary<String,String>

Gets additional details specific to this recommended action.

kind
String

Resource kind.

location
Nullable<AzureLocation>

Resource location.

Returns

A new RecommendedActionData instance for mocking.

Applies to