Scheduled reports (GraphQL)

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

ArgumentTypeDescription
runUuidUUID!UUID of the digest occurrence.

Returns

[UUID!]!

Example

query GetAgentDigestSelection($runUuid: UUID!) {
  getAgentDigestSelection(runUuid: $runUuid)
}

Related types

UUID

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

ArgumentTypeDescription
reportUuidUUID!UUID of the report to fetch.

Returns

ScheduledReportType!

Example

query GetScheduledReport($reportUuid: UUID!) {
  getScheduledReport(reportUuid: $reportUuid) {
    id
    name
    reportType
    timeInterval
    intervalPosition
    nextExecutionTime
    config
    audienceUuids
    enabled
    disabledReason
  }
}

Related types

ScheduledReportType, UUID

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

ArgumentTypeDescription
reportTypeReportTypeOnly return reports of this type. Omit for all types.
agentNameStringOnly return reports scoped to this agent. Give it together with traceTableMcon.
traceTableMconStringMCON of the agent's trace table. Give it together with agentName. A platform agent's agent MCON is also accepted.

Returns

[ScheduledReportType!]!

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

ArgumentTypeDescription
audienceUuids[UUID!]!Audience (monitor label) UUIDs to deliver the report to.
configJSONString!Report scope configuration; shape depends on the report type.
enabledBooleanWhether the report starts enabled. Defaults to true.
intervalPositionIntPosition 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.
nameString!User-facing display name of the report.
reportTypeReportType!Kind of report to schedule.
timeIntervalReportInterval!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

CreateScheduledReportMutation

Object type.

FieldTypeDescription
reportScheduledReportTypeThe 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

ArgumentTypeDescription
reportUuidUUID!UUID of the report to delete.

Returns

DeleteScheduledReportMutation

Example

mutation DeleteScheduledReport($reportUuid: UUID!) {
  deleteScheduledReport(reportUuid: $reportUuid) {
    success
  }
}

Types used only by deleteScheduledReport

DeleteScheduledReportMutation

Object type.

FieldTypeDescription
successBoolean!True if the report was deleted.

Related types

UUID

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

ArgumentTypeDescription
audienceUuids[UUID!]Replacement audience (monitor label) UUIDs.
configJSONStringReport scope configuration; shape depends on the report type. Server-owned keys are not returned and cannot be set; the stored values are kept.
enabledBooleanWhether the report is actively scheduled.
intervalPositionIntPosition 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.
nameStringUser-facing display name of the report.
reportUuidUUID!UUID of the report to update.
timeIntervalReportIntervalRecurrence 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

UpdateScheduledReportMutation

Object type.

FieldTypeDescription
reportScheduledReportTypeThe 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.