Related queries and mutations in Dashboards and reports. Each has its own section.
Queries
getAgentDigestSelection (query)
getAgentDigestSelection 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
Monitor UUIDs the agent digest's audience-gap CTA named for that occurrence. Empty when the run is not the caller's, is not an agent digest, or carried no audience-gap section.
Arguments
| Argument | Type | Description |
|---|---|---|
runUuid | UUID! | UUID of the digest occurrence. |
Returns
[UUID!]!
Example
query GetAgentDigestSelection($runUuid: UUID!) {
getAgentDigestSelection(runUuid: $runUuid)
}Related types
getScheduledReport (query)
getScheduledReport 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
Fetch a single scheduled report by UUID. A report scoped to an agent the caller cannot open reads as not found.
Arguments
| Argument | Type | Description |
|---|---|---|
reportUuid | UUID! | UUID of the report to fetch. |
Returns
Example
query GetScheduledReport($reportUuid: UUID!) {
getScheduledReport(reportUuid: $reportUuid) {
id
name
reportType
timeInterval
intervalPosition
nextExecutionTime
config
audienceUuids
enabled
disabledReason
}
}Related types
getScheduledReports (query)
getScheduledReports 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
List the calling account's scheduled reports. A report scoped to an agent is listed only when the caller can open that agent.
Arguments
| Argument | Type | Description |
|---|---|---|
reportType | ReportType | Only return reports of this type. Omit for all types. |
agentName | String | Only return reports scoped to this agent. Give it together with traceTableMcon. |
traceTableMcon | String | MCON of the agent's trace table. Give it together with agentName. A platform agent's agent MCON is also accepted. |
Returns
Example
query GetScheduledReports {
getScheduledReports {
id
name
reportType
timeInterval
intervalPosition
nextExecutionTime
config
audienceUuids
enabled
disabledReason
}
}Related types
ReportType, ScheduledReportType
Mutations
createScheduledReport (mutation)
createScheduledReport 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
Create a recurring scheduled report.
Arguments
| Argument | Type | Description |
|---|---|---|
audienceUuids | [UUID!]! | Audience (monitor label) UUIDs to deliver the report to. |
config | JSONString! | Report scope configuration; shape depends on the report type. |
enabled | Boolean | Whether the report starts enabled. Defaults to true. |
intervalPosition | Int | Position within the interval: optional hour of day (0-23, UTC) for DAY — omit to let Monte Carlo pick the delivery time — required weekday (1=Mon..7=Sun) for WEEK or day of month (1-31, clamped to month end) for MONTH. Some report types always pick the delivery time and reject an explicit DAY hour. |
name | String! | User-facing display name of the report. |
reportType | ReportType! | Kind of report to schedule. |
timeInterval | ReportInterval! | Recurrence interval. |
Returns
CreateScheduledReportMutation
Example
mutation CreateScheduledReport($audienceUuids: [UUID!]!, $config: JSONString!, $name: String!, $reportType: ReportType!, $timeInterval: ReportInterval!) {
createScheduledReport(audienceUuids: $audienceUuids, config: $config, name: $name, reportType: $reportType, timeInterval: $timeInterval) {
report {
id
name
reportType
timeInterval
intervalPosition
nextExecutionTime
config
audienceUuids
enabled
disabledReason
}
}
}Types used only by createScheduledReport
createScheduledReportCreateScheduledReportMutation
CreateScheduledReportMutationObject type.
| Field | Type | Description |
|---|---|---|
report | ScheduledReportType | The created scheduled report. |
Related types
JSONString, ReportInterval, ReportType, ScheduledReportType, UUID
deleteScheduledReport (mutation)
deleteScheduledReport 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
Delete a recurring scheduled report.
Arguments
| Argument | Type | Description |
|---|---|---|
reportUuid | UUID! | UUID of the report to delete. |
Returns
DeleteScheduledReportMutation
Example
mutation DeleteScheduledReport($reportUuid: UUID!) {
deleteScheduledReport(reportUuid: $reportUuid) {
success
}
}Types used only by deleteScheduledReport
deleteScheduledReportDeleteScheduledReportMutation
DeleteScheduledReportMutationObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean! | True if the report was deleted. |
Related types
updateScheduledReport (mutation)
updateScheduledReport 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
Update a recurring scheduled report.
Arguments
| Argument | Type | Description |
|---|---|---|
audienceUuids | [UUID!] | Replacement audience (monitor label) UUIDs. |
config | JSONString | Report scope configuration; shape depends on the report type. Server-owned keys are not returned and cannot be set; the stored values are kept. |
enabled | Boolean | Whether the report is actively scheduled. |
intervalPosition | Int | Position within the interval: hour of day (0-23, UTC) for DAY, weekday (1=Mon..7=Sun) for WEEK, day of month (1-31, clamped to month end) for MONTH. When timeInterval changes, the stored position is never reused: provide one in the same call for WEEK/MONTH; for DAY it is optional (omitted → Monte Carlo picks the delivery time). Some report types always pick the delivery time and reject an explicit DAY hour. |
name | String | User-facing display name of the report. |
reportUuid | UUID! | UUID of the report to update. |
timeInterval | ReportInterval | Recurrence interval. |
Returns
UpdateScheduledReportMutation
Example
mutation UpdateScheduledReport($reportUuid: UUID!) {
updateScheduledReport(reportUuid: $reportUuid) {
report {
id
name
reportType
timeInterval
intervalPosition
nextExecutionTime
config
audienceUuids
enabled
disabledReason
}
}
}Types used only by updateScheduledReport
updateScheduledReportUpdateScheduledReportMutation
UpdateScheduledReportMutationObject type.
| Field | Type | Description |
|---|---|---|
report | ScheduledReportType | The updated scheduled report. |
Related types
JSONString, ReportInterval, ScheduledReportType, UUID
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
