Related queries and mutations in Catalog and lineage. Each has its own section.
Queries
getDataMaintenanceEntries (query)
getDataMaintenanceEntries is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Fetch all exclusion windows for the given warehouse
Arguments
| Argument | Type | Description |
|---|---|---|
dwId | UUID | Warehouse UUID |
Returns
Example
query GetDataMaintenanceEntries {
getDataMaintenanceEntries {
createdTime
updatedTime
id
accountUuid
resourceUuid
database
dataset
fullTableId
monitorId
timeSeriesUuid
maintenanceType
startTime
endTime
reason
reasonType
}
}Related types
getDataMaintenanceEntriesByMcon (query)
getDataMaintenanceEntriesByMcon is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Fetch exclusion windows for the given MCON
Arguments
| Argument | Type | Description |
|---|---|---|
mcon | String! | MCON |
startTime | DateTime | Start time of maintenance period |
endTime | DateTime | End time of maintenance period |
metricType | DataMaintenanceMetric | Type of maintenance metric |
Returns
Example
query GetDataMaintenanceEntriesByMcon($mcon: String!) {
getDataMaintenanceEntriesByMcon(mcon: $mcon) {
createdTime
updatedTime
id
accountUuid
resourceUuid
database
dataset
fullTableId
monitorId
timeSeriesUuid
maintenanceType
startTime
endTime
reason
reasonType
}
}Related types
DataMaintenanceEntry, DataMaintenanceMetric, DateTime
getDataMaintenanceEntriesByMonitor (query)
getDataMaintenanceEntriesByMonitor is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Fetch exclusion windows for the given monitor
Arguments
| Argument | Type | Description |
|---|---|---|
monitorId | UUID! | Monitor UUID |
timeSeriesUuid | UUID | Only return windows for a specific time series UUID |
startTime | DateTime | Start time of maintenance period |
endTime | DateTime | End time of maintenance period |
metric | String | Metric to set maintenance period for. Deprecated: Use time_series_uuid instead |
field | String | Field to set maintenance period for. Deprecated: Use time_series_uuid instead |
whereCondition | String | Where condition to set maintenance period for. Deprecated: Use time_series_uuid instead |
includeParentRuleWindows | Boolean | If true and the monitor is a rule generated from a parent rule (e.g. a SQL rule variation), windows defined on the parent rule are included as well. Use the monitorId on each entry to tell them apart. |
Returns
Example
query GetDataMaintenanceEntriesByMonitor($monitorId: UUID!) {
getDataMaintenanceEntriesByMonitor(monitorId: $monitorId) {
createdTime
updatedTime
id
accountUuid
resourceUuid
database
dataset
fullTableId
monitorId
timeSeriesUuid
maintenanceType
startTime
endTime
reason
reasonType
}
}Related types
DataMaintenanceEntry, DateTime, UUID
getDataMaintenanceHolidayCodes (query)
getDataMaintenanceHolidayCodes is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Fetch list of supported countries and market codes for data maintenance
Returns
[HolidayCode]
Example
query GetDataMaintenanceHolidayCodes {
getDataMaintenanceHolidayCodes {
code
}
}Types used only by getDataMaintenanceHolidayCodes
getDataMaintenanceHolidayCodesHolidayCode
HolidayCodeObject type.
| Field | Type | Description |
|---|---|---|
code | String! | Country or financial market code |
getDataMaintenanceHolidayNames (query)
getDataMaintenanceHolidayNames is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Fetch list of supported holiday names
Arguments
| Argument | Type | Description |
|---|---|---|
countryOrMarketCode | String! | Country or market code |
Returns
[HolidayName]
Example
query GetDataMaintenanceHolidayNames($countryOrMarketCode: String!) {
getDataMaintenanceHolidayNames(countryOrMarketCode: $countryOrMarketCode) {
name
nextDate
occurrence
}
}Types used only by getDataMaintenanceHolidayNames
getDataMaintenanceHolidayNamesHolidayName
HolidayNameObject type.
| Field | Type | Description |
|---|---|---|
name | String! | Holiday name |
nextDate | DateTime! | Date |
occurrence | String | Textual description of when the holiday occurs |
Related types
Mutations
createDataMaintenanceWindowFromHolidays (mutation)
createDataMaintenanceWindowFromHolidays is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Create a maintenance window based over a list of holidays
Arguments
| Argument | Type | Description |
|---|---|---|
countryOrMarketCode | String! | Country or market code for which to create holiday maintenance windows |
end | Date! | Date until to create maintenance windows for |
holidays | [String]! | List of holiday names to create maintenance window for |
maintenanceType | DataMaintenanceMetric | If not set, all metrics for the object will be ignored |
mcon | String! | MCON unique identifier of object to set maintenance period for. MCON can be of type 'warehouse', 'project', 'dataset' or any table type. Setting any type other than a table type will set the maintenance window for all matching tables. |
start | Date! | Date from when to create maintenance windows for |
timezone | String! | Timezone to create maintenance windows for |
Returns
CreateDataMaintenanceWindowFromHolidays
Example
mutation CreateDataMaintenanceWindowFromHolidays($countryOrMarketCode: String!, $end: Date!, $holidays: [String]!, $mcon: String!, $start: Date!, $timezone: String!) {
createDataMaintenanceWindowFromHolidays(countryOrMarketCode: $countryOrMarketCode, end: $end, holidays: $holidays, mcon: $mcon, start: $start, timezone: $timezone) {
entries {
createdTime
updatedTime
id
accountUuid
resourceUuid
database
dataset
fullTableId
monitorId
timeSeriesUuid
maintenanceType
startTime
endTime
reason
reasonType
}
}
}Types used only by createDataMaintenanceWindowFromHolidays
createDataMaintenanceWindowFromHolidaysCreateDataMaintenanceWindowFromHolidays
CreateDataMaintenanceWindowFromHolidaysObject type. Create a data maintenance window for a set of holidays
| Field | Type | Description |
|---|---|---|
entries | [DataMaintenanceEntry] |
Related types
DataMaintenanceEntry, DataMaintenanceMetric, Date
createOrUpdateDataMaintenanceEntry (mutation)
createOrUpdateDataMaintenanceEntry is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Creates or updates a data maintenance period
Arguments
| Argument | Type | Description |
|---|---|---|
dataset | String | Deprecated: Name of dataset to to set maintenance period for. If dataset is given, project is required as-well. Use 'mcon' instead. |
dwId | UUID | Warehouse UUID. Required if no monitor_id is given |
endTime | DateTime | Start period of data maintenance. If not set, all future data will be ignored until updated |
field | String | Field to set maintenance period for. If set, the maintenance windows will only apply to the given field. Used for Monitor related windows only. Deprecated: Use time_series_uuid instead |
id | Int | ID of existing data maintenance entry for updating |
maintenanceType | DataMaintenanceMetric | If not set, all metrics for the object will be ignored |
mcon | String | MCON unique identifier of object to set maintenance period for. MCON can be of type 'warehouse', 'project', 'dataset' or any table type. Setting any type other than a table type will set the maintenance window for all matching tables. |
metric | String | Metric to set maintenance period for. If set, the maintenance windows will only apply to the given metric. Used for Monitor related windows only. Deprecated: Use time_series_uuid instead |
monitorId | UUID | Monitor ID to set maintenance period for. If set, the maintenance windows will only apply to the given monitor. |
project | String | Deprecated: Name of database or project to to set maintenance period for. Use 'mcon' instead. |
reason | String | Description of the reason for the maintenance window |
reasonType | DataMaintenanceReasonType | Reason type for the maintenance window |
startTime | DateTime | Start period of data maintenance. If not set, all previous data will be ignored. |
timeSeriesUuid | UUID | Time series UUID to set maintenance period for. If set, the maintenance windows will only apply to the given time series. Used for Monitor related windows only. |
whereCondition | String | Where condition to set maintenance period for. If set, the maintenance windows will only apply to the given where condition. Used for Monitor related windows only. Deprecated: Use time_series_uuid instead |
Returns
CreateOrUpdateDataMaintenanceEntry
Example
mutation CreateOrUpdateDataMaintenanceEntry {
createOrUpdateDataMaintenanceEntry {
entry {
createdTime
updatedTime
id
accountUuid
resourceUuid
database
dataset
fullTableId
monitorId
timeSeriesUuid
maintenanceType
startTime
endTime
reason
reasonType
}
}
}Types used only by createOrUpdateDataMaintenanceEntry
createOrUpdateDataMaintenanceEntryCreateOrUpdateDataMaintenanceEntry
CreateOrUpdateDataMaintenanceEntryObject type. Creates or updates a data maintenance period
| Field | Type | Description |
|---|---|---|
entry | DataMaintenanceEntry |
Related types
DataMaintenanceEntry, DataMaintenanceMetric, DataMaintenanceReasonType, DateTime, UUID
deleteDataMaintenanceEntry (mutation)
deleteDataMaintenanceEntry is a mutation in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Delete a data maintenance window
Arguments
| Argument | Type | Description |
|---|---|---|
id | Int! | ID of existing data maintenance entry for deleting |
Returns
DeleteDataMaintenanceEntry
Example
mutation DeleteDataMaintenanceEntry($id: Int!) {
deleteDataMaintenanceEntry(id: $id) {
success
}
}Types used only by deleteDataMaintenanceEntry
deleteDataMaintenanceEntryDeleteDataMaintenanceEntry
DeleteDataMaintenanceEntryObject type. Delete a data maintenance window
| Field | Type | Description |
|---|---|---|
success | Boolean |
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
