qualitymonitorv2

package
v0.73.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2025 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Overview

Manage data quality of UC objects (currently support `schema`).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnomalyDetectionConfig

type AnomalyDetectionConfig struct {
	// Run id of the last run of the workflow
	// Wire name: 'last_run_id'
	LastRunId string `json:"last_run_id,omitempty"`
	// The status of the last run of the workflow.
	// Wire name: 'latest_run_status'
	LatestRunStatus AnomalyDetectionRunStatus `json:"latest_run_status,omitempty"`

	ForceSendFields []string `json:"-" tf:"-"`
}

func (AnomalyDetectionConfig) MarshalJSON

func (st AnomalyDetectionConfig) MarshalJSON() ([]byte, error)

func (*AnomalyDetectionConfig) UnmarshalJSON

func (st *AnomalyDetectionConfig) UnmarshalJSON(b []byte) error

type AnomalyDetectionRunStatus

type AnomalyDetectionRunStatus string

Status of Anomaly Detection Job Run

const AnomalyDetectionRunStatusAnomalyDetectionRunStatusCanceled AnomalyDetectionRunStatus = `ANOMALY_DETECTION_RUN_STATUS_CANCELED`
const AnomalyDetectionRunStatusAnomalyDetectionRunStatusFailed AnomalyDetectionRunStatus = `ANOMALY_DETECTION_RUN_STATUS_FAILED`
const AnomalyDetectionRunStatusAnomalyDetectionRunStatusJobDeleted AnomalyDetectionRunStatus = `ANOMALY_DETECTION_RUN_STATUS_JOB_DELETED`
const AnomalyDetectionRunStatusAnomalyDetectionRunStatusPending AnomalyDetectionRunStatus = `ANOMALY_DETECTION_RUN_STATUS_PENDING`
const AnomalyDetectionRunStatusAnomalyDetectionRunStatusRunning AnomalyDetectionRunStatus = `ANOMALY_DETECTION_RUN_STATUS_RUNNING`
const AnomalyDetectionRunStatusAnomalyDetectionRunStatusSuccess AnomalyDetectionRunStatus = `ANOMALY_DETECTION_RUN_STATUS_SUCCESS`
const AnomalyDetectionRunStatusAnomalyDetectionRunStatusUnknown AnomalyDetectionRunStatus = `ANOMALY_DETECTION_RUN_STATUS_UNKNOWN`
const AnomalyDetectionRunStatusAnomalyDetectionRunStatusWorkspaceMismatchError AnomalyDetectionRunStatus = `ANOMALY_DETECTION_RUN_STATUS_WORKSPACE_MISMATCH_ERROR`

func (*AnomalyDetectionRunStatus) Set

Set raw string value and validate it against allowed values

func (*AnomalyDetectionRunStatus) String

func (f *AnomalyDetectionRunStatus) String() string

String representation for fmt.Print

func (*AnomalyDetectionRunStatus) Type

Type always returns AnomalyDetectionRunStatus to satisfy [pflag.Value] interface

func (*AnomalyDetectionRunStatus) Values

Values returns all possible values for AnomalyDetectionRunStatus.

There is no guarantee on the order of the values in the slice.

type CreateQualityMonitorRequest

type CreateQualityMonitorRequest struct {

	// Wire name: 'quality_monitor'
	QualityMonitor QualityMonitor `json:"quality_monitor"`
}

Create a quality monitor

func (CreateQualityMonitorRequest) MarshalJSON added in v0.73.0

func (st CreateQualityMonitorRequest) MarshalJSON() ([]byte, error)

func (*CreateQualityMonitorRequest) UnmarshalJSON added in v0.73.0

func (st *CreateQualityMonitorRequest) UnmarshalJSON(b []byte) error

type DeleteQualityMonitorRequest

type DeleteQualityMonitorRequest struct {
	// The uuid of the request object. For example, schema id.
	ObjectId string `json:"-" tf:"-"`
	// The type of the monitored object. Can be one of the following: schema.
	ObjectType string `json:"-" tf:"-"`
}

Delete a quality monitor

func (DeleteQualityMonitorRequest) MarshalJSON added in v0.73.0

func (st DeleteQualityMonitorRequest) MarshalJSON() ([]byte, error)

func (*DeleteQualityMonitorRequest) UnmarshalJSON added in v0.73.0

func (st *DeleteQualityMonitorRequest) UnmarshalJSON(b []byte) error

type DeleteQualityMonitorResponse

type DeleteQualityMonitorResponse struct {
}

func (DeleteQualityMonitorResponse) MarshalJSON added in v0.73.0

func (st DeleteQualityMonitorResponse) MarshalJSON() ([]byte, error)

func (*DeleteQualityMonitorResponse) UnmarshalJSON added in v0.73.0

func (st *DeleteQualityMonitorResponse) UnmarshalJSON(b []byte) error

type GetQualityMonitorRequest

type GetQualityMonitorRequest struct {
	// The uuid of the request object. For example, schema id.
	ObjectId string `json:"-" tf:"-"`
	// The type of the monitored object. Can be one of the following: schema.
	ObjectType string `json:"-" tf:"-"`
}

Read a quality monitor

func (GetQualityMonitorRequest) MarshalJSON added in v0.73.0

func (st GetQualityMonitorRequest) MarshalJSON() ([]byte, error)

func (*GetQualityMonitorRequest) UnmarshalJSON added in v0.73.0

func (st *GetQualityMonitorRequest) UnmarshalJSON(b []byte) error

type ListQualityMonitorRequest

type ListQualityMonitorRequest struct {
	PageSize int `json:"-" tf:"-"`

	PageToken string `json:"-" tf:"-"`

	ForceSendFields []string `json:"-" tf:"-"`
}

List quality monitors

func (ListQualityMonitorRequest) MarshalJSON

func (st ListQualityMonitorRequest) MarshalJSON() ([]byte, error)

func (*ListQualityMonitorRequest) UnmarshalJSON

func (st *ListQualityMonitorRequest) UnmarshalJSON(b []byte) error

type ListQualityMonitorResponse

type ListQualityMonitorResponse struct {

	// Wire name: 'next_page_token'
	NextPageToken string `json:"next_page_token,omitempty"`

	// Wire name: 'quality_monitors'
	QualityMonitors []QualityMonitor `json:"quality_monitors,omitempty"`

	ForceSendFields []string `json:"-" tf:"-"`
}

func (ListQualityMonitorResponse) MarshalJSON

func (st ListQualityMonitorResponse) MarshalJSON() ([]byte, error)

func (*ListQualityMonitorResponse) UnmarshalJSON

func (st *ListQualityMonitorResponse) UnmarshalJSON(b []byte) error

type QualityMonitor

type QualityMonitor struct {

	// Wire name: 'anomaly_detection_config'
	AnomalyDetectionConfig *AnomalyDetectionConfig `json:"anomaly_detection_config,omitempty"`
	// The uuid of the request object. For example, schema id.
	// Wire name: 'object_id'
	ObjectId string `json:"object_id"`
	// The type of the monitored object. Can be one of the following: schema.
	// Wire name: 'object_type'
	ObjectType string `json:"object_type"`
}

func (QualityMonitor) MarshalJSON added in v0.73.0

func (st QualityMonitor) MarshalJSON() ([]byte, error)

func (*QualityMonitor) UnmarshalJSON added in v0.73.0

func (st *QualityMonitor) UnmarshalJSON(b []byte) error

type QualityMonitorV2API

type QualityMonitorV2API struct {
	// contains filtered or unexported fields
}

Manage data quality of UC objects (currently support `schema`)

func NewQualityMonitorV2

func NewQualityMonitorV2(client *client.DatabricksClient) *QualityMonitorV2API

func (*QualityMonitorV2API) CreateQualityMonitor

func (a *QualityMonitorV2API) CreateQualityMonitor(ctx context.Context, request CreateQualityMonitorRequest) (*QualityMonitor, error)

func (*QualityMonitorV2API) DeleteQualityMonitor

func (a *QualityMonitorV2API) DeleteQualityMonitor(ctx context.Context, request DeleteQualityMonitorRequest) error

func (*QualityMonitorV2API) DeleteQualityMonitorByObjectTypeAndObjectId

func (a *QualityMonitorV2API) DeleteQualityMonitorByObjectTypeAndObjectId(ctx context.Context, objectType string, objectId string) error

Delete a quality monitor on UC object

func (*QualityMonitorV2API) GetQualityMonitor

func (a *QualityMonitorV2API) GetQualityMonitor(ctx context.Context, request GetQualityMonitorRequest) (*QualityMonitor, error)

func (*QualityMonitorV2API) GetQualityMonitorByObjectTypeAndObjectId

func (a *QualityMonitorV2API) GetQualityMonitorByObjectTypeAndObjectId(ctx context.Context, objectType string, objectId string) (*QualityMonitor, error)

Read a quality monitor on UC object

func (*QualityMonitorV2API) ListQualityMonitor

func (a *QualityMonitorV2API) ListQualityMonitor(ctx context.Context, request ListQualityMonitorRequest) listing.Iterator[QualityMonitor]

(Unimplemented) List quality monitors

func (*QualityMonitorV2API) ListQualityMonitorAll

func (a *QualityMonitorV2API) ListQualityMonitorAll(ctx context.Context, request ListQualityMonitorRequest) ([]QualityMonitor, error)

(Unimplemented) List quality monitors

func (*QualityMonitorV2API) UpdateQualityMonitor

func (a *QualityMonitorV2API) UpdateQualityMonitor(ctx context.Context, request UpdateQualityMonitorRequest) (*QualityMonitor, error)

type QualityMonitorV2Interface

type QualityMonitorV2Interface interface {

	// Create a quality monitor on UC object
	CreateQualityMonitor(ctx context.Context, request CreateQualityMonitorRequest) (*QualityMonitor, error)

	// Delete a quality monitor on UC object
	DeleteQualityMonitor(ctx context.Context, request DeleteQualityMonitorRequest) error

	// Delete a quality monitor on UC object
	DeleteQualityMonitorByObjectTypeAndObjectId(ctx context.Context, objectType string, objectId string) error

	// Read a quality monitor on UC object
	GetQualityMonitor(ctx context.Context, request GetQualityMonitorRequest) (*QualityMonitor, error)

	// Read a quality monitor on UC object
	GetQualityMonitorByObjectTypeAndObjectId(ctx context.Context, objectType string, objectId string) (*QualityMonitor, error)

	// (Unimplemented) List quality monitors
	//
	// This method is generated by Databricks SDK Code Generator.
	ListQualityMonitor(ctx context.Context, request ListQualityMonitorRequest) listing.Iterator[QualityMonitor]

	// (Unimplemented) List quality monitors
	//
	// This method is generated by Databricks SDK Code Generator.
	ListQualityMonitorAll(ctx context.Context, request ListQualityMonitorRequest) ([]QualityMonitor, error)

	// (Unimplemented) Update a quality monitor on UC object
	UpdateQualityMonitor(ctx context.Context, request UpdateQualityMonitorRequest) (*QualityMonitor, error)
}

type QualityMonitorV2Service deprecated

type QualityMonitorV2Service interface {

	// Create a quality monitor on UC object
	CreateQualityMonitor(ctx context.Context, request CreateQualityMonitorRequest) (*QualityMonitor, error)

	// Delete a quality monitor on UC object
	DeleteQualityMonitor(ctx context.Context, request DeleteQualityMonitorRequest) error

	// Read a quality monitor on UC object
	GetQualityMonitor(ctx context.Context, request GetQualityMonitorRequest) (*QualityMonitor, error)

	// (Unimplemented) List quality monitors
	ListQualityMonitor(ctx context.Context, request ListQualityMonitorRequest) (*ListQualityMonitorResponse, error)

	// (Unimplemented) Update a quality monitor on UC object
	UpdateQualityMonitor(ctx context.Context, request UpdateQualityMonitorRequest) (*QualityMonitor, error)
}

Manage data quality of UC objects (currently support `schema`)

Deprecated: Do not use this interface, it will be removed in a future version of the SDK.

type UpdateQualityMonitorRequest

type UpdateQualityMonitorRequest struct {
	// The uuid of the request object. For example, schema id.
	ObjectId string `json:"-" tf:"-"`
	// The type of the monitored object. Can be one of the following: schema.
	ObjectType string `json:"-" tf:"-"`

	// Wire name: 'quality_monitor'
	QualityMonitor QualityMonitor `json:"quality_monitor"`
}

Update a quality monitor

func (UpdateQualityMonitorRequest) MarshalJSON added in v0.73.0

func (st UpdateQualityMonitorRequest) MarshalJSON() ([]byte, error)

func (*UpdateQualityMonitorRequest) UnmarshalJSON added in v0.73.0

func (st *UpdateQualityMonitorRequest) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL