Related queries and mutations in Dashboards and reports. Each has its own section.
Queries
getDataExportUrl (query)
getDataExportUrl is a query in the Monte Carlo GraphQL API, in Dashboards and reports. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Get URL to download a specific Data Export file
Arguments
| Argument | Type | Description |
|---|---|---|
dataExportName | DataExportNames! | Name of Data Export to fetch |
Returns
DataExportURL
Example
query GetDataExportUrl($dataExportName: DataExportNames!) {
getDataExportUrl(dataExportName: $dataExportName) {
url
createdAt
}
}Types used only by getDataExportUrl
getDataExportUrlDataExportNames
DataExportNamesEnum type. Available Data Exports.
| Value | Description |
|---|---|
ALL_MONITORS | DEPRECATED |
MONITORS | Export containing all monitors data |
ALERTS | Export containing all alerts data in the past 90 days |
EVENTS | Export containing all events data in the past 90 days |
ASSETS | Export containing all assets data |
ALERTS_AND_EVENTS | Export containing both alerts and events data |
LINEAGE_EDGES | Export containing lineage edges data. (This report is not generally available.) |
MONITOR_LOGS | Export containing monitor execution logs for the past 30 days |
MONITOR_RUNS | Export containing per-monitor run values and thresholds. (This report is in private preview.) |
CONSUMPTION | Export containing monitor consumption data |
DataExportURL
DataExportURLObject type.
| Field | Type | Description |
|---|---|---|
url | String | Pre-signed URL for fetching report, expiration time is 1 minute |
createdAt | DateTime | Report creation time in UTC |
Related types
getGenerateReportStatus (query)
getGenerateReportStatus is a query in the Monte Carlo GraphQL API, in Dashboards and reports. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Get status of a generated report
Arguments
| Argument | Type | Description |
|---|---|---|
reportJobId | UUID! | Report Job ID |
Returns
ReportStatus
Example
query GetGenerateReportStatus($reportJobId: UUID!) {
getGenerateReportStatus(reportJobId: $reportJobId) {
reportJobUuid
reportType
status
error
downloadUrl
}
}Types used only by getGenerateReportStatus
getGenerateReportStatusReportArgumentsAlerts
ReportArgumentsAlertsObject type.
| Field | Type | Description |
|---|---|---|
type | ReportTypeEnum! | |
monitorId | UUID! |
ReportArgumentsConsumption
ReportArgumentsConsumptionObject type.
| Field | Type | Description |
|---|---|---|
type | ReportTypeEnum! |
ReportArgumentsEvents
ReportArgumentsEventsObject type.
| Field | Type | Description |
|---|---|---|
type | ReportTypeEnum! | |
alertId | UUID! |
ReportArgumentsInterface
ReportArgumentsInterfaceInterface type.
| Field | Type | Description |
|---|---|---|
type | ReportTypeEnum! |
ReportArgumentsMonitorLogs
ReportArgumentsMonitorLogsObject type.
| Field | Type | Description |
|---|---|---|
type | ReportTypeEnum! |
ReportArgumentsMonitorRuns
ReportArgumentsMonitorRunsObject type.
| Field | Type | Description |
|---|---|---|
type | ReportTypeEnum! |
ReportStatus
ReportStatusObject type.
| Field | Type | Description |
|---|---|---|
reportJobUuid | UUID! | |
reportType | ReportTypeEnum! | |
reportArguments | ReportArgumentsInterface! | |
status | ReportStatusEnum! | |
error | String | |
downloadUrl | String |
ReportStatusEnum
ReportStatusEnumEnum type.
| Value | Description |
|---|---|
QUEUED | |
RUNNING | |
COMPLETED | |
FAILED |
Related types
Mutations
generateReport (mutation)
generateReport is a mutation in the Monte Carlo GraphQL API, in Dashboards and reports. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Generate a report
Arguments
| Argument | Type | Description |
|---|---|---|
reportParameters | ReportArgumentsUnionInput! |
Returns
GenerateReport
Example
mutation GenerateReport($reportParameters: ReportArgumentsUnionInput!) {
generateReport(reportParameters: $reportParameters) {
reportJobId
}
}Types used only by generateReport
generateReportGenerateReport
GenerateReportObject type.
| Field | Type | Description |
|---|---|---|
reportJobId | UUID |
ReportArgumentsUnionInput
ReportArgumentsUnionInputInput object type.
| Field | Type | Description |
|---|---|---|
alertId | UUID | |
monitorId | UUID | |
type | ReportTypeEnum! |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
