azure-native.sql.DatabaseAdvisor
Explore with Pulumi AI
Database, Server or Elastic Pool Advisor. API Version: 2020-11-01-preview.
Example Usage
Update database advisor
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var databaseAdvisor = new AzureNative.Sql.DatabaseAdvisor("databaseAdvisor", new()
{
AdvisorName = "CreateIndex",
AutoExecuteStatus = AzureNative.Sql.AutoExecuteStatus.Disabled,
DatabaseName = "IndexAdvisor_test_3",
ResourceGroupName = "workloadinsight-demos",
ServerName = "misosisvr",
});
});
package main
import (
sql "github.com/pulumi/pulumi-azure-native-sdk/sql"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sql.NewDatabaseAdvisor(ctx, "databaseAdvisor", &sql.DatabaseAdvisorArgs{
AdvisorName: pulumi.String("CreateIndex"),
AutoExecuteStatus: sql.AutoExecuteStatusDisabled,
DatabaseName: pulumi.String("IndexAdvisor_test_3"),
ResourceGroupName: pulumi.String("workloadinsight-demos"),
ServerName: pulumi.String("misosisvr"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.sql.DatabaseAdvisor;
import com.pulumi.azurenative.sql.DatabaseAdvisorArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var databaseAdvisor = new DatabaseAdvisor("databaseAdvisor", DatabaseAdvisorArgs.builder()
.advisorName("CreateIndex")
.autoExecuteStatus("Disabled")
.databaseName("IndexAdvisor_test_3")
.resourceGroupName("workloadinsight-demos")
.serverName("misosisvr")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
database_advisor = azure_native.sql.DatabaseAdvisor("databaseAdvisor",
advisor_name="CreateIndex",
auto_execute_status=azure_native.sql.AutoExecuteStatus.DISABLED,
database_name="IndexAdvisor_test_3",
resource_group_name="workloadinsight-demos",
server_name="misosisvr")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const databaseAdvisor = new azure_native.sql.DatabaseAdvisor("databaseAdvisor", {
advisorName: "CreateIndex",
autoExecuteStatus: azure_native.sql.AutoExecuteStatus.Disabled,
databaseName: "IndexAdvisor_test_3",
resourceGroupName: "workloadinsight-demos",
serverName: "misosisvr",
});
resources:
databaseAdvisor:
type: azure-native:sql:DatabaseAdvisor
properties:
advisorName: CreateIndex
autoExecuteStatus: Disabled
databaseName: IndexAdvisor_test_3
resourceGroupName: workloadinsight-demos
serverName: misosisvr
Create DatabaseAdvisor Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DatabaseAdvisor(name: string, args: DatabaseAdvisorArgs, opts?: CustomResourceOptions);
@overload
def DatabaseAdvisor(resource_name: str,
args: DatabaseAdvisorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DatabaseAdvisor(resource_name: str,
opts: Optional[ResourceOptions] = None,
auto_execute_status: Optional[AutoExecuteStatus] = None,
database_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
server_name: Optional[str] = None,
advisor_name: Optional[str] = None)
func NewDatabaseAdvisor(ctx *Context, name string, args DatabaseAdvisorArgs, opts ...ResourceOption) (*DatabaseAdvisor, error)
public DatabaseAdvisor(string name, DatabaseAdvisorArgs args, CustomResourceOptions? opts = null)
public DatabaseAdvisor(String name, DatabaseAdvisorArgs args)
public DatabaseAdvisor(String name, DatabaseAdvisorArgs args, CustomResourceOptions options)
type: azure-native:sql:DatabaseAdvisor
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DatabaseAdvisorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DatabaseAdvisorArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DatabaseAdvisorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatabaseAdvisorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DatabaseAdvisorArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var databaseAdvisorResource = new AzureNative.Sql.DatabaseAdvisor("databaseAdvisorResource", new()
{
AutoExecuteStatus = "Enabled",
DatabaseName = "string",
ResourceGroupName = "string",
ServerName = "string",
AdvisorName = "string",
});
example, err := sql.NewDatabaseAdvisor(ctx, "databaseAdvisorResource", &sql.DatabaseAdvisorArgs{
AutoExecuteStatus: "Enabled",
DatabaseName: "string",
ResourceGroupName: "string",
ServerName: "string",
AdvisorName: "string",
})
var databaseAdvisorResource = new DatabaseAdvisor("databaseAdvisorResource", DatabaseAdvisorArgs.builder()
.autoExecuteStatus("Enabled")
.databaseName("string")
.resourceGroupName("string")
.serverName("string")
.advisorName("string")
.build());
database_advisor_resource = azure_native.sql.DatabaseAdvisor("databaseAdvisorResource",
auto_execute_status=Enabled,
database_name=string,
resource_group_name=string,
server_name=string,
advisor_name=string)
const databaseAdvisorResource = new azure_native.sql.DatabaseAdvisor("databaseAdvisorResource", {
autoExecuteStatus: "Enabled",
databaseName: "string",
resourceGroupName: "string",
serverName: "string",
advisorName: "string",
});
type: azure-native:sql:DatabaseAdvisor
properties:
advisorName: string
autoExecuteStatus: Enabled
databaseName: string
resourceGroupName: string
serverName: string
DatabaseAdvisor Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DatabaseAdvisor resource accepts the following input properties:
- Auto
Execute Pulumi.Status Azure Native. Sql. Auto Execute Status - Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
- Database
Name string - The name of the database.
- Resource
Group stringName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Server
Name string - The name of the server.
- Advisor
Name string - The name of the Database Advisor.
- Auto
Execute AutoStatus Execute Status - Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
- Database
Name string - The name of the database.
- Resource
Group stringName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Server
Name string - The name of the server.
- Advisor
Name string - The name of the Database Advisor.
- auto
Execute AutoStatus Execute Status - Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
- database
Name String - The name of the database.
- resource
Group StringName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server
Name String - The name of the server.
- advisor
Name String - The name of the Database Advisor.
- auto
Execute AutoStatus Execute Status - Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
- database
Name string - The name of the database.
- resource
Group stringName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server
Name string - The name of the server.
- advisor
Name string - The name of the Database Advisor.
- auto_
execute_ Autostatus Execute Status - Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
- database_
name str - The name of the database.
- resource_
group_ strname - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server_
name str - The name of the server.
- advisor_
name str - The name of the Database Advisor.
- auto
Execute "Enabled" | "Disabled" | "Default"Status - Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'
- database
Name String - The name of the database.
- resource
Group StringName - The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- server
Name String - The name of the server.
- advisor
Name String - The name of the Database Advisor.
Outputs
All input properties are implicitly available as output properties. Additionally, the DatabaseAdvisor resource produces the following output properties:
- Advisor
Status string - Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
- Auto
Execute stringStatus Inherited From - 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).
- Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
- Resource kind.
- Last
Checked string - Gets the time when the current resource was analyzed for recommendations by this advisor.
- Location string
- Resource location.
- Name string
- Resource name.
- Recommendations
Status 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.
- Recommended
Actions List<Pulumi.Azure Native. Sql. Outputs. Recommended Action Response> - Gets the recommended actions for this advisor.
- Type string
- Resource type.
- Advisor
Status string - Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
- Auto
Execute stringStatus Inherited From - 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).
- Id string
- The provider-assigned unique ID for this managed resource.
- Kind string
- Resource kind.
- Last
Checked string - Gets the time when the current resource was analyzed for recommendations by this advisor.
- Location string
- Resource location.
- Name string
- Resource name.
- Recommendations
Status 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.
- Recommended
Actions []RecommendedAction Response - Gets the recommended actions for this advisor.
- Type string
- Resource type.
- advisor
Status String - Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
- auto
Execute StringStatus Inherited From - 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).
- id String
- The provider-assigned unique ID for this managed resource.
- kind String
- Resource kind.
- last
Checked String - Gets the time when the current resource was analyzed for recommendations by this advisor.
- location String
- Resource location.
- name String
- Resource name.
- recommendations
Status 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.
- recommended
Actions List<RecommendedAction Response> - Gets the recommended actions for this advisor.
- type String
- Resource type.
- advisor
Status string - Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
- auto
Execute stringStatus Inherited From - 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).
- id string
- The provider-assigned unique ID for this managed resource.
- kind string
- Resource kind.
- last
Checked string - Gets the time when the current resource was analyzed for recommendations by this advisor.
- location string
- Resource location.
- name string
- Resource name.
- recommendations
Status 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.
- recommended
Actions RecommendedAction Response[] - Gets the recommended actions for this advisor.
- type string
- Resource type.
- advisor_
status str - Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
- auto_
execute_ strstatus_ inherited_ from - 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).
- id str
- The provider-assigned unique ID for this managed resource.
- kind str
- Resource kind.
- last_
checked str - Gets the time when the current resource was analyzed for recommendations by this advisor.
- location str
- Resource location.
- name str
- Resource name.
- recommendations_
status str - 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.
- recommended_
actions Sequence[RecommendedAction Response] - Gets the recommended actions for this advisor.
- type str
- Resource type.
- advisor
Status String - Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
- auto
Execute StringStatus Inherited From - 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).
- id String
- The provider-assigned unique ID for this managed resource.
- kind String
- Resource kind.
- last
Checked String - Gets the time when the current resource was analyzed for recommendations by this advisor.
- location String
- Resource location.
- name String
- Resource name.
- recommendations
Status 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.
- recommended
Actions List<Property Map> - Gets the recommended actions for this advisor.
- type String
- Resource type.
Supporting Types
AutoExecuteStatus, AutoExecuteStatusArgs
- Enabled
- Enabled
- Disabled
- Disabled
- Default
- Default
- Auto
Execute Status Enabled - Enabled
- Auto
Execute Status Disabled - Disabled
- Auto
Execute Status Default - Default
- Enabled
- Enabled
- Disabled
- Disabled
- Default
- Default
- Enabled
- Enabled
- Disabled
- Disabled
- Default
- Default
- ENABLED
- Enabled
- DISABLED
- Disabled
- DEFAULT
- Default
- "Enabled"
- Enabled
- "Disabled"
- Disabled
- "Default"
- Default
RecommendedActionErrorInfoResponse, RecommendedActionErrorInfoResponseArgs
- Error
Code string - Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
- Is
Retryable string - Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No
- Error
Code string - Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
- Is
Retryable string - Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No
- error
Code String - Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
- is
Retryable String - Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No
- error
Code string - Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
- is
Retryable string - Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No
- error_
code str - Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
- is_
retryable str - Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No
- error
Code String - Gets the reason why the recommended action was put to error state. e.g., DatabaseHasQdsOff, IndexAlreadyExists
- is
Retryable String - Gets whether the error could be ignored and recommended action could be retried. Possible values are: Yes/No
RecommendedActionImpactRecordResponse, RecommendedActionImpactRecordResponseArgs
- Absolute
Value double - Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
- Change
Value doubleAbsolute - Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes
- Change
Value doubleRelative - Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
- Dimension
Name string - Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
- Unit string
- Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
- Absolute
Value float64 - Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
- Change
Value float64Absolute - Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes
- Change
Value float64Relative - Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
- Dimension
Name string - Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
- Unit string
- Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
- absolute
Value Double - Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
- change
Value DoubleAbsolute - Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes
- change
Value DoubleRelative - Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
- dimension
Name String - Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
- unit String
- Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
- absolute
Value number - Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
- change
Value numberAbsolute - Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes
- change
Value numberRelative - Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
- dimension
Name string - Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
- unit string
- Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
- absolute_
value float - Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
- change_
value_ floatabsolute - Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes
- change_
value_ floatrelative - Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
- dimension_
name str - Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
- unit str
- Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
- absolute
Value Number - Gets the absolute value of this dimension if applicable. e.g., Number of Queries affected
- change
Value NumberAbsolute - Gets the absolute change in the value of this dimension. e.g., Absolute Disk space change in Megabytes
- change
Value NumberRelative - Gets the relative change in the value of this dimension. e.g., Relative Disk space change in Percentage
- dimension
Name String - Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
- unit String
- Gets the name of the impact dimension. e.g., CPUChange, DiskSpaceChange, NumberOfQueriesAffected.
RecommendedActionImplementationInfoResponse, RecommendedActionImplementationInfoResponseArgs
RecommendedActionMetricInfoResponse, RecommendedActionMetricInfoResponseArgs
- Metric
Name string - Gets the name of the metric. e.g., CPU, Number of Queries.
- Start
Time string - Gets the start time of time interval given by this MetricInfo.
- Time
Grain string - Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour)
- Unit string
- Gets the unit in which metric is measured. e.g., DTU, Frequency
- Value double
- Gets the value of the metric in the time interval given by this MetricInfo.
- Metric
Name string - Gets the name of the metric. e.g., CPU, Number of Queries.
- Start
Time string - Gets the start time of time interval given by this MetricInfo.
- Time
Grain string - Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour)
- Unit string
- Gets the unit in which metric is measured. e.g., DTU, Frequency
- Value float64
- Gets the value of the metric in the time interval given by this MetricInfo.
- metric
Name String - Gets the name of the metric. e.g., CPU, Number of Queries.
- start
Time String - Gets the start time of time interval given by this MetricInfo.
- time
Grain String - Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour)
- unit String
- Gets the unit in which metric is measured. e.g., DTU, Frequency
- value Double
- Gets the value of the metric in the time interval given by this MetricInfo.
- metric
Name string - Gets the name of the metric. e.g., CPU, Number of Queries.
- start
Time string - Gets the start time of time interval given by this MetricInfo.
- time
Grain string - Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour)
- unit string
- Gets the unit in which metric is measured. e.g., DTU, Frequency
- value number
- Gets the value of the metric in the time interval given by this MetricInfo.
- metric_
name str - Gets the name of the metric. e.g., CPU, Number of Queries.
- start_
time str - Gets the start time of time interval given by this MetricInfo.
- time_
grain str - Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour)
- unit str
- Gets the unit in which metric is measured. e.g., DTU, Frequency
- value float
- Gets the value of the metric in the time interval given by this MetricInfo.
- metric
Name String - Gets the name of the metric. e.g., CPU, Number of Queries.
- start
Time String - Gets the start time of time interval given by this MetricInfo.
- time
Grain String - Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour)
- unit String
- Gets the unit in which metric is measured. e.g., DTU, Frequency
- value Number
- Gets the value of the metric in the time interval given by this MetricInfo.
RecommendedActionResponse, RecommendedActionResponseArgs
- Details Dictionary<string, object>
- Gets additional details specific to this recommended action.
- Error
Details Pulumi.Azure Native. Sql. Inputs. Recommended Action Error Info Response - Gets the error details if and why this recommended action is put to error state.
- Estimated
Impact List<Pulumi.Azure Native. Sql. Inputs. Recommended Action Impact Record Response> - Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change
- Execute
Action stringDuration - Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation
- Execute
Action stringInitiated By - Gets if approval for applying this recommended action was given by user/system.
- Execute
Action stringInitiated Time - Gets the time when this recommended action was approved for execution.
- Execute
Action stringStart Time - Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time
- Id string
- Resource ID.
- Implementation
Details Pulumi.Azure Native. Sql. Inputs. Recommended Action Implementation Info Response - Gets the implementation details of this recommended action for user to apply it manually.
- Is
Archived boolAction - Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again.
- Is
Executable boolAction - Gets if this recommended action is actionable by user
- Is
Revertable boolAction - Gets if changes applied by this recommended action can be reverted by user
- Kind string
- Resource kind.
- Last
Refresh string - Gets time when this recommended action was last refreshed.
- Linked
Objects List<string> - Gets the linked objects, if any.
- Location string
- Resource location.
- Name string
- Resource name.
- Observed
Impact List<Pulumi.Azure Native. Sql. Inputs. Recommended Action Impact Record Response> - Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change
- Recommendation
Reason string - Gets the reason for recommending this action. e.g., DuplicateIndex
- Revert
Action stringDuration - Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index.
- Revert
Action stringInitiated By - Gets if approval for reverting this recommended action was given by user/system.
- Revert
Action stringInitiated Time - Gets the time when this recommended action was approved for revert.
- Revert
Action stringStart Time - Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed.
- Score int
- Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact
- State
Pulumi.
Azure Native. Sql. Inputs. Recommended Action State Info Response - Gets the info of the current state the recommended action is in.
- Time
Series List<Pulumi.Azure Native. Sql. Inputs. Recommended Action Metric Info Response> - Gets the time series info of metrics for this recommended action e.g., CPU consumption time series
- Type string
- Resource type.
- Valid
Since string - Gets the time since when this recommended action is valid.
- Details map[string]interface{}
- Gets additional details specific to this recommended action.
- Error
Details RecommendedAction Error Info Response - Gets the error details if and why this recommended action is put to error state.
- Estimated
Impact []RecommendedAction Impact Record Response - Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change
- Execute
Action stringDuration - Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation
- Execute
Action stringInitiated By - Gets if approval for applying this recommended action was given by user/system.
- Execute
Action stringInitiated Time - Gets the time when this recommended action was approved for execution.
- Execute
Action stringStart Time - Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time
- Id string
- Resource ID.
- Implementation
Details RecommendedAction Implementation Info Response - Gets the implementation details of this recommended action for user to apply it manually.
- Is
Archived boolAction - Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again.
- Is
Executable boolAction - Gets if this recommended action is actionable by user
- Is
Revertable boolAction - Gets if changes applied by this recommended action can be reverted by user
- Kind string
- Resource kind.
- Last
Refresh string - Gets time when this recommended action was last refreshed.
- Linked
Objects []string - Gets the linked objects, if any.
- Location string
- Resource location.
- Name string
- Resource name.
- Observed
Impact []RecommendedAction Impact Record Response - Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change
- Recommendation
Reason string - Gets the reason for recommending this action. e.g., DuplicateIndex
- Revert
Action stringDuration - Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index.
- Revert
Action stringInitiated By - Gets if approval for reverting this recommended action was given by user/system.
- Revert
Action stringInitiated Time - Gets the time when this recommended action was approved for revert.
- Revert
Action stringStart Time - Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed.
- Score int
- Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact
- State
Recommended
Action State Info Response - Gets the info of the current state the recommended action is in.
- Time
Series []RecommendedAction Metric Info Response - Gets the time series info of metrics for this recommended action e.g., CPU consumption time series
- Type string
- Resource type.
- Valid
Since string - Gets the time since when this recommended action is valid.
- details Map<String,Object>
- Gets additional details specific to this recommended action.
- error
Details RecommendedAction Error Info Response - Gets the error details if and why this recommended action is put to error state.
- estimated
Impact List<RecommendedAction Impact Record Response> - Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change
- execute
Action StringDuration - Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation
- execute
Action StringInitiated By - Gets if approval for applying this recommended action was given by user/system.
- execute
Action StringInitiated Time - Gets the time when this recommended action was approved for execution.
- execute
Action StringStart Time - Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time
- id String
- Resource ID.
- implementation
Details RecommendedAction Implementation Info Response - Gets the implementation details of this recommended action for user to apply it manually.
- is
Archived BooleanAction - Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again.
- is
Executable BooleanAction - Gets if this recommended action is actionable by user
- is
Revertable BooleanAction - Gets if changes applied by this recommended action can be reverted by user
- kind String
- Resource kind.
- last
Refresh String - Gets time when this recommended action was last refreshed.
- linked
Objects List<String> - Gets the linked objects, if any.
- location String
- Resource location.
- name String
- Resource name.
- observed
Impact List<RecommendedAction Impact Record Response> - Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change
- recommendation
Reason String - Gets the reason for recommending this action. e.g., DuplicateIndex
- revert
Action StringDuration - Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index.
- revert
Action StringInitiated By - Gets if approval for reverting this recommended action was given by user/system.
- revert
Action StringInitiated Time - Gets the time when this recommended action was approved for revert.
- revert
Action StringStart Time - Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed.
- score Integer
- Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact
- state
Recommended
Action State Info Response - Gets the info of the current state the recommended action is in.
- time
Series List<RecommendedAction Metric Info Response> - Gets the time series info of metrics for this recommended action e.g., CPU consumption time series
- type String
- Resource type.
- valid
Since String - Gets the time since when this recommended action is valid.
- details {[key: string]: any}
- Gets additional details specific to this recommended action.
- error
Details RecommendedAction Error Info Response - Gets the error details if and why this recommended action is put to error state.
- estimated
Impact RecommendedAction Impact Record Response[] - Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change
- execute
Action stringDuration - Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation
- execute
Action stringInitiated By - Gets if approval for applying this recommended action was given by user/system.
- execute
Action stringInitiated Time - Gets the time when this recommended action was approved for execution.
- execute
Action stringStart Time - Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time
- id string
- Resource ID.
- implementation
Details RecommendedAction Implementation Info Response - Gets the implementation details of this recommended action for user to apply it manually.
- is
Archived booleanAction - Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again.
- is
Executable booleanAction - Gets if this recommended action is actionable by user
- is
Revertable booleanAction - Gets if changes applied by this recommended action can be reverted by user
- kind string
- Resource kind.
- last
Refresh string - Gets time when this recommended action was last refreshed.
- linked
Objects string[] - Gets the linked objects, if any.
- location string
- Resource location.
- name string
- Resource name.
- observed
Impact RecommendedAction Impact Record Response[] - Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change
- recommendation
Reason string - Gets the reason for recommending this action. e.g., DuplicateIndex
- revert
Action stringDuration - Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index.
- revert
Action stringInitiated By - Gets if approval for reverting this recommended action was given by user/system.
- revert
Action stringInitiated Time - Gets the time when this recommended action was approved for revert.
- revert
Action stringStart Time - Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed.
- score number
- Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact
- state
Recommended
Action State Info Response - Gets the info of the current state the recommended action is in.
- time
Series RecommendedAction Metric Info Response[] - Gets the time series info of metrics for this recommended action e.g., CPU consumption time series
- type string
- Resource type.
- valid
Since string - Gets the time since when this recommended action is valid.
- details Mapping[str, Any]
- Gets additional details specific to this recommended action.
- error_
details RecommendedAction Error Info Response - Gets the error details if and why this recommended action is put to error state.
- estimated_
impact Sequence[RecommendedAction Impact Record Response] - Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change
- execute_
action_ strduration - Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation
- execute_
action_ strinitiated_ by - Gets if approval for applying this recommended action was given by user/system.
- execute_
action_ strinitiated_ time - Gets the time when this recommended action was approved for execution.
- execute_
action_ strstart_ time - Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time
- id str
- Resource ID.
- implementation_
details RecommendedAction Implementation Info Response - Gets the implementation details of this recommended action for user to apply it manually.
- is_
archived_ boolaction - Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again.
- is_
executable_ boolaction - Gets if this recommended action is actionable by user
- is_
revertable_ boolaction - Gets if changes applied by this recommended action can be reverted by user
- kind str
- Resource kind.
- last_
refresh str - Gets time when this recommended action was last refreshed.
- linked_
objects Sequence[str] - Gets the linked objects, if any.
- location str
- Resource location.
- name str
- Resource name.
- observed_
impact Sequence[RecommendedAction Impact Record Response] - Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change
- recommendation_
reason str - Gets the reason for recommending this action. e.g., DuplicateIndex
- revert_
action_ strduration - Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index.
- revert_
action_ strinitiated_ by - Gets if approval for reverting this recommended action was given by user/system.
- revert_
action_ strinitiated_ time - Gets the time when this recommended action was approved for revert.
- revert_
action_ strstart_ time - Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed.
- score int
- Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact
- state
Recommended
Action State Info Response - Gets the info of the current state the recommended action is in.
- time_
series Sequence[RecommendedAction Metric Info Response] - Gets the time series info of metrics for this recommended action e.g., CPU consumption time series
- type str
- Resource type.
- valid_
since str - Gets the time since when this recommended action is valid.
- details Map<Any>
- Gets additional details specific to this recommended action.
- error
Details Property Map - Gets the error details if and why this recommended action is put to error state.
- estimated
Impact List<Property Map> - Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change
- execute
Action StringDuration - Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation
- execute
Action StringInitiated By - Gets if approval for applying this recommended action was given by user/system.
- execute
Action StringInitiated Time - Gets the time when this recommended action was approved for execution.
- execute
Action StringStart Time - Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time
- id String
- Resource ID.
- implementation
Details Property Map - Gets the implementation details of this recommended action for user to apply it manually.
- is
Archived BooleanAction - Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again.
- is
Executable BooleanAction - Gets if this recommended action is actionable by user
- is
Revertable BooleanAction - Gets if changes applied by this recommended action can be reverted by user
- kind String
- Resource kind.
- last
Refresh String - Gets time when this recommended action was last refreshed.
- linked
Objects List<String> - Gets the linked objects, if any.
- location String
- Resource location.
- name String
- Resource name.
- observed
Impact List<Property Map> - Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change
- recommendation
Reason String - Gets the reason for recommending this action. e.g., DuplicateIndex
- revert
Action StringDuration - Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index.
- revert
Action StringInitiated By - Gets if approval for reverting this recommended action was given by user/system.
- revert
Action StringInitiated Time - Gets the time when this recommended action was approved for revert.
- revert
Action StringStart Time - Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed.
- score Number
- Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact
- state Property Map
- Gets the info of the current state the recommended action is in.
- time
Series List<Property Map> - Gets the time series info of metrics for this recommended action e.g., CPU consumption time series
- type String
- Resource type.
- valid
Since String - Gets the time since when this recommended action is valid.
RecommendedActionStateInfoResponse, RecommendedActionStateInfoResponseArgs
- Action
Initiated stringBy - Gets who initiated the execution of this recommended action. Possible Value are: User -> When user explicity notified system to apply the recommended action. System -> When auto-execute status of this advisor was set to 'Enabled', in which case the system applied it.
- Current
Value string - Current state the recommended action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action.
- Last
Modified string - Gets the time when the state was last modified
- Action
Initiated stringBy - Gets who initiated the execution of this recommended action. Possible Value are: User -> When user explicity notified system to apply the recommended action. System -> When auto-execute status of this advisor was set to 'Enabled', in which case the system applied it.
- Current
Value string - Current state the recommended action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action.
- Last
Modified string - Gets the time when the state was last modified
- action
Initiated StringBy - Gets who initiated the execution of this recommended action. Possible Value are: User -> When user explicity notified system to apply the recommended action. System -> When auto-execute status of this advisor was set to 'Enabled', in which case the system applied it.
- current
Value String - Current state the recommended action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action.
- last
Modified String - Gets the time when the state was last modified
- action
Initiated stringBy - Gets who initiated the execution of this recommended action. Possible Value are: User -> When user explicity notified system to apply the recommended action. System -> When auto-execute status of this advisor was set to 'Enabled', in which case the system applied it.
- current
Value string - Current state the recommended action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action.
- last
Modified string - Gets the time when the state was last modified
- action_
initiated_ strby - Gets who initiated the execution of this recommended action. Possible Value are: User -> When user explicity notified system to apply the recommended action. System -> When auto-execute status of this advisor was set to 'Enabled', in which case the system applied it.
- current_
value str - Current state the recommended action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action.
- last_
modified str - Gets the time when the state was last modified
- action
Initiated StringBy - Gets who initiated the execution of this recommended action. Possible Value are: User -> When user explicity notified system to apply the recommended action. System -> When auto-execute status of this advisor was set to 'Enabled', in which case the system applied it.
- current
Value String - Current state the recommended action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action.
- last
Modified String - Gets the time when the state was last modified
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:sql:DatabaseAdvisor CreateIndex /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workloadinsight-demos/providers/Microsoft.Sql/servers/misosisvr/databases/IndexAdvisor_test_3/advisors/CreateIndex
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0