ArmPostgreSqlFlexibleServersModelFactory.ObjectRecommendation 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 ObjectRecommendation.
public static Azure.ResourceManager.PostgreSql.FlexibleServers.Models.ObjectRecommendation ObjectRecommendation(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string kind = default, DateTimeOffset? initialRecommendedOn = default, DateTimeOffset? lastRecommendedOn = default, int? timesRecommended = default, System.Collections.Generic.IEnumerable<long> improvedQueryIds = default, string recommendationReason = default, string currentState = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerRecommendationType? recommendationType = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.ObjectRecommendationImplementationDetails implementationDetails = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.ObjectRecommendationAnalyzedWorkload analyzedWorkload = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.RecommendationImpactRecord> estimatedImpact = default, Azure.ResourceManager.PostgreSql.FlexibleServers.Models.ObjectRecommendationDetails details = default);
static member ObjectRecommendation : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<int> * seq<int64> * string * string * Nullable<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.PostgreSqlFlexibleServerRecommendationType> * Azure.ResourceManager.PostgreSql.FlexibleServers.Models.ObjectRecommendationImplementationDetails * Azure.ResourceManager.PostgreSql.FlexibleServers.Models.ObjectRecommendationAnalyzedWorkload * seq<Azure.ResourceManager.PostgreSql.FlexibleServers.Models.RecommendationImpactRecord> * Azure.ResourceManager.PostgreSql.FlexibleServers.Models.ObjectRecommendationDetails -> Azure.ResourceManager.PostgreSql.FlexibleServers.Models.ObjectRecommendation
Public Shared Function ObjectRecommendation (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 initialRecommendedOn As Nullable(Of DateTimeOffset) = Nothing, Optional lastRecommendedOn As Nullable(Of DateTimeOffset) = Nothing, Optional timesRecommended As Nullable(Of Integer) = Nothing, Optional improvedQueryIds As IEnumerable(Of Long) = Nothing, Optional recommendationReason As String = Nothing, Optional currentState As String = Nothing, Optional recommendationType As Nullable(Of PostgreSqlFlexibleServerRecommendationType) = Nothing, Optional implementationDetails As ObjectRecommendationImplementationDetails = Nothing, Optional analyzedWorkload As ObjectRecommendationAnalyzedWorkload = Nothing, Optional estimatedImpact As IEnumerable(Of RecommendationImpactRecord) = Nothing, Optional details As ObjectRecommendationDetails = Nothing) As ObjectRecommendation
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- kind
- String
Always empty.
- initialRecommendedOn
- Nullable<DateTimeOffset>
Creation time (UTC) of this recommendation.
- lastRecommendedOn
- Nullable<DateTimeOffset>
Last time (UTC) that this recommendation was produced.
- improvedQueryIds
- IEnumerable<Int64>
List of identifiers for all queries identified as targets for improvement if the recommendation is applied. The list is only populated for CREATE INDEX recommendations.
- recommendationReason
- String
Reason for this recommendation.
- currentState
- String
Current state.
- recommendationType
- Nullable<PostgreSqlFlexibleServerRecommendationType>
Type for this recommendation.
- implementationDetails
- ObjectRecommendationImplementationDetails
Implementation details for the recommended action.
- analyzedWorkload
- ObjectRecommendationAnalyzedWorkload
Workload information for the recommended action.
- estimatedImpact
- IEnumerable<RecommendationImpactRecord>
Estimated impact of this recommended action.
- details
- ObjectRecommendationDetails
Recommendation details for the recommended action.
Returns
A new ObjectRecommendation instance for mocking.