@Generated public class QualityMonitorsAPI extends Object
| Constructor and Description |
|---|
QualityMonitorsAPI(ApiClient apiClient)
Regular-use constructor
|
QualityMonitorsAPI(QualityMonitorsService mock)
Constructor for mocks
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancelRefresh(CancelRefreshRequest request)
Cancels an already-initiated refresh job.
|
MonitorInfo |
create(CreateMonitor request)
Creates a new monitor for the specified table.
|
DeleteMonitorResponse |
delete(DeleteQualityMonitorRequest request)
Deletes a monitor for the specified table.
|
DeleteMonitorResponse |
delete(String tableName) |
MonitorInfo |
get(GetQualityMonitorRequest request)
Gets a monitor for the specified table.
|
MonitorInfo |
get(String tableName) |
MonitorRefreshInfo |
getRefresh(GetRefreshRequest request)
Gets info about a specific monitor refresh using the given refresh ID.
|
MonitorRefreshInfo |
getRefresh(String tableName,
long refreshId) |
QualityMonitorsService |
impl() |
MonitorRefreshListResponse |
listRefreshes(ListRefreshesRequest request)
Gets an array containing the history of the most recent refreshes (up to 25) for this table.
|
MonitorRefreshListResponse |
listRefreshes(String tableName) |
RegenerateDashboardResponse |
regenerateDashboard(RegenerateDashboardRequest request)
Regenerates the monitoring dashboard for the specified table.
|
MonitorRefreshInfo |
runRefresh(RunRefreshRequest request)
Queues a metric refresh on the monitor for the specified table.
|
MonitorInfo |
update(UpdateMonitor request)
Updates a monitor for the specified table.
|
public QualityMonitorsAPI(ApiClient apiClient)
public QualityMonitorsAPI(QualityMonitorsService mock)
public void cancelRefresh(CancelRefreshRequest request)
public MonitorInfo create(CreateMonitor request)
The caller must either: 1. be an owner of the table's parent catalog, have **USE_SCHEMA** on the table's parent schema, and have **SELECT** access on the table 2. have **USE_CATALOG** on the table's parent catalog, be an owner of the table's parent schema, and have **SELECT** access on the table. 3. have the following permissions: - **USE_CATALOG** on the table's parent catalog - **USE_SCHEMA** on the table's parent schema - be an owner of the table.
Workspace assets, such as the dashboard, will be created in the workspace where this call was made.
public DeleteMonitorResponse delete(String tableName)
public DeleteMonitorResponse delete(DeleteQualityMonitorRequest request)
The caller must either: 1. be an owner of the table's parent catalog 2. have **USE_CATALOG** on the table's parent catalog and be an owner of the table's parent schema 3. have the following permissions: - **USE_CATALOG** on the table's parent catalog - **USE_SCHEMA** on the table's parent schema - be an owner of the table.
Additionally, the call must be made from the workspace where the monitor was created.
Note that the metric tables and dashboard will not be deleted as part of this call; those assets must be manually cleaned up (if desired).
public MonitorInfo get(String tableName)
public MonitorInfo get(GetQualityMonitorRequest request)
The caller must either: 1. be an owner of the table's parent catalog 2. have **USE_CATALOG** on the table's parent catalog and be an owner of the table's parent schema. 3. have the following permissions: - **USE_CATALOG** on the table's parent catalog - **USE_SCHEMA** on the table's parent schema - **SELECT** privilege on the table.
The returned information includes configuration values, as well as information on assets created by the monitor. Some information (e.g., dashboard) may be filtered out if the caller is in a different workspace than where the monitor was created.
public MonitorRefreshInfo getRefresh(String tableName, long refreshId)
public MonitorRefreshInfo getRefresh(GetRefreshRequest request)
The caller must either: 1. be an owner of the table's parent catalog 2. have **USE_CATALOG** on the table's parent catalog and be an owner of the table's parent schema 3. have the following permissions: - **USE_CATALOG** on the table's parent catalog - **USE_SCHEMA** on the table's parent schema - **SELECT** privilege on the table.
Additionally, the call must be made from the workspace where the monitor was created.
public MonitorRefreshListResponse listRefreshes(String tableName)
public MonitorRefreshListResponse listRefreshes(ListRefreshesRequest request)
The caller must either: 1. be an owner of the table's parent catalog 2. have **USE_CATALOG** on the table's parent catalog and be an owner of the table's parent schema 3. have the following permissions: - **USE_CATALOG** on the table's parent catalog - **USE_SCHEMA** on the table's parent schema - **SELECT** privilege on the table.
Additionally, the call must be made from the workspace where the monitor was created.
public RegenerateDashboardResponse regenerateDashboard(RegenerateDashboardRequest request)
The caller must either: 1. be an owner of the table's parent catalog 2. have **USE_CATALOG** on the table's parent catalog and be an owner of the table's parent schema 3. have the following permissions: - **USE_CATALOG** on the table's parent catalog - **USE_SCHEMA** on the table's parent schema - be an owner of the table
The call must be made from the workspace where the monitor was created. The dashboard will be regenerated in the assets directory that was specified when the monitor was created.
public MonitorRefreshInfo runRefresh(RunRefreshRequest request)
The caller must either: 1. be an owner of the table's parent catalog 2. have **USE_CATALOG** on the table's parent catalog and be an owner of the table's parent schema 3. have the following permissions: - **USE_CATALOG** on the table's parent catalog - **USE_SCHEMA** on the table's parent schema - be an owner of the table
Additionally, the call must be made from the workspace where the monitor was created.
public MonitorInfo update(UpdateMonitor request)
The caller must either: 1. be an owner of the table's parent catalog 2. have **USE_CATALOG** on the table's parent catalog and be an owner of the table's parent schema 3. have the following permissions: - **USE_CATALOG** on the table's parent catalog - **USE_SCHEMA** on the table's parent schema - be an owner of the table.
Additionally, the call must be made from the workspace where the monitor was created, and the caller must be the original creator of the monitor.
Certain configuration fields, such as output asset identifiers, cannot be updated.
public QualityMonitorsService impl()
Copyright © 2025. All rights reserved.