import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * This data source provides details about a specific Managed Database Sql Tuning Advisor Tasks Execution Plan Stats Comparision resource in Oracle Cloud Infrastructure Database Management service. * * Retrieves a comparison of the existing SQL execution plan and a new plan. * A SQL tuning task may suggest a new execution plan for a SQL, * and this API retrieves the comparison report of the statistics of the two plans. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testManagedDatabaseSqlTuningAdvisorTasksExecutionPlanStatsComparision = oci.databasemanagement.getManagedDatabaseSqlTuningAdvisorTasksExecutionPlanStatsComparison({ * executionId: testExecution.id, * managedDatabaseId: testManagedDatabase.id, * sqlObjectId: testObject.id, * sqlTuningAdvisorTaskId: testSqlTuningAdvisorTask.id, * opcNamedCredentialId: managedDatabaseSqlTuningAdvisorTasksExecutionPlanStatsComparisionOpcNamedCredentialId, * }); * ``` */ export declare function getManagedDatabaseSqlTuningAdvisorTasksExecutionPlanStatsComparison(args: GetManagedDatabaseSqlTuningAdvisorTasksExecutionPlanStatsComparisonArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getManagedDatabaseSqlTuningAdvisorTasksExecutionPlanStatsComparison. */ export interface GetManagedDatabaseSqlTuningAdvisorTasksExecutionPlanStatsComparisonArgs { /** * The execution ID for an execution of a SQL tuning task. This is not the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ executionId: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Managed Database. */ managedDatabaseId: string; /** * The OCID of the Named Credential. */ opcNamedCredentialId?: string; /** * The SQL object ID for the SQL tuning task. This is not the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ sqlObjectId: string; /** * The SQL tuning task identifier. This is not the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ sqlTuningAdvisorTaskId: string; } /** * A collection of values returned by getManagedDatabaseSqlTuningAdvisorTasksExecutionPlanStatsComparison. */ export interface GetManagedDatabaseSqlTuningAdvisorTasksExecutionPlanStatsComparisonResult { readonly executionId: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly managedDatabaseId: string; /** * The statistics of a SQL execution plan. */ readonly modifieds: outputs.DatabaseManagement.GetManagedDatabaseSqlTuningAdvisorTasksExecutionPlanStatsComparisonModified[]; readonly opcNamedCredentialId?: string; /** * The statistics of a SQL execution plan. */ readonly originals: outputs.DatabaseManagement.GetManagedDatabaseSqlTuningAdvisorTasksExecutionPlanStatsComparisonOriginal[]; readonly sqlObjectId: string; readonly sqlTuningAdvisorTaskId: string; } /** * This data source provides details about a specific Managed Database Sql Tuning Advisor Tasks Execution Plan Stats Comparision resource in Oracle Cloud Infrastructure Database Management service. * * Retrieves a comparison of the existing SQL execution plan and a new plan. * A SQL tuning task may suggest a new execution plan for a SQL, * and this API retrieves the comparison report of the statistics of the two plans. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testManagedDatabaseSqlTuningAdvisorTasksExecutionPlanStatsComparision = oci.databasemanagement.getManagedDatabaseSqlTuningAdvisorTasksExecutionPlanStatsComparison({ * executionId: testExecution.id, * managedDatabaseId: testManagedDatabase.id, * sqlObjectId: testObject.id, * sqlTuningAdvisorTaskId: testSqlTuningAdvisorTask.id, * opcNamedCredentialId: managedDatabaseSqlTuningAdvisorTasksExecutionPlanStatsComparisionOpcNamedCredentialId, * }); * ``` */ export declare function getManagedDatabaseSqlTuningAdvisorTasksExecutionPlanStatsComparisonOutput(args: GetManagedDatabaseSqlTuningAdvisorTasksExecutionPlanStatsComparisonOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getManagedDatabaseSqlTuningAdvisorTasksExecutionPlanStatsComparison. */ export interface GetManagedDatabaseSqlTuningAdvisorTasksExecutionPlanStatsComparisonOutputArgs { /** * The execution ID for an execution of a SQL tuning task. This is not the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ executionId: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Managed Database. */ managedDatabaseId: pulumi.Input; /** * The OCID of the Named Credential. */ opcNamedCredentialId?: pulumi.Input; /** * The SQL object ID for the SQL tuning task. This is not the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ sqlObjectId: pulumi.Input; /** * The SQL tuning task identifier. This is not the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ sqlTuningAdvisorTaskId: pulumi.Input; } //# sourceMappingURL=getManagedDatabaseSqlTuningAdvisorTasksExecutionPlanStatsComparison.d.ts.map