1. Packages
  2. Databricks Provider
  3. API Docs
  4. getQualityMonitorV2
Databricks v1.74.0 published on Thursday, Aug 14, 2025 by Pulumi

databricks.getQualityMonitorV2

Explore with Pulumi AI

databricks logo
Databricks v1.74.0 published on Thursday, Aug 14, 2025 by Pulumi

    This data source can be used to fetch a quality monitors v2.

    Note This data source can only be used with an workspace-level provider!

    Example Usage

    Referring to a quality monitor by uc object type (currently only support schema) and object id:

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const _this = databricks.getSchema({
        name: "my_catalog.my_schema",
    });
    const thisGetQualityMonitorV2 = _this.then(_this => databricks.getQualityMonitorV2({
        objectType: "schema",
        objectId: _this.schemaInfo?.schemaId,
    }));
    
    import pulumi
    import pulumi_databricks as databricks
    
    this = databricks.get_schema(name="my_catalog.my_schema")
    this_get_quality_monitor_v2 = databricks.get_quality_monitor_v2(object_type="schema",
        object_id=this.schema_info.schema_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		this, err := databricks.LookupSchema(ctx, &databricks.LookupSchemaArgs{
    			Name: "my_catalog.my_schema",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = databricks.LookupQualityMonitorV2(ctx, &databricks.LookupQualityMonitorV2Args{
    			ObjectType: "schema",
    			ObjectId:   this.SchemaInfo.SchemaId,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    return await Deployment.RunAsync(() => 
    {
        var @this = Databricks.GetSchema.Invoke(new()
        {
            Name = "my_catalog.my_schema",
        });
    
        var thisGetQualityMonitorV2 = Databricks.GetQualityMonitorV2.Invoke(new()
        {
            ObjectType = "schema",
            ObjectId = @this.Apply(getSchemaResult => getSchemaResult.SchemaInfo?.SchemaId),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.databricks.DatabricksFunctions;
    import com.pulumi.databricks.inputs.GetSchemaArgs;
    import com.pulumi.databricks.inputs.GetQualityMonitorV2Args;
    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) {
            final var this = DatabricksFunctions.getSchema(GetSchemaArgs.builder()
                .name("my_catalog.my_schema")
                .build());
    
            final var thisGetQualityMonitorV2 = DatabricksFunctions.getQualityMonitorV2(GetQualityMonitorV2Args.builder()
                .objectType("schema")
                .objectId(this_.schemaInfo().schemaId())
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          function: databricks:getSchema
          arguments:
            name: my_catalog.my_schema
      thisGetQualityMonitorV2:
        fn::invoke:
          function: databricks:getQualityMonitorV2
          arguments:
            objectType: schema
            objectId: ${this.schemaInfo.schemaId}
    

    Using getQualityMonitorV2

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getQualityMonitorV2(args: GetQualityMonitorV2Args, opts?: InvokeOptions): Promise<GetQualityMonitorV2Result>
    function getQualityMonitorV2Output(args: GetQualityMonitorV2OutputArgs, opts?: InvokeOptions): Output<GetQualityMonitorV2Result>
    def get_quality_monitor_v2(object_id: Optional[str] = None,
                               object_type: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetQualityMonitorV2Result
    def get_quality_monitor_v2_output(object_id: Optional[pulumi.Input[str]] = None,
                               object_type: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetQualityMonitorV2Result]
    func LookupQualityMonitorV2(ctx *Context, args *LookupQualityMonitorV2Args, opts ...InvokeOption) (*LookupQualityMonitorV2Result, error)
    func LookupQualityMonitorV2Output(ctx *Context, args *LookupQualityMonitorV2OutputArgs, opts ...InvokeOption) LookupQualityMonitorV2ResultOutput

    > Note: This function is named LookupQualityMonitorV2 in the Go SDK.

    public static class GetQualityMonitorV2 
    {
        public static Task<GetQualityMonitorV2Result> InvokeAsync(GetQualityMonitorV2Args args, InvokeOptions? opts = null)
        public static Output<GetQualityMonitorV2Result> Invoke(GetQualityMonitorV2InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetQualityMonitorV2Result> getQualityMonitorV2(GetQualityMonitorV2Args args, InvokeOptions options)
    public static Output<GetQualityMonitorV2Result> getQualityMonitorV2(GetQualityMonitorV2Args args, InvokeOptions options)
    
    fn::invoke:
      function: databricks:index/getQualityMonitorV2:getQualityMonitorV2
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ObjectId string
    The uuid of the request object. For example, schema id
    ObjectType string
    The type of the monitored object. Can be one of the following: schema
    ObjectId string
    The uuid of the request object. For example, schema id
    ObjectType string
    The type of the monitored object. Can be one of the following: schema
    objectId String
    The uuid of the request object. For example, schema id
    objectType String
    The type of the monitored object. Can be one of the following: schema
    objectId string
    The uuid of the request object. For example, schema id
    objectType string
    The type of the monitored object. Can be one of the following: schema
    object_id str
    The uuid of the request object. For example, schema id
    object_type str
    The type of the monitored object. Can be one of the following: schema
    objectId String
    The uuid of the request object. For example, schema id
    objectType String
    The type of the monitored object. Can be one of the following: schema

    getQualityMonitorV2 Result

    The following output properties are available:

    AnomalyDetectionConfig GetQualityMonitorV2AnomalyDetectionConfig
    (AnomalyDetectionConfig)
    Id string
    The provider-assigned unique ID for this managed resource.
    ObjectId string
    (string) - The uuid of the request object. For example, schema id
    ObjectType string
    (string) - The type of the monitored object. Can be one of the following: schema
    AnomalyDetectionConfig GetQualityMonitorV2AnomalyDetectionConfig
    (AnomalyDetectionConfig)
    Id string
    The provider-assigned unique ID for this managed resource.
    ObjectId string
    (string) - The uuid of the request object. For example, schema id
    ObjectType string
    (string) - The type of the monitored object. Can be one of the following: schema
    anomalyDetectionConfig GetQualityMonitorV2AnomalyDetectionConfig
    (AnomalyDetectionConfig)
    id String
    The provider-assigned unique ID for this managed resource.
    objectId String
    (string) - The uuid of the request object. For example, schema id
    objectType String
    (string) - The type of the monitored object. Can be one of the following: schema
    anomalyDetectionConfig GetQualityMonitorV2AnomalyDetectionConfig
    (AnomalyDetectionConfig)
    id string
    The provider-assigned unique ID for this managed resource.
    objectId string
    (string) - The uuid of the request object. For example, schema id
    objectType string
    (string) - The type of the monitored object. Can be one of the following: schema
    anomaly_detection_config GetQualityMonitorV2AnomalyDetectionConfig
    (AnomalyDetectionConfig)
    id str
    The provider-assigned unique ID for this managed resource.
    object_id str
    (string) - The uuid of the request object. For example, schema id
    object_type str
    (string) - The type of the monitored object. Can be one of the following: schema
    anomalyDetectionConfig Property Map
    (AnomalyDetectionConfig)
    id String
    The provider-assigned unique ID for this managed resource.
    objectId String
    (string) - The uuid of the request object. For example, schema id
    objectType String
    (string) - The type of the monitored object. Can be one of the following: schema

    Supporting Types

    GetQualityMonitorV2AnomalyDetectionConfig

    LastRunId string
    (string) - Run id of the last run of the workflow
    LatestRunStatus string
    (string) - The status of the last run of the workflow. Possible values are: ANOMALY_DETECTION_RUN_STATUS_CANCELED, ANOMALY_DETECTION_RUN_STATUS_FAILED, ANOMALY_DETECTION_RUN_STATUS_JOB_DELETED, ANOMALY_DETECTION_RUN_STATUS_PENDING, ANOMALY_DETECTION_RUN_STATUS_RUNNING, ANOMALY_DETECTION_RUN_STATUS_SUCCESS, ANOMALY_DETECTION_RUN_STATUS_UNKNOWN, ANOMALY_DETECTION_RUN_STATUS_WORKSPACE_MISMATCH_ERROR
    LastRunId string
    (string) - Run id of the last run of the workflow
    LatestRunStatus string
    (string) - The status of the last run of the workflow. Possible values are: ANOMALY_DETECTION_RUN_STATUS_CANCELED, ANOMALY_DETECTION_RUN_STATUS_FAILED, ANOMALY_DETECTION_RUN_STATUS_JOB_DELETED, ANOMALY_DETECTION_RUN_STATUS_PENDING, ANOMALY_DETECTION_RUN_STATUS_RUNNING, ANOMALY_DETECTION_RUN_STATUS_SUCCESS, ANOMALY_DETECTION_RUN_STATUS_UNKNOWN, ANOMALY_DETECTION_RUN_STATUS_WORKSPACE_MISMATCH_ERROR
    lastRunId String
    (string) - Run id of the last run of the workflow
    latestRunStatus String
    (string) - The status of the last run of the workflow. Possible values are: ANOMALY_DETECTION_RUN_STATUS_CANCELED, ANOMALY_DETECTION_RUN_STATUS_FAILED, ANOMALY_DETECTION_RUN_STATUS_JOB_DELETED, ANOMALY_DETECTION_RUN_STATUS_PENDING, ANOMALY_DETECTION_RUN_STATUS_RUNNING, ANOMALY_DETECTION_RUN_STATUS_SUCCESS, ANOMALY_DETECTION_RUN_STATUS_UNKNOWN, ANOMALY_DETECTION_RUN_STATUS_WORKSPACE_MISMATCH_ERROR
    lastRunId string
    (string) - Run id of the last run of the workflow
    latestRunStatus string
    (string) - The status of the last run of the workflow. Possible values are: ANOMALY_DETECTION_RUN_STATUS_CANCELED, ANOMALY_DETECTION_RUN_STATUS_FAILED, ANOMALY_DETECTION_RUN_STATUS_JOB_DELETED, ANOMALY_DETECTION_RUN_STATUS_PENDING, ANOMALY_DETECTION_RUN_STATUS_RUNNING, ANOMALY_DETECTION_RUN_STATUS_SUCCESS, ANOMALY_DETECTION_RUN_STATUS_UNKNOWN, ANOMALY_DETECTION_RUN_STATUS_WORKSPACE_MISMATCH_ERROR
    last_run_id str
    (string) - Run id of the last run of the workflow
    latest_run_status str
    (string) - The status of the last run of the workflow. Possible values are: ANOMALY_DETECTION_RUN_STATUS_CANCELED, ANOMALY_DETECTION_RUN_STATUS_FAILED, ANOMALY_DETECTION_RUN_STATUS_JOB_DELETED, ANOMALY_DETECTION_RUN_STATUS_PENDING, ANOMALY_DETECTION_RUN_STATUS_RUNNING, ANOMALY_DETECTION_RUN_STATUS_SUCCESS, ANOMALY_DETECTION_RUN_STATUS_UNKNOWN, ANOMALY_DETECTION_RUN_STATUS_WORKSPACE_MISMATCH_ERROR
    lastRunId String
    (string) - Run id of the last run of the workflow
    latestRunStatus String
    (string) - The status of the last run of the workflow. Possible values are: ANOMALY_DETECTION_RUN_STATUS_CANCELED, ANOMALY_DETECTION_RUN_STATUS_FAILED, ANOMALY_DETECTION_RUN_STATUS_JOB_DELETED, ANOMALY_DETECTION_RUN_STATUS_PENDING, ANOMALY_DETECTION_RUN_STATUS_RUNNING, ANOMALY_DETECTION_RUN_STATUS_SUCCESS, ANOMALY_DETECTION_RUN_STATUS_UNKNOWN, ANOMALY_DETECTION_RUN_STATUS_WORKSPACE_MISMATCH_ERROR

    Package Details

    Repository
    databricks pulumi/pulumi-databricks
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the databricks Terraform Provider.
    databricks logo
    Databricks v1.74.0 published on Thursday, Aug 14, 2025 by Pulumi